Command Line Interface 2.0

OpenNebula provides six commands to interact with the system:

  • onevm: to submit, control and monitor virtual machines
  • onehost: to add, delete and monitor hosts
  • onevnet: to add, delete and monitor virtual networks
  • oneuser: to add, delete and monitor users
  • oneimage: to add, delete and control images
  • onecluster: to add, delete and control clusters
  • oneauth: tools to manage authentication and authorization

These are the options shared by some of the commands:

  • -l, –list x,y,z: Selects columns to display with list command.
  • –list-columns: Information about the columns available to display, order or filter.
  • -o, –order x,y,z: Order by these columns, column starting with - means decreasing order.
  • -f, –filter x,y,z: Filter data. An array is specified with column=value pairs.
  • -d, –delay seconds: Sets the delay in seconds for top command.
  • -h, –help: Shows help information.
  • –version: Shows version and copyright information.
  • -v, –verbose: Tells more information if the command is successful
  • -x, –xml: Returns xml instead of human readable text
  • -n, –no-hash: Store plain password into the database

Number ranges can also be specified this way:

  • [<start>-<end>]: generates numbers from start to end
  • [<start>+<count>]: generates a range that starts with the number provided and has count number of elements

If <start>'s first digit is 0 then it will pad the numbers generated with 0 to the same size as the last element in the range.

Example:

[9-11]:   9 10 11
[09-11]: 09 10 11
[8+3]:    8  9 10
[08+3]:  08 09 10

Man pages: