It is currently Tue Dec 12, 2017 12:21 pm


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [SOLVED] IOU license error
PostPosted: Thu Apr 24, 2014 8:20 am 
Offline

Joined: Thu Apr 24, 2014 8:04 am
Posts: 3
Hey guys,

I am not exactly a noob when it comes to Unix/Linux, but I am also not an expert. Anyway, I have literally spent countless hours over the course of the last couple of weeks trying to get the IOU license to generate and let me begin to build my topology. I have read and followed the steps for cracking the license file outlined in this forum but I am still not able to get it to work. Here is my first issue when attempting to power on my IOUs:


IOU License Error: invalid license
License for key 3d8 required on host "gns3-iouvm".
Obtain a license for this key and host from the following location:

http://wwwin-enged.cisco.com/ios/iou/license/index.html

Place in your iourc file as follows (see also the web page
for further details on iourc file format and location)

[license]
gns3-iouvm = <16 char license>;

I tried executing the CiscoIOUKeygen.py that someone kindly posted (python command does not work) and this is the output I see:

[email protected]:/home# bash CiscoIOUKeygen.py

Warning: unknown mime-type for "*********************************************************************" -- using "application/octet-stream"
Error: no such file "*********************************************************************"
Warning: unknown mime-type for "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" -- using "application/octet-stream"
Error: no such file "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
CiscoIOUKeygen.py: line 4: import: command not found
CiscoIOUKeygen.py: line 5: import: command not found
CiscoIOUKeygen.py: line 6: import: command not found
CiscoIOUKeygen.py: line 7: import: command not found
CiscoIOUKeygen.py: line 9: syntax error near unexpected token `('
CiscoIOUKeygen.py: line 9: `hostid=os.popen("hostid").read().strip()'[/color]

I am running Debian Jessie (same IOUvm provided on the GNS3 website). Also, here is are the contents of my IOURC file:

[license]
gns3-iouvm = 1020304050607080

*NOTE - I manually input the 16-character value seen above in the IOURC file.

Any help would be greatly appreciated.




Top
 Profile  
 
 Post subject: Re: IOU license error
PostPosted: Thu Apr 24, 2014 10:27 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
The IOU license script shouldn't be run using bash (aka shell), as it is written in python. (They're different interpretors)

Grab the script from: post28850.html#p28850 which will work with python 2.7 or python 3

From the terminal type in:
Code:
python CiscoIOUKeygen.py


This will then generate your license code

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: [SOLVED] IOU license error
PostPosted: Fri Apr 25, 2014 2:43 am 
Offline

Joined: Thu Apr 24, 2014 8:04 am
Posts: 3
Hi Dan,

Thanks for your response. I tried running the script after uploading it to my VM but it still comes up with errors:

[email protected]:/home/gns3/Documents/GNS3/images# python CiscoIOUKeygen10.py
bash: python: command not found

Any ideas?


Top
 Profile  
 
 Post subject: Re: [SOLVED] IOU license error
PostPosted: Fri Apr 25, 2014 4:07 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
Any ideas?


Yes, try python3

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: [SOLVED] IOU license error
PostPosted: Mon Apr 28, 2014 3:41 am 
Offline

Joined: Thu Apr 24, 2014 8:04 am
Posts: 3
Hi Jeremy,

Thank you for the quick response and sorry for my delayed response! I ran the following command shortly after posting my last message to this thread:

python3 CiscoIOUKeygen.py


That command executed without issue. I added the license key to my IOURC file and it worked like a charm!

Thanks again to both you and Daniel for helping me out!!!


Top
 Profile  
 
 Post subject: Re: [SOLVED] IOU license error
PostPosted: Fri May 30, 2014 3:19 pm 
Offline

Joined: Sun Nov 29, 2009 5:22 am
Posts: 47
do you have to edit anything in the file? I got an error

python3 CiscoIOUKeygen.py
File "CiscoIOUKeygen.py", line 2
print "*********************************************************************"
^
SyntaxError: invalid syntax


Top
 Profile  
 
 Post subject: Re: [SOLVED] IOU license error
PostPosted: Fri May 30, 2014 3:40 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
gmgtxus wrote:
do you have to edit anything in the file? I got an error

python3 CiscoIOUKeygen.py
File "CiscoIOUKeygen.py", line 2
print "*********************************************************************"
^
SyntaxError: invalid syntax


Try the updated version of the script... post28850.html#p28850



_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO