Skip to content

Instantly share code, notes, and snippets.

@fjaeckel
Created August 21, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjaeckel/719b15ce716803ea3268bcde543d25da to your computer and use it in GitHub Desktop.
Save fjaeckel/719b15ce716803ea3268bcde543d25da to your computer and use it in GitHub Desktop.
brocadeMLXOptics:
version: 2
walk:
- 1.3.6.1.4.1.1991.1.1.3.3.6.1.1
- 1.3.6.1.4.1.1991.1.1.3.3.6.1.2
- 1.3.6.1.4.1.1991.1.1.3.3.6.1.3
- 1.3.6.1.4.1.1991.1.1.3.3.6.1.4
lookups:
- old_index: ifIndex
new_index: ifDescr
overrides:
snIfOpticalMonitoringTemperature:
regex_extracts:
Value:
- regex: '^\ +(\d+\.\d+).*$'
value: '$1'
State:
- regex: '.*N\/A.*'
value: '0'
- regex: '.*Normal'
value: '1'
- regex: '.*'
value: '2'
snIfOpticalMonitoringTxPower:
regex_extracts:
Value:
- regex: '^\ +(-\d+\.\d+).*$'
value: '$1'
State:
- regex: '.*N\/A.*'
value: '0'
- regex: '.*Normal'
value: '1'
- regex: '.*Low-Alarm'
value: '2'
- regex: '.*High-Alarm'
value: '3'
- regex: '.*'
value: '4'
snIfOpticalMonitoringRxPower:
regex_extracts:
Value:
- regex: '^\ +(-\d+\.\d+).*$'
value: '$1'
State:
- regex: '.*N\/A.*'
value: '0'
- regex: '.*Normal'
value: '1'
- regex: '.*Low-Alarm'
value: '2'
- regex: '.*High-Alarm'
value: '3'
- regex: '.*'
value: '4'
snIfOpticalMonitoringTxBiasCurrent:
regex_extracts:
Value:
- regex: '^\ +(-\d+\.\d+).*$'
value: '$1'
State:
- regex: '.*N\/A.*'
value: '0'
- regex: '.*Normal'
value: '1'
- regex: '.*Low-Alarm'
value: '2'
- regex: '.*High-Alarm'
value: '3'
- regex: '.*'
value: '4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment