Community
Zenoss Newsletter

Monitored by Zenoss
SourceForge.net Logo
Views

Edit history

Edit: -1 of 1
Time: 2008-09-18 07:29:45
Note: /production/www/portal/public-website/community/manage_importObject

changed:
-
First start zendmd from the command line:

{{{
$ zendmd
}}}

We open a file for writing and then write the desired information for each device to the file, separated by semicolons.
{{{
>>> f = open("/tmp/devices.txt", "w")
>>> for d in dmd.Devices.getSubDevices():
...     f.write(d.manageIp+","+d.getLocationName()+","+d.snmpSysName+"\n")
...
>>> f.close()
>>>
}}}

Of course you can customize the device information and the separator - further you can add all interfaces of each device or any other information available to this report.