> The following script should do it for you. Just as an example you
> can see that I've limited this to devices under /Devices/Network.
>
>
> Code:
>
> #!/usr/bin/env python
> import Globals
> from Products.ZenUtils.ZenScriptBase import ZenScriptBase
>
> dmd = ZenScriptBase(connect=True).dmd
> for device in dmd.Devices.Network.getSubDevices():
>     status = "up"
>     if device.getPingStatus() != 0:
>         status = "down"
>     print "%s,%s" % (device.id, status)

Oh, that's just lovely.  Exactly the sort of thing I'm looking for.  Thanks
muchly!

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to