Changeset 362
- Timestamp:
- 04/12/18 13:33:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/sara_nodes.py
r361 r362 8 8 9 9 ## The documenation, is shown when you type --help 10 from __future__ import print_function 11 10 12 HELP_DESCRIPTION = '''This program is a great example what you can achieve with the pbs_python wrapper. You can use sara_nodes to change the state of a machine to offline with a reason. Several information is stored in the nodes note attribute. Information such as; date added, date last change, the username, ticket number (handy when you wan't to reference to an issue in your tracking system) and the message.''' 11 13 HELP_EPILOG = '''The format argument uses the Python string formatting. Fields that can be used are; nodename, state, date_add, date_edit, username, ticket and note. For example sara_nodes -f '%(nodename)s;%(state)s' ''' … … 18 20 ALLOWED_STATES = set(['down', 'offline', 'unknown']) 19 21 20 from __future__ import print_function21 22 import pbs 22 23 import PBSQuery
Note: See TracChangeset
for help on using the changeset viewer.