3-63

User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 3 Adding and Troubleshooting Devices Using Device Management
Device List Manipulation Service
; Col# = 8: primary_password
; Col# = 9: primary_enable_password
; Col# = 10: user_defined_field_0
; Col# = 11: user_defined_field_1
; Col# = 12: user_defined_field_2
; Col# = 13: user_defined_field_3
;
; Here are the rows of data.
;
enm-2501.cisco.com,public,private,serial,field1,fidel2,fild3
enm-4888.cisco.com,public,priv,little Boys1,field2,,,,,,,,,,,,,rcp9,rcppwd9
enm-4001.cisco.com,public,private,Big Boys1,,,,,,,,,,,,,,rcp2,rcppwd2
enm-7010.cisco.com,public,private,Big Boys1,,,,,,,,tacuser3,tacpwd3
;192.168.5.9,"public,I am
,",public,sn2512,my_anno1,my_anno2,my_anno3,my_anno4,,,,tacuser1,tacpwd1,tacuser2,tacpw
d2,,,rcp1,rcppwd1
mytest.cisco.com,public,private
]]></deviceInfo>
</setCredentials>
<getDeviceIPAddresses>
<deviceInfo>
</deviceInfo>
</getDeviceIPAddresses>
</request>

Sample Java and PERL Scripts to Invoke the Servlet

The section captures Java and PERL code examples that call the DLMS URL and passes in the content

of an XML file.

Java Example
PERL Example

Java Example

This is an example of Java code that calls the Device List Manipulation Service URL and passes in the

content of an XML file.

import java.util.*;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;