Cisco ACI – Connect to the leaf/spine switches

With the introduction of the NX-OS Cli, cisco changed the way how you connect to leaf/spine switches.
Find my updated post here.

There are several scenarios where you want to connect to your leaf and spine switches of the ACI fabric.
In this example we want to checkout the BGP Status.

First you connect to your APIC Controller through SSH:

$ ssh admin@10.32.5.100
Application Policy Infrastructure Controller
admin@10.32.5.100's password:
admin@aci-lab-apic01:~>

Easy way to connect

Claes Leufven just gave me a hint that you can also use “attach”, the same as on other cisco products 🙂

admin@aci-lab-apic01:~>
admin@aci-lab-apic01:~> attach aci-lab-
aci-lab-apic01   aci-lab-leaf01   aci-lab-leaf02   aci-lab-spine01

admin@aci-lab-apic01:~> attach aci-lab-leaf01
# Executing command: ssh aci-lab-leaf01
Warning: Permanently added 'aci-lab-leaf01' (RSA) to the list of known hosts.
Nexus 9000 Switch
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2015, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
aci-lab-leaf01#

Alternative way!

If you know the tep address of your leaf/spine, you can directly connect, otherwise you can get an overview of the tep addresses:

admin@aci-lab-apic01:~> acidiag fnvread
      ID             Name    Serial Number         IP Address    Role        State   LastUpdMsgId
-------------------------------------------------------------------------------------------------
     101  aci-lab-spine01      XXXXXXXXXXX   10.255.120.94/32   spine       active   0
     111   aci-lab-leaf01      XXXXXXXXXXX   10.255.120.95/32    leaf       active   0
     112   aci-lab-leaf02      XXXXXXXXXXX   10.255.120.93/32    leaf       active   0

Total 3 nodes

admin@aci-lab-apic01:~>

Now you just connect through ssh directly from the APIC Controller. No User required, PW is the same as for the APIC.

admin@aci-lab-apic01:~> ssh 10.255.120.94
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2014, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
aci-lab-spine01#

Run commands on the Leaf/Spine

And now you can run the avaiable commands on the ACI NX-OS

aci-lab-spine01# show bgp sessions vrf overlay-1
Total peers 2, established peers 2
ASN 65444
VRF overlay-1, local ASN 65444
peers 2, established peers 2, local router-id 10.255.120.94
State: I-Idle, A-Active, O-Open, E-Established, C-Closing, S-Shutdown

Neighbor        ASN    Flaps LastUpDn|LastRead|LastWrit St Port(L/R)  Notif(S/R)
10.255.120.95    65444 0     02w17d  |never   |never    E  179/52384  0/0
10.255.120.93    65444 0     02w17d  |never   |never    E  179/36010  0/0

Related Posts

3 thoughts on “Cisco ACI – Connect to the leaf/spine switches

    • Hi Claes,

      Awesome, you can always learn something!
      I will edit the post, credits to you 🙂

      Regards
      Richard

Leave a Reply

Your email address will not be published. Required fields are marked *