• Mac Newbold's avatar
    Add a new script: tbresize · 0dd12dba
    Mac Newbold authored
    (installs into /usr/testbed/bin/tbresize but isn't avail. on ops yet)
    
    Usage: tbresize [-d] -a -e pid,eid -n num -t type [-p prefix]
           tbresize [-d] -r -e pid,eid <node> [<node> ...]
           tbresize -h
    Use -h to show this usage message.
    Use -d to enable extra debugging output.
    Use -a to add nodes to an experiment.
    Use -r to remove nodes from an experiment.
    Use -e pid,eid to specify the experiment to resize.
    Use -n to specify the number of nodes to add.
    Use -t to specify the type of the nodes to be added (pc, pc850, pc600,
    etc).
    Use -p to specify a prefix for vnames (i.e. "node" => node0 .. nodeN).
    With -r, specify a list of one or more nodes to be removed (i.e. pcXX).
    
    Can even resize an expt down to no nodes then back up again. If it has
    one LAN/link in the expt, it adds the new nodes to it. If it has zero or
    more than one, it doesn't connect the new nodes to the topology.
    
    After finding and reserving (or before freeing) it fixes up the right
    places in the db and reruns snmpit, then reruns exports_setup and
    named_setup and reboots all the nodes that are now in the expt so they get
    updated configuration data.
    
    Even visualizes properly after being resized, the only catch is that the
    ns file is the original one, not one generated from the db.
    
    Use it, abuse it, have fun with it, and let me know what breaks.
    0dd12dba
Name
Last commit
Last update
account Loading commit data...
apache Loading commit data...
assign Loading commit data...
autoconf Loading commit data...
capture Loading commit data...
cdrom Loading commit data...
db Loading commit data...
dhcpd Loading commit data...
discvr Loading commit data...
doc Loading commit data...
event Loading commit data...
hw_config Loading commit data...
ipod Loading commit data...
lib Loading commit data...
os Loading commit data...
patches Loading commit data...
pxe Loading commit data...
rc.d Loading commit data...
rpms Loading commit data...
security Loading commit data...
sensors Loading commit data...
sql Loading commit data...
ssl Loading commit data...
sysadmin Loading commit data...
tbsetup Loading commit data...
testsuite Loading commit data...
tip Loading commit data...
tmcd Loading commit data...
tools Loading commit data...
utils Loading commit data...
vis Loading commit data...
www Loading commit data...
xmlrpc Loading commit data...
BUGS Loading commit data...
GNUmakefile.in Loading commit data...
GNUmakerules Loading commit data...
Makeconf.in Loading commit data...
PROJECTS Loading commit data...
README Loading commit data...
RESTRICTED-RIGHTS Loading commit data...
TODO Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
defs-barb-emulab Loading commit data...
defs-barb-mini Loading commit data...
defs-calfeld-emulab Loading commit data...
defs-default Loading commit data...
defs-kwebb-emulab Loading commit data...
defs-mini Loading commit data...
defs-neo-paper Loading commit data...
defs-newbold-emulab Loading commit data...
defs-newbold-macdb Loading commit data...
defs-newbold-mini Loading commit data...
defs-rchriste-emulab Loading commit data...
defs-ricci-emulab Loading commit data...
defs-ricci-mini Loading commit data...
defs-ricci-neo-paper Loading commit data...
defs-shash-emulab Loading commit data...
defs-shash-mini Loading commit data...
defs-stoller-emulab Loading commit data...
defs-stoller-home Loading commit data...
defs-stoller-mini Loading commit data...
defs-wide Loading commit data...