Suspending and resuming Dynamips

As someone who travels often, and always looking to make use of the travel time, I was pleased to find that I can suspend and resume the Dynamips routers. This saves me battery on longer trips, or lets me have more CPU when I running other applications such as Parallels / VMware to give me some Microsoft Visio joy. iTerm sessions are not terminated by doing this, they just don’t show any data until you resume the sessions.

Go the terminal window that Dynagen opened when it started:

Reading ~/.bash_profile
gf:~ gregferro$ /Users/gregferro/Documents/dynalab/Dynagen/Dynagen.app/Contents/Resources/dynagen
‘/Users/gregferro/Documents/dynalab/mplsp2p/mplsp2p.net’ ;
exit
Reading configuration file…

Network successfully loaded

Dynagen management console for Dynamips and Pemuwrapper
Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel Skovajsa

=> suspend /all
100-VM ‘r4′ suspended
100-VM ‘r5′ suspended
100-VM ‘r6′ suspended
100-VM ‘r7′ suspended
100-VM ‘r1′ suspended
100-VM ‘r2′ suspended
100-VM ‘r3′ suspended
100-VM ‘r8′ suspended
=> resume r1
100-VM ‘r1′ resumed
=>
=> suspend ?
suspend {/all | router1 [router2] …}
suspend all or a specific router(s)
=>
=> suspend /all
Note: router r4 is already suspended
Note: router r5 is already suspended
Note: router r6 is already suspended
Note: router r7 is already suspended
100-VM ‘r1′ suspended
Note: router r2 is already suspended
Note: router r3 is already suspended
Note: router r8 is already suspended
=>
=> resume ?
resume {/all | router1 [router2] …}
resume all or a specific router(s)
=> resume /all
100-VM ‘r4′ resumed
100-VM ‘r5′ resumed
100-VM ‘r6′ resumed
100-VM ‘r7′ resumed
100-VM ‘r1′ resumed
100-VM ‘r2′ resumed
100-VM ‘r3′ resumed
100-VM ‘r8′ resumed
=>

About Greg Ferro

Greg Ferro is a Network Engineer/Architect, mostly focussed on Data Centre, Security Infrastructure, and recently Virtualization. He has over 20 years in IT, in wide range of employers working as a freelance consultant including Finance, Service Providers and Online Companies. He is CCIE#6920 and has a few ideas about the world, but not enough to really count.

He is a host on the Packet Pushers Podcast, blogger at EtherealMind.com and on Twitter @etherealmind and Google Plus

You can contact Greg via the site contact page.

  • http://globalconfig.net Brandon Carroll

    The suspend is really cool. Question though. When I suspend does this suspend the dynamips process of just the routers?

    • http://globalconfig.net Brandon Carroll

      cause it looks like its just the routers…which is fine. I suspended the latop, came home from work, and resumed with no problems.

      • http://etherealmind.com Greg Ferro

        Yes, dynamips is the emulator for IOS routers using MIPS cpu’s. PIX/ASA emulation is done in PEMU and I don’t know whether that has a suspend/resume.

  • http://blog.ioshints.info Ivan Pepelnjak

    Thanks. This will definitely help me.

Subscribe For Weekly Updates by Email

Get a Weekly Summary of Latest Articles and Posts to your Email Inbox Every Sunday

Thanks for signing up. Look for the email from MailChimp & make sure you confirm your email address. You may need to check your spam or gmail settings to be sure of receiving the email.

Note: You can unsubscribe at any time using the link at the bottom of every email.