What agents report to management server? (one-liner)
Just to show you there is almost always more than one way to solve a problem in the Command Shell. Some ways are just easier than others!
?I was looking at what apparently is one MS Internal?suggestion?for returning all the agents that report to a specific management server?Stefan posted today.??A function, 10 or 12 lines of code, a variable to accept the MS name, etc. Fair enough.?That totally works - but so does this one liner.
get-agent | where-object {$_.PrimaryManagementServerName -eq ‘Mgmt Svr FQDN’} | ft name
February 28th, 2008 at 7:49 am
[...] Pete from SystemCenterForum mentiones that this will also work: get-agent | where-object {$_.PrimaryManagementServerName -eq ?Mgmt Svr FQDN?} | ft name [...]
February 29th, 2008 at 5:50 pm
Hi Pete,
Your are completely right
Regards,
Stefan