Cisco ACI – Run Commands on the Switches from your APIC

Execute commands on the ACI nodes without connecting to them

Home / Posts / Cisco ACI – Run Commands on the Switches from your APIC

With the introduction of the NX-OS like CLI Cisco also added the option to run commands on the switches directly from your apic. It’s now even easier to get some infos from one or multiple switches in your fabric.

Show switchname on a single fabric switch

1
2
3
4
5
apic1# fabric leaf01 show switchname
----------------------------------------------------------------
 Node 101 (leaf01)
----------------------------------------------------------------
leaf01

You can also run commands on multiple devices

1
2
3
4
5
6
7
8
9
apic1# fabric leaf01, leaf02 show switchname
----------------------------------------------------------------
 Node 101 (leaf01)
----------------------------------------------------------------
leaf01
----------------------------------------------------------------
 Node 102 (leaf02)
----------------------------------------------------------------
leaf02

The list of possible commands is pretty long, just to give an idea

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
aaa               aaa
bfd               BFD commands
bgp               Display BGP status and configuration
cdp               Show Cisco Discovery Protocol information
clock             Display current Date
coop              Show information about coop
copp              Control Plane Policing (CoPP) information
copyright         Copyright information
cores             Show all core dumps for the current vdc
dhcp              Show DHCP
diagnostic        Diagnostic commands
dpp               Data Plane Policing (DPP) information
eigrp             Display EIGRP status and configuration
endpoint          End point
environment       Environment Information
fc2               Show fc2 information
fcoe              Show FCOE paramaters
fex               Show FEX information
forwarding        Display mfdm information
hardware          Show hardware information
hostname          Hostname
hsrp              HSRP information
interface         Show interface status and information
inventory         system inventory information
ip                Display IP information
ipmgr             Show information about ipmgr
ipv6              Show IPv6 information
isis              Display IS-IS status and configuration
istack            Show istack information
lacp              LACP protocol
lldp              Show information about lldp
locator-led       Blink locator led on device
logging           logging information
mac               Mac addr information
mcp               Show information about mcp
mfdm              Show MFDM information
module            Module
monitor           Show SPAN information
npv               Show Npv information
ntp               Show NTP information
oam               Show information about oam
ospfv3            Display OSPFv3 status and configuration
port-channel      Show port-channel information
porttrack         Port Tracking
processes         Show processes
radius-server     Radius-server
redundancy        Show system redundancy status
resource          Show resource configuration for VDC
route-map         Route-map information
routing           Display routing information
san-port-channel  Show san-port-channel information
service           Display service information
snmp              Display SNMP information
sprom             show SPROM contents
stats_manager     Show information about stats_manager
switchname        Show the system's hostname
system            System-related commands
tacacs-server     Tacacs-server
tunnel            Show information about Tunnel
users             Show users logged onto the system and their sessions
vdc               Show information about vdc_mgr
version           Show running firmware version and basic system information
vlan              VLAN status
vpc               Virtual Port Channel configuration
vrf               Display VRF information
vsan              Show vsan information
zoning-filter     Display Zoning-Filter information
zoning-rule       Display Zoning-Rule information

This can be a really nice way to collect some quick info from different nodes in a ACI fabric.

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy