This section elaborates the top-level commands and their application.
Following are top-level commands shown when pressing the Tab twice from the shell:
Command |
Description |
---|---|
attach |
Connect to a remote Controller or SE. Similar to SSH. |
clear |
Clear the statistics or value of a designated object. |
configure |
Create or modify a new or existing object, such as a virtual service, pool, profile, and so on. |
convert |
Import and convert a configuration from non-VMware load balancers. |
copy |
Copy a file, such as a packet capture or tech-support file. |
debug |
Change debug settings or perform packet captures. |
delete |
Delete an object. Some objects may have dependencies which must be resolved first. |
do |
Execute a |
export |
Backup the system configuration or a single virtual service configuration. |
import |
Import a backed up (exported) complete or virtual service specific configuration. |
initialplacement |
Move a virtual service using manual placement mode to a different SE. |
purge |
Remove a file, such as a packet capture or tech-support file. |
rebalance |
Realign the SEs handing virtual services within an SE group. |
reboot |
Reboot part or all of the system. It can also wipe configuration. |
rediscover |
VMware-specific: Initiate discovery of networks and VMs. |
restart |
Deactivate, then re-activate a virtual service. |
scalein |
Reduce by one the number of SEs handling a virtual service in manual placement mode. |
scaleout |
Increase by one the number of SEs handling a virtual service in manual placement mode. |
show |
Show detailed information and stats on any Avi Load Balancer object. |
switchto |
Switch into a different tenant. |
terminal |
Alter the shell's terminal settings. |
upgrade |
Initiate an upgrade of the Avi Load Balancer system. |
upload |
Upload a specified tech-support debug file to VMware. |
verifylogin |
Validate login settings to a remote orchestrator such as vCenter, APIC, or OpenStack. |
watch |
Update the result of a command, such as show, every few seconds. |
attach
Description |
Connect to a remote Controller or SE. Similar to SSH. |
Example |
|
Top Level Flags: |
|
controller |
Attach to a Controller shell. |
serviceengine |
Attach to a SE shell. |
configure
Description |
Create or modify a new or existing object, such as a virtual service, Pool, or Profile. |
Example |
|
Top-Level Flags: |
|
actiongroupconfig |
Create or modify an Action Group Config. |
alertconfig |
Create or modify an Alert Config. |
alertemailconfig |
Create or modify an Alert Email Config. |
alertscriptconfig |
Create or modify an Alert Script Config. |
alertsyslogconfig |
Create or modify an Alert Syslog Config. |
analyticsprofile |
Create or modify an Analytics Profile. |
application |
Create or modify an Application. |
applicationpersistenceprofile |
Create or modify an Application Persistence Profile. |
applicationprofile |
Create or modify an Application Profile. |
authprofile |
Create or modify an Auth Profile. |
cloud |
Create or modify a Cloud. |
cluster |
Create or modify a Cluster. |
controller |
Create or modify Controller properties. |
healthmonitor |
Create or modify a Health Monitor. |
httppolicyset |
Create or modify an HTTP Policy Set. |
ipaddrgroup |
Create or modify an IP Address Group. |
network |
Create or modify a Network. |
networkprofile |
Create or modify a Network Profile. |
networksecuritypolicy |
Create or modify a Network Security Policy. |
pkiprofile |
Create or modify a PKI Profile. |
pool |
Create or modify a Pool. |
role |
Create or modify a Role. |
serviceengine |
Create or modify a Service Engine. |
serviceenginegroup |
Create or modify a Service Engine Group. |
serviceengineproperties |
Create or modify Service Engine properties. |
sslkeyandcertificate |
Create or modify an SSL Key and Certificate Request. |
sslprofile |
Create or modify an SSL Profile. |
stringgroup |
Create or modify a String Group. |
systemconfiguration |
Create or modify a System Configuration. |
tenant |
Create or modify a Tenant. |
user |
Create or modify a User. |
virtualservice |
Create or modify a Virtual Service. |
vrfcontext |
Create or modify a VRF Context. |
vsdatascriptset |
Create or modify a virtual service DataScript Set. |
convert
Description |
Import and convert a configuration from non-VMware load balancers. Supports conversion from F5 BIG-IP Local Traffic Manager configuration. Imported Virtual Services start in a disabled state to avoid IP conflicts. |
Example |
|
Top-Level Flags: |
|
bigip_ip_addr |
BIGIP IP address |
filename |
Avi Load Balancer config file name. |
password |
BIGIP Password |
username |
BIGIP Username |
virtualservername |
Convert virtualserver. Name is of the form |
copy
Description |
Copy a file, such as a packet capture or tech-support file. |
Example |
|
Top-Level Flag: |
|
source |
The source of the original file and path. |
destination |
The destination of the new file and path. |
debug
Description |
Change debug settings or perform packet captures. |
Example |
|
Top-Level Flags: |
|
controller |
Controller-specific debug options. |
serviceengine |
Service Engine-specific debug options. |
virtualservice |
Virtual service specific debug options, including packet capture. |
delete
Description |
Delete an object. Some objects may have dependencies that must be resolved first. |
Example |
|
Top-Level Flags: |
|
actiongroupconfig |
Delete Action Group Config. |
alert |
Delete Alert. |
alertconfig |
Delete Alert Config. |
alertemailconfig |
Delete Alert Email Config. |
alertscriptconfig |
Delete Alert Script Config. |
alertsyslogconfig |
Delete Alert Syslog Config. |
application |
Delete Application. |
applicationpersistenceprofile |
Delete Application Persistence Profile. |
applicationprofile |
Delete Application Profile. |
authprofile |
Delete Auth Profile. |
cloud |
Delete Cloud. |
healthmonitor |
Delete Health Monitor. |
httppolicyset |
Delete HTTP Policy Set. |
ipaddrgroup |
Delete IP Address Group. |
networkprofile |
Delete Network Profile. |
networksecuritypolicy |
Delete Network Security Policy. |
pkiprofile |
Delete PKI Profile. |
pool |
Delete Pool. |
role |
Delete Role. |
serviceengine |
Delete Service Engine. |
serviceenginegroup |
Delete Service Engine Group. |
sslkeyandcertificate |
Delete SSL Key and Certificate Request. |
sslprofile |
Delete SSL Profile. |
stringgroup |
Delete String Group. |
tenant |
Delete Tenant. |
user |
Delete User. |
virtualservice |
Delete Virtual Service. |
vrfcontext |
Delete VRF Context. |
vsdatascriptset |
Delete virtual service DataScript Set. |
do
Description |
Execute a show command without exiting the current location or sub-model. |
Example |
|
Top-Level Flags: |
|
show |
Show detailed information and stats for any Avi Load Balancer object. |
export
Description |
Back up the system configuration or a single virtual service configuration. |
Example |
|
Top-Level Flags: |
|
configuration |
Export the entire Avi Load Balancer configuration in JSON format. |
serviceengine |
Export the SE OVA file from Controller for manual install. |
virtualservice |
Export a specific virtual service configuration file including child objects. |
import
Description |
Import a backed up (exported) complete or virtual service specific configuration. |
Example |
|
Top-Level Flags: |
initialplacement
Description |
Move a virtual service using manual placement mode to a different SE. |
Example |
|
Top-Level Flags: |
|
virtualservice |
Specify the virtual service to be assigned to an SE. |
serviceengine |
Specify the name of the SE to receive the virtual service. |
migrate
Description |
Move a virtual service using manual placement (No Access or Read Access) mode to a different SE. |
Example |
|
Top-Level Flags: |
|
from_se_ref |
Specify the name of the source SE that has the virtual service. |
to_host_ref |
An option used with |
to_new_se |
Create a new SE and migrate to it. |
to_se_ref |
Migrate to a specific existing SE. |
purge
Description |
Remove a file, such as a packet capture or tech-support file. |
Example |
|
Top-Level Flags: |
rebalance
Description |
In auto scale mode, sets the frequency upon which the Controller will Inspect an SE group to see if a virtual service to SE mapping mudt be adjusted, potentially resulting in a scale in, scale out, or migration. |
Example |
|
Top-Level Flags: |
|
interval |
The frequency, in minutes. Default is 5. |
se_group_ref |
The name of the SE group to alter. |
reboot
Description |
Reboot part or all of the Avi Load Balancer system. It can also delete configuration. With no flags specified, all Controllers and SEs are rebooted. |
Example |
|
Top-Level Flags: |
|
clean |
Reset the Avi Load Balancer system's configuration and reboot the cluster. Consider making a backup first. |
node |
Reboot the virtual machine of a Controller within a cluster. |
serviceengine |
Reboot a specific SE. Virtual service disruption will depend on the high availability settings for the SE group. |
rediscover
Description |
VMware-specific: Initiate discovery of networks and VMs. |
Example |
|
Top-Level Flags: |
restart
Description |
Disable then immediately re-enable a virtual service. |
Example |
|
Top-Level Flags: |
scalein
Description |
Reduce by one the number of SEs handling a virtual service in manual placement mode. There must be a minimum of one SE. |
Example |
|
Top-Level Flags: |
|
from_se_ref |
Specify a non-primary SE to stop using for this virtual service. |
scalein_primary |
Migrate from the primary SE and discontinue use of the SE for this virtual service. |
scaleout
Description |
Increase by one the number of SEs handling a virtual service in manual placement. |
Example |
|
Top-Level Flags: |
|
to_host_ref |
An option used with |
to_new_se |
Create a new SE and scale out to it. |
to_se_ref |
Scale out to an existing SE. |
show
Description |
Show detailed information and stats on any Avi Load Balancer object. |
Example |
|
Top-Level Flags: |
|
actiongroupconfig |
Show info on an Action Group Config. |
alert |
Show info on an Alert. |
alertconfig |
Show info on an Alert Config. |
alertemailconfig |
Show info on an Alert Email Config. |
alertscriptconfig |
Show info on an Alert Script Config. |
alertsyslogconfig |
Show info on the an Syslog Config. |
analyticsprofile |
Show info on an Analytics Profile. |
apic |
Show info on the APIC Graph Instances. |
application |
Show info on an Application Folder. |
applicationpersistenceprofile |
Show info on an Application Persistence Profile. |
applicationprofile |
Show info on an Application Profile. |
authprofile |
Show info on an Auth Profile. |
backups |
Show available backup files. |
cloud |
Show info on the Cloud. |
cluster |
Show info on the Cluster. |
config-consistency-check |
Show config-consistency-check status. |
config_events |
Show info on the Event Log. |
configuration |
Show configuration. |
controller |
Show Controller properties. |
cpuusage |
Show Controller CPU usage. |
debug |
Show Virtual Service capture file. |
debug-log |
Show Service Engine debugs. |
diskusage |
Show Controller disk usage. |
events |
Show info on an Event Log. |
file |
Show files. |
healthmonitor |
Show info on a Health Monitor. |
httppolicyset |
Show info on an HTTP Policy Set. |
ipaddrgroup |
Show info on an IP Address Group. |
jobs |
Show all duration based jobs pending expiry. |
License |
Show info on the Controller License. |
logcontrollermapping |
Show mapping of Log Controllers for each virtual service. |
logs-status |
Show logs subsystem status. |
memoryusage |
Show Controller memory usage. |
metricsmgr |
Show info on a Metrics Entity Runtime. |
network |
Show info on a Network. |
networkprofile |
Show info on a Network Profile. |
networksecuritypolicy |
Show info on a Network Security Policy. |
openstack_audit |
Show OpenStack LBaaS vs Avi config audit reports. |
pkiprofile |
Show info on a PKI Profile. |
placement |
Show info on a Rm VRF Proto. |
pool |
Show info on a Pool. |
role |
Show info on a Role. |
serviceengine |
Show info on a Service Engine. |
serviceenginegroup |
Show info on a Service Engine Group. |
serviceengineproperties |
Show the Service Engine Properties. |
seupgrade |
Show an ongoing SE upgrade status. |
sslkeyandcertificate |
Show info on an SSL Key and Certificate. |
sslprofile |
Show info on an SSL Profile. |
stringgroup |
Show info on a String Group. |
systemconfiguration |
Show info on the System Configuration. |
systemconfigurationruntime |
Show info on the System Configuration Runtime. |
tech-support |
Show full tech support. |
tenant |
Show info on a Tenant. |
terminal |
Show the terminal settings. |
transaction |
Show more info on Transaction Stats. |
upgrade |
Show upgrade status if one is in-progress. |
user |
Show info on the User. |
vcenter |
Show info on the specified VMs. |
version |
Show a Controller node's version. |
vinfra |
Show info on the VI Datastore Contents. |
virtualservice |
Show info on a Virtual Service. |
vrfcontext |
Show info on a VRF Context. |
vsdatascriptset |
Show info on the virtual service DataScript Set. |
switchto
Description |
Switch into a different tenant. |
Example |
|
Top-Level Flags: |
terminal
Description |
Alter the shell's terminal settings. |
Example |
|
Top-Level Flags: |
|
length |
Number of rows to show for pagination output. Greater than will pipe to more. Choose |
session_timeout |
Alter the default 15 min timeout to keep an idle terminal session open. |
timezone |
Display timestamps in specified time zone. |
unhide |
Commands show additional flags. It is not recommended for casual use. |
upgrade
Description |
Initiate an upgrade of the Avi Load Balancer system. This may be done passively (by migrating each SE while upgrading) or disruptively (fast, but it will terminate existing client connections then begin the upgrade). |
Example |
|
Top-Level Flags: |
|
system |
Upgrade the Avi Load Balancer system. |
ui |
Upgrade the Avi Load Balancer UI. |
upload
Description |
Generate and upload a tech-support debug file to VMware. |
Example |
|
Top-Level Flags: |
|
exclude_archive |
Exclude archived backups. |
exclude_logs |
Exclude client log files (virtual service logs), which could be quite large. |
include_se |
Include (non-significant) logs may be stored on the SEs. |
verifylogin
Description |
Validate the username, password, and path to a remote orchestrator such as vCenter, APIC, or OpenStack. |
Example |
|
Top-Level Flags: |
|
apic |
Verify access to an APIC controller. |
openstack |
Verify access to OpenStack. |
vcenter |
Verify access to a VMware vCenter controller. |
watch
Description |
Updates the result of a command such as show every few seconds. |
Example |
|
Top-Level Flags: |
|
show |
Select a valid show command syntax to update. |