Guest

Preview Tool

Cisco Bug: CSCvv81606 - "Show version" with capital letter returning output as single string

Last Modified

Oct 06, 2020

Products (1)

  • Cisco Nexus 9000 Series Switches

Known Affected Releases

7.0(3)I7(8) 9.3(3) 9.3(4) 9.3(5.81)

Description (partial)

Symptom:
Nexus 93180YC-EX & N9Kv running versions 9.3(3), 9.3(4), 9.3(5), 7.0(3)I7(8), when using NX-API sandbox with the following conditions:

-          Method: NXAPI-CLI
-          Message format: json-rpc
-          Command type: cli
-          Error action: Select
-          Command: Show version

Result: output as single string => not expected, it should return a json structure

Conditions:
Nexus 93180YC-EX & N9Kv running versions 9.3(3), 9.3(4), 9.3(5), 7.0(3)I7(8), when using NX-API sandbox with the following conditions:

-          Method: NXAPI-CLI
-          Message format: json-rpc
-          Command type: cli
-          Error action: Select
-          Command: Show version

Result: output as single string => not expected, it should return a json structure

e.g.

switch# show version
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_serie
s_home.html
Copyright (c) 2002-2020, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
http://www.gnu.org/licenses/gpl.html.

Nexus 9000v is a demo version of the Nexus Operating System

Software
  BIOS: version 
 NXOS: version 9.3(5)
  BIOS compile time:  
  NXOS image file is: bootflash:///nxos.9.3.5.bin
  NXOS compile time:  7/20/2020 20:00:00 [07/21/2020 06:30:11]


Hardware
  cisco Nexus9000 C9300v Chassis 
  Intel(R) Xeon(R) Gold 5117 CPU @ 2.00GHz with 8163416 kB of memory.
  Processor Board ID 91GE7OX8H3P

  Device name: switch
  bootflash:    4287040 kB
Kernel uptime is 0 day(s), 5 hour(s), 10 minute(s), 29 second(s)

Last reset 
  Reason: Unknown
  System version: 
  Service: 

plugin
  Core Plugin, Ethernet Plugin

Active Package(s):
        
switch#

-          Method: NXAPI-CLI
-          Message format: json-rpc
-          Command type: cli
-          Error action: Select
-          Command: Show version
-          Result: output as single string
 
Request:
[
  {
    "jsonrpc": "2.0",
    "method": "cli",
    "params": {
      "cmd": "Show version",
      "version": 1
    },
    "id": 1
  }
]

Response:

{
  "jsonrpc": "2.0",
  "result": {
    "msg": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: http://www.cisco.com/tac\nDocuments: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html\nCopyright (c) 2002-2020, Cisco Systems, Inc. All rights reserved.\nThe copyrights to certain works contained herein are owned by\nother third parties and are used and distributed under license.\nSome parts of this software are covered under the GNU Public\nLicense. A copy of the license is available at\nhttp://www.gnu.org/licenses/gpl.html.\n\nNexus 9000v is a demo version of the Nexus Operating System\n\nSoftware\n  BIOS: version \n NXOS: version 9.3(5)\n  BIOS compile time:  \n  NXOS image file is: bootflash:///nxos.9.3.5.bin\n  NXOS compile time:  7/20/2020 20:00:00 [07/21/2020 06:30:11]\n\n\nHardware\n  cisco Nexus9000 C9300v Chassis \n  Intel(R) Xeon(R) Gold 5117 CPU @ 2.00GHz with 8163416 kB of memory.\n  Processor Board ID 91GE7OX8H3P\n\n  Device name: switch\n  bootflash:    4287040 kB\nKernel uptime is 0 day(s), 4 hour(s), 43 minute(s), 12 second(s)\n\nLast reset \n  Reason: Unknown\n  System version: \n  Service: \n\nplugin\n  Core Plugin, Ethernet Plugin\n\nActive Package(s):\n        \n"
  },
  "id": 1
}

Expected output should be this one as when using "show version":

-          Method: NXAPI-CLI
-          Message format: json-rpc
-          Command type: cli
-          Error action: Select
-          Command: show version
-          Result: output as json structure

Request:

[
  {
    "jsonrpc": "2.0",
    "method": "cli",
    "params": {
      "cmd": "show version",
      "version": 1
    },
    "id": 1
  }
]

Response:

{
  "jsonrpc": "2.0",
  "result": {
    "body": {
      "header_str": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: http://www.cisco.com/tac\nDocuments: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html\nCopyright (c) 2002-2020, Cisco Systems, Inc. All rights reserved.\nThe copyrights to certain works contained herein are owned by\nother third parties and are used and distributed under license.\nSome parts of this software are covered under the GNU Public\nLicense. A copy of the license is available at\nhttp://www.gnu.org/licenses/gpl.html.\n\nNexus 9000v is a demo version of the Nexus Operating System\n",
      "bios_ver_str": "",
      "kickstart_ver_str": "9.3(5)",
      "nxos_ver_str": "9.3(5)",
      "bios_cmpl_time": "",
      "kick_file_name": "bootflash:///nxos.9.3.5.bin",
      "nxos_file_name": "bootflash:///nxos.9.3.5.bin",
      "kick_cmpl_time": "7/20/2020 20:00:00",
      "nxos_cmpl_time": "7/20/2020 20:00:00",
      "kick_tmstmp": "07/21/2020 06:30:11",
      "nxos_tmstmp": "07/21/2020 06:30:11",
      "chassis_id": "Nexus9000 C9300v Chassis",
      "cpu_name": "Intel(R) Xeon(R) Gold 5117 CPU @ 2.00GHz",
      "memory": "8163416",
      "mem_type": "kB",
      "proc_board_id": "91GE7OX8H3P",
      "host_name": "switch",
      "bootflash_size": "4287040",
      "kern_uptm_days": "0",
      "kern_uptm_hrs": "4",
      "kern_uptm_mins": "39",
      "kern_uptm_secs": "7",
      "rr_reason": "Unknown",
      "rr_sys_ver": "",
      "rr_service": "",
      "plugins": "Core Plugin, Ethernet Plugin",
      "manufacturer": "Cisco Systems, Inc.",
      "TABLE_package_list": {
        "ROW_package_list": {
          "package_id": ""
        }
      }
    }
  },
  "id": 1
}
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.