If you use linux the fastest way to do this is with sed.

For example.  Let's say you download the configuration file to
/home/jeff/IPExpert/
You would then have the subfolders
LAB-1/INITIAL/
LAB-1/FINAL/
etc etc...

from the Jeff folder simply type
sed 's/GigabitEthernet/FastEthernet/g' -i IPexpert/*/*/R2.txt
sed 's/Serial0\//Serial/g' -i IPexpert/*/*/R2.txt
sed 's/Serial0\//Serial/g' -i IPexpert/*/*/R4.txt
sed 's/Serial0\//Serial/g' -i IPexpert/*/*/R5.txt
sed 's/Serial0\//Serial/g' -i IPexpert/*/*/R6.txt

very simple

You can also take stuff out
sed 's/memory-size iomem/!/g' -i IPexpert/*/*/*
sed 's/warm-reboot/!/g' -i IPexpert/*/*/*
sed 's/scheduler allocate/!/g' -i IPexpert/*/*/*

Those are a few commands that seem to cause problems with Dynamips if you
don't take them out of the configuration.

Let me know if you have other questions.

Regards,
 
Tyson Scott - CCIE #13513 R&S, Security, and SP
Managing Partner / Sr. Instructor - IPexpert, Inc.
Mailto: [email protected]
Telephone: +1.810.326.1444, ext. 208
Live Assistance, Please visit: www.ipexpert.com/chat
eFax: +1.810.454.0130

IPexpert is a premier provider of Self-Study Workbooks, Video on Demand,
Audio Tools, Online Hardware Rental and Classroom Training for the Cisco
CCIE (R&S, Voice, Security & Service Provider) certification(s) with
training locations throughout the United States, Europe, South Asia and
Australia. Be sure to visit our online communities at
www.ipexpert.com/communities and our public website at www.ipexpert.com


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Matt Hill
Sent: Monday, May 24, 2010 10:09 PM
To: jeff m
Cc: [email protected]
Subject: Re: [OSL | CCIE_RS] Script to clean up IPExpert config files for
dynamips

I use copy/replace on my favourite text editing program (gedit in this
instance).

I modify all startup configs to suit the dynamips topology prior to
beginning the lab.  I also save these files for later use if needed.

Cheers,
Matt

CCIE #22386
CCSI #31207

On 25 May 2010 11:54, jeff m <[email protected]> wrote:
> Subject pretty much says it all, I am trying to get IPExperts volume 1
> working in dynamips and have run into some issues.  Like R2's config using
> gig interfaces instead of fastE(unless I am mistaken dynamips has no
option
> for gig interfaces)  and using 0/0/0 instead of 0/0.  Does anyone have a
> script to fix these issues across all the files or am I stuck manually
> editing them?
>
> Thanks,
> Jeff
>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training, please
> visit www.ipexpert.com
>
>
_______________________________________________
For more information regarding industry leading CCIE Lab training, please
visit www.ipexpert.com

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to