请使用支持JavaScript的浏览器! Register New IMEI Units On RMS 4.1 Using Pytohn Automatic Script Universal Small Cell (USC) - Cisco-蚂蚁淘商城
新闻动态

Register New IMEI Units On RMS 4.1 Using Pytohn Automatic Script Universal Small Cell (USC) - Cisco

  
  2024-05-07
  
Register New IMEI Units On RMS 4.1 Using Pytohn Automatic Script Universal Small Cell (USC)Introduction

This document describes the process of how to registered new IMEI in Remote ManagementServices (RMS) using an automatic script.

Requirements

There are no specific requirements for this document.

Components Used

This 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 Information

Before 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() # youVerify

There is currently no verification procedure available for this configuration.

Troubleshoot

There is currently no specific troubleshooting information available for this configuration.

本文链接: https://www.ebiomall.com/b447-simport/info-1511186351.html

免责声明 本文仅代表作者个人观点,与本网无关。其创作性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不做任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
版权声明 未经蚂蚁淘授权不得转载、摘编或利用其他方式使用上述作品。已经经本网授权使用作品的,应该授权范围内使用,并注明“来源:蚂蚁淘”。违反上述声明者,本网将追究其相关法律责任。
没有了