We have several systems which have all devices configured in them, one of which is CiscoWorks. In our enviromnet our DNS is considered the master list of devices that are being managed.
I am writing a script which queries the DNS to get a list of all devices and their IP addresses, and I would like to query CiscoWorks and get a list of all devices and their management IP addresses.
The script will be run from a remote server (as far as CiscoWorks is concerned).
I can use the CW servlet, rme/cwcli, to extract information, eg
cwtest.pl http://server:1741/rme/cwcli cwtest.file
wher cwtest.file contains
cwcli export inventory -u username -p password -ipaddress 192.168.24.12
This returns XML formatted info on this device.
What is missing from this information is the management IP address for this device.
Ideally I want to extract information using the -view option for all devices, but if I cant get the management IP address it makes life a bit trickier.
I am wondering if I am using the wrong command, ie something other than cwcli export inventory.
Can anyone tell me how to get the management IP address for a device using this method?