Get-SCOMLocation

위치를 가져옵니다.

Syntax

Get-SCOMLocation
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMLocation
   [-Agent] <AgentManagedComputer[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMLocation
   [-ManagementServer] <ManagementServer[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMLocation
   [-Pool] <ManagementServicePool[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMLocation
   [-DisplayName] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMLocation
   -Id <Guid[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

Description

Get-SCOMLocation cmdlet은 위치를 가져옵니다. 표시 이름 또는 ID 또는 연결된 에이전트, 관리 서버 또는 리소스 풀을 지정하여 가져올 위치를 지정합니다.

New-SCOMLocation cmdlet을 사용하여 위치를 만들 수 있습니다.

기본적으로 이 cmdlet은 관리 그룹에 대한 활성 영구 연결을 사용합니다. SCSession 매개 변수를 사용하여 다른 영구 연결을 지정합니다. ComputerName자격 증명 매개 변수를 사용하여 관리 그룹에 대한 임시 연결을 만들 수 있습니다. 자세한 내용을 보려면 Get-Help about_OpsMgr_Connections를 입력하십시오.

예제

예제 1: 표시 이름으로 위치 가져오기

PS C:\>Get-SCOMLocation -DisplayName "Seattle, WA"

이 명령은 표시 이름이 시애틀, WA인 위치를 가져옵니다.

예제 2: 에이전트 관리 컴퓨터의 위치 가져오기

PS C:\>$Agent = Get-SCOMAgent -Name "Server01.Contoso.com"
PS C:\> Get-SCOMLocation -Agent $Agent

이 예제에서는 에이전트 관리 컴퓨터의 위치를 가져옵니다. 첫 번째 명령은 Server01.Contoso.com 에이전트 관리 컴퓨터의 에이전트 개체를 가져오고 개체를 $Agent 변수에 저장합니다.

두 번째 명령은 $Agent 변수에 저장된 에이전트 개체의 위치를 가져옵니다.

예제 3: 관리 서버의 위치 가져오기

PS C:\>$MgmtSvr = Get-SCOMManagementServer -Name "MgmtServer01.Contoso.com"
PS C:\> Get-SCOMLocation -ManagementServer $MgmtSvr

이 예제에서는 MgmtServer01.Contoso.com 관리 서버의 위치를 가져옵니다. 첫 번째 명령은 MgmtServer01.Contoso.com 관리 서버에 대한 관리 서버 개체를 가져오고 $MgmtSvr 변수에 개체를 저장합니다.

두 번째 명령은 $MgmtSvr 변수에 저장된 관리 서버 개체의 위치를 가져옵니다.

예제 4: 리소스 풀의 위치 가져오기

PS C:\>$Pool = Get-SCOMResourcePool -Name "Pool01"
PS C:\> Get-SCOMLocation -Pool $Pool

이 예제에서는 Pool01이라는 리소스 풀의 위치를 가져옵니다. 첫 번째 명령은 Pool01이라는 리소스 풀에 대한 리소스 풀 개체를 가져오고 개체를 $Pool 변수에 저장합니다.

두 번째 명령은 $Pool 변수에 저장된 풀의 위치를 가져옵니다.

매개 변수

-Agent

AgentManagedComputer 개체의 배열을 지정합니다. AgentManagedComputer 개체를 가져오려면 Get-SCOMAgent cmdlet을 사용합니다.

Type:AgentManagedComputer[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ComputerName

컴퓨터 이름의 배열을 지정합니다. cmdlet은 이러한 컴퓨터에 대한 관리 그룹과 임시 연결을 설정합니다. 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:True
Accept wildcard characters:False

-Id

위치의 고유 ID 배열을 지정합니다.

Type:Guid[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagementServer

관리 서버 개체의 배열을 지정합니다. 관리 서버 개체를 가져오려면 Get-SCOMManagementServer cmdlet을 사용합니다.

Type:ManagementServer[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Pool

리소스 풀 개체의 배열을 지정합니다. 리소스 풀 개체를 가져오려면 Get-SCOMResourcePool cmdlet을 사용합니다.

Type:ManagementServicePool[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SCSession

Connection 개체의 배열을 지정합니다. Connection 개체를 가져오려면 Get-SCOMManagementGroupConnection cmdlet을 사용합니다.

Type:Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False