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