You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value IFACE (\S+)
Value GROUP (\d+)
Value PRIORITY (\d+)
Value PREEMPT (.)
Value STATE (\w+)
Value ACTIVE (\S+)
Value STANDBY (\S+)
Value VIRTUALIP (\S+)
Start
^${IFACE}\s+${GROUP}\s+${PRIORITY}\s+${PREEMPT}\s+${STATE}\s+${ACTIVE}\s+${STANDBY}\s+${VIRTUALIP} -> Record
^${IFACE}$$
^\s+${GROUP}\s+${PRIORITY}\s+${PREEMPT}\s+${STATE}\s+${ACTIVE}\s+${STANDBY}\s+${VIRTUALIP} -> Record
SAMPLE COMMAND OUTPUT
same as original
SUMMARY
the original template only works with output in one line as this:
Interface Grp Pri P State Active Standby Virtual IP
Te0/0/0.230 1 100 P Active local 10.6.109.202 10.6.109.200
but with this modification also works this two lines:
Interface Grp Pri P State Active Standby Virtual IP
Te0/0/0.1731
1 100 P Active local 192.168.40.3 192.168.40.4
Also the index line only works with this command: "show standby brief" which list ALL interfaces, but some times you can only want ONE interface, so i change my index line from:
ISSUE TYPE
TEMPLATE USING
Value IFACE (\S+)
Value GROUP (\d+)
Value PRIORITY (\d+)
Value PREEMPT (.)
Value STATE (\w+)
Value ACTIVE (\S+)
Value STANDBY (\S+)
Value VIRTUALIP (\S+)
Start
^${IFACE}\s+${GROUP}\s+${PRIORITY}\s+${PREEMPT}\s+${STATE}\s+${ACTIVE}\s+${STANDBY}\s+${VIRTUALIP} -> Record
^${IFACE}$$
^\s+${GROUP}\s+${PRIORITY}\s+${PREEMPT}\s+${STATE}\s+${ACTIVE}\s+${STANDBY}\s+${VIRTUALIP} -> Record
SAMPLE COMMAND OUTPUT
same as original
SUMMARY
the original template only works with output in one line as this:
Interface Grp Pri P State Active Standby Virtual IP
Te0/0/0.230 1 100 P Active local 10.6.109.202 10.6.109.200
but with this modification also works this two lines:
Interface Grp Pri P State Active Standby Virtual IP
Te0/0/0.1731
1 100 P Active local 192.168.40.3 192.168.40.4
Also the index line only works with this command: "show standby brief" which list ALL interfaces, but some times you can only want ONE interface, so i change my index line from:
cisco_ios_show_standby_brief.template, .*, cisco_ios, sh[[ow]] standby br[[ief]]
to:
cisco_ios_show_standby_brief.template, ., cisco_ios, sh[[ow]] standby([ \S]) br[[ief]]
So i can use any os these forms:
show standby brief
show standby Te0/0/0.1731 brief
The text was updated successfully, but these errors were encountered: