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

Adding 4 templates #192

Merged
merged 3 commits into from
Apr 30, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
18 changes: 18 additions & 0 deletions templates/arista_eos_show_environment_cooling.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value Required FAN (\S+)
Value STATUS (\S+\s?\S+)
Value CONFIG_SPEED (\S+)
Value ACTUAL_SPEED (\S+)
Value Filldown SYS_COOLING_STATUS (\S+)
Value Filldown AMBIENT_TEMP (\S+)
Value Filldown AIRFLOW (\S+)

Start
^System\scooling\sstatus\sis:\s${SYS_COOLING_STATUS}
^Ambient\stemperature:\s${AMBIENT_TEMP}
^Airflow:\s${AIRFLOW}
^Fan\s+Status\s+Configured\sSpeed\s+Actual\sSpeed
^-+\s+-+\s+-+\s+-+
^${FAN}\s+${STATUS}\s+${CONFIG_SPEED}\%?\s+${ACTUAL_SPEED}\%? -> Record
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"
19 changes: 19 additions & 0 deletions templates/arista_eos_show_environment_temperature.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Value Required SENSOR (\S+)
Value DESCRIPTION ((\s|\S)+?)
Value CURRENT_VALUE (\S+)
Value SETPOINT (\S+)
Value ALERT_LIMIT (\S+)
Value CRITICAL_LIMIT (\S+)
Value Filldown MODULE (\S+\s\d+)

Start
^System\stemperature\sstatus\sis
^\s+Alert\s+Critical
^\s+Temp\s+Setpoint\s+
^Sensor\s+Description\s+\(C\)\s+
^-+\s+-+\s+-+\s+-+\s+-+\s+-+
^${MODULE}:
^${SENSOR}\s+${DESCRIPTION}\s+${CURRENT_VALUE}\s+\(${SETPOINT}\)\s+\S+\s+${ALERT_LIMIT}\s+${CRITICAL_LIMIT} -> Record
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Value Required PORT (\S+)
Value Filldown TYPE ((\S|\s)+?)
Value CURRENT_VALUE (\S+)
Value HIGH_ALARM_THRESHOLD (\S+)
Value HIGH_WARN_THRESHOLD (\S+)
Value LOW_ALARM_THRESHOLD (\S+)
Value LOW_WARN_THRESHOLD (\S+)


Start
^mA:\smilliamperes,\s+
^\+\+\s:\shigh\salarm,\s+
^A2D\sreadouts\s+
^The\sthreshold\svalues\sare\scalibrated\.
^\s+High\sAlarm\s+\S+
^\s+${TYPE}\s+Threshold\s+ -> Values
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"

Values
^Port\s+\S+
^-+\s+-+\s+-+\s+-+\s+-+\s+-+\s+
^${PORT}\s+${CURRENT_VALUE}\s+${HIGH_ALARM_THRESHOLD}\s+${HIGH_WARN_THRESHOLD}\s+${LOW_ALARM_THRESHOLD}\s+${LOW_WARN_THRESHOLD} -> Record
^\s+High\sAlarm\s+High Warn\s+Low\sAlarm\s+Low\sWarn -> Start
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"
16 changes: 16 additions & 0 deletions templates/cisco_nxos_show_environment_temperature.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Value CURRENT_VALUE (\d+)
Value MAJOR_THRESHOLD (\d+)
Value MINOR_THRESHOLD (\d+)
Value STATUS (\S+)
Value MODULE (\S+)
Value SENSOR ((\s|\S)+?)

Start
^Temperature
^-+
^Module\s+Sensor\s+MajorThresh\s+
^(\s+\(Celsius\))+
^${MODULE}\s+${SENSOR}\s+${MAJOR_THRESHOLD}\s+${MINOR_THRESHOLD}\s+${CURRENT_VALUE}\s+${STATUS} -> Record
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"
4 changes: 4 additions & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ alcatel_sros_show_service_id_base.template, .*, alcatel_sros, sh[[ow]] serv[[ice
alcatel_sros_oam_mac-ping.template, .*, alcatel_sros, oam mac-pi[[ng]]

arista_eos_show_mac_security_participants_detail.template, .*, arista_eos, sh[[ow]] ma[[c]] secu[[rity]] part[[icipants]] det[[ail]]
arista_eos_show_interfaces_transceiver_detail.template, .*, arista_eos, sh[[ow]] inte[[rfaces]] tr[[ansceiver]] de[[tail]]
arista_eos_show_mac_security_mka_counters.template, .*, arista_eos, sh[[ow]] ma[[c]] secu[[rity]] mk[[a]] count[[ers]]
arista_eos_show_mac_security_interface.template, .*, arista_eos, sh[[ow]] ma[[c]] secu[[rity]] int[[erface]]
arista_eos_show_interfaces_transceiver.template, .*, arista_eos, sh[[ow]] inte[[rfaces]] tr[[ansceiver]]
arista_eos_show_lldp_neighbors_detail.template, .*, arista_eos, sh[[ow]] ll[[dp]] nei[[ghbors]] d[[etail]]
arista_eos_show_environment_temperature.template, .*, arista_eos, sh[[ow]] en[[vironment]] t[[emperature]]
arista_eos_show_ip_interface_brief.template, .*, arista_eos, sh[[ow]] i[[p]] int[[erface]] br[[ief]]
arista_eos_show_environment_cooling.template, .*, arista_eos, sh[[ow]] en[[vironment]] c[[ooling]]
arista_eos_show_interfaces_status.template, .*, arista_eos, sh[[ow]] int[[erfaces]] st[[atus]]
arista_eos_show_mac_address-table.template, .*, arista_eos, sh[[ow]] m[[ac]] ad[[dress-table]]
arista_eos_show_ip_ospf_database.template, .*, arista_eos, sh[[ow]] i[[p]] o[[spf]] data[[base]]
Expand Down Expand Up @@ -135,6 +138,7 @@ cisco_ios_show_vrf.template, .*, cisco_ios, sh[[ow]] vrf
cisco_ios_dir.template, .*, cisco_ios, dir

cisco_nxos_show_interface_transceiver_details.template, .*, cisco_nxos, sh[[ow]] int[[erface]] tra[[nsceiver]] de[[tails]]
cisco_nxos_show_environment_temperature.template, .*, cisco_nxos, sh[[ow]] env[[ironment]] t[[emperature]]
cisco_nxos_show_ip_dhcp_relay_address.template, .*, cisco_nxos, sh[[ow]] ip dh[[cp]] r[[elay]] a[[ddress]]
cisco_nxos_show_lldp_neighbors_detail.template, .*, cisco_nxos, sh[[ow]] ll[[dp]] nei[[ghbors]] d[[etail]]
cisco_nxos_show_cdp_neighbors_detail.template, .*, cisco_nxos, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
Expand Down
Loading