ntc-templates icon indicating copy to clipboard operation
ntc-templates copied to clipboard

cisco_nxos_show_version.textfsm updated to get BIOS version

Open i-m-d opened this issue 1 year ago • 0 comments

Added support for getting BIOS version.

Tested in Nexus 3048, 93xx, 92xx and several versions (6.x, 7.x, 9.x and 10.x)

Lines added: Value BIOS (\d+.\d+(.+)?) ^\s+(BIOS:\s+version)\s+${BIOS}\s*$$

Templete complete: Value UPTIME ((\d+\s\w+.s.,?\s?){4}) Value LAST_REBOOT_REASON (.+) Value BIOS (\d+.\d+(.+)?) Value OS (\d+.\d+(.+)?) Value BOOT_IMAGE (.) Value PLATFORM (\w+) Value HOSTNAME (.) Value SERIAL (\w+)

Start ^\s+(BIOS:\s+version)\s+${BIOS}\s*$$ ^\s+(NXOS: version|system:\s+version)\s+${OS}\s*$$ ^\s+(NXOS|kickstart)\s+image\s+file\s+is:\s+${BOOT_IMAGE}\s*$$ ^\s+cisco\s+${PLATFORM}\s+[cC]hassis ^\s+cisco\s+Nexus\d+\s+${PLATFORM}

Cisco N5K platform

^\s+cisco\s+Nexus\s+${PLATFORM}\s+[cC]hassis ^\s+Device\s+name:\s+${HOSTNAME}$$ ^\s+cisco\s+.+-${PLATFORM}\s*

Nexus intel platform uses Board ID as serial/license

^\s*Processor\s[Bb]oard\sID\s+${SERIAL}$$ ^Kernel\s+uptime\s+is\s+${UPTIME} ^\s+Reason:\s${LAST_REBOOT_REASON} -> Record

i-m-d avatar Apr 09 '24 15:04 i-m-d