HPE Aruba Commands

HPE Aruba ArubaOS and AOS-CX CLI commands.

Switch Startup Procedure

Step 1: Power on switch

Boot the switch hardware

Step 2: Wait for boot

Wait 2-4 minutes for OS to load

Step 3: Check system status

Verify system is operational

show version

Display OS version and system info

show system

Display system status

show system resource-utilization

Display system resources

Step 4: Verify interfaces

Check interface states

show interfaces brief

Display interface summary

Switch Shutdown Procedure

Step 1: Save configuration

Ensure configuration is saved before shutdown

write memory

Save configuration

Step 2: Verify config saved (AOS-CX)

Create checkpoint for safety

checkpoint pre-shutdown

Create configuration checkpoint

Step 3: Graceful shutdown/reboot

Reboot or power off the switch

reload

Reboot switch

boot system

Reboot switch

Step 4: Factory reset (if needed)

Reset to factory defaults

erase startup-config

Erase startup configuration

Basic Navigation - ArubaOS

enable

Enter privileged mode

configure terminal

Enter configuration mode

exit

Exit current mode

end

Exit to privileged mode

show running-config

Display running configuration

show startup-config

Display startup configuration

write memory

Save configuration

show tech all

Display all technical information

Basic Navigation - AOS-CX

configure terminal

Enter configuration mode

end

Exit configuration mode

exit

Exit current context

show running-config

Display running configuration

show startup-config

Display startup configuration

write memory

Save configuration

checkpoint <name>

Create configuration checkpoint

show checkpoints

List configuration checkpoints

rollback <name>

Rollback to checkpoint

Interface Configuration - ArubaOS

interface <port>

Enter interface configuration mode

description "<text>"

Set interface description

enable

Enable interface

disable

Disable 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 interfaces

Display all interfaces

show interfaces <port>

Display specific interface

Interface Configuration - AOS-CX

interface <slot>/<port>

Enter interface configuration

description <text>

Set interface description

no shutdown

Enable interface

shutdown

Disable 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 brief

Display interface summary

VLAN Configuration

vlan <vlan-id>

Create VLAN

name <vlan-name>

Name VLAN

show vlans

Display 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 vlan

Display VLANs

show vlan <vlan-id>

Display specific VLAN

Link Aggregation

trunk <port-list> trk<id> lacp

Create LACP trunk

show trunks

Display trunk information

show lacp

Display LACP status

interface lag <id>

Create LAG interface

no shutdown

Enable LAG

lacp mode active

Set LACP mode

show lacp aggregates

Display LAG information

show lacp interfaces

Display 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 route

Display routing table

ip route 0.0.0.0/0 <gateway>

Add default route

ip route <network>/<mask> <gateway>

Add static route

show ip route

Display routing table

Routing - OSPF

router ospf

Enter OSPF configuration

area <area-id>

Configure OSPF area

enable

Enable OSPF

show ip ospf

Display OSPF status

show ip ospf neighbor

Display 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 ospf

Display OSPF configuration

show ip ospf neighbor

Display 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 unicast

Enter IPv4 address family

neighbor <ip> activate

Activate neighbor

network <network>/<mask>

Advertise network

show bgp summary

Display BGP summary

show bgp neighbors

Display BGP neighbors

show bgp ipv4 unicast

Display 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-list

Display ACLs

access-list ip <name>

Create IPv4 ACL

<seq> <permit|deny> <protocol> <source> <dest>

Add ACL entry

apply access-list ip <name> in

Apply ACL to interface

show access-list

Display ACLs

show access-list <name> commands

Display ACL in command format

Spanning Tree

spanning-tree

Enable STP globally

spanning-tree <port> priority <priority>

Set port priority

show spanning-tree

Display STP information

spanning-tree

Enable STP

spanning-tree mode <mode>

Set STP mode (mstp/rpvst+)

spanning-tree priority <priority>

Set bridge priority

show spanning-tree

Display STP status

VSX (Virtual Switching Extension) - AOS-CX

vsx

Enter VSX configuration

system-mac <mac>

Set VSX system MAC

inter-switch-link <lag-id>

Configure ISL

role primary

Set device as primary

role secondary

Set device as secondary

keepalive peer <ip> source <ip>

Configure keepalive

show vsx status

Display VSX status

show vsx brief

Display VSX brief status

active-gateway <mac>

Configure active gateway MAC

Monitoring & Troubleshooting

show system

Display system information

show interfaces

Display interface status

show mac-address

Display MAC address table

show arp

Display ARP table

show lldp info remote-device

Display LLDP neighbors

show log

Display system logs

show system resource-utilization

Display system resources

show mac-address-table

Display MAC address table

show lldp neighbor-info

Display LLDP neighbors

show events

Display 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 sntp

Enable SNTP

sntp server priority 1 <ip>

Configure SNTP server

hostname <name>

Set hostname

ntp server <ip>

Configure NTP server

ntp enable

Enable NTP

clock timezone <zone>

Set timezone

show system

Display system information

show version

Display OS version