|

[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

  • Using the CX Mobile App

    ⏱️ Estimated read time: Approx. 2 minutes (2 min read) The Aruba CX Mobile App is a tool for deploying and configuring ArubaOS-CX switches. You can connect via Wi-Fi or Bluetooth using an Apple iPhone or Android smartphone without the need for a physical switch connection. Switches connected in this way can not only be easily monitored, but workflows or…

  • [ACSA Education #34] VRRP

    ⏱️ Estimated reading time: Approx. 10 minutes (10 min read) In the previous post, we looked at the Default Gateway. An endpoint can have only one Default Gateway. And it can be a single point of failure. Looking at the figure below, if Core-1 fails, PC-1 and others using Core-1 as the Default Gateway…

  • [ACP-DC Training #6] DCI and OOBM

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) In the last post, we looked at various data center network designs. We explained the characteristics of each design, along with their advantages and disadvantages, and architectural changes. This time, we will examine Data Center Interconnect (DCI), which connects data centers, and OOBM, which is a management network. Data Center Interconnect (DCI): A technology that connects multiple data centers. Everyone, customers…

  • AOS-CX CLI Commands (3)

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) In the last two posts, we explored the basic settings of the AOS-CX switch product family and how to check entered commands. This time, we will look at the commands necessary for switch maintenance. As I have already provided the maintenance commands while writing ACSA training content…

  • [ACMA Training #4] AOS 8 Architecture

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) The ACMA certification exam is based on the AOS 8 operating system. Therefore, it is important to understand the AOS 8 architecture. In the previous post, I already explained the Aruba wireless LAN portfolio. While explaining APs (Access Points), I discussed the concepts of CAPs (Campus APs) and IAPs (Instant APs)… .

  • [ACP-DC Training #4] Building a Data Center Network

    ⏱️ Estimated reading time: Approx. 9 minutes (9 min read) We have finally successfully completed the first step of building a data center network. Over the past time, we have understood the basic overview of the data center network and secured sufficient important resources and materials, namely the necessary products (hardware) and technologies (protocols). It is just like the process of an architect understanding the blueprints and preparing the necessary materials before constructing a building…