Skip navigation
Currently Being Moderated

Export devices to file

VERSION 1 
Created on: Sep 14, 2009 11:21 AM by Noel Brockett - Last Modified:  Sep 14, 2009 11:21 AM by Noel Brockett

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.

#
Comments (0)