|

[ACSA Training #15] AOS-CX CLI Access

⏱️ Estimated reading time: Approx. 6 minutes (6 min read)

There are several ways to connect to an Aruba CX switch.
One of them would be to connect via the Console port.

Console port • OOBM interface • PC-Device serial link • Max I-meter cable • RJ-45 and USB-C AOS-CX Serial Connection • Baud rate: 115200 • Data bits: 8 Parity: None • Stop bits: 1 • No Flow control • Aruba OS-CX Switch Console port Management Serial cable or USB cable Depending on the AOS-CX switch model the console port could be RJ-45 or USB-C

When you first configure a switch, you typically enable Out-of-Band Management (OOBM) on the console port.
This special console port is provided on all switch models and types to facilitate configuration, troubleshooting, and management. Depending on the switch model, the console port may be either an RJ-45 or USB-C port, but both require a serial connection between the management terminal (laptop) and the switch.

For this, you will need the following supplies:.

  1. If your switch has an RJ-45 port
    • Serial cable (included with the switch)
    • USB-to-Serial Converter – Laptops typically don’t have serial ports, so you’ll need a separate converter.
    • Software to emulate serial sessions: PuTTY, TeraTerm, SecureCRT, etc.
  2. If your Switch has a USB-C port
    • USB-C cable (the one you use for your phone will work too)
    • Software to emulate serial sessions: PuTTY, TeraTerm, SecureCRT, etc.

Once everything is ready, you need to set the following parameters to establish a serial communication session.

[ACSA 교육#15] AOS-CX CLI 접속 - image 30
  • Baud Rate: 115200
  • Data Bits: 8
  • Parity: None
  • Stop Bits: 1
  • No flow control

AOS-CX Port Numbering

The interfaces of the AOS-CX switch follow the member/slot/port notation.

  • Member: When Aruba Virtual Switching Framework (VSF) or Virtual Switching Extension (VSX) is configured, multiple switches appear as a single virtual switch. This number represents the member ID of the cluster. By default, when VSF or VSX is not running, it is represented as member number 1.
  • Slot: On modular switches, such as the 8400 and 6400, this number indicates the slot used for a specific line card. On fixed switches (such as the 83xx, 6300, and 6200), it is always 1.
  • Port: This number represents an individual interface on a line card (modular switch) or chassis (fixed switch).

The figure below shows an example of a modular switch with VSX enabled and a fixed switch without it.

Member ID = 1 Interface 1 11/48 Slot = 1 Port = 48 • Used with VSF or VSX • Indicates cluster member ID No VSF • Defaults to 1 Member/SIot/Port port = 24 • Used in modular switches • Indicates line card number • Fixed switches use 1 Line card/chassis Interface number Member ID = 1 Interface 2 13/24 Member ID = 2 Slot = 3 vsx

AOS-CX prompt mode

AOS-CX consists of various configuration contexts, or levels. Each context determines which parts of the switch can be managed and which commands can be used by users with appropriate permissions. The AOS-CX operating system defines the following contexts:.

Prompt Switch> Switch # Switch (config) # Switch (config—if) # Switch (config—router) # Switch # Context Operator Manager Global config Interface config Router config VLAN 100 config Description Mew commands, no configuration commands Use commands that need not be saved Change switch configuration Descendants of global config. Use commands that apply to a specific configuration or protocol
Operator Context ( > )

This operator context allows you to view the Config but not to change it. Running commands in this context requires the least user privilege. In the operator context, the CLI (Command Line Interface) prompt is the switch name followed by the greater than sign ( > ) appears.

Switch>
Manager Context ( # )

In this context, you can perform commands that don't require saving the configuration. Here, the hashtag (#) follows the switch name. To move to the Manager context, start in the Operator context. Then, enter the enable command to gain administrator privileges.

Switch> enable
Switch#
Global Configuration Context (Config)

Here, you can execute commands that change the switch configuration. To access this mode, type "Configure Terminal" in Manager Context mode, or simply "config." To move back up one level, use the "exit" command.

Other Configuration Command Context

All other configuration command contexts are subordinate to the Global Configuration Context. This Command Context allows you to execute commands that apply to specific configurations or protocols, such as VLANs or interfaces.

Example:

Switch(config-if)# Switch(config-router)# Switch(config-vlan-100)#

To return to the Manager Context from a sub-context, type the “end” command.

Switch(config-if)# end
Switch#

AOS-CX CLI Help Function

Show the available commands in the current context Switch# ? boot Reboot all or part of the system checkpoint Checkpoint information t ted Output>>> Switch# Show the available parameters for a command Switch# show access—list ? all ip ipv6 All access—lists Internet Protocol v4 (IPv4) Internet Protocol v6 (IPv6) log—timer Set ACL log timer length (frequency) mac Ethernet MAC Protocol Switch (config) # access—list

AOS-CX CLI provides built-in help functionality.

For example, to display available commands that can be run in the current command context, type the question mark (?). The question mark (?) you type here will not be displayed on the screen.

To display the parameters available for a command, type a space after the command and then a question mark (?). After displaying help information in the CLI, the previously entered text is automatically displayed, without the help mark (?).

AOS-CX Command Abbreviation Function

AOS-CX supports command abbreviations and command completion. To save time by entering only the abbreviated version of the full syntax, simply type enough characters to uniquely specify a valid command, and the CLI will accept the command. For example, you can enter "con" instead of "configure" to move from the administrator context to the global configuration context.

Command abbreviation • You must only enter enough letters to uniquely specify a command Command completion • Enter part of command, press TAB, completes it • Press TAB twice to see command options CLI Swi tch# conf Switch (config) # Switch (config) # int + Tab Switch (config) # Switch (config) # interface interface + Tab + Tab lag loopback mgmt tunnel

Command completion means that when you type part of a command and then press the Tab key, one of the following happens:.

  • If you enter enough characters to match a valid command, the CLI will display a word alert message.
    If you do not enter characters that match the correct command, the CLI will not complete the command.

    for example,
Switch(config)# int + [Tab]
Switch(config)# interface
  • Pressing the Tab key twice after a completed word will display the command options in the CLI.
    You can complete all syntax by entering only part of the command using the Tab key as shown below.

    For example.
Switch(config)# interface + [Tab] + [Tab]
lag loopback mgmt tunnel vlan vxlan

Today's explanation is based on AOS-CX, but other switch products are also [?] to check help or [Tab] provides all the same features, including auto-completion. 

Similar Posts

  • What is HPE's direction in Ultra Ethernet (UEC)?

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) The Ultra Ethernet Consortium (UEC), officially launched in July 2023, was formed to develop Ethernet specifications that enhance AI and High Performance Computing (HPC) environments with a new level of performance, scalability, and interoperability. Hewlett Packard Enterprise (HPE) is one of the original founders of the UEC, and regarding the UEC Specification Revision 1.0…

  • [ACSA Education #24] Redundant Network

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Network communication is very important in IT infrastructure. Often, in critical situations, it can have a significant impact on services. If there is only one path connecting to the Core-1 switch as shown below, and the link connecting the Core-1 switch to one of the two access switches is broken, the network will be disconnected, and ultimately Host A and…

  • [ACSA Training #9] UDP Header

    ⏱️ Estimated reading time: Approx. 2 minutes (2 min read) In the last post, we looked into TCP. TCP and UDP are the representative protocols used in the Layer 4 transport layer. So today, let's take a look at UDP. If you look at the figure, you will see how simple the UDP header is compared to the TCP header. The source and… used just like in TCP

  • The Importance of Precision Timing Demonstrated at MWC 2025

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Mobile World Congress (MWC) 2025 was held in Barcelona again this year. There, HPE accelerated networking innovation while telecommunications carriers launched new services for enterprise customers. Through this, they introduced new solutions to advance their long-standing vision of supporting the connection of the network edge to the cloud. HPE…

  • [ACSA Training #27] How RSTP Works

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) RSTP (Rapid STP) operates a loop-free topology through the following algorithm: Select Root Switch Select Root Ports (RPs) of all other non-root switches or non-designated bridge switches Select Designated Ports (DPs) of links connected between each switch Other…

  • [ACSA Training #25] Spanning Tree Protocol

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Last time, while discussing network redundancy, we also talked about loops that can occur as a result. As an alternative, I briefly mentioned STP (Spanning Tree Protocol). Today, let's take a closer look at Spanning Tree Protocol. STP (Spanning Tree Protocol) Overview STP…