-
Notifications
You must be signed in to change notification settings - Fork 407
Open
Description
# * NXOS * |
For reasons I can't fathom, the nxos parser does not always seem to identify / pull out the system version correctly.
I would have thought there'd be a ["platform"]["software"]["system_version"] key & value in the Python dict of the example below, but there is not.
Sample CLI output and corresponding Parser output follow.
show version
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_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 07.68
kickstart: version 14.2(7v)
system: version 14.2(7v)
PE: version 4.2(7v)
BIOS compile time: 05/18/2020
kickstart image file is: /bootflash/aci-n9000-dk9.14.2.7v.bin
kickstart compile time: 10/17/2022 06:26:11 [10/17/2022 06:26:11]
system image file is: /bootflash/auto-s
system compile time: 10/17/2022 06:26:11 [10/17/2022 06:26:11]
Hardware
cisco N9K-C93180YC-EX ("supervisor")
Intel(R) Xeon(R) CPU @ 1.80GHz with 24499200 kB of memory.
Processor Board ID xxxxxxxxxxx
Device name: xxxxxxxxxxx
bootflash: 62522368 kB
Kernel uptime is 538 day(s), 22 hour(s), 54 minute(s), 30 second(s)
Last reset at 121000 usecs after Fri Jun 23 16:10:36 2023 GMT
Reason: reset-by-installer
System version: 14.2(7s)
Service: Upgrade
plugin
Core Plugin, Ethernet Plugin
genie parser output
{
'platform': {
'name': 'Nexus',
'os': 'NX-OS',
'software': {
'bios_version': '07.68',
'kickstart_version': '14.2(7v) [build 14.2(7v)]',
'bios_compile_time': '05/26/2020',
'kickstart_image_file': '/bootflash/aci-n9000-dk9.14.2.7v.bin',
'kickstart_compile_time': '10/17/2022 06:26:11 [10/17/2022 06:26:11]',
'system_image_file': '/bootflash/auto-s',
'system_compile_time': '10/17/2022 06:26:11 [10/17/2022 06:26:11]'
},
'hardware': {
'cpu': 'Intel(R) Pentium(R) CPU @ 1.50GHz',
'memory': '16267264 kB',
'processor_board_id': 'xxxxxxxxxxx',
'device_name': 'xxxxxxxxxxx',
'bootflash': '62522368 kB'
},
'kernel_uptime': {'days': 56, 'hours': 6, 'minutes': 13, 'seconds': 21},
'reason': 'system-power-cycled-due-to-cold-boot'
},
'_exclude': ['seconds', 'minutes', 'hours', 'days', 'essor_board_id', 'reason']
}
Metadata
Metadata
Assignees
Labels
No labels