X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/d7f33e5a8eba8e45cb5ad588a644a5482e82f7d4..227cb65ae3d4b0fd6636700595df6f00b18d4f37:/files/usr/sbin/sipb-xen-remctl-help diff --git a/files/usr/sbin/sipb-xen-remctl-help b/files/usr/sbin/sipb-xen-remctl-help deleted file mode 100755 index 2295f77..0000000 --- a/files/usr/sbin/sipb-xen-remctl-help +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/python -""" -Help on using the Invirt remctl functions. -""" -import sys -from invirt.config import structs as config - -help = [ - ('list', 'show your VM\'s state (with xm list)'), - ('list-host', 'show on what host, if any, your VM is running'), - ('list-long', 'show your VM\'s state as an sexp (with xm list --long)'), - ('vcpu-list', 'show your VM\'s state (with xm vcpu-list)'), - ('uptime', 'show your VM\'s state (with xm uptime)'), - ('destroy', 'shut down your VM, hard (with xm destroy)'), - ('shutdown', 'shut down your VM, softly if paravm (with xm shutdown)'), - ('create', 'start up your VM (with xm create)'), - ('reboot', 'reboot your VM (with xm destroy and xm create)'), - ('install', 'autoinstall your VM (takes a series of key=value pairs; \n\t\tvalid arguments include mirror, dist, arch, imagesize,\n\t\tand noinstall)'), - #also CD images on create/reboot -] -helpdict = dict(help) - - -def print_help(name, text): - print ' %-9s : %s' % (name, text) - -def main(args): - args = [n for n in args if n in helpdict] - print 'remctl %s control ' % config.remote.hostname - if args: - for name in args: - print_help(name, helpdict[name]) - else: - for name, text in help: - print_help(name, text) - - return 0 - -if __name__ == '__main__': - sys.exit(main(sys.argv[1:])) - -# vim:et:sw=4:ts=4