HPE Aruba Commands
HPE Aruba ArubaOS and AOS-CX CLI commands.
Switch Startup Procedure
Step 1: Power on switchBothBoot the switch hardware
Step 2: Wait for bootBothWait 2-4 minutes for OS to load
Step 3: Check system statusBothVerify system is operational
show versionBothDisplay OS version and system info
show systemArubaOSDisplay system status
show system resource-utilizationAOS-CXDisplay system resources
Step 4: Verify interfacesBothCheck interface states
show interfaces briefBothDisplay interface summary
Switch Shutdown Procedure
Step 1: Save configurationBothEnsure configuration is saved before shutdown
write memoryBothSave configuration
Step 2: Verify config saved (AOS-CX)AOS-CXCreate checkpoint for safety
checkpoint pre-shutdownAOS-CXCreate configuration checkpoint
Step 3: Graceful shutdown/rebootBothReboot or power off the switch
reloadArubaOSReboot switch
boot systemAOS-CXReboot switch
Step 4: Factory reset (if needed)BothReset to factory defaults
erase startup-configBothErase startup configuration
Basic Navigation - ArubaOS
enableArubaOSEnter privileged mode
configure terminalArubaOSEnter configuration mode
exitArubaOSExit current mode
endArubaOSExit to privileged mode
show running-configArubaOSDisplay running configuration
show startup-configArubaOSDisplay startup configuration
write memoryArubaOSSave configuration
show tech allArubaOSDisplay all technical information
Basic Navigation - AOS-CX
configure terminalAOS-CXEnter configuration mode
endAOS-CXExit configuration mode
exitAOS-CXExit current context
show running-configAOS-CXDisplay running configuration
show startup-configAOS-CXDisplay startup configuration
write memoryAOS-CXSave configuration
checkpoint <name>AOS-CXCreate configuration checkpoint
show checkpointsAOS-CXList configuration checkpoints
rollback <name>AOS-CXRollback to checkpoint
Interface Configuration - ArubaOS
interface <port>ArubaOSEnter interface configuration mode
description "<text>"ArubaOSSet interface description
enableArubaOSEnable interface
disableArubaOSDisable interface
speed-duplex <value>ArubaOSSet speed and duplex (10-half, 100-full, auto, etc)
untagged vlan <vlan-id>ArubaOSSet access VLAN
tagged vlan <vlan-list>ArubaOSSet trunk allowed VLANs
lacp <mode>ArubaOSConfigure LACP (passive/active)
show interfacesArubaOSDisplay all interfaces
show interfaces <port>ArubaOSDisplay specific interface
Interface Configuration - AOS-CX
interface <slot>/<port>AOS-CXEnter interface configuration
description <text>AOS-CXSet interface description
no shutdownAOS-CXEnable interface
shutdownAOS-CXDisable interface
speed <speed>AOS-CXSet interface speed
vlan access <vlan-id>AOS-CXSet access VLAN
vlan trunk native <vlan-id>AOS-CXSet native VLAN
vlan trunk allowed <vlan-list>AOS-CXSet allowed VLANs
lag <lag-id>AOS-CXAdd interface to LAG
show interface <port>AOS-CXDisplay interface details
show interface briefAOS-CXDisplay interface summary
VLAN Configuration
vlan <vlan-id>ArubaOSCreate VLAN
name <vlan-name>ArubaOSName VLAN
show vlansArubaOSDisplay VLAN information
vlan <vlan-id>AOS-CXCreate VLAN
name <vlan-name>AOS-CXName VLAN
interface vlan <vlan-id>AOS-CXCreate VLAN interface (SVI)
ip address <ip>/<mask>AOS-CXSet IP on VLAN interface
show vlanBothDisplay VLANs
show vlan <vlan-id>BothDisplay specific VLAN
Link Aggregation
trunk <port-list> trk<id> lacpArubaOSCreate LACP trunk
show trunksArubaOSDisplay trunk information
show lacpArubaOSDisplay LACP status
interface lag <id>AOS-CXCreate LAG interface
no shutdownAOS-CXEnable LAG
lacp mode activeAOS-CXSet LACP mode
show lacp aggregatesAOS-CXDisplay LAG information
show lacp interfacesAOS-CXDisplay LACP interface details
Routing - Static
ip route 0.0.0.0 0.0.0.0 <gateway>ArubaOSAdd default route
ip route <network> <mask> <gateway>ArubaOSAdd static route
show ip routeArubaOSDisplay routing table
ip route 0.0.0.0/0 <gateway>AOS-CXAdd default route
ip route <network>/<mask> <gateway>AOS-CXAdd static route
show ip routeAOS-CXDisplay routing table
Routing - OSPF
router ospfArubaOSEnter OSPF configuration
area <area-id>ArubaOSConfigure OSPF area
enableArubaOSEnable OSPF
show ip ospfArubaOSDisplay OSPF status
show ip ospf neighborArubaOSDisplay OSPF neighbors
router ospf <process-id>AOS-CXEnable OSPF
area <area-id>AOS-CXConfigure OSPF area
network <network>/<mask> area <area-id>AOS-CXAdd network to OSPF area
show ip ospfAOS-CXDisplay OSPF configuration
show ip ospf neighborAOS-CXDisplay OSPF neighbors
Routing - BGP (AOS-CX)
router bgp <as-number>AOS-CXEnable BGP
bgp router-id <router-id>AOS-CXSet BGP router ID
neighbor <ip> remote-as <as-number>AOS-CXConfigure BGP neighbor
neighbor <ip> description <text>AOS-CXSet neighbor description
address-family ipv4 unicastAOS-CXEnter IPv4 address family
neighbor <ip> activateAOS-CXActivate neighbor
network <network>/<mask>AOS-CXAdvertise network
show bgp summaryAOS-CXDisplay BGP summary
show bgp neighborsAOS-CXDisplay BGP neighbors
show bgp ipv4 unicastAOS-CXDisplay BGP routes
Access Control Lists
access-list <number> <permit|deny> <source>ArubaOSCreate standard ACL
access-list extended <name>ArubaOSCreate extended ACL
<permit|deny> <protocol> <source> <dest>ArubaOSAdd extended ACL rule
show access-listArubaOSDisplay ACLs
access-list ip <name>AOS-CXCreate IPv4 ACL
<seq> <permit|deny> <protocol> <source> <dest>AOS-CXAdd ACL entry
apply access-list ip <name> inAOS-CXApply ACL to interface
show access-listAOS-CXDisplay ACLs
show access-list <name> commandsAOS-CXDisplay ACL in command format
Spanning Tree
spanning-treeArubaOSEnable STP globally
spanning-tree <port> priority <priority>ArubaOSSet port priority
show spanning-treeArubaOSDisplay STP information
spanning-treeAOS-CXEnable STP
spanning-tree mode <mode>AOS-CXSet STP mode (mstp/rpvst+)
spanning-tree priority <priority>AOS-CXSet bridge priority
show spanning-treeAOS-CXDisplay STP status
VSX (Virtual Switching Extension) - AOS-CX
vsxAOS-CXEnter VSX configuration
system-mac <mac>AOS-CXSet VSX system MAC
inter-switch-link <lag-id>AOS-CXConfigure ISL
role primaryAOS-CXSet device as primary
role secondaryAOS-CXSet device as secondary
keepalive peer <ip> source <ip>AOS-CXConfigure keepalive
show vsx statusAOS-CXDisplay VSX status
show vsx briefAOS-CXDisplay VSX brief status
active-gateway <mac>AOS-CXConfigure active gateway MAC
Monitoring & Troubleshooting
show systemArubaOSDisplay system information
show interfacesBothDisplay interface status
show mac-addressArubaOSDisplay MAC address table
show arpBothDisplay ARP table
show lldp info remote-deviceArubaOSDisplay LLDP neighbors
show logArubaOSDisplay system logs
show system resource-utilizationAOS-CXDisplay system resources
show mac-address-tableAOS-CXDisplay MAC address table
show lldp neighbor-infoAOS-CXDisplay LLDP neighbors
show eventsAOS-CXDisplay event logs
ping <ip>BothPing destination
traceroute <ip>BothTrace route to destination
System Management
hostname "<name>"ArubaOSSet hostname
ip default-gateway <ip>ArubaOSSet default gateway
timesync sntpArubaOSEnable SNTP
sntp server priority 1 <ip>ArubaOSConfigure SNTP server
hostname <name>AOS-CXSet hostname
ntp server <ip>AOS-CXConfigure NTP server
ntp enableAOS-CXEnable NTP
clock timezone <zone>AOS-CXSet timezone
show systemBothDisplay system information
show versionBothDisplay OS version