cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12692
Views
25
Helpful
5
Replies

toggle between spine and leaf

Mary
Level 1
Level 1

I ssh into apic controller, may i know the command to enter spine and view spine configuration, after that, if i want to go to the leaf, do i need to exit to controller, or we can switch between spine and leaf?

1 Accepted Solution

Accepted Solutions

“show running-config” doesn’t work on a leaf or spine when running in ACI mode.

 

What specific information/configuration  are you looking to get from the spine?

 

If you are just looking for the fabric name and POD id,  you can run the “acidiag avread” and “acidiag fnvread” from any node (leaf, spine or controller” 

 

Note:that as already mentioned by RedNectar, you can run the show running script from the controller.

 

View solution in original post

5 Replies 5

RedNectar
VIP Alumni
VIP Alumni

Hi jolinchewjb

Welcome to the forum.

Once you have ssh access to the epic, you do not need to enter the spine or leaf to view the configuration.  You use command like the following from the APIC.

 

show running config leaf 101
show running-config spine 201

For example:

apic1# show running-config leaf 101
# Command: show running-config leaf 101
# Time: Tue Dec  5 05:11:47 2017
  leaf 101
    template hsrp group-policy default tenant common
      exit
    vrf context tenant common vrf Internet-VRF l3out Internet-L3Out
      router-id 192.168.0.101
      route-map Internet-L3Out_in
        scope global
        exit
      route-map Internet-L3Out_out
        scope global
        ip prefix-list 0.0.0.0:0-L3EPG permit 0.0.0.0/0 le 32
        match prefix-list 0.0.0.0:0-L3EPG
          exit
        exit
<snip>


apic1# show running-config spine 201
# Command: show running-config spine 201
# Time: Tue Dec 5 05:12:07 2017

Note that there is no config on the spine switches unless you have configured something like an IPN (Inter-Pod Network)

 

You can also ssh to the leaves and spine to issue show commands, but NOT to look at the config. For example:

 

apic1# ssh leaf101

Password:
Last login: Tue Dec 5 05:06:25 2017 from 10.1.0.1
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2017, 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
Leaf101# eixt
bash: eixt: command not found
Leaf101# exit
logout
Connection to leaf101 closed.
apic1# ssh spine201

Password:
Last login: Tue Dec 5 05:06:43 2017 from 10.1.0.1
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2017, 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
Spine201#

 

I hope this helps

 



Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem


 

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Manuel Velasco
Cisco Employee
Cisco Employee

In addition to ssh to nodes, you can also used the “attach” command. 

 

For example:

apic# attach <node name>

 

To get the node name, you can use the following command 

 

apic# acidiag fnvread

 

Now, you can only run the “attach” command from the APIC, so if you want to log into a different node, you need to type the “exit” command which it will take you back to the APIC prompt.

thanks, when i go to the spine, i type show run, but it didn't show the fabric name and the configuration, so any way to get the fabric name/pod name and config of spine or it has already been included in the apic controller?

“show running-config” doesn’t work on a leaf or spine when running in ACI mode.

 

What specific information/configuration  are you looking to get from the spine?

 

If you are just looking for the fabric name and POD id,  you can run the “acidiag avread” and “acidiag fnvread” from any node (leaf, spine or controller” 

 

Note:that as already mentioned by RedNectar, you can run the show running script from the controller.

 

Correct. You can't do a show running-config from the leaf of the spine.

See my earlier comment

You issue the show running-config command from the APIC

See my examples form my. other reply

 

I hope this helps

 



Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem


RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License