SCOM 2007 Gurus!
I am using code similar to this to find all the Windows and Linux computers
related to a monitoring group:
foreach ($group in $groups) {
$group.GetRelatedMonitoringObjects() |
Where-Object { $_.MonitoringClassIds -contains $winServer.Id -or
$_.MonitoringClassIds -contains $linuxComputer.Id }
That part seems to be working fine, the problem is that the purpose of this
this script it to get the current name and IP address of our servers for quick
reference. Both the 'Microsoft.Windows.Server.Computer' and
'Microsoft.Linux.Computer' classes have an 'IP Address' property, and all of
the objects that are Windows servers, have values there. However, only about 1
in 10 of the Linux computers have any data in the IP Address property.
Does anyone know how I can get from a monitoring object of class
'Microsoft.Linux.Computer' to an object that will actually have the IP address
for Linux computers?
Thanks,
Jorgie
--
Erik Jorgensen
Support Systems Administrator - Principal
Tier 2 Applications Support
Division of IT
University of Missouri - Columbia
[email protected]<https://um-ncas2.um.umsystem.edu/owa/UrlBlockedError.aspx>
573.882.5974
Sent from Outlook 2013 on a Surface Pro with Windows 8.1 Enterprise!