Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Kb213

Kb213

Emulab FAQ: Testbed Operations: How can I partially swap in an experiment for snmpit debugging?

Emulab FAQ: Testbed Operations: How can I partially swap in an experiment for snmpit debugging?

> For debugging, I'd like to partially swap in an experiment and have stuff
> through assign_wrapper run so that the vlan info gets pushed into the
> database.  But then I want to run snmpit -t by hand to see what's going on
> and maybe eyeball the database....

First "preload" the experiment as normal via the web interface. Basically, you want the experiment in the swapped out state, so click the "do not swap in" button. Or, if the experiment is already loaded and swapped out:

	  boss> /usr/testbed/libexec/assign_wrapper $pid $eid

This will generate a bunch of output, but more important it will load the physical state into the DB (nodes are reserved, vlans table entries created, etc). Now you can run your snmpit command and watch things happening.

When you are done, you need to release the nodes and clean up the experiment state. To do that:

	  boss> /usr/testbed/bin/tbswap -force out $pid $eid

Which will generate plenty of warnings and output, but you can ignore it; the physical resource will be released and the DB state cleaned up.