Last change
on this file since 2816 was
2188,
checked in by broder, 16 years ago
|
Add a remctl to find out the availability status of all hosts.
|
-
Property svn:executable set to
*
|
File size:
300 bytes
|
Rev | Line | |
---|
[2188] | 1 | #!/usr/bin/python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | Retrieve and print out the availability value for all Invirt hosts |
---|
| 5 | """ |
---|
| 6 | |
---|
| 7 | from invirt import remote |
---|
| 8 | import yaml |
---|
| 9 | import sys |
---|
| 10 | |
---|
| 11 | def main(argv): |
---|
| 12 | print yaml.dump(dict(remote.bcast('availability')), default_flow_style=False) |
---|
| 13 | |
---|
| 14 | if __name__ == '__main__': |
---|
| 15 | sys.exit(main(sys.argv)) |
---|
Note: See
TracBrowser
for help on using the repository browser.