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
=>

  • 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.