- Timestamp:
- Oct 24, 2008, 12:00:00 AM (16 years ago)
- Location:
- trunk/packages/invirt-remote-server
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-control
r1175 r1176 10 10 def main(argv): 11 11 if len(argv) < 3: 12 print >>sys.stderr, "usage: sipb-xen-remote-control <machine> <command>"12 print >>sys.stderr, "usage: invirt-remote-control <machine> <command>" 13 13 return 2 14 14 machine_name = argv[1] 15 15 command = argv[2] 16 16 17 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)17 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 18 18 output = p.communicate()[0] 19 19 if p.returncode != 0: 20 20 raise RuntimeError("Command '%s' returned non-zero exit status %d" 21 % (' sipb-xen-remote-proxy-web', p.returncode))21 % ('invirt-remote-proxy-web', p.returncode)) 22 22 vms = yaml.load(output, yaml.CSafeLoader) 23 23
Note: See TracChangeset
for help on using the changeset viewer.