Cisco C880 M5 Configuration Manual page 74

Hide thumbs Also See for C880 M5:
Table of Contents

Advertisement

print('ERROR:',str(err),file=ausgabe)
print()
# Example 1 - send a configuration file to the iRMC
try:
data = open('ConfigFile.pre').read()
doit(data)
except Exception as err:
print('ERROR:',str(err),file=ausgabe)
# Example 2 - Set Config Space Values
# 0x200 (ConfCabinetLocation) and
# 0x204 (ConfSystemContact) direct from the script
#
LocationContact = '''<?xml version="1.0" encoding="UTF-8"?>
<CMDSEQ>
<!-- ConfCabinetLocation -->
<CMD Context="SCCI" OC="ConfigSpace" OE="200" OI="0" >
<DATA Type="xsd::string">%s</DATA>
</CMD>
<!-- ConfSystemContact -->
<CMD Context="SCCI" OC="ConfigSpace" OE="204" OI="0" >
<DATA Type="xsd::string">%s</DATA>
</CMD>
</CMDSEQ>
'''
doit(LocationContact % ("Ostsee","Kiel"))
Cisco C880 M5 Configuration Guide
5.4 SCCI
74

Advertisement

Table of Contents
loading

Table of Contents