netdata wrote:
> You could just add a variable in the print line
> 
> It could look like this:
> 
> 
> Code:
> dmd = ZenScriptBase(connect=True).dmd
> for device in dmd.Devices.Network.getSubDevices():
>     status = "up"
>     if device.getPingStatus() != 0:
>         status = "down"
>     print "Device %s with IP %s is %s" % (device.id, device.manageIp, status)
> 
> 


Oh, thank you very much!! It works!! With Zenoss I will study Python a 
little:)). It is very useful with such a great soft!!




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=17829#17829

-------------------- m2f --------------------



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

Reply via email to