Quick Command CLI

Nexus Hyperfabric Quick Command is a simple command-line interface (CLI) designed to quickly display information about a fabric and its devices. It enables efficient access to fabric and device data without navigating through the graphical user interface.

Use the Quick Command CLI to test connectivity, clear switch data, and view fabric or device details.

Quick Command CLI

Using the Quick Command CLI


Step 1

Choose Fabrics, then select the fabric you want to see information for.

Step 2

From the top menu, select .

Step 3

Enter ? or press Tab to show available command options or help auto-complete a command.

Shows where to access help.

Step 4

Enter a command. For more information on commands, refer to:

Step 5

Enter an option and press Enter to run a command. In this example, the Quick Command CLI displays:

  • all assertions for the aqua2-L2 switch,
  • the command that was issued, and
  • the time the command was executed.

You can copy the command and results.


Quick Command CLI results

Run connectivity tests

Use a connectivity test to send traffic from a switch to a destination and verify reachability or trace a path. Only administrators and read-write users can run connectivity tests.

Gather these details before running the test:

  • the connectivity test you want to run, and its syntax. For more information, refer to Connectivity test commands.
  • the destination IP address or hostname, and
  • the optional source interface and VRF name.

Step 1

Enter device scope for the switch that you want to run the test from.

scope leaf-1

Step 2

Run the connectivity test for the destination.

Example:
ping 192.168.1.1 vrf Vrf-001 -I Ethernet1_1 -c 5 -w 2

Step 3

Review the results, and press Ctrl+C to stop the test if necessary.

Step 4

Exit device scope.

exit

The connectivity test reports whether the destination is reachable.

Connectivity test commands

This table describes the connectivity tests.

Ping, arping, tcping, traceroute, and tcptraceroute

Task

Description

Command

Example

Verify reachability

Sends ICMP packets to verify reachability. Reports packet loss and round-trip time.

ping destination [-I interface] [vrf vrf] [-c count] [-w wait]

ping 192.0.2.10 vrf Vrf-001 -c 5 -w 2

Verify Layer 2 reachability

Sends ARP requests to verify Layer 2 reachability, which helps isolate Layer 3 issues. Reports attempts sent and answered.

arping destination [-I interface] [vrf vrf] [-s source] [-c count] [-w wait]

arping 192.0.2.1 -I eth0 vrf Vrf-001 -c 5

Test TCP reachability

Checks TCP connectivity to a destination and port when ICMP is blocked. Reports whether the port is reachable.

tcping destination port[-I interface] [vrf vrf] [-c count] [-w wait]

tcping 192.0.2.10 443 vrf Vrf-001

Trace the path

Traces the route to a destination. Lists each hop in the path.

traceroute destination [-I interface] [vrf vrf] [-m max-hops] [-w wait]

traceroute 203.0.113.50 -I lo0 vrf Vrf-001

Trace the TCP path

Traces the TCP route to a destination and port. Lists each hop in the TCP path.

traceroute destination [-I interface] [vrf vrf] [-m max-hops] [-w wait]

tcptraceroute 203.0.113.50 vrf Vrf-001

Variable descriptions:

  • destination: Destination IPv6 or IPv4 address, or hostname.
  • port: TCP port number. The range is from 1 to 65535.
  • interface: Source interface name.
  • vrf: VRF name.
  • source: Source IP address or hostname for ARP requests.
  • count: Number of packets or attempts. The range is from 1 to 1000
  • wait: Wait time, in seconds. The value is 1 or higher.
  • max-hops: Maximum hop count. The range is from 1 to 255.

Clear switch data commands

Use the clear commands during troubleshooting to reset the ARP cache and the IPv6 NDP cache on a selected switch. These commands require a selected or scoped switch. Only administrators and read-write users can run the clear commands.

To clear the entry for a specific host, first identify the target IP address from the ARP or IP route table. For more information, refer to Show fabric and device commands.

Command descriptions

  • clear ip arp: Clears the IP ARP cache on the selected switch.
  • clear ip ndp: Clears the IPv6 NDP cache on the selected switch.

Step 1

Enter device scope for the switch.

scope leaf-1

Step 2

Run the clear command for the data that you want to reset.

clear ip arp

Step 3

Exit device scope.

exit

The selected cache is cleared on the switch, and the Quick Command CLI reflects the updated state from the switch telemetry.

View fabric and device data

Use show commands to view fabric, device, and switch data. You can run a show command in scoped form after you select a device, or in fully qualified form by including a selector in the command path.

Identify the command you want to run and the data you want to view. For more information, refer to Show fabric and device commands.


Step 1

Choose how to run the command.

If you want to...

Then...

run several commands on the same device

select the device first with the scope command, and use the scoped form.

run a single command

use the fully qualified form with a fabric, device, server, or switch selector.

Step 2

Run the command. Fully qualified form example:

show switch leaf-1 ports table
 Note

Add table to any command for tabular output.

Step 3

(Scoped form only) Exit device scope when you are done.

exit

The Quick Command CLI displays the requested fabric, device, or switch data.

Show fabric and device commands

This table lists representative commands to help you understand the range of data you can display. It is not an exhaustive list. To see the available options at any point in a command, press Tab or enter ?. Add table to a command for tabular output.

Show commands

Data category

Description

Example command

Inventory

Lists all fabrics, devices, servers, and switches, with summary details such as name, model, and status.

show fabric all

show switch all table

show device all table

show server all table

Fabric details

Shows configuration and health for a fabric, including the recommended remedy action for a reported issue.

show fabric leaf-fabric info

show fabric leaf-fabric remedyAction

Device information

Shows device details, such as model, serial number, and software version, and the processes running on the device.

show switch leaf-1 info

show switch leaf-1 processes table

Ports

Shows port details, breakouts, and traffic counters for a single port or all ports on a device.

show switch leaf-1 ports table

show switch leaf-1 ports eth1/1 counters

VLAN-to-VNI mapping

Shows how VLANs map to VNIs on a device.

show switch leaf-1 vlan-to-vni-mapping table

Environment

Shows the status of fans, power supplies, and temperature sensors on a device..

show switch leaf-1 environment fan table

show switch leaf-1 environment power table

show switch leaf-1 environment temperature table

BGP

Shows the BGP neighbor summary, per-VRF details, neighbor details, and the routes received from a neighbor.

show switch leaf-1 bgp summary table

show switch leaf-1 bgp vrf tenant-a

show switch leaf-1 bgp vrf tenant-a neighbors 192.0.2.5

show switch leaf-1 bgp vrf tenant-a neighbors 192.0.2.5 received

QSFP

Shows QSFP Digital Optical Monitoring (DOM) data and transceiver information for the ports on a device.

show switch leaf-1 qsfp dom table

show switch leaf-1 qsfp info table

Assertions

Shows device assertions, including whether the device is connected to the fabric and to the cloud.

show switch leaf-1 assertions all table

show switch leaf-1 assertions connected-to-fabric

show switch leaf-1 assertions connected-to-cloud

 Note

Values such as the fabric name, switch name, port, VRF, and neighbor are values that you supply or select from command completion.