cluther wrote: > 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, Iiked your script very much, cluther. It works great! But as I don't know Python at all it is very difficult for me to add some info to it:(. How to add IP of device? -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=17826#17826 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
