HPE Aruba Commands
HPE Aruba ArubaOS and AOS-CX CLI commands.
Switch Startup Procedure
Step 1: Power on switchBoot the switch hardware
Step 2: Wait for bootWait 2-4 minutes for OS to load
Step 3: Check system statusVerify system is operational
show versionDisplay OS version and system info
show systemDisplay system status
show system resource-utilizationDisplay system resources
Step 4: Verify interfacesCheck interface states
show interfaces briefDisplay interface summary
Switch Shutdown Procedure
Step 1: Save configurationEnsure configuration is saved before shutdown
write memorySave configuration
Step 2: Verify config saved (AOS-CX)Create checkpoint for safety
checkpoint pre-shutdownCreate configuration checkpoint
Step 3: Graceful shutdown/rebootReboot or power off the switch
reloadReboot switch
boot systemReboot switch
Step 4: Factory reset (if needed)Reset to factory defaults
erase startup-configErase startup configuration
Basic Navigation - ArubaOS
enableEnter privileged mode
configure terminalEnter configuration mode
exitExit current mode
endExit to privileged mode
show running-configDisplay running configuration
show startup-configDisplay startup configuration
write memorySave configuration
show tech allDisplay all technical information
Basic Navigation - AOS-CX
configure terminalEnter configuration mode
endExit configuration mode
exitExit current context
show running-configDisplay running configuration
show startup-configDisplay startup configuration
write memorySave configuration
checkpoint <name>Create configuration checkpoint
show checkpointsList configuration checkpoints
rollback <name>Rollback to checkpoint
Interface Configuration - ArubaOS
interface <port>Enter interface configuration mode
description "<text>"Set interface description
enableEnable interface
disableDisable interface
speed-duplex <value>Set speed and duplex (10-half, 100-full, auto, etc)
untagged vlan <vlan-id>Set access VLAN
tagged vlan <vlan-list>Set trunk allowed VLANs
lacp <mode>Configure LACP (passive/active)
show interfacesDisplay all interfaces
show interfaces <port>Display specific interface
Interface Configuration - AOS-CX
interface <slot>/<port>Enter interface configuration
description <text>Set interface description
no shutdownEnable interface
shutdownDisable interface
speed <speed>Set interface speed
vlan access <vlan-id>Set access VLAN
vlan trunk native <vlan-id>Set native VLAN
vlan trunk allowed <vlan-list>Set allowed VLANs
lag <lag-id>Add interface to LAG
show interface <port>Display interface details
show interface briefDisplay interface summary
VLAN Configuration
vlan <vlan-id>Create VLAN
name <vlan-name>Name VLAN
show vlansDisplay VLAN information
vlan <vlan-id>Create VLAN
name <vlan-name>Name VLAN
interface vlan <vlan-id>Create VLAN interface (SVI)
ip address <ip>/<mask>Set IP on VLAN interface
show vlanDisplay VLANs
show vlan <vlan-id>Display specific VLAN
Link Aggregation
trunk <port-list> trk<id> lacpCreate LACP trunk
show trunksDisplay trunk information
show lacpDisplay LACP status
interface lag <id>Create LAG interface
no shutdownEnable LAG
lacp mode activeSet LACP mode
show lacp aggregatesDisplay LAG information
show lacp interfacesDisplay LACP interface details
Routing - Static
ip route 0.0.0.0 0.0.0.0 <gateway>Add default route
ip route <network> <mask> <gateway>Add static route
show ip routeDisplay routing table
ip route 0.0.0.0/0 <gateway>Add default route
ip route <network>/<mask> <gateway>Add static route
show ip routeDisplay routing table
Routing - OSPF
router ospfEnter OSPF configuration
area <area-id>Configure OSPF area
enableEnable OSPF
show ip ospfDisplay OSPF status
show ip ospf neighborDisplay OSPF neighbors
router ospf <process-id>Enable OSPF
area <area-id>Configure OSPF area
network <network>/<mask> area <area-id>Add network to OSPF area
show ip ospfDisplay OSPF configuration
show ip ospf neighborDisplay OSPF neighbors
Routing - BGP (AOS-CX)
router bgp <as-number>Enable BGP
bgp router-id <router-id>Set BGP router ID
neighbor <ip> remote-as <as-number>Configure BGP neighbor
neighbor <ip> description <text>Set neighbor description
address-family ipv4 unicastEnter IPv4 address family
neighbor <ip> activateActivate neighbor
network <network>/<mask>Advertise network
show bgp summaryDisplay BGP summary
show bgp neighborsDisplay BGP neighbors
show bgp ipv4 unicastDisplay BGP routes
Access Control Lists
access-list <number> <permit|deny> <source>Create standard ACL
access-list extended <name>Create extended ACL
<permit|deny> <protocol> <source> <dest>Add extended ACL rule
show access-listDisplay ACLs
access-list ip <name>Create IPv4 ACL
<seq> <permit|deny> <protocol> <source> <dest>Add ACL entry
apply access-list ip <name> inApply ACL to interface
show access-listDisplay ACLs
show access-list <name> commandsDisplay ACL in command format
Spanning Tree
spanning-treeEnable STP globally
spanning-tree <port> priority <priority>Set port priority
show spanning-treeDisplay STP information
spanning-treeEnable STP
spanning-tree mode <mode>Set STP mode (mstp/rpvst+)
spanning-tree priority <priority>Set bridge priority
show spanning-treeDisplay STP status
VSX (Virtual Switching Extension) - AOS-CX
vsxEnter VSX configuration
system-mac <mac>Set VSX system MAC
inter-switch-link <lag-id>Configure ISL
role primarySet device as primary
role secondarySet device as secondary
keepalive peer <ip> source <ip>Configure keepalive
show vsx statusDisplay VSX status
show vsx briefDisplay VSX brief status
active-gateway <mac>Configure active gateway MAC
Monitoring & Troubleshooting
show systemDisplay system information
show interfacesDisplay interface status
show mac-addressDisplay MAC address table
show arpDisplay ARP table
show lldp info remote-deviceDisplay LLDP neighbors
show logDisplay system logs
show system resource-utilizationDisplay system resources
show mac-address-tableDisplay MAC address table
show lldp neighbor-infoDisplay LLDP neighbors
show eventsDisplay event logs
ping <ip>Ping destination
traceroute <ip>Trace route to destination
System Management
hostname "<name>"Set hostname
ip default-gateway <ip>Set default gateway
timesync sntpEnable SNTP
sntp server priority 1 <ip>Configure SNTP server
hostname <name>Set hostname
ntp server <ip>Configure NTP server
ntp enableEnable NTP
clock timezone <zone>Set timezone
show systemDisplay system information
show versionDisplay OS version