Cisco APIC:如何通过 CLI 获取每个控制器、主干和叶的型号名称

网络工程 思科
2022-03-03 05:18:23

通过 CLI 获取每个控制器、脊椎和叶的模型名称的命令是什么?

show version没有。

APIC03# show version
 Role        Pod         Node        Name             Version              
 ----------  ----------  ----------  -----------  ---------------- 
 controller  1           1           APIC01         3.2(4e)              
 controller  2           2           APIC02         3.2(4e)                       
 spine       1           1           SPINE01        n9000-13.2(4e)       
 spine       1           2           SPINE02        n9000-13.2(4e)       
 leaf        1           1           LEAF01         n9000-13.2(4e)       
 leaf        1           2           LEAF02         n9000-13.2(4e)

show switch显示更多信息,但其中仍然没有型号名称。

1个回答

此处使用相同的方法登录 APIC CLI 并获取节点 ID:

APIC# moquery -c fabricNode -f 'fabric.Node.role=="leaf"' | egrep ^id | order
id               : 101
id               : 102
id               : 103
id               : 104
id               : 105
id               : 106

APIC# moquery -c fabricNode -f 'fabric.Node.role=="spine"' | egrep ^id | order
id               : 201
id               : 202

然后显示设备版本:

APIC# fabric 101-106 show version
----------------------------------------------------------------
 Node 101 (XXXX-DC-LEAF-101)
----------------------------------------------------------------
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
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

Software
  BIOS:      version 05.31
  kickstart: version 14.0(3d) [build 14.0(3d)]
  system:    version 14.0(3d) [build 14.0(3d)]
  PE:        version 4.0(3d)
...

APIC# fabric 201-202 show version
----------------------------------------------------------------
 Node 201 (XXXX-DC-SPINE-201)
----------------------------------------------------------------
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
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

Software
  BIOS:      version 05.31
  kickstart: version 14.0(3d) [build 14.0(3d)]
  system:    version 14.0(3d) [build 14.0(3d)]
  PE:        version 4.0(3d)
...

APIC# show controller detail id <ID>将显示控制器信息。