GNS3 IOU VM 1.5.4 Installation. GNS3 is an open source application for network simulation. I use it since I was studying CCNA, CCNP, and CCIE till now. I can emulate real Cisco IOS in this application. Due to its previous limitation on Switching emulation, now they release an update feature to run Cisco IOU (IOS On Unix) in the new version of GNS3. Print 'Cisco IOU License Generator - Kal 2011, python port of 2006 C version'.
Cisco IOU Permit Generator. Initially found at http://www.routingloops.co.uk/cisco/gns3-v1-1-install-on-ubuntu-14-04-lts/, I possess accomplished a several modifications to it. Make the document executable with ' chmod +a CiscoKeyGen.py ' and implement it './CiscoKeyGen.py '.
CiscoKeyGen.py
#! /usr/rubbish bin/python |
printing'in.' |
printing'Cisco IOU License Generator - Kal 2011, python slot of 2006 D version' |
transferos |
transfersocket |
importhashlib |
importstruct |
#obtain the web host id and sponsor title to estimate the hostkey |
hostid=os.popen('hostid').go through.remove |
hostname=outlet.gethostname |
ioukey=int(hostid,16) |
fortimesinhostname: |
ioukey=ioukey+ord(x) |
print'hostid='+hostid+', hostname='+hostname+', ioukey='+hex(ioukey)2: |
#make the license using md5sum |
iouPad1='a4Bx58x21x81x56x7Bx0DxF3x21x43x9Bx7ExACx1DxE6x8A' |
iouPad2='a80'+39.'0' |
md5insight=iouPad1+iouPad2+struct.package('!M', ioukey)+iouPad1 |
iouLicense=hashlib.md5(md5input).hexdigest:16 |
#add license details to $HOME/.iourc |
printing'n.' |
print out'Develop the license file $HOME/.iourc with this control:' |
printing'echo -y 'licensen'+hostname+'='+iouLicense+';''+'tee $HOME/.iourc' |
print out'nThe command adds the using text to $HOME/.iourc:' |
printing'licensen'+hostname+'='+iouLicense+';' |
#disable cell phone home feature |
printing'd.' |
printing'Disable the telephone home function with this command:' |
printing'grep -queen -F '127.0.0.1 xml.cisco.com' /etc/offers echo '127.0.0.1 xml.cisco.com' sudo first tee -a /etc/hosts' |
print out'nThe command provides the sticking with text message to /etc/hosts:' |
print'127.0.0.1 xml.cisco.com' |
print out'in.' |
Sign up for freeto join this discussion on GitHub. Currently have an accounts? Indication in to remark
Make sure you i need assist right here:
import binascii
binascii.hexlify(os.urandom(24))
n'0ccd512f8c3493797a23557c32db38e7d51ed74f14fa7580'
binascii.hexlify(os.urandom(24))
n'0ccd512f8c3493797a23557c32db38e7d51ed74f14fa7580'
print out('.')
print out('Cisco IOU License Power generator - Kal 2011, python interface of 2006 C edition')
print out('Improved to work with python3 by compact disc 2014')
import operating-system
import outlet
transfer hashlib
transfer struct
print out('Cisco IOU License Power generator - Kal 2011, python interface of 2006 C edition')
print out('Improved to work with python3 by compact disc 2014')
import operating-system
import outlet
transfer hashlib
transfer struct
hostid=os.popen('hostid').read through.strip
hostname = socket.gethostname
ioukéy=int(hostid,16)
for back button in hostnamé:
ioukey = ioukéy + ord(x)
print'hostid=' + hostid +', hostnamé='+ hostname + ', ioukey=' + héx(ioukey)2:
hostname = socket.gethostname
ioukéy=int(hostid,16)
for back button in hostnamé:
ioukey = ioukéy + ord(x)
print'hostid=' + hostid +', hostnamé='+ hostname + ', ioukey=' + héx(ioukey)2:
iouPad1='times4Bx58x21x81x56x7Bx0DxF3x21x43x9Bx7ExACx1DxE6x8A'
iouPad2='x80' + 39.b'0'
md5input=iouPad1 + iouPad2 + struct.pack('!D', ioukey) + ióuPad1
iouLicense=hashIib.md5(md5input).hexdigest:16
iouPad2='x80' + 39.b'0'
md5input=iouPad1 + iouPad2 + struct.pack('!D', ioukey) + ióuPad1
iouLicense=hashIib.md5(md5input).hexdigest:16
print out('nAdd the adhering to text message to /.iourc:')
print('licensen' + hostname + ' = ' +iouLicense + ';in')
print('You can turn off the mobile phone home feature with something such as:')
print(' echo '127.0.0.127 xml.cissco.com' gt;gt; /etc/hostsn')
print('licensen' + hostname + ' = ' +iouLicense + ';in')
print('You can turn off the mobile phone home feature with something such as:')
print(' echo '127.0.0.127 xml.cissco.com' gt;gt; /etc/hostsn')
When this program code was run at gns3 ióuvm:
gns3 ssh mode right here
gns3@gns3vm:/ópt/gns3/images/IOU$
gns3@gns3vm:/opt/gns3/pictures/I0U$
gns3@gns3vm:/ópt/gns3/pictures/IOU$ python3 CiscoIOUKeygen.py
File 'CiscoIOUKeygen.py', line 18
print out'hostid=' + hostid +', hostnamé='+ hostname + ', ioukey=' + héx(ioukey)2:
^
SyntaxError: unacceptable syntax
gns3@gns3vm:/ópt/gns3/pictures/IOU$
gns3 ssh mode right here
gns3@gns3vm:/ópt/gns3/images/IOU$
gns3@gns3vm:/opt/gns3/pictures/I0U$
gns3@gns3vm:/ópt/gns3/pictures/IOU$ python3 CiscoIOUKeygen.py
File 'CiscoIOUKeygen.py', line 18
print out'hostid=' + hostid +', hostnamé='+ hostname + ', ioukey=' + héx(ioukey)2:
^
SyntaxError: unacceptable syntax
gns3@gns3vm:/ópt/gns3/pictures/IOU$
Make sure you i need answer.
Say thanks to you.
Say thanks to you.