Command Reference Guide
Command Reference Guide
Gateway Appliance
2 Shell - Gives you access to the Avocent® Universal Management Gateway appliance.
3 Targets - Gives you access to the devices monitored by the Avocent® Universal Management Gateway appliance.
4 Change Password - Allows you to change the password that gives you access to the web UI.
5 Update Firmware via USB - Allows you to execute a firmware upgrade from .img files located on a mass storage device.
Update Firmware via /download - Allows you to upgrade the firmware via the appliance's download folder. Any file in the download
6
folder with an .img extension is available for selection.
0 Exit
1.2 Navigation
The CLI navigation options are in a nested tree configuration. When you log in to the CLI, the prompt indicates the level you
are on. For example, when you log into the CLI, the following prompt is displayed:
Example: CLI Initial Prompt
Cli>
At any CLI prompt at any level, if you type cd and press Tab Tab, the navigation options for that level are listed. Type cd
and one of the listed levels followed by <Enter> to navigate to that level.
NOTE: CLI commands are case sensitive.
At any level, you can press Tab Tab to see the commands that can be entered at the current level.
NOTE: Different options may appear for administrators than for authorized users.
If you know the path, in a single command you can enter multiple path elements separated with forward slashes (/). For
example, typing cd appliance/monitor <Enter> takes you to the monitor level of the CLI.
Example: Multiple Path Command
Type cd .. <Enter> to move up a level in the navigation tree. Type cd ../.. <Enter> to move up multiple levels, with each
forward slash (/) representing a level.
NOTE: For the complete navigation tree of the CLI, see Navigation Tree on page 7.
1.2.1 Auto completion
Typing the first few letters of a command or navigation option and pressing Tab enables the auto complete function. If the
typed letters are unique to one command or navigation option at that level, the name is filled in automatically. If the letters
match more than one of the commands or navigation options for that level, the matching options are listed.
For example, if you type cd app<Tab> at the Cli> prompt, it will auto complete to cd appliance.
1.2.2 Syntax
The syntax consists of four parts: <command>, <options>, <target> and <properties>.
The commands, targets and properties are displayed according to a user's role. Users only see items for which they have
permission. The maximum length of any single command line is 255 characters. Reserved characters are not allowed in the
target or property names.
<cr>, <lf>, <cr>, <lf> End of line Each of these sequences represents an end-of-line indicator.
Assignment
= Separates a property/command option from its value.
operator
" String Represents a string which may contain non-escaped characters until the next double quotation mark
(") is reached.
1.2.3 Parameters
Some CLI commands use parameters. If you press Tab Tab after a command that requires a parameter, you are prompted
to enter the parameter.
1.3 Command Set
The following table describes the general commands used when accessing the appliance from the CLI. Commands are used
to perform actions on targets or to change/display the properties of targets. Most of the commands work from any location
when the path to the command parameter is included.
NOTE: The word "node" refers to any entity (such as a route, host or user) that can be added, configured or deleted.
create Used to create a new target node. Not all targets are creatable. Cli> create <path> <parameter>
delete Deletes a target node that was previously created. All other target nodes cannot be deleted. Cli> delete <path> <parameter>
exit Exits the CLI from any level of the CLI. Cli> exit
Provides general information for CLI syntax and basic operations. This can be done from any
help Cli> help
level.
pwd Displays the current full path of the target (print working directory). Cli> pwd
Displays target nodes. Adding the command -p after show displays the target node
show Cli> show
properties.
For some commands, such as set or show, you can issue the command using the complete path of the parameter you want.
See the following example.
Example: Complete Command Path
For the complete command path to assign an IP address to the Avocent® Universal Gateway appliance, use the following
example.
Example: Command Path for Assigning an IP Address
Cli>cd system/administration/networkManagement/networkInterfaces/eth0
eth0>set dhcp=false
show
set /system/administration/datetime newTime=10:10:10Z
->cli –f test-script0.txt
#!/usr/bin/cli -f
set /system/administration/datetime newTime=10:10:10Z
You could then make the script executable from the command line, as shown in the following example.
Example: Executable Command Line Script
If you want to run multiple CLI commands from a script that is also running other Linux commands, add multiple CLI
commands as shown in the following example.
Example: Bash Shell Multiple Command
#!/bin/bash
...
/usr/bin/cli <<EOF
set /system/administration/datetime newTime=10:10:10Z
set /system/administration/datetime newDate=2011-01-31
EOF
contactName=
contactPhone=
hasSecondPowerSupply=
helpURL=
model=
otherInfo=
partNumber=
rackName=
serialNumber=
supplyOnePluggedIn=
supplyTwoPluggedIn=
version=
eMailServer
auth_password=
auth_username=
mail_server=
port=
monitor
alert
eMailDestAddr
toaddress=
localFacility
syslog_facility=
destinationConfig
<destination>
alertid=
dsviewenable=
emailenable=
relayenable=
relay2enable=
smsenable=
snmpenable=
uitext=
syslogConfig
<rule>
destination=
enable=
facility=
id=
level=
tag=
2.2 System
From the main Cli> prompt, type cd system to access the system navigation tree.
keyboardLayout
keyboardlayout=
administration
account
users
admin
operator
user
account_expiration=
account_expiration_enabled=
change_password=
password=
password_expiration_inactive_days=
password_expiration_inactive_days_enabled=
password_expiration_max_days=
password_expiration_max_days_enabled=
password_warned_days=
password_warned_days_enabled=
preemption_lvl=
role=
session_can_timeout=
timeout=
username=
groups
appliance-admin
power-user
user
preemption_lvl=
role=
timeout=
accessGroupedTargets
accessTargets
<target>
Allow_Access_Service_Processor
Allow_AutoLogin=
Allow_AutoLogin_Service=
Allow_Manage_Target_Setting=
Allow_Physical_KVM=
Allow_Physical_Receptacle_Control=
Allow_Physical_Serial=
Allow_Serial_Over_LAN=
Allow_View_Env_Data=false
Allow_View_Logs=false
Allow_Virtual_KVM=
Allow_Virtual_Media=
Allow_Virtual_Receptacle_Control=
Deny_Access_Service_Processor=
Deny_AutoLogin=
Deny_AutoLogin_Service=
Deny_Manage_Target_Setting=
Deny_Physical_KVM=
Deny_Physical_Receptacle_Control=
Deny_Physical_Serial=
Deny_Serial_Over_LAN=
Deny_View_Env_Data=
Deny_View_Logs=
Deny_Virtual_KVM=
Deny_Virtual_Media=
Deny_Virtual_Receptacle_Control=
IsManaged=false
SessionAccess=
targetName=
authenticInfo
strength=
authenticCfg
authenticaion.0=
strength=
base=
binddn=
bindpw=
host=
pam_login_attribute=
ssl=
ADSAP2
enabled=
local_cred_key_path=
local_cred_x509_path=
mode=
remote_cred_x509_path=
server_1=
server_2=
server_3=
server_4=
networkManagement
networkSettings
domainname=
gateway=
gateway6=
hostname=
mode=
primary_dns=
secondary_dns=
networkInterfaces
eth 0
eth 1
addr=
addr6=
bcast=
dhcp=
dhcp6=
gateway=
gateway6=
hwaddr=
interface=
mask=
mask6=
mtu=
<host>
alias=
hostname=
ip=
routes
<route>
dstip=
gateway=
iface=
metric=
netmask=
status=
routes6
<route6>
dstip6=
iface=
netmask6=
security
Telnet
available=
sshPort
httpsPort
port=
datetime
currentDateTime=
currentDateTimeLabel=
ntpServer=
timeMethod=
timezone=
daylightSaving
status=
systemHelpURL
helpURL=
systemDiagnostic
logdir=
option=
timeout=
licenseInfo
licensesAvailable=
licensesTotal=
firmware
factoryRestore
dataBackup
dataRestore
dsview
access
dsviewAccessMode=
2.3 Targets
From the main Cli> prompt, type cd targets to access the targets navigation tree.
<SP target>
alias=
internalID=
ipAddress=
isManaged=
numBlades=
opStatus=
password=
portNum=
powerStatus=
slotNum=
spProfileType=
spProperties=
targetID=
targetType=
username=
powerControl
frontPanelLockout=
powerStatus=
portConfig
portAssignment
<port>
auto_sense=
conn_type=
device=
device_type=
port_class=
serialSettings
<port>
data-size=
flow=
major=
minor=
name=
parity=
pinout=
port=
speed=
status=
stopbits=
serialManagement
serialConsolePort
<port>
cd general
dataBuffering
serialPduPort
<port>
pdu_type=
speed_auto_detection=
poll_rate=
pdu_cycle=
pdu_syslog=
pdu_buzzer=
pdu_overcurrent=