Hello,

Does anyone know if the Set-SCOMLocation cmdlet works for Linux agents?

I've created several locations.  I then added a Linux agent to the $linuxagent 
variable.  I also added each location to its own variable, ie. "Austin, TX" = 
$austin

I've attempted the following, but it fails:
Set-SCOMLocation -Agent $linuxagent -Location $austin
...and it failed with the following:
Set-SCOMLocation : Cannot bind parameter 'Agent'. Cannot convert the 
"Microsoft.SystemCenter.CrossPlatform.ClientLibrary.MPAbstractions.PersistedUnixComputer"
value of type 
"Microsoft.SystemCenter.CrossPlatform.ClientLibrary.MPAbstractions.PersistedUnixComputer"
 to type
"Microsoft.EnterpriseManagement.Administration.AgentManagedComputer".
At line:1 char:25
+ Set-SCOMLocation -Agent $linuxagent -Location $austin
+                         ~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-SCOMLocation], 
ParameterBindingException
    + FullyQualifiedErrorId : 
CannotConvertArgumentNoMessage,Microsoft.SystemCenter.OperationsManagerV10.Commands.SetSCOMLocation

Windows servers/agents work perfectly.

Thanks,
Sven

Sven Wells
PRINCIPAL SYSTEM ADMINISTRATOR
IT Infrastructure
TIP - Technology, Innovation and Performance

PPD
Wilmington NC HQ

Phone +1 910 558 6870
[email protected]<mailto:[email protected]>
www.ppdi.com<http://www.ppdi.com/>

PPD LSS Yellow Belt
[cid:[email protected]]


This email transmission and any documents, files or previous email messages 
attached to it may contain information that is confidential or legally 
privileged. 
If you are not the intended recipient or a person responsible for delivering 
this transmission to the intended recipient, you are hereby notified 
that you must not read this transmission and that any disclosure, copying, 
printing, distribution or use of this transmission is strictly prohibited. 
If you have received this transmission in error, please immediately notify the 
sender by telephone or return email and delete the original transmission and 
its attachments without reading or saving in any manner.



Reply via email to