3 Help on using the Invirt remctl functions.
9 ('list', 'show your VM\'s state (with xm list)'),
10 ('listhost', 'show on what host, if any, your VM is running'),
11 ('list-long', 'show your VM\'s state as an sexp (with xm list --long)'),
12 ('vcpu-list', 'show your VM\'s state (with xm vcpu-list)'),
13 ('uptime', 'show your VM\'s state (with xm uptime)'),
14 ('destroy', 'shut down your VM, hard (with xm destroy)'),
15 ('shutdown', 'shut down your VM, softly if paravm (with xm shutdown)'),
16 ('create', 'start up your VM (with xm create)'),
17 ('reboot', 'reboot your VM (with xm destroy and xm create)'),
19 #also CD images on create/reboot
24 def print_help(name, text):
25 print ' %-9s : %s' % (name, text)
28 args = [n for n in args if n in helpdict]
29 print 'remctl remote control <machine> <command>'
32 print_help(name, helpdict[name])
34 for name, text in help:
35 print_help(name, text)
39 if __name__ == '__main__':
40 sys.exit(main(sys.argv[1:]))