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

added juniper_junos_show_version.template #298

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ juniper_junos_show_chassis_firmware.template, .*, juniper_junos, sh[[ow]] ch[[as
juniper_junos_show_isis_adjacency.template, .*, juniper_junos, sh[[ow]] is[[is]] ad[[jacency]]
juniper_junos_show_ospf_neighbor.template, .*, juniper_junos, sh[[ow]] ospf n[[eighbor]]
juniper_junos_show_interfaces.template, .*, juniper_junos, sh[[ow]] inte[[rfaces]]
juniper_junos_show_version.template, .*, juniper_junos, sh[[ow]] ver[[sion]]

juniper_screenos_get_route.template, .*, juniper_screenos, get route

Expand Down
9 changes: 9 additions & 0 deletions templates/juniper_junos_show_version.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Value HOSTNAME (\S+)
Value MODEL (\S+)
Value VERSION ([\S\s]*)

Start
^Hostname:\s+${HOSTNAME}
^Model:\s+${MODEL}
^JUNOS\s+${VERSION} -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
parsed_sample:
- hostname: "SF08-core"
model: "srx550"
version: "Software Release [12.3X48-D55.4]"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Hostname: SF08-core
Model: srx550
JUNOS Software Release [12.3X48-D55.4]