renaming a device with DLMS

Unanswered Question
Aug 26th, 2010

I see from the list of functions available that there is one called "renameDevices". I have been unable to make this work. I tried setting the CDATA with CSV Version 3.0 formatted data (includig the device_identity of the device I wanted to rename), but no luck. What is this function expecting? Also, the "addDevice" function wants CSV Version 2.0 formatted data. This does not include the IP address. Is there any way to add a device and set the IP address? I am using RME 4.3.1

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Joe Clarke Thu, 08/26/2010 - 12:41

DLMS is deprecated in LMS 2.5 and higher.  In fact, support for renameDevices has been removed.  Instead, you should be using dcrcli to add and delete devices.  Dcrcli supports bulk file import using the latest CSV format.  However, it does not have a servlet interface like DLMS.  It is a local CLI command only.

csschaeffer Mon, 08/30/2010 - 06:07

Well that is unfortunate. Remote management of the DCR via web servlets was one of the features I had hoped to use to integrate updates to CW from our change management system. I saw that you could add devices via dcrcli, but I didn't see any way to specify a bulk import csv file. What is the syntax/technique for that?

I also had issues trying to delete devices via the command line. When I tried to delete devices I got an error about other apps managing those devices. I can delete them from RME from the command line, but not from Campus Manager. Is there any way to delete devices unconditionally? Also, are you aware of a bug that results in the shadow configuration file not getting the new new name when devices are renamed (either from the command line or the gui)? I stop/restart the ConfigMgmtServer to correct, but that is a pain.

Joe Clarke Mon, 08/30/2010 - 11:51

You need to specify the -f option when deleting a device via dcrcli:

dcrcli -u admin cmd=del -f ...

ConfigMgmtServer only cleans up the shadow contents on startup.  So, to get a rename fully processed, you will need to restart the daemon.  This is done for performance reasons.  As a workaround, you can use cwcli to export the current configuration for a device regardless of its name.

yjdabear Mon, 08/30/2010 - 10:07

>> I saw that you could add devices via dcrcli, but I didn't see any way to  specify a bulk import csv file. What is the syntax/technique for that?

I no longer work with LMS, but according to my old notes:

/opt/CSCOpx/bin/dcrcli -u admin impFile fn=someFile.csv ft=csv [cr=file]

## CS 3.0 SP2, a conflict resolution option (cr) is added in dcrcli import commands using which you can choose to retain data
in DCR or the data from the import source, when there is a conflict.
## Enter -f in the command line to delete all the devices including the devices managed by applications. This is optional.


This Discussion