use invirt config
[invirt/packages/invirt-remote.git] / files / usr / sbin / sipb-xen-remctl-help
index d390a65..2646fbd 100755 (executable)
@@ -3,7 +3,7 @@
 Help on using the Invirt remctl functions.
 """
 import sys
 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)'),
 
 help = [
     ('list',      'show your VM\'s state (with xm list)'),
@@ -26,7 +26,7 @@ def print_help(name, text):
 
 def main(args):
     args = [n for n in args if n in helpdict]
 
 def main(args):
     args = [n for n in args if n in helpdict]
-    print 'remctl remote control <machine> <command>'
+    print 'remctl %s control <machine> <command>' % config.remote.hostname
     if args:
         for name in args:
             print_help(name, helpdict[name])
     if args:
         for name in args:
             print_help(name, helpdict[name])