-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
juniper_junos_show_chassis_cluster_interfaces
: Add new template (#296)
- Loading branch information
1 parent
dba54a7
commit c88ed51
Showing
10 changed files
with
812 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
templates/juniper_junos_show_chassis_cluster_interfaces.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Value Filldown CONTROL_LINK_STATUS (\S+) | ||
Value Filldown FABRIC_LINK_STATUS (\S+) | ||
Value Filldown LINK_TYPE (\S+) | ||
Value INDEX (\d+) | ||
Value INTERFACE (\S+) | ||
Value STATUS ((\S+\s*\/\s*\S+|\S+)) | ||
Value SECURITY (\S+) | ||
Value CHILD_INTERFACE (\S+) | ||
Value REDUNDANCY_GROUP (\d+|[Nn]ot\s+[Cc]onfigured) | ||
Value WEIGHT (\d+) | ||
|
||
|
||
Start | ||
^[Cc]ontrol\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ -> Control | ||
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric | ||
^${LINK_TYPE}\s+Information:\s*$$ -> Continue | ||
^[Rr]edundant-ethernet -> RedEth | ||
^[Rr]edundant-pseudo -> RedPse | ||
^[Ii]nterface\s+[Mm]onitoring -> IntMon | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Control | ||
^${LINK_TYPE}\s+interfaces:\s*$$ | ||
^\s*Index\s+Interface\s+Monitored-Status\s+Security\s*$$ | ||
^\s*Index\s+Interface\s+Monitored-Status\s+Internal-SA\s*$$ | ||
^\s*Index\s+Interface\s+Status\s+Internal-SA\s*$$ | ||
^\s*${INDEX}\s+${INTERFACE}\s+${STATUS}\s+${SECURITY}\s*$$ -> Record | ||
^\S+ -> Continue.Clearall | ||
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric | ||
^${LINK_TYPE}\s+Information:\s*$$ -> Continue | ||
^[Rr]edundant-ethernet -> RedEth | ||
^[Rr]edundant-pseudo -> RedPse | ||
^Interface\s+[Mm]onitoring -> IntMon | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Fabric | ||
^${LINK_TYPE}\s+interfaces:\s*$$ | ||
^\s*Name\s+Child-interface\s+Status\s+Security\s*$$ | ||
^\s*Name\s+Child-interface\s+Status\s*$$ | ||
^\s*\(Physical\/Monitored\)\s*$$ | ||
^\s*${INTERFACE}\s+${CHILD_INTERFACE}\s+${STATUS}\s+${SECURITY}\s*$$ -> Record | ||
^\s*${INTERFACE}\s+${CHILD_INTERFACE}\s+${STATUS}\s*$$ -> Record | ||
^\s*\S+\s*$$ | ||
^\s+\w+\d+\s*$$ | ||
^\S+ -> Continue.Clearall | ||
^${LINK_TYPE}\s+Information:\s*$$ -> Continue | ||
^[Rr]edundant-ethernet -> RedEth | ||
^[Rr]edundant-pseudo -> RedPse | ||
^Interface\s+[Mm]onitoring -> IntMon | ||
^\s*$$ | ||
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control | ||
^. -> Error | ||
|
||
RedEth | ||
^\s*Name\s+Status\s+Redundancy-group\s*$$ | ||
^\s*${INTERFACE}\s+${STATUS}\s+${REDUNDANCY_GROUP}\s*$$ -> Record | ||
^\S+ -> Continue.Clearall | ||
^${LINK_TYPE}\s+Information -> Continue | ||
^[Rr]edundant-pseudo -> RedPse | ||
^Interface\s+[Mm]onitoring -> IntMon | ||
^\s*$$ | ||
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control | ||
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric | ||
^. -> Error | ||
|
||
RedPse | ||
^\s*Name\s+Status\s+Redundancy-group\s*$$ | ||
^\s*${INTERFACE}\s+${STATUS}\s+${REDUNDANCY_GROUP}\s*$$ -> Record | ||
^\S+ -> Continue.Clearall | ||
^${LINK_TYPE}\s+Information -> Continue | ||
^[Ii]nterface\s+[Mm]onitoring -> IntMon | ||
^\s*$$ | ||
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control | ||
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric | ||
^[Rr]edundant-ethernet -> RedEth | ||
^. -> Error | ||
|
||
IntMon | ||
^\s*Interface\s+Weight\s+Status\s+Redundancy-group\s*$$ | ||
^\s*${INTERFACE}\s+${WEIGHT}\s+${STATUS}(?:\s+${REDUNDANCY_GROUP}|)\s*$$ -> Record | ||
^\s*$$ | ||
^\S+ -> Continue.Clearall | ||
^${LINK_TYPE}\s+Information:\s*$$ -> Continue | ||
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control | ||
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric | ||
^[Rr]edundant-ethernet -> RedEth | ||
^[Rr]edundant-pseudo -> RedPse | ||
^. -> Error |
192 changes: 192 additions & 0 deletions
192
...unos/show_chassis_cluster_interfaces/juniper_junos_show_chassis_cluster_interfaces.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
--- | ||
parsed_sample: | ||
- control_link_status: "Up" | ||
fabric_link_status: "" | ||
link_type: "Control" | ||
index: "0" | ||
interface: "em0" | ||
status: "Up" | ||
security: "Disabled" | ||
child_interface: "" | ||
redundancy_group: "" | ||
weight: "" | ||
- control_link_status: "Up" | ||
fabric_link_status: "" | ||
link_type: "Control" | ||
index: "1" | ||
interface: "em1" | ||
status: "Down" | ||
security: "Disabled" | ||
child_interface: "" | ||
redundancy_group: "" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "Up" | ||
link_type: "Fabric" | ||
index: "" | ||
interface: "fab0" | ||
status: "Up / Down" | ||
security: "" | ||
child_interface: "ge-0/1/0" | ||
redundancy_group: "" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "Up" | ||
link_type: "Fabric" | ||
index: "" | ||
interface: "fab1" | ||
status: "Up/Down" | ||
security: "" | ||
child_interface: "ge-6/1/0" | ||
redundancy_group: "" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth0" | ||
status: "Up" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "1" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth1" | ||
status: "Up" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "2" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth2" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth3" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth4" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth5" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth6" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth7" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth8" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth9" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth10" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-ethernet" | ||
index: "" | ||
interface: "reth11" | ||
status: "Down" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "Not configured" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "Redundant-pseudo-interface" | ||
index: "" | ||
interface: "lo0" | ||
status: "Up" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "1" | ||
weight: "" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "" | ||
index: "" | ||
interface: "ge-0/1/9" | ||
status: "Up" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "0" | ||
weight: "100" | ||
- control_link_status: "" | ||
fabric_link_status: "" | ||
link_type: "" | ||
index: "" | ||
interface: "ge-0/1/9" | ||
status: "Up" | ||
security: "" | ||
child_interface: "" | ||
redundancy_group: "" | ||
weight: "100" |
40 changes: 40 additions & 0 deletions
40
...r_junos/show_chassis_cluster_interfaces/juniper_junos_show_chassis_cluster_interfaces.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Control link status: Up | ||
|
||
Control interfaces: | ||
Index Interface Monitored-Status Internal-SA | ||
0 em0 Up Disabled | ||
1 em1 Down Disabled | ||
|
||
Fabric link status: Up | ||
|
||
Fabric interfaces: | ||
Name Child-interface Status | ||
(Physical/Monitored) | ||
fab0 ge-0/1/0 Up / Down | ||
fab0 | ||
fab1 ge-6/1/0 Up/Down | ||
fab1 | ||
|
||
Redundant-ethernet Information: | ||
Name Status Redundancy-group | ||
reth0 Up 1 | ||
reth1 Up 2 | ||
reth2 Down Not configured | ||
reth3 Down Not configured | ||
reth4 Down Not configured | ||
reth5 Down Not configured | ||
reth6 Down Not configured | ||
reth7 Down Not configured | ||
reth8 Down Not configured | ||
reth9 Down Not configured | ||
reth10 Down Not configured | ||
reth11 Down Not configured | ||
|
||
Redundant-pseudo-interface Information: | ||
Name Status Redundancy-group | ||
lo0 Up 1 | ||
|
||
Interface Monitoring: | ||
Interface Weight Status Redundancy-group | ||
ge-0/1/9 100 Up 0 | ||
ge-0/1/9 100 Up |
Oops, something went wrong.