onehost
- manages OpenNebula hosts
onehost
command [args] [options]
-i, --im im_mad Set the information driver for the host
-v, --vm vmm_mad Set the virtualization driver for the host
-c, --cluster id|name Selects the cluster
-t, --type remote_provider Use type to create a host using Cloud Bursting
-a, --append Append new attributes to the current template
--force Force probe upgrade in onehost sync
--rsync Use rsync to synchronize remotes. In case some
probes are no longer in the fronted ithey will
be deleted in the hosts. rsync command must be
installed in the frontend and nodes.
-l, --list x,y,z Selects columns to display with list command
-c, --listconf conf Selects a predefined column list
-d, --delay x Sets the delay in seconds for top command
-f, --filter x,y,z Filter data. An array is specified with
column=value pairs.
--operator operator Logical operator used on filters: AND, OR.
Default: AND.
--csv Write table in csv format
--csv-del del Set delimiter for csv output
--no-pager Disable pagination
--no-header Hides the header of the table
--adjust x,y,z Adjust size to not truncate selected columns
-s, --size x=size,y=size Change the size of selected columns. For example:
$ onevm list --size "name=20" will make column
name size 20.
--expand [x=prop,y=prop] Expands the columns size to fill the terminal.
For example: $onevm list --expand
name=0.4,group=0.6 will expand name 40% and
group 60%. $onevm list --expand name,group will
expand name and group based on its size.$onevm
list --expand will expand all columns.
--no-expand Disable expand
-x, --xml Show the resource in xml format
--extended Show info extended (it only works with xml
output)
-n, --numeric Do not translate user and group IDs
-k, --kilobytes Show units in kilobytes
--describe Describe list columns
--decrypt Get decrypted attributes
-h, --help Show this message
-V, --version Show version and copyright information
--user name User name used to connect to OpenNebula
--password password Password to authenticate with OpenNebula
--endpoint endpoint URL of OpenNebula xmlrpc frontend
create hostname [file] Creates a new Host valid options: im, vm, cluster, type
delete range|hostid_list Deletes the given Host
enable range|hostid_list Enables the given host, fully operational
disable range|hostid_list Disables the given host:
- monitor: enabled
- scheduler deployment: disabled
- manual deployment: enabled
offline range|hostid_list Sets the host offline:
- monitor: disabled
- scheduler deployment: disabled
- manual deployment: disabled
update hostid [file] Update the template contents. If a path is not provided the editor will be launched to modify the current content. valid options: append
sync [range|hostid_list] Synchronizes probes in /var/lib/one/remotes ($ONE_LOCATION/var/remotes in self-contained installations) with Hosts. Examples: onehost sync onehost sync -c myCluster onehost sync host01,host02,host03 valid options: cluster, force, rsync
list Lists Hosts in the pool valid options: list, listconf, delay, filter, operator, csv, csv_del, no_pager, no_header, adjust, size, expand, no_expand, xml, extended, numeric, kilobytes, describe
show hostid Shows information for the given Host valid options: xml, decrypt
top Lists Hosts continuously valid options: list, listconf, delay, filter, operator, csv, csv_del, no_pager, no_header, adjust, size, expand, no_expand, xml, extended, numeric, kilobytes
flush range|hostid_list Disables the host and reschedules all the running VMs in it.
rename hostid name Renames the Host
importvm hostid name Import VM to OpenNebula
forceupdate [range|hostid_list] Forces host monitoring update Examples: onehost forceupdate host01 onehost forceupdate host01,host02,host03 onehost forceupdate -c myCluster valid options: cluster
file Path to a file
range List of id's in the form 1,8..15
text String
hostid OpenNebula HOST name or id
hostid_list Comma-separated list of OpenNebula HOST names or ids
OpenNebula 5.10.0 Copyright 2002-2019, OpenNebula Project, OpenNebula Systems
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0