Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco_nxos_show_version.textfsm updated to get BIOS version #1686

Open
i-m-d opened this issue Apr 9, 2024 · 0 comments
Open

cisco_nxos_show_version.textfsm updated to get BIOS version #1686

i-m-d opened this issue Apr 9, 2024 · 0 comments

Comments

@i-m-d
Copy link

i-m-d commented Apr 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant