vmsquared
On this page
- Overview
- vmsquared acct
- vmsquared acl
- vmsquared cluster
- vmsquared datastore
- vmsquared group
- vmsquared host
- vmsquared image
- vmsquared market
- vmsquared marketapp
- vmsquared secgroup
- vmsquared showback
- vmsquared template
- vmsquared user
- vmsquared vcenter
- vmsquared vdc
- vmsquared vm
- vmsquared vnet
- vmsquared vntemplate
- vmsquared vrouter
Overview
Warning
vmsquared commands are deprecated and will be removed in a future VM Squared Release.
The following commands are preceded by vmsquared
, e.g. vmsquared acct
:
vmsquared acct
VM Squared Accounting Tool
Synopsis
vmsquared acct
[<options>]
Options
Argument Formats
file
Path to a file.range
List of ID’s in the form 1,8..15.text
String.
vmsquared acl
manages VM Squared ACLs
Synopsis
vmsquared acl <command> [<args>] [<options>]
Options
Commands
create <user|rulestr> [<resource>] [<rights>]
Adds a new ACL rule.delete <range>
Deletes an existing ACL rule.list
Lists the ACL rule set.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
operator
size
xml
yaml
- Valid options:
Argument Formats
aclid_list
Comma-separated list of VM Squared ACL names or IDs.file
Path to a file.range
List of ID’s in the form 1,8..15.text
String.
vmsquared cluster
manages VM Squared clusters.
Synopsis
vmsquared cluster <command> [<args>] [<options>]
Options
Commands
adddatastore <clusterid> <datastoreid>
Adds a Datastore to the given Cluster.addhost <clusterid> <hostid>
Adds a Host to the given Cluster.addvnet <clusterid> <vnetid>
Adds a Virtual Network to the given Cluster.create <name>
Creates a new Cluster.deldatastore <clusterid> <datastoreid>
Deletes a Datastore from the given Cluster.delete <range|clusterid_list>
Deletes the given Cluster.delhost <clusterid> <hostid>
Deletes a Host from the given Cluster.delvnet <clusterid> <vnetid>
Deletes a Virtual Network from the given Cluster.list
Lists Clusters in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
rename <clusterid> <name>
Renames the Cluster.show <clusterid>
Shows information for the given Cluster.- Valid options:
decrypt
json
xml
yaml
- Valid options:
update <clusterid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
clusterid
VM Squared CLUSTER name or ID.clusterid_list
Comma-separated list of VM Squared CLUSTER names or IDs.datastoreid
VM Squared DATASTORE name or ID.file
Path to a file.hostid
VM Squared HOST name or ID.range
List of ID’s in the form 1,8..15.text
String.vnetid
VM Squared VNET name or ID.
vmsquared datastore
manages VM Squared datastores
Synopsis
vmsquared datastore <command> [<args>] [<options>]
Options
Commands
chgrp <range|datastoreid_list> <groupid>
Changes the Datastore group.chmod <range|datastoreid_list> <octet>
Changes the Datastore permissions.chown <range|datastoreid_list> <userid> [<groupid>]
Changes the Datastore owner and group.create <file>
Creates a new Datastore from the given template file- Valid options:
cluster
- Valid options:
delete <range|datastoreid_list>
Deletes the given Datastore.disable <range|datastoreid_list>
Disables the given Datastore. Only available for System Datastores.enable <range|datastoreid_list>
Enables the given Datastore. Only available for System Datastores.list
Lists Datastores in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
rename <datastoreid> <name>
Renames the Datastore.show <datastoreid>
Shows information for the given Datastore.- Valid options:
decrypt
json
xml
yaml
- Valid options:
update <datastoreid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
clusterid
VM Squared CLUSTER name or ID.datastoreid
VM Squared DATASTORE name or ID.datastoreid_list
Comma-separated list of VM Squared DATASTORE names or IDs.file
Path to a file.groupid
VM Squared GROUP name or ID.range
List of ID’s in the form 1,8..15.text
String.userid
VM Squared USER name or ID.
vmsquared group
manages VM Squared groups
Synopsis
vmsquared group <command> [<args>] [<options>]
Options
Commands
addadmin <range|groupid_list> <userid>
Adds a User to the Group administrators set.batchquota <range|groupid_list> [<file>]
Sets the quota limits in batch for various groups. If a path is not provided the editor will be launched to create new quotas.create [<group_name>]
Creates a new Group. A group name can be passed as the only argument, or via command line arguments.Example
Create a group with an admin user and allow group users to only create new templates and VMs
- Valid options:
admin_driver
admin_password
admin_user
name
resources
- Valid options:
defaultquota [<file>]
Sets the default quota limits for the groups. If a path is not provided the editor will be launched to modify the current default quotas.deladmin <range|groupid_list> <userid>
Removes a User from the Group administrators set.delete <range|groupid_list>
Deletes the given Group.list
Lists Groups in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
quota <groupid> [<file>]
Set the quota limits for the group. If a path is not provided the editor will be launched to modify the current quotas.show [<groupid>]
Shows information for the given Group- Valid options:
json
xml
yaml
- Valid options:
update <groupid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.groupid
VM Squared GROUP name or ID.groupid_list
Comma-separated list of VM Squared GROUP names or IDs.range
List of ID’s in the form 1,8..15.text
String.userid
VM Squared USER name or ID.
vmsquared host
manages VM Squared hosts.
Synopsis
vmsquared host <command> [<args>] [<options>]
Options
Commands
create <hostname> [<file>]
Creates a new Host.- Valid options:
cluster
im
type
vm
- Valid options:
delete <range|hostid_list>
Deletes the given Host.disable <range|hostid_list>
Disables the given host:- monitor: enabled
- scheduler deployment: disabled
- manual deployment: enabled
enable <range|hostid_list>
Enables the given host, fully operational.flush <range|hostid_list>
Disables the host and reschedules all the running VMs in it.forceupdate [<range|hostid_list>]
Forces host monitoring update.- Valid options:
cluster
Examples
Force updates:
- Valid options:
importvm <hostid> <name>
Import VM to VM Squared.- Valid options:
ipv4
ipv6
- Valid options:
list
Lists Hosts in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
extended
filter
json
kilobytes
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
monitoring <hostid> <attr>
Show monitoring metrics in a graphic- Valid options:
csv
end
n_elems
start
table
unit
- Valid options:
offline <range|hostid_list>
Sets the host offline:- monitor: disabled
- scheduler deployment: disabled
- manual deployment: disabled
rename <hostid> <name>
Renames the Host.show <hostid>
Shows information for the given Host- Valid options:
decrypt
json
xml
yaml
- Valid options:
sync [<range|hostid_list>]
Synchronizes probes in/var/lib/one/remotes
($ONE\_LOCATION/var/remotes
in self-contained installations) with Hosts.- Valid options:
cluster
force
ssh
- Valid options:
Examples
top
Lists Hosts continuously.- Valid options:
adjust
,csv
,csv_del
,delay
,expand
,extended
,filter
,json
kilobytes
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
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
- Valid options:
Argument Formats
file
Path to a file.hostid
VM Squared HOST name or ID.hostid_list
Comma-separated list of VM Squared HOST names or IDs.range
List of ID’s in the form 1,8..15.text
String.
vmsquared image
manages VM Squared Images.
Synopsis
vmsquared image <command> [<args>] [<options>]
Options
Commands
chgrp <range|imageid_list> <groupid>
Changes the Image group.chmod <range|imageid_list> <octet>
Changes the Image permissions.chown <range|imageid_list> <userid> [<groupid>]
Changes the Image owner and group.chtype <range|imageid_list> <type>
Changes the Image’s type.clone <imageid> <name>
Creates a new Image from an existing one.- Valid options:
datastore
- Valid options:
create [<file>]
Creates a new Image.Examples
- Valid options:
datastore
description
disk_type
dry
format
fs
name
no_check_capacity
no_context
path
persistent
prefix
size
source
target
type
vcenter_adapter_type
vcenter_disk_type
- Valid options:
delete <range|imageid_list>
Deletes the given Image.disable <range|imageid_list>
Disables the given Image.dockerfile
Create an image based on a Docker file.- Valid options:
datastore
description
disk_type
dry
format
fs
name
no_check_capacity
no_context
path
persistent
prefix
size
source
target
type
vcenter_adapter_type
vcenter_disk_type
- Valid options:
enable <range|imageid_list>
Enables the given Image.list [<filterflag>]
Lists Images in the pool.- valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- valid options:
lock <range|imageid_list>
Locks an Image to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
nonpersistent <range|imageid_list>
Makes the given Image non persistent. Seevmsquared image persistent
orphans
Shows orphans images (i.e images not referenced in any template).persistent <range|imageid_list>
Makes the given Image persistent. A persistent Image saves the changes made to the contents after the VM instance is shutdown (or in real time if a shared FS is used). Persistent Images can be used by only one VM instance at a time.rename <imageid> <name>
Renames the Image.show <imageid>
Shows information for the given Image .- Valid options: decrypt, json, xml, yaml
snapshot-delete <imageid> <snapshot_id>
Deletes a snapshot from the image.snapshot-flatten <imageid> <snapshot_id>
Flattens the snapshot and removes all other snapshots in the image.snapshot-revert <imageid> <snapshot_id>
Reverts image state to a snapshot.top [<filterflag>]
Lists Images continuously.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
unlock <range|imageid_list>
Unlocks an Image.- Valid states are: All.
update <imageid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a filefilterflag
a, all
all the knownIMAGEs
m, mine
theIMAGE
belonging to the user in ONE_AUTHg, group
‘mine’ plus theIMAGE
belonging to the groups the user is member ofG, primary group
theIMAGE
owned the user’s primary groupuid
IMAGE
of the user identified by thisuid
user
IMAGE
of the user identified by the username
groupid
VM Squared GROUP name or ID.imageid
VM SquaredIMAGE
name or ID.imageid_list
Comma-separated list of VM SquaredIMAGE
names or IDs.range
List of ID’s in the form 1,8..15.text
String.type
Image type: OS, CDROM, DATABLOCK, KERNEL, RAMDISK, CONTEXTuserid
VM Squared USER name or ID.
vmsquared market
manages internal and external Marketplaces
Synopsis
vmsquared market <command\> [<args\>] [<options\>]
Options
Commands
chgrp <range|marketplaceid_list> <groupid>
Changes the Marketplace group.chmod <range|marketplaceid_list> <octet>
Changes the Marketplace permissions.chown <range|marketplaceid_list> <userid> [<groupid>]
Changes the Marketplace owner and group.create <file>
Creates a new Marketplace from the given template file.delete <range|marketplaceid_list>
Deletes the given Marketplace.disable <range|marketplaceid_list>
Disables the marketplace. Remove all its apps.enable <range|marketplaceid_list>
Enables the marketplace.list
Lists Marketplaces- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
rename <marketplaceid> <name>
Renames the Marketplace.show <marketplaceid>
Shows Marketplace information.- Valid options:
json
xml
yaml
- Valid options:
update <marketplaceid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.groupid
VM Squared GROUP name or ID.marketplaceid
VM Squared MARKETPLACE name or ID.marketplaceid_list
Comma-separated list of VM Squared MARKETPLACE names or IDs.range
List of IDs in the form 1,8..15.text
String.userid
VM Squared USER name or ID.
vmsquared marketapp
manages appliances from Marketplaces
Synopsis
vmsquared marketapp <command> [<args>] [<options>]
Options
Commands
chgrp <range|appid_list> <groupid>
Changes the marketplace app group.chmod <range|appid_list> <octet>
Changes the marketplace app permissions.chown <range|appid_list> <userid> [<groupid>]
Changes the marketplace app owner and group.create [<file>]
Creates a new marketplace app in the given marketplace.- Valid options:
description
dry
image
marketplace
name
- Valid options:
delete <range|appid_list>
Deletes the given marketplace app.disable <range|appid_list>
Disables the marketplace app. A disabled marketplace app cannot be exported to a cloud.download <appid> <path>
Downloads aMarketApp
to a file.- Valid options:
force
- Valid options:
enable <range|appid_list>
Enables the marketplace app.export <appid> <name>
Exports the marketplace app to the VM Squared cloud.- Valid options:
datastore
file_datastore
no
tag
template
vmname
- Valid options:
list [<filterflag>]
Lists marketplace apps.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
lock <range|appid_list>
Locks a marketplace app to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
rename <appid> <name>
Renames the marketplace app.service-template import <service_template_id>
Imports a service template into the marketplace.- Valid options:
market
no
vmname
yes
- Valid options:
show <appid>
Shows information for the given marketplace app.- Valid options:
json
xml
yaml
- Valid options:
unlock <range|appid_list>
Unlocks a marketplace app.- Valid states are: All.
update <appid> [<file>]
Update the template contents for the app. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
vm import <vm_id>
Imports a VM into the marketplace.- Valid options:
market
no
vmname
yes
- Valid options:
vm-template import <vm_template_id>
Imports a VM template into the marketplace.- Valid options:
market
no
vmname
yes
- Valid options:
Argument Formats
appid
VM SquaredMARKETPLACEAPP
name or ID.appid_list
Comma-separated list of VM SquaredMARKETPLACEAPP
names or IDs.file
Path to a file.filterflag
a, all
all the knownMARKETPLACEAPPs
m, mine
theMARKETPLACEAPP
belonging to the user in ONE_AUTHg, group
‘mine’ plus theMARKETPLACEAPP
belonging to the groups the user is member ofG, primary group
theMARKETPLACEAPP
owned the user’s primary groupuid
MARKETPLACEAPP
of the user identified by thisuid
user
MARKETPLACEAPP
of the user identified by the username
groupid
VM Squared GROUP name or ID.range
List of IDs in the form 1,8..15.text
String.userid
VM Squared USER name or ID.
vmsquared secgroup
manages VM Squared security groups.
Synopsis
vmsquared secgroup <command> [<args>] [<options>]
Options
Commands
chgrp <range|secgroupid_list> <groupid>
Changes the Security Group’s group.chmod <range|secgroupid_list> <octet>
Changes the Security Group permissions.chown <range|secgroupid_list> <userid> [<groupid>]
Changes the Security Group’s owner and group.clone <secgroupid> <name>
Creates a new Security Group from an existing one.commit <secgroupid>
Commit SG changes to associated VMs. This command is to propagate security group rules to VMs when they are updated. This operation takes time to iterate over all VMs in the security group, progress can be checked through the outdated, updating and error VM sets.- Valid options:
recover
- Valid options:
create <file>
Creates a new Security Group from the given description.delete <range|secgroupid_list>
Deletes the given Security Group.list [<filterflag>]
Lists Security Group in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
rename <secgroupid> <name>
Renames the Security Group.show <secgroupid>
Shows information for the given Security Group- Valid options:
json
xml
yaml
- Valid options:
update <secgroupid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.filterflag
a, all
all the knownSECURITY_GROUPs
m, mine
theSECURITY_GROUP
belonging to the user in ONE_AUTHg, group
‘mine’ plus theSECURITY_GROUP
belonging to the groups the user is member ofG, primary group
theSECURITY_GROUP
owned the user’s primary groupuid
SECURITY_GROUP
of the user identified by thisuid
user
SECURITY_GROUP
of the user identified by the username
groupid
VM Squared GROUP name or ID.range
List of ID’s in the form 1,8..15.secgroupid
VM SquaredSECURITY_GROUP
name or ID.secgroupid_list
Comma-separated list of VM SquaredSECURITY_GROUP
names or IDs.text
String.userid
VM Squared USER name or ID.
vmsquared showback
VM Squared Showback Tool.
Synopsis
vmsquared showback
Options
Commands
calculate
Calculates the showback records- Valid options:
end_time
start_time
- Valid options:
list
Returns the showback records- Valid options:
csv
describe
end_time
endpoint
group
help
json
list
password
start_time
user
userfilter
verbose
version
xml
yaml
- Valid options:
vmsquared template
manages VM Squared templates.
Synopsis
vmsquared template <command> [<args>] [<options>]
Options
Commands
chgrp <range|templateid_list> <groupid>
Changes the Template group.chmod <range|templateid_list> <octet>
Changes the Template permissions- Valid options:
recursive
- Valid options:
chown <range|templateid_list> <userid> [<groupid>]
Changes the Template owner and group.clone <templateid> <name>
Creates a new Template from an existing one- Valid options:
recursive
- Valid options:
create [<file>]
Creates a new VM Template from the given description.Examples
- Valid options:
arch
as_gid
as_uid
boot
context
cpu
disk
dry
files_ds
init
memory
name
net_context
nic
raw
report_ready
spice
spice_keymap
spice_listen
spice_password
ssh
startscript
user_inputs
vcenter_vm_folder
vcpu
vnc
vnc_keymap
vnc_listen
vnc_password
- Valid options:
delete <range|templateid_list>
Deletes the given Template.- Valid options:
recursive
- Valid options:
instantiate <templateid> [<file>]
Creates a new VM instance from the given Template. This VM can be managed with the ‘vmsquared template’ command.The source Template can be modified by replacing existing attributes; or adding new DISK or NIC elements. The new attributes can be specified with the command options or the file argument.Examples
- Valid options:
arch
as_gid
as_uid
boot
context
cpu
disk
files_ds
hold
init
memory
multiple
name
net_context
nic
persistent
prefix
raw
report_ready
spice
spice_keymap
spice_listen
spice_password
ssh
startscript
user_inputs
userdata
vcenter_vm_folder
vcpu
vnc
vnc_keymap
vnc_listen
vnc_password
- Valid options:
list [<filterflag>]
Lists Templates in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
lock <range|templateid_list>
Locks a Template to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
rename <templateid> <name>
Renames the Template.show <templateid>
Shows information for the given Template- Valid options:
extended
json
xml
yaml
- Valid options:
top [<filterflag>]
Lists Templates continuously- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
unlock <range|templateid_list>
Unlocks a Template.- Valid states are: All.
update <templateid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.filterflag
a, all
all the knownVMTEMPLATEs
m, mine
theVMTEMPLATE
belonging to the user in ONE_AUTHg, group
‘mine’ plus theVMTEMPLATE
belonging to the groups the user is member ofG, primary group
theVMTEMPLATE
owned the user’s primary groupuid
VMTEMPLATE
of the user identified by thisuid
user
VMTEMPLATE
of the user identified by the username
groupid
VM Squared GROUP name or ID.range
List of ID’s in the form 1,8..15.templateid
VM SquaredVMTEMPLATE
name or ID.templateid_list
Comma-separated list of VM SquaredVMTEMPLATE
names or IDs.text
String.userid
VM Squared USER name or ID.
vmsquared user
manages VM Squared users
Synopsis
vmsquared user <command> [<args>] [<options>]
Options
Commands
addgroup <range|userid_list> <groupid>
Adds the User to a secondary group.batchquota <range|userid_list> [<file>]
Sets the quota limits in batch for various users. If a path is not provided the editor will be launched to create new quotas.chauth <userid> [<auth>] [<password>]
Changes the User’s auth driver and its password (optional)Examples
- Valid options:
cert
driver
key
read_file
sha256
ssh
x509
- Valid options:
chgrp <range|userid_list> <groupid>
Changes the User’s primary group.create <username> [<password>]
Creates a new User.Examples
- Valid options:
cert
driver
group
key
read_file
sha256
ssh
x509
- Valid options:
defaultquota [<file>]
Sets the default quota limits for the users. If a path is not provided the editor will be launched to modify the current default quotas.delete <range|userid_list>
Deletes the given User.delgroup <range|userid_list> <groupid>
Removes the User from a secondary group.disable <range|userid_list>
Disables the given User.enable <range|userid_list>
Enables the given User.encode <username> [<password>]
Encodes user and password to use it withldap
.key
Shows a public key from a private SSH key. Use it as password for the SSH authentication mechanism.- Valid options:
key
- Valid options:
list
Lists Users in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
login [<username>]
Alias of token-create.- Valid options:
cert
force
group
key
proxy
ssh
stdin_password
time
x509
x509_proxy
- Valid options:
passwd <userid> [<password>]
Changes the given User’s password- Valid options:
cert
driver
key
read_file
sha256
ssh
x509
- Valid options:
passwdsearch <driver> <password>
Searches for users with a specific auth driver that has the given string in their password field- Valid options:
csv
xml
- Valid options:
quota <userid> [<file>]
Set the quota limits for the user. If a path is not provided the editor will be launched to modify the current quotas.show [<userid>]
Shows information for the given User.- Valid options:
decrypt
json
xml
yaml
- Valid options:
token-create [<username>]
Creates the login token for authentication. The token can be used together with any authentication driver. The token will be stored in $HOME/.one/one_auth, and can be used subsequently to authenticate withoned
through API, CLI or Sunstone.
If <username> is omitted, it will infer it from the ONE_AUTH file.Examples
- Valid options:
cert
force
group
key
proxy
ssh
stdin_password
time
x509
x509_proxy
- Valid options:
token-delete [<username>] <token>
Expires a token and removes the associated ONE_AUTH file if present.- Valid options:
cert
force
group
key
proxy
ssh
stdin_password
time
x509
x509_proxy
- Valid options:
token-delete-all <username>
Delete all the tokens of a user. This command is intended to be executed by a user that has MANAGE permissions of the target user.- valid options:
cert
force
group
key
proxy
ssh
stdin_password
time
x509
x509_proxy
- valid options:
token-set [<username>]
Generates a ONE_AUTH file that contains the token.You must provide one (and only one) of the following options:
Option:Description: –token <token> searches for a token that starts with that string. It must be unique. –group <id|group> returns the most durable token that provides access to that specific group. –global returns the most durable global token (non group specific). The argument ‘username’ is optional, if omitted it is inferred from the ONE_AUTH file.
Example
Set a token:
You can copy & paste the output of the command and will load the proper environment variables.
- Valid options:
cert
force
global
group
key
proxy
ssh
stdin_password
time
token
x509
x509_proxy
- Valid options:
umask <range|userid_list> [<mask>]
Changes theumask
used to create the default permissions. In a similar way to the Unixumask
command, the expected value is a three-digit base-8 number. Each digit is a mask that disables permissions for the owner, group and other, respectively.
If mask is not given, or if it is an empty string, the
umask
will be unset.
update <userid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- valid options:
append
- valid options:
Argument Formats
file
Path to a file.groupid
VM Squared GROUP name or ID.password
User password.range
List of ID’s in the form 1,8..15.text
String.userid
VM Squared USER name or ID.userid_list
Comma-separated list of VM Squared USER names or IDs.
vmsquared vcenter
vCenter
import tool
Synopsis
vmsquared vcenter <command> [<args>] [<options>]
Options
Commands
cleartags <vmid>
Clears extra config tags from avCenter
VM, useful when a VM has been launched by VM Squared and needs to be reimported.- Clean VM 15:
hosts
ImportvCenter
clusters as VM Squared hosts.- Get available clusters:
- Valid options:
cluster_ref
defaults
port
vcenter
vpass
vuser
import [<oid>]
Import the the desiredvCenter
object.- Importing first datastore:
- Importing 2 templates:
- Importing a Image range:
- Valid options:
datastore
host
object
import_defaults [<oid>]
Import the the desiredvCenter
object.- Importing first datastore:
- Importing 2 concrete templates:
- Importing a Image range:
- Valid options:
configuration
copy
datastore
folder
host
linked_clone
name
object
list
Show a list with unimportedvCenter
objects.- Listing available templates:
- Listing available images:
- Listing available clusters:
- Valid options:
csv
datastore
host
object
port
vcenter
vpass
vuser
list_all
Show a list with unimportedvCenter
objects excluding all filters.- Listing networks including uplinks:
- Valid options:
csv
datastore
host
object
port
vcenter
vpass
vuser
Argument Formats
file
Path to a file.range
List of id’s in the form 1,8..15.text
String.
vmsquared vdc
manages VM Squared virtual datacenters.
Synopsis
vmsquared vdc <command> [<args>] [<options>]
Options
Commands
addcluster <range|vdcid_list> <zoneid> <clusterid>
Adds a Cluster (from a specific Zone) to the given VDC.adddatastore <range|vdcid_list> <zoneid> <datastoreid>
Adds a Datastore (from a specific Zone) to the given VDC.addgroup <range|vdcid_list> <groupid>
Adds a Group to the given VDC.addhost <range|vdcid_list> <zoneid> <hostid>
Adds a Host (from a specific Zone) to the given VDC.addvnet <range|vdcid_list> <zoneid> <vnetid>
Adds a Virtual Network (from a specific Zone) to the given VDC.create <name>
Creates a new VDC.delcluster <range|vdcid_list> <zoneid> <clusterid>
Deletes a Cluster (from a specific Zone) from the given VDC.deldatastore <range|vdcid_list> <zoneid> <datastoreid>
Deletes a Datastore (from a specific Zone) from the given VDC.delete <range|vdcid_list>
Deletes the given VDC.delgroup <range|vdcid_list> <groupid>
Deletes a Group from the given VDC.delhost <range|vdcid_list> <zoneid> <hostid>
Deletes a Host (from a specific Zone) from the given VDC.delvnet <range|vdcid_list> <zoneid> <vnetid>
Deletes a Virtual Network (from a specific Zone) from the given VDC.list
Lists VDCs in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
rename <vdcid> <name>
Renames the VDC.show <vdcid>
Shows information for the given VDC- Valid options:
json
xml
yaml
- Valid options:
update <vdcid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
clusterid
VM Squared CLUSTER name or ID. Can be set to ALL.datastoreid
VM Squared DATASTORE name or ID. Can be set to ALL.file
Path to a file.groupid
VM Squared GROUP name or ID.hostid
VM Squared HOST name or ID. Can be set to ALL.range
List of ID’s in the form 1,8..15.text
String.vdcid
VM Squared VDC name or ID.vdcid_list
Comma-separated list of VM Squared VDC names or IDs.vnetid
VM Squared VNET name or ID. Can be set to ALL.zoneid
VM Squared ZONE name or ID.
vmsquared vm
manages VM Squared virtual machines
Synopsis
vmsquared vm <command> [<args>] [<options>]
Options
Commands
backup vmid
Creates a VM backup and stores it in the marketplace.- Valid options:
keep
logger
market
oneshot
- Valid options:
chgrp <range|vmid_list> <groupid>
Changes the VM group.chmod <range|vmid_list> <octet>
Changes the VM permissions.chown <range|vmid_list> <userid> [<groupid>]
Changes the VM owner and group.create [<file>]
Creates a new VM from the given description instead of using a previously defined template (seevmsquared template create
andvmsquared template instantiate
).Examples
- Valid options:
arch
boot
context
cpu
disk
dry
files_ds
hold
init
memory
multiple
name
net_context
nic
raw
report_ready
spice
spice_keymap
spice_listen
spice_password
ssh
startscript
user_inputs
vcenter_vm_folder
vcpu
vnc
vnc_keymap
vnc_listen
vnc_password
- Valid options:
create-chart <vmid>
Adds a charter to the VM, these are some consecutive scheduled actions.You can configure the actions in/etc/one/cli/vmsquared vm.yaml
delete-chart <vmid> <sched_id>
Deletes a charter from the VM.deploy <range|vmid_list> <hostid> [<datastoreid>]
Deploys the given VM in the specified Host. This command forces the deployment, in a standard installation the Scheduler is in charge of this decision.- States: PENDING, HOLD, STOPPED, UNDEPLOYED
- Valid options:
enforce
file
disk-attach <vmid>
Attaches a disk to a running VM. When using `–file`` add only one DISK instance.- States: RUNNING, POWEROFF
- Valid options:
cache
discard
file
image
prefix
target
disk-detach <vmid> <diskid>
Detaches a disk from a running VM.- States: RUNNING, POWEROFF
disk-resize <vmid> <diskid> <size>
Resizes a VM disk. The new size should be larger than the old one.The valid units are:- T: TiB
- G: GiB
- M: MiB - The default is MiB.
States: RUNNING, POWEROFF
disk-saveas <vmid> <diskid> <img_name>
Saves the specified VM disk as a new Image. The Image is created immediately, and the contents of the VM disk will be saved to it.- States: ANY
- Valid options:
snapshot
type
disk-snapshot-create <vmid> <diskid> <name>
Takes a new snapshot of the given disk. This operation needs support from the Datastore drivers:QCOW2
orCeph
.- States: RUNNING, POWEROFF, SUSPENDED
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
disk-snapshot-delete <vmid> <diskid> <disk_snapshot_id>
Deletes a disk snapshot.- States: RUNNING, POWEROFF, SUSPENDED
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
disk-snapshot-rename <vmid> <diskid> <disk_snapshot_id> <new_snapshot_name>
Renames a disk snapshot.disk-snapshot-revert <vmid> <diskid> <disk_snapshot_id>
Reverts disk state to a previously taken snapshot.- States: POWEROFF, SUSPENDED
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
hold <range|vmid_list>
Sets the given VM on hold. A VM on hold is not scheduled until it is released. It can; however, be deployed manually; seevmsquared vm deploy
- States: PENDING
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
list [<filterflag>]
Lists VMs in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
extended
filter
json
kilobytes
list
listconf
no_expand
no_header
no_pager
numeric
operator
search
size
xml
yaml
- Valid options:
lock <range|vmid_list>
Locks a VM to prevent certain actions defined by different levels. The show and monitoring action will never be locked.- Valid states are: All.
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
migrate <range|vmid_list> <hostid> [<datastoreid>]
Migrates the given running VM to another Host. If used with--live
parameter the migration is done without downtime.- States: RUNNING
- Valid options:
enforce
live
poweroff
poweroff_hard
nic-attach <vmid>
Attaches a NIC to a running VM. When using--file
add only one NIC instance.To attach a NIC alias, use--file
or--alias
option.- States: RUNNING, POWEROFF
- Valid options:
alias
file
ip
network
nic_name
nic-detach <vmid> <nicid>
Detaches a NIC from a running VM.- States: RUNNING, POWEROFF
port-forward <vmid> [<port>]
Get port forwarding from a NIC, e.g:Means that to connect to VM port 1, you need to connect to IP 1.2.3.4 in port 4000
- Valid options:
nic_id
- Valid options:
poweroff <range|vmid_list>
Powers off the given VM. The VM will remain in the poweroff state, and can be powered on with thevmsquared vm resume
command.- States: RUNNING
- Valid options:
end
hard
hourly
monthly
schedule
weekly
yearly
reboot <range|vmid_list>
Reboots the given VM, this is equivalent to execute thereboot
command from the VM console.The VM will be ungracefully rebooted if--hard
is used.- States: RUNNING
- Valid options:
end
hard
hourly
monthly
schedule
weekly
yearly
recover <range|vmid_list>
Recovers a stuck VM that is waiting for a driver operation. The recovery may be done by failing, succeeding, or retrying the current operation. YOU NEED TO MANUALLY CHECK THE VM STATUS ON THE HOST, to decide if the operation was successful or not, or if it can be retried.Example
A VM is stuck in “migrate” because of a hardware failure. You need to check if the VM is running in the new host or not to recover the VM with
--success
or--failure
, respectively.- States for success/failure
recover
s: Any ACTIVE state. - States for a retry
recover
: Any FAILURE state - States for
delete
: Any - States for
delete-recreate
: Any state, but for STOP/UNDEPLOYED - States for
delete-db
: Any
- Valid options:
delete
deletedb
failure
interactive
recreate
retry
success
- States for success/failure
release <range|vmid_list>
Releases a VM on hold. Seevmsquared vm hold
- States: HOLD
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
rename <vmid> <name>
Renames the VM.resched <range|vmid_list>
Sets the rescheduling flag for the VM.- States: RUNNING, POWEROFF
resize <vmid>
Resizes the capacity of a Virtual Machine (offline, the VM cannot be RUNNING).- Valid options:
cpu
enforce
file
memory
vcpu
- Valid options:
restore <vmid>
Restores a VM from a previous backup.- Valid options:
datastore
logger
- Valid options:
resume <range|vmid_list>
Resumes the execution of a saved VM.- States: STOPPED, SUSPENDED, UNDEPLOYED, POWEROFF, UNKNOWN
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
save <vmid> <name>
Clones the VM’s source Template, replacing the disks with live snapshots of the current disks. The VM capacity and NICs are also preserved.- States: POWEROFF
- Valid options:
persistent
sg-attach <vmid> <nicid> <sgid>
Attaches a Security Group to a VM.- States: All, except BOOT, MIGRATE and HOTPLUG_NIC
sg-detach <vmid> <nicid> <sgid>
Detaches a Security Group from a VM.- States: All, except BOOT, MIGRATE and HOTPLUG_NIC
show <vmid>
Shows information for the given VM.- Valid options:
all
decrypt
json
xml
yaml
- Valid options:
snapshot-create <range|vmid_list> [<name>]
Creates a new VM snapshot.- Valid options:
end
hourly
monthly
schedule
weekly
yearly
- Valid options:
snapshot-delete <vmid> <snapshot_id>
Deletes a snapshot of a VM.- Valid options:
end
hourly
monthly
schedule
weekly
yearly
- Valid options:
snapshot-revert <vmid> <snapshot_id>
Reverts a VM to a saved snapshot.- Valid options:
end
hourly
monthly
schedule
weekly
yearly
- Valid options:
ssh <vmid> [<login>]
SSH into VM.Options example
- Valid options:
cmd
nic_id
ssh_opts
- Valid options:
stop <range|vmid_list>
Stops a running VM. The VM state is saved and transferred back to the front-end along with the disk files.- States: RUNNING
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
suspend <range|vmid_list>
Saves a running VM. It is the same asvmsquared vm stop
, but the files are left in the remote machine to later restart the VM there (i.e. the resources are not freed and there is no need to re-schedule the VM).- States: RUNNING
- Valid options:
end
hourly
monthly
schedule
weekly
yearly
terminate <range|vmid_list>
Terminates the given VM. The VM life cycle will end.With--hard
it unplugs the VM.- States: valid if no operation is being performed on the VM
- Valid options:
end
hard
hourly
monthly
schedule
weekly
yearly
top [<filterflag>]
Lists Images continuously.- Valid options:
adjust
csv
csv_del
delay
expand
extended
filter
json
kilobytes
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
undeploy <range|vmid_list>
Shuts down the given VM. The VM is saved in the system Datastore.With--hard
it unplugs the VM.- States: RUNNING
- Valid options:
end
hard
hourly
monthly
schedule
weekly
yearly
unlock <range|vmid_list>
Unlocks a Virtual Machine.- Valid states are: All.
unresched <range|vmid_list>
Clears the rescheduling flag for the VM.- States: RUNNING, POWEROFF
update <vmid> [<file>]
Update the user template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
update-chart <vmid> <sched_id> [<file>]
Updates a charter from a VM.updateconf <vmid> [<file>]
Updates the configuration of a VM.- Valid states are:
running
pending
failure
poweroff
undeploy
hold
orcloning
.In RUNNING state only changes in CONTEXT take effect immediately, other values may need a VM restart.
This command accepts a template file or opens an editor, the full list of configuration attributes are:
- Valid options:
append
- Valid states are:
vnc <vmid>
Opens a VNC session to the VM- Valid options:
vnc
- Valid options:
Argument Formats
datastoreid
VM Squared DATASTORE name or ID.disk_snapshot_id
Disk_snapshot identifier.diskid
Integer.file
Path to a file.filterflag
a, all
all the known VMsm, mine
the VM belonging to the user in ONE_AUTHg, group
‘mine’ plus the VM belonging to the groups the user is member ofG, primary group
the VM owned by the user’s primary groupuid
VM of the user identified by thisuid
user
VM of the user identified by the username
groupid
VM Squared GROUP name or ID.hostid
VM Squared HOST name or ID.range
List of id’s in the form 1,8..15.size
Disk size in MiB.snapshot_id
Snapshot identifier.text
String.userid
VM Squared USER name or ID.vmid
VM Squared VM name or ID.vmid_list
Comma-separated list of VM Squared VM names or IDs.
vmsquared vnet
manages VM Squared networks.
Synopsis
vmsquared vnet <command> [<args>] [<options>]
Options
Commands
addar <vnetid> [<file>]
Adds an address range to the Virtual Network- Valid options:
endpoint
gateway
help
ip
ip6
ip6_global
ip6_ula
mac
netmask
password
size
user
verbose
version
vlanid
vn_mad
- Valid options:
chgrp <range|vnetid_list> <groupid>
Changes the Virtual Network group.chmod <range|vnetid_list> <octet>
Changes the Virtual Network permissions.chown <range|vnetid_list> <userid> [<groupid>]
Changes the Virtual Network owner and group.create <file>
Creates a new Virtual Network from the given template file- Valid options:
cluster
- Valid options:
delete <range|vnetid_list>
Deletes the given Virtual Network.free <vnetid> <ar_id>
Frees a reserved address range from the Virtual Network.hold <vnetid> <ip>
Holds a Virtual Network lease, marking it as used- Valid options:
address_range
endpoint
help
password
user
verbose
version
- Valid options:
list [<filterflag>]
Lists Virtual Networks in the pool- Valid options:
adjust
csv
csv_del
delay
describe
expand
extended
filter
json
kilobytes
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
lock <range|vnetid_list>
Locks a Virtual Network to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
orphans
Shows orphan virtual networks (i.e virtual networks not referenced in any template).recover <range|vmid_list>
Recovers a Virtual Network in ERROR state or waiting for a driver operation to complete. The recovery may be done by failing, succeeding or retrying the current operation.YOU NEED TO MANUALLY CHECK THE VIRTUAL NETWORK STATUS, to decide if the operation was successful or not, or if it can be retried.- States for success/failure recovers: LOCK_CREATE, LOCK_DELETE state.
- States for a retry recover: LOCK_CREATE, LOCK_DELETE state
- States for delete: Any but READY
- Valid options:
delete
failure
success
release <vnetid> <ip>
Releases a Virtual Network lease on hold- Valid options:
address_range
endpoint
help
password
user
verbose
version
- Valid options:
rename <vnetid> <name>
Renames the Virtual Network.reserve <vnetid> [<vnetid>]
Reserve addresses from the Virtual Network. A new virtual network will be created to hold the reservation. Optionally, the reservation can be put on an existing VNET, as long as it contains a valid reservation from the same VNET- Valid options:
address_range
endpoint
help
ip
ip6
mac
name
password
size
user
verbose
version
- Valid options:
rmar <vnetid> <ar_id>
Removes an address range from the Virtual Network- Valid options:
force
- Valid options:
show <vnetid>
Shows information for the given Virtual Network.- Valid options:
decrypt
json
show_ar
xml
yaml
- Valid options:
unlock <range|vnetid_list>
Unlocks a Virtual Network.- Valid states are: All.
update <vnetid> [<file>]
Update the template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
updatear <vnetid> <ar_id> [<file>]
Update Address Range variables. SIZE, IP, MAC and TYPE cannot be updated- Valid options:
append
- Valid options:
Argument Formats
ar_id
Integer.file
Path to a file.filterflag
a, all
all the known Virtual Networksm, mine
the VNET belonging to the user in ONE_AUTHg, group
‘mine’ plus the VNET belonging to the groups the user is member ofG, primary group
the VNET owned by the user’s primary groupuid
VNET of the user identified by thisuid
user
VNET of the user identified by the username
groupid
VM Squared GROUP name or ID.range
List of id’s in the form 1,8..15.text
String.userid
VM Squared USER name or ID.vnetid
VM Squared VNET name or ID.vnetid_list
Comma-separated list of VM Squared VNET names or IDs.
vmsquared vntemplate
manages Virtual Network Templates.
Synopsis
vmsquared vntemplate <command> [<args>] [<options>]
Options
Commands
chgrp <range|templateid_list> <groupid>
Changes the Virtual Network Template group.chmod <range|templateid_list> <octet>
Changes the Virtual Network Template permissions.chown <range|templateid_list> <userid> [<groupid>]
Changes the Virtual Network Template owner and group.clone <templateid> <name>
Creates a new Virtual Network Template from an existing one.create [<file>]
Creates a new Virtual Network Template from the given description.example
Using a Virtual Network Template description file:
- Valid options:
dry
- Valid options:
delete <range|templateid_list>
Deletes the given Virtual Network Template.instantiate <templateid> [<file>]
Creates a new Virtual Network instance from the given Virtual Network Template. This Virtual Network can be managed with thevmsquared vnet
command.The source Template can be modified adding or replacing attributes with the optional file argument, or with the options.- Valid options:
as_gid
as_uid
extended
gateway
ip
ip6
ip6_global
ip6_ula
mac
multiple
name
netmask
prefix
size
vlanid
vn_mad
- Valid options:
list [<filterflag>]
Lists Virtual Network Templates in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
lock <range|templateid_list>
Locks a Virtual Network Template to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
rename <templateid> <name>
Renames the Virtual Network Template.show <templateid>
Shows information for the given Virtual Network Template- Valid options:
extended
json
xml
yaml
- Valid options:
top [<filterflag>]
Lists Templates continuously.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
unlock <range|templateid_list>
Unlocks a Virtual Network Template.- Valid states are: All.
update <templateid> [<file>]
Update the Virtual Network template contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.filterflag
a, all
all the knownVNTEMPLATEs
m, mine
theVNTEMPLATE
belonging to the user in ONE_AUTHg, group
‘mine’ plus theVNTEMPLATE
belonging to the groups the user is member ofG, primary group
theVNTEMPLATE
owned by the user’s primary groupuid
VNTEMPLATE
of the user identified by thisuid
user
VNTEMPLATE
of the user identified by the username
groupid
VM Squared GROUP name or ID.range
List of ID’s in the form 1,8..15.templateid
VM SquaredVNTEMPLATE
name or ID.templateid_list
Comma-separated list of VM SquaredVNTEMPLATE
names or IDs.text
String.userid
VM Squared USER name or ID.
vmsquared vrouter
manages VM Squared Virtual Routers.
Synopsis
vmsquared vrouter <command> [<args>] [<options>]
Options
Commands
chgrp <range|vrouterid_list> <groupid>
Changes the Virtual Router group.chmod <range|vrouterid_list> <octet>
Changes the Virtual Router permissions.chown <range|vrouterid_list> <userid> [<groupid>]
Changes the Virtual Router owner and group.create <file>
Creates a new Virtual Router from the given description.delete <range|vrouterid_list>
Deletes the given Virtual Router.instantiate <vrouterid> <templateid> [<file>]
Creates a new VM instance from the given Template. This VM can be managed with thevmsquared vrouter
command.
The NIC elements defined in the Virtual Router will be used. The source Template can be modified adding or replacing attributes with the optional file argument, or with the options.- Valid options:
arch
as_gid
as_uid
boot
context
cpu
disk
files_ds
hold
init
memory
multiple
name
net_context
nic
raw
report_ready
spice
spice_keymap
spice_listen
spice_password
ssh
startscript
user_inputs
vcenter_vm_folder
vcpu
vnc
vnc_keymap
vnc_listen
vnc_password
- Valid options:
list [<filterflag>]
Lists the Virtual Routers in the pool.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
lock <range|vrouterid_list>
Locks a Virtual Router to prevent certain actions defined by different levels. The show action will never be locked.- Valid states are: All.
- Levels:
- [Use]: locks Admin, Manage and Use actions.
- [Manage]: locks Manage and Use actions.
- [Admin]: locks only Admin actions.
- Valid options:
admin
all
manage
use
nic-attach <vrouterid>
Attaches a NIC to a Virtual Router, and each one of its VMs. When using--file
add only one NIC instance.If you are using a HA configuration for this router,
--float
can be added. When an IP is requested in HA clusters use--float
.- Valid options:
file
float
ip
network
- Valid options:
nic-detach <vrouterid> <nicid>
Detaches a NIC from a Virtual Router, and each one of its VMs.rename <vrouterid> <name>
Renames the Virtual Router.show <vrouterid>
Shows information for the given Virtual Router- Valid options:
all
json
xml
yaml
- Valid options:
top [<filterflag>]
Lists Virtual Routers continuously.- Valid options:
adjust
csv
csv_del
delay
describe
expand
filter
json
list
listconf
no_expand
no_header
no_pager
numeric
operator
size
xml
yaml
- Valid options:
unlock <range|vrouterid_list>
Unlocks a Virtual Router.- Valid states are: All.
update <vrouterid> [<file>]
Update the Virtual Router contents. If a path is not provided the editor will be launched to modify the current content.- Valid options:
append
- Valid options:
Argument Formats
file
Path to a file.filterflag
a, all
all the knownVROUTERs
m, mine
theVROUTER
belonging to the user in ONE_AUTHg, group
‘mine’ plus theVROUTER
belonging to the groups the user is member ofG, primary group
theVROUTER
owned by the user’s primary groupuid
VROUTER
of the user identified by thisuid
user
VROUTER
of the user identified by the username
groupid
VM Squared GROUP name or IDrange
List of ID’s in the form 1,8..15.templateid
VM SquaredVMTEMPLATE
name or ID.text
String.userid
VM Squared USER name or ID.vrouterid
VM SquaredVROUTER
name or ID.vrouterid_list
Comma-separated list of VM SquaredVROUTER
names or IDs.