Register New IMEI Units On RMS 4.1 Using Pytohn Automatic Script Universal Small Cell (USC) - Cisco
This document describes the process of how to registered new IMEI in Remote ManagementServices (RMS) using an automatic script.
RequirementsThere are no specific requirements for this document.
Components UsedThis document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Background InformationBefore runningthis processplease check with customer permission, user and pass to the Remote ManagementServices (RMS) elastic server (root user).
In the beginning of the procedure and at the end, Check the id pool usage report to see how many cellingleft.
duplicate cellid can be created on network if there is not enough cellid\'s on pool.
Step 2 . FTP the csvfile to RMS elastic 1 server with user/pass
Location library: /intucell/scripts
Step 3. Open putty/command line to elastic1.
Step 4. Run command : cd /intucell/scripts.
Step 5. Run command :python sc_eid_registration_prod.py csvfile.csv
python sc_eid_registration_prod.py
import reimport subprocessimport sysimport csvimport datetimeimport timeimport osdef run(file_name): #import pdb;pdb.set_trace() print \"Starting..............................\" eids = readFromCSV(file_name) csvFilename=\"sc_eid_registration.csv\" f = open(\'regEid.txt\',\'w\')for row in eids:header=\'Content-Type: application/xml\' myURL=\"http://192.168.166.129:8083/pmg\" #print \"EID=%s\"%eid myXml=\" ?xml version=\'1.0\' encoding=\'UTF-8\'? Register xmlns=\'http://www.cisco.com/ca/sse/PMGMessages-v2_0_0\' xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\' xsi:schemaLocation=\'http://www.cisco.com/ca/sse/PMGMessages-v2_0_0 pmg-messages-v2_0_0.xsd\' TxnID Register-TxnID-0 /TxnID EID %s /EID Activated true /Activated GroupMemberships Group Name Israel /Name Type Area /Type /Group Group Name %s /Name Type RFProfile /Type /Group /GroupMemberships /Register \"%(row[\'eid\'],row[\'profile\']) cmd=\'curl -X POST %s -vv -u \"pmguser:pmguser\" --digest -H \"%s\" -d \"%s\"\'%(myURL,header,myXml) cmd_ = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) ok=False for line in cmd_.stdout: x = line.find(\"Success\") if x!=-1: f.write(\"%s --- Register OK\\n\"%row[\'eid\']) ok=True break if not ok: f.write(\"%s --- Register Fail\\n\"%row[\'eid\'])f.close() # youVerifyThere is currently no verification procedure available for this configuration.
TroubleshootThere is currently no specific troubleshooting information available for this configuration.
本文链接: https://www.ebiomall.com/b447-simport/info-1511186351.html
暂无品牌分类
暂无品牌问答