source: trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-availability @ 2188

Last change on this file since 2188 was 2188, checked in by broder, 15 years ago

Add a remctl to find out the availability status of all hosts.

  • Property svn:executable set to *
File size: 300 bytes
Line 
1#!/usr/bin/python
2
3"""
4Retrieve and print out the availability value for all Invirt hosts
5"""
6
7from invirt import remote
8import yaml
9import sys
10
11def main(argv):
12    print yaml.dump(dict(remote.bcast('availability')), default_flow_style=False)
13
14if __name__ == '__main__':
15    sys.exit(main(sys.argv))
Note: See TracBrowser for help on using the repository browser.