mclu_info.py \
mclu_list.py \
mclu_migrate.py \
+ mclu_off.py \
+ mclu_on.py \
mclu_reboot.py \
- mclu_shutdown.py \
mclu_start.py \
mclu_status.py \
mclu_stop.py \
mclu_viewer.py \
- mclu_wake.py \
node.py
# Configuration file.
mclu status Display status of the cluster
mclu list List all virtual machines on the cluster
- mclu wake ham0 Wake up node 'ham0' in the cluster
- mclu shutdown ham0 Shut down node 'ham0' in the cluster
+ mclu on ham0 Switch on (wake-on-LAN) node 'ham0'
+ mclu off ham0 Power off node 'ham0' in the cluster
mclu start ham0:vm Start vm on node 'ham0'
mclu stop ham0:* Stop all VMs on node 'ham0'
mclu migrate *:* ham2: Live migrate all VMs to 'ham2'
node = n
break
if not node:
- sys.exit ("error: no nodes are up, use mclu wake [node|--all]")
+ sys.exit ("error: no nodes are up, use mclu on [node|--all]")
return node
mclu_list.cmdline (subparsers)
import mclu_migrate
mclu_migrate.cmdline (subparsers)
+import mclu_off
+mclu_off.cmdline (subparsers)
+import mclu_on
+mclu_on.cmdline (subparsers)
import mclu_reboot
mclu_reboot.cmdline (subparsers)
-import mclu_shutdown
-mclu_shutdown.cmdline (subparsers)
import mclu_start
mclu_start.cmdline (subparsers)
import mclu_status
mclu_stop.cmdline (subparsers)
import mclu_viewer
mclu_viewer.cmdline (subparsers)
-import mclu_wake
-mclu_wake.cmdline (subparsers)
args = parser.parse_args()
if node_name in nodes:
node = nodes[node_name]
if not node.ping ():
- sys.exit ("error: requested node (%s) is not up, use mclu wake %s" %
+ sys.exit ("error: requested node (%s) is not up, use mclu on %s" %
(node_name, node_name))
else:
sys.exit ("error: requested node (%s) does not exist" % node_name)
if node_name in nodes:
node = nodes[node_name]
if not node.ping ():
- sys.exit ("error: requested node (%s) is not up, use mclu wake %s" %
+ sys.exit ("error: requested node (%s) is not up, use mclu on %s" %
(node_name, node_name))
else:
sys.exit ("error: requested node (%s) does not exist" % node_name)
def cmdline (subparsers):
p = subparsers.add_parser (
- 'shutdown',
+ 'off',
help='power off a node (or nodes)'
)
p.add_argument (
def cmdline (subparsers):
p = subparsers.add_parser (
- 'wake',
- help='wake up a node (or nodes)'
+ 'on',
+ help='power on a node (or nodes)'
)
p.add_argument (
'--all', action='store_const', const=True,