Get-SCOMClassInstance
클래스 인스턴스를 가져옵니다.
Syntax
Get-SCOMClassInstance
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMClassInstance
[-Class] <ManagementPackClass[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMClassInstance
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMClassInstance
-Name <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMClassInstance
[-Group] <EnterpriseManagementObject[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMClassInstance
-Id <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCOMClassInstance cmdlet은 하나 이상의 클래스 인스턴스를 가져옵니다. 클래스는 일종의 개체를 나타내며 System Center - Operations Manager의 모든 개체는 특정 클래스의 instance 간주됩니다. 클래스의 모든 인스턴스는 공통적인 속성 집합을 공유합니다.
기본적으로 이 cmdlet은 관리 그룹에 대한 활성 영구 연결을 사용합니다. SCSession 매개 변수를 사용하여 다른 영구 연결을 지정합니다. ComputerName 및 자격 증명 매개 변수를 사용하여 관리 그룹에 대한 임시 연결을 만들 수 있습니다. 자세한 내용을 보려면 Get-Help about_OpsMgr_Connections
를 입력하십시오.
예제
예제 1: 표시 이름을 사용하여 클래스 인스턴스를 가져옵니다.
PS C:\>Get-SCOMClassInstance -Displayname "Server01.Contoso.Com", "*.contoso.com"
이 명령은 표시 이름 Server01.Contoso.Com 있는 클래스 instance contoso.com 도메인의 클래스 인스턴스를 가져옵니다.
예제 2: 이름을 사용하여 클래스 인스턴스를 가져옵니다.
PS C:\>Get-SCOMClass -Name "*Windows*" | Get-SCOMClassInstance
이 명령은 클래스의 클래스 인스턴스를 가져옵니다. 명령은 Get-SCOMClass 를 사용하여 이름에 "Windows"가 있는 모든 클래스를 가져와서 파이프라인 연산자를 사용하여 Get-SCOMClassInstance cmdlet에 결과를 전달합니다. 명령은 이름에 Windows가 있는 클래스의 클래스 인스턴스를 가져옵니다.
예제 3: ID를 사용하여 클래스 인스턴스를 가져옵니다.
PS C:\>Get-SCOMClassInstance -Id 7413b06b-a95b-4ae3-98f2-dac9ff76dabd
이 명령은 ID가 7413b06b-a95b-4ae3-98f2-dac9ff76dabd인 클래스 instance 가져옵니다.
매개 변수
-Class
ManagementPackClass 개체의 배열을 지정합니다. ManagementPackClass 개체를 가져오려면 Get-SCOMClass cmdlet을 사용합니다.
Type: | ManagementPackClass[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ComputerName
컴퓨터 이름 배열을 지정합니다. NetBIOS 이름, IP 주소 또는 FQDN(정규화된 도메인 이름)을 사용할 수 있습니다. 로컬 컴퓨터를 지정하려면 컴퓨터 이름, localhost 또는 점(.)을 입력합니다.
System Center 데이터 액세스 서비스가 컴퓨터에서 실행 중이어야 합니다. 컴퓨터를 지정하지 않으면 cmdlet은 현재 관리 그룹 연결에 컴퓨터를 사용합니다.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
관리 그룹 연결에 대한 PSCredential 개체를 지정합니다.
PSCredential 개체를 가져오려면 Get-Credential cmdlet을 사용합니다.
자세한 내용을 보려면 Get-Help Get-Credential
를 입력하십시오.
ComputerName 매개 변수에서 컴퓨터를 지정하는 경우 해당 컴퓨터에 액세스할 수 있는 계정을 사용합니다. 기본값은 현재 사용자입니다.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
개체의 표시 이름 배열을 지정합니다. 이 매개 변수의 값은 가져오는 지역화된 관리 팩과 Windows PowerShell 실행하는 사용자의 로캘에 따라 달라집니다.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-Group
EnterpriseManagementObject 개체의 배열을 지정합니다.
EnterpriseManagementObject 개체를 가져오려면 Get-SCOMGroup cmdlet을 사용합니다.
자세한 내용을 보려면 Get-Help Get-SCOMGroup
를 입력하십시오.
Type: | EnterpriseManagementObject[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
클래스 인스턴스의 GUID 배열을 지정합니다.
클래스의 GUID를 얻으려면 를 입력합니다 Get-SCOMClassInstance | Format-Table DisplayName, Id
.
Type: | Guid[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
개체 이름 배열을 지정합니다.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-SCSession
Connection 개체의 배열을 지정합니다. Connection 개체를 가져오려면 Get-SCOMManagementGroupConnection cmdlet을 사용합니다.
연결 개체는 관리 서버에 대한 연결을 나타냅니다. 기본값은 현재 관리 그룹 연결입니다.
Type: | Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |