Cisco Systems 4.1 Dust Collector User Manual


 
3-52
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 3 Adding and Troubleshooting Devices Using Device Management
Device List Manipulation Service
192.168.28.14-CE:managed,
To list all the devices in the Device and Credential Repository, change the following line in the given
sample XML file:
From
<listDevices attr="yes" deviceType="managed">
To
<listDevices attr="yes" deviceType="all">
Getting the Device Credentials Data
Using the DLMS function, you can view the device credentials data for all devices in Device and
Credential Repository. The output for getDeviceCredentials is in CSV 3.0 format.
You get the following additional information while using <getDeviceCredentials>
You can get the device ID by specifying the wantdbid attribute as yes.
You can get the sysobject ID by specifying the wantsysoid attribute as yes.
Note View Permission Report (Common Services > Server > Reports) to check if you have the required
privileges to perform this task.
The sample XML File for Geting Device and Credentials for all Devices in Device and Credential Repository
(dlmsGetDeviceCredentials.xml):
<?xml version="1.0"?>
<!DOCTYPE request SYSTEM "D:\\dlms\\dtdexternal.dtd">
<request responseFormat="xml">
<!-- the value for responseFormat could be xml or csv -->
<authentication name="admin" pwd='YWRtaW4='/>
<!-- pwd is 64-based encoded -->
<source>
<host>CiscoWorks-Server</host>
<product>CiscoWorks:RME</product>
<version>2.0</version>
<description>Using DLMS for getting Device Credentials</description>
</source>
<getDeviceCredentials>
</getDeviceCredentials>
The example below is a perl code that calls the DLMS URL and passes in the content of an XML file:
perl d:\dlms\dlms.pl CiscoWorks-Server dlmsdlmsGetDeviceCredentials.xml
The DLMS output for getting device credentials is:
Cisco Systems NM data import, source = Get Devices Credentials; Version = 2.0;