Closed HP41 closed 4 years ago
I believe the YAML library we happen to use supports them, though personally I'd advise using them in favour of a proper templating system.
Ah, I see. I did try it on go playground and found the same result. Sometimes yaml.v3 worked better even.
Sometimes even noticed they overwrite each other rather than merge as per original spec.
Anyways for now, closing. Thank you!
Host operating system: output of
uname -a
Host:
Linux <node_name> 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
snm-generator container:Linux e30a47f47531 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 GNU/Linux
snmp_exporter version: output of
snmp_exporter -version
v0.18.0 and master
What device/snmpwalk OID are you using?
Any
If this is a new device, please link to the MIB(s).
What did you do that produced an error?
No error
What did you expect to see?
YAML anchors and aliases used in generator should be rendered out before generating snmp.yml.
What did you see instead?
snmp.yml didn't reflect the usage of anchors and aliases.
generator.yml
generator.yml
``` modules: common: &common walk: - sysName - sysDescr - sysLocation - sysContact - sysUpTime - sysORLastChange - snmpInPkts - snmpOutPkts - snmpInBadVersions - snmpInBadCommunityNames - snmpInBadCommunityUses - snmpInASNParseErrs - snmpInTooBigs - snmpInNoSuchNames - snmpInBadValues - snmpInReadOnlys - snmpInGenErrs - snmpInTotalReqVars - snmpInTotalSetVars - snmpInGetRequests - snmpInGetNexts - snmpInSetRequests - snmpInGetResponses - snmpInTraps - snmpOutTooBigs - snmpOutNoSuchNames - snmpOutBadValues - snmpOutGenErrs - snmpOutGetRequests - snmpOutGetNexts - snmpOutSetRequests - snmpOutGetResponses - snmpOutTraps - snmpSilentDrops - snmpProxyDrops interfaces_non_hc: &interfaces_non_hc walk: - interfaces lookups: - { source_indexes: [ifIndex], lookup: ifAlias } - { source_indexes: [ifIndex], lookup: ifDescr } # 1.3.6.1.2.1.2.2.1.2 - { source_indexes: [ifIndex], lookup: ifName } # 1.3.6.1.2.1.31.1.1.1.1 overrides: ifIndex: { ignore: true } ifAlias: { ignore: true } ifDescr: { ignore: true } ifName: { ignore: true } ifAdminStatus: { ignore: true } ifPromiscuousMode: { ignore: true } ifLinkUpDownTrapEnable: { ignore: true } ifType: { type: EnumAsInfo } ifPhysAddress: { type: PhysAddress48 } ifOperStatus: { type: EnumAsStateSet } dell_ups: <<: *common <<: *interfaces_non_hc walk: - productIDDisplayName - productIDDescription - productIDVersion - productIDBuildNumber - physicalIdentSerialNumber - physicalOutputPeakConsumption - physicalOutputPeakConsumptionTimestamp - physicalOutputCumulativeConsumption - physicalIdentConverterType - physicalEnvironmentValuesTemperatureUnit - productStatusGlobalStatus - physicalOutputPresentConsumption - physicalOutputVA - physicalRectifierPosVoltage - physicalRectifierNegVoltage - physicalUPSRuntimeToShutdown - physicalBatteryABMStatus - physicalBatteryTestStatus - physicalBatterySecondsRemaining - physicalEnvironmentSensorName - physicalEnvironmentValuesTemperature - physicalEnvironmentValuesHumidity - physicalEnvironmentValuesTemperatureHysteresis - physicalEnvironmentValuesHumidityHysteresis - physicalEnvironmentInputTable lookups: - { source_indexes: [physicalEnvironmentInputIndex], lookup: physicalEnvironmentInputName } - { source_indexes: [physicalEnvironmentInputIndex], lookup: physicalEnvironmentInputOpenedState } - { source_indexes: [physicalEnvironmentInputIndex], lookup: physicalEnvironmentInputClosedState } overrides: physicalEnvironmentInputIndex: { ignore: true } physicalEnvironmentInputName: { ignore: true } physicalEnvironmentInputOpenedState: { ignore: true } physicalEnvironmentInputClosedState: { ignore: true } productStatusGlobalStatus: { type: EnumAsStateSet } physicalIdentConverterType: { type: EnumAsInfo } physicalBatteryABMStatus: { type: EnumAsStateSet } physicalBatteryTestStatus: { type: EnumAsStateSet } physicalEnvironmentValuesTemperatureUnit: { type: EnumAsInfo } physicalEnvironmentInputState: { type: EnumAsStateSet } ```snmp.yml
snmp.yml
``` common: get: - 1.3.6.1.2.1.1.1.0 - 1.3.6.1.2.1.1.3.0 - 1.3.6.1.2.1.1.4.0 - 1.3.6.1.2.1.1.5.0 - 1.3.6.1.2.1.1.6.0 - 1.3.6.1.2.1.1.8.0 - 1.3.6.1.2.1.11.1.0 - 1.3.6.1.2.1.11.10.0 - 1.3.6.1.2.1.11.11.0 - 1.3.6.1.2.1.11.12.0 - 1.3.6.1.2.1.11.13.0 - 1.3.6.1.2.1.11.14.0 - 1.3.6.1.2.1.11.15.0 - 1.3.6.1.2.1.11.16.0 - 1.3.6.1.2.1.11.17.0 - 1.3.6.1.2.1.11.18.0 - 1.3.6.1.2.1.11.19.0 - 1.3.6.1.2.1.11.2.0 - 1.3.6.1.2.1.11.20.0 - 1.3.6.1.2.1.11.21.0 - 1.3.6.1.2.1.11.22.0 - 1.3.6.1.2.1.11.24.0 - 1.3.6.1.2.1.11.25.0 - 1.3.6.1.2.1.11.26.0 - 1.3.6.1.2.1.11.27.0 - 1.3.6.1.2.1.11.28.0 - 1.3.6.1.2.1.11.29.0 - 1.3.6.1.2.1.11.3.0 - 1.3.6.1.2.1.11.31.0 - 1.3.6.1.2.1.11.32.0 - 1.3.6.1.2.1.11.4.0 - 1.3.6.1.2.1.11.5.0 - 1.3.6.1.2.1.11.6.0 - 1.3.6.1.2.1.11.8.0 - 1.3.6.1.2.1.11.9.0 metrics: - name: sysDescr oid: 1.3.6.1.2.1.1.1 type: DisplayString help: A textual description of the entity - 1.3.6.1.2.1.1.1 - name: sysUpTime oid: 1.3.6.1.2.1.1.3 type: gauge help: The time (in hundredths of a second) since the network management portion of the system was last re-initialized. - 1.3.6.1.2.1.1.3 - name: sysContact oid: 1.3.6.1.2.1.1.4 type: DisplayString help: The textual identification of the contact person for this managed node, together with information on how to contact this person - 1.3.6.1.2.1.1.4 - name: sysName oid: 1.3.6.1.2.1.1.5 type: DisplayString help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5 - name: sysLocation oid: 1.3.6.1.2.1.1.6 type: DisplayString help: The physical location of this node (e.g., 'telephone closet, 3rd floor') - 1.3.6.1.2.1.1.6 - name: sysORLastChange oid: 1.3.6.1.2.1.1.8 type: gauge help: The value of sysUpTime at the time of the most recent change in state or value of any instance of sysORID. - 1.3.6.1.2.1.1.8 - name: snmpInPkts oid: 1.3.6.1.2.1.11.1 type: counter help: The total number of messages delivered to the SNMP entity from the transport service. - 1.3.6.1.2.1.11.1 - name: snmpInBadValues oid: 1.3.6.1.2.1.11.10 type: counter help: The total number of SNMP PDUs which were delivered to the SNMP protocol entity and for which the value of the error-status field was `badValue'. - 1.3.6.1.2.1.11.10 - name: snmpInReadOnlys oid: 1.3.6.1.2.1.11.11 type: counter help: The total number valid SNMP PDUs which were delivered to the SNMP protocol entity and for which the value of the error-status field was `readOnly' - 1.3.6.1.2.1.11.11 - name: snmpInGenErrs oid: 1.3.6.1.2.1.11.12 type: counter help: The total number of SNMP PDUs which were delivered to the SNMP protocol entity and for which the value of the error-status field was `genErr'. - 1.3.6.1.2.1.11.12 - name: snmpInTotalReqVars oid: 1.3.6.1.2.1.11.13 type: counter help: The total number of MIB objects which have been retrieved successfully by the SNMP protocol entity as the result of receiving valid SNMP Get-Request and Get-Next PDUs. - 1.3.6.1.2.1.11.13 - name: snmpInTotalSetVars oid: 1.3.6.1.2.1.11.14 type: counter help: The total number of MIB objects which have been altered successfully by the SNMP protocol entity as the result of receiving valid SNMP Set-Request PDUs. - 1.3.6.1.2.1.11.14 - name: snmpInGetRequests oid: 1.3.6.1.2.1.11.15 type: counter help: The total number of SNMP Get-Request PDUs which have been accepted and processed by the SNMP protocol entity. - 1.3.6.1.2.1.11.15 - name: snmpInGetNexts oid: 1.3.6.1.2.1.11.16 type: counter help: The total number of SNMP Get-Next PDUs which have been accepted and processed by the SNMP protocol entity. - 1.3.6.1.2.1.11.16 - name: snmpInSetRequests oid: 1.3.6.1.2.1.11.17 type: counter help: The total number of SNMP Set-Request PDUs which have been accepted and processed by the SNMP protocol entity. - 1.3.6.1.2.1.11.17 - name: snmpInGetResponses oid: 1.3.6.1.2.1.11.18 type: counter help: The total number of SNMP Get-Response PDUs which have been accepted and processed by the SNMP protocol entity. - 1.3.6.1.2.1.11.18 - name: snmpInTraps oid: 1.3.6.1.2.1.11.19 type: counter help: The total number of SNMP Trap PDUs which have been accepted and processed by the SNMP protocol entity. - 1.3.6.1.2.1.11.19 - name: snmpOutPkts oid: 1.3.6.1.2.1.11.2 type: counter help: The total number of SNMP Messages which were passed from the SNMP protocol entity to the transport service. - 1.3.6.1.2.1.11.2 - name: snmpOutTooBigs oid: 1.3.6.1.2.1.11.20 type: counter help: The total number of SNMP PDUs which were generated by the SNMP protocol entity and for which the value of the error-status field was `tooBig.' - 1.3.6.1.2.1.11.20 - name: snmpOutNoSuchNames oid: 1.3.6.1.2.1.11.21 type: counter help: The total number of SNMP PDUs which were generated by the SNMP protocol entity and for which the value of the error-status was `noSuchName'. - 1.3.6.1.2.1.11.21 - name: snmpOutBadValues oid: 1.3.6.1.2.1.11.22 type: counter help: The total number of SNMP PDUs which were generated by the SNMP protocol entity and for which the value of the error-status field was `badValue'. - 1.3.6.1.2.1.11.22 - name: snmpOutGenErrs oid: 1.3.6.1.2.1.11.24 type: counter help: The total number of SNMP PDUs which were generated by the SNMP protocol entity and for which the value of the error-status field was `genErr'. - 1.3.6.1.2.1.11.24 - name: snmpOutGetRequests oid: 1.3.6.1.2.1.11.25 type: counter help: The total number of SNMP Get-Request PDUs which have been generated by the SNMP protocol entity. - 1.3.6.1.2.1.11.25 - name: snmpOutGetNexts oid: 1.3.6.1.2.1.11.26 type: counter help: The total number of SNMP Get-Next PDUs which have been generated by the SNMP protocol entity. - 1.3.6.1.2.1.11.26 - name: snmpOutSetRequests oid: 1.3.6.1.2.1.11.27 type: counter help: The total number of SNMP Set-Request PDUs which have been generated by the SNMP protocol entity. - 1.3.6.1.2.1.11.27 - name: snmpOutGetResponses oid: 1.3.6.1.2.1.11.28 type: counter help: The total number of SNMP Get-Response PDUs which have been generated by the SNMP protocol entity. - 1.3.6.1.2.1.11.28 - name: snmpOutTraps oid: 1.3.6.1.2.1.11.29 type: counter help: The total number of SNMP Trap PDUs which have been generated by the SNMP protocol entity. - 1.3.6.1.2.1.11.29 - name: snmpInBadVersions oid: 1.3.6.1.2.1.11.3 type: counter help: The total number of SNMP messages which were delivered to the SNMP entity and were for an unsupported SNMP version. - 1.3.6.1.2.1.11.3 - name: snmpSilentDrops oid: 1.3.6.1.2.1.11.31 type: counter help: The total number of Confirmed Class PDUs (such as GetRequest-PDUs, GetNextRequest-PDUs, GetBulkRequest-PDUs, SetRequest-PDUs, and InformRequest-PDUs) delivered to the SNMP entity which were silently dropped because the size of a reply containing an alternate Response Class PDU (such as a Response-PDU) with an empty variable-bindings field was greater than either a local constraint or the maximum message size associated with the originator of the request. - 1.3.6.1.2.1.11.31 - name: snmpProxyDrops oid: 1.3.6.1.2.1.11.32 type: counter help: The total number of Confirmed Class PDUs (such as GetRequest-PDUs, GetNextRequest-PDUs, GetBulkRequest-PDUs, SetRequest-PDUs, and InformRequest-PDUs) delivered to the SNMP entity which were silently dropped because the transmission of the (possibly translated) message to a proxy target failed in a manner (other than a time-out) such that no Response Class PDU (such as a Response-PDU) could be returned. - 1.3.6.1.2.1.11.32 - name: snmpInBadCommunityNames oid: 1.3.6.1.2.1.11.4 type: counter help: The total number of community-based SNMP messages (for example, SNMPv1) delivered to the SNMP entity which used an SNMP community name not known to said entity - 1.3.6.1.2.1.11.4 - name: snmpInBadCommunityUses oid: 1.3.6.1.2.1.11.5 type: counter help: The total number of community-based SNMP messages (for example, SNMPv1) delivered to the SNMP entity which represented an SNMP operation that was not allowed for the SNMP community named in the message - 1.3.6.1.2.1.11.5 - name: snmpInASNParseErrs oid: 1.3.6.1.2.1.11.6 type: counter help: The total number of ASN.1 or BER errors encountered by the SNMP entity when decoding received SNMP messages. - 1.3.6.1.2.1.11.6 - name: snmpInTooBigs oid: 1.3.6.1.2.1.11.8 type: counter help: The total number of SNMP PDUs which were delivered to the SNMP protocol entity and for which the value of the error-status field was `tooBig'. - 1.3.6.1.2.1.11.8 - name: snmpInNoSuchNames oid: 1.3.6.1.2.1.11.9 type: counter help: The total number of SNMP PDUs which were delivered to the SNMP protocol entity and for which the value of the error-status field was `noSuchName'. - 1.3.6.1.2.1.11.9 dell_ups: walk: - 1.3.6.1.4.1.674.10902.2.120.7.4 get: - 1.3.6.1.4.1.674.10895.3000.1.2.110.1.0 - 1.3.6.1.4.1.674.10902.2.100.1.0 - 1.3.6.1.4.1.674.10902.2.100.2.0 - 1.3.6.1.4.1.674.10902.2.100.4.0 - 1.3.6.1.4.1.674.10902.2.100.5.0 - 1.3.6.1.4.1.674.10902.2.120.1.2.0 - 1.3.6.1.4.1.674.10902.2.120.1.3.0 - 1.3.6.1.4.1.674.10902.2.120.2.4.0 - 1.3.6.1.4.1.674.10902.2.120.2.5.0 - 1.3.6.1.4.1.674.10902.2.120.2.6.0 - 1.3.6.1.4.1.674.10902.2.120.2.7.0 - 1.3.6.1.4.1.674.10902.2.120.2.9.0 - 1.3.6.1.4.1.674.10902.2.120.3.1.0 - 1.3.6.1.4.1.674.10902.2.120.3.2.0 - 1.3.6.1.4.1.674.10902.2.120.4.3.0 - 1.3.6.1.4.1.674.10902.2.120.5.1.0 - 1.3.6.1.4.1.674.10902.2.120.5.2.0 - 1.3.6.1.4.1.674.10902.2.120.5.3.0 - 1.3.6.1.4.1.674.10902.2.120.7.2.0 - 1.3.6.1.4.1.674.10902.2.120.7.3.1.0 - 1.3.6.1.4.1.674.10902.2.120.7.3.2.0 - 1.3.6.1.4.1.674.10902.2.120.7.3.3.0 - 1.3.6.1.4.1.674.10902.2.120.7.3.6.0 - 1.3.6.1.4.1.674.10902.2.120.7.3.9.0 metrics: - name: productStatusGlobalStatus oid: 1.3.6.1.4.1.674.10895.3000.1.2.110.1 type: EnumAsStateSet help: Current status of the product.This is a rollup for the entire product - 1.3.6.1.4.1.674.10895.3000.1.2.110.1 enum_values: 3: ok 4: non-critical 5: critical - name: productIDDisplayName oid: 1.3.6.1.4.1.674.10902.2.100.1 type: DisplayString help: Name of this product for display purposes. - 1.3.6.1.4.1.674.10902.2.100.1 - name: productIDDescription oid: 1.3.6.1.4.1.674.10902.2.100.2 type: DisplayString help: A short description of this product. - 1.3.6.1.4.1.674.10902.2.100.2 - name: productIDVersion oid: 1.3.6.1.4.1.674.10902.2.100.4 type: DisplayString help: The version of this product. - 1.3.6.1.4.1.674.10902.2.100.4 - name: productIDBuildNumber oid: 1.3.6.1.4.1.674.10902.2.100.5 type: DisplayString help: The software build number of the product populating the MIB. - 1.3.6.1.4.1.674.10902.2.100.5 - name: physicalIdentSerialNumber oid: 1.3.6.1.4.1.674.10902.2.120.1.2 type: DisplayString help: UPS Serial number. - 1.3.6.1.4.1.674.10902.2.120.1.2 - name: physicalIdentConverterType oid: 1.3.6.1.4.1.674.10902.2.120.1.3 type: EnumAsInfo help: UPS type. - 1.3.6.1.4.1.674.10902.2.120.1.3 enum_values: 1: lineInteractive 2: onLine 3: onLineUnitaryParallel 4: onLineParallelWithNS 5: onLineHotStandbyRedundancy - name: physicalOutputPeakConsumption oid: 1.3.6.1.4.1.674.10902.2.120.2.4 type: gauge help: Statistical value of the maximum RMS Watts the UPS has seen since the last time this statistic was reset. - 1.3.6.1.4.1.674.10902.2.120.2.4 - name: physicalOutputPeakConsumptionTimestamp oid: 1.3.6.1.4.1.674.10902.2.120.2.5 type: gauge help: Time and date stamp of the last time the Peak Consumption Watts value was updated. - 1.3.6.1.4.1.674.10902.2.120.2.5 - name: physicalOutputPresentConsumption oid: 1.3.6.1.4.1.674.10902.2.120.2.6 type: gauge help: Derived by averaging the watt second consumption over the past hour - 1.3.6.1.4.1.674.10902.2.120.2.6 - name: physicalOutputCumulativeConsumption oid: 1.3.6.1.4.1.674.10902.2.120.2.7 type: gauge help: 64 bit meter value that is derived by reading the Present KWH Consumption meter once per hour and adding it to the last value of this meter - 1.3.6.1.4.1.674.10902.2.120.2.7 - name: physicalOutputVA oid: 1.3.6.1.4.1.674.10902.2.120.2.9 type: gauge help: Output VA. - 1.3.6.1.4.1.674.10902.2.120.2.9 - name: physicalRectifierPosVoltage oid: 1.3.6.1.4.1.674.10902.2.120.3.1 type: gauge help: DC bus positive voltage. - 1.3.6.1.4.1.674.10902.2.120.3.1 - name: physicalRectifierNegVoltage oid: 1.3.6.1.4.1.674.10902.2.120.3.2 type: gauge help: DC bus negative voltage. - 1.3.6.1.4.1.674.10902.2.120.3.2 - name: physicalUPSRuntimeToShutdown oid: 1.3.6.1.4.1.674.10902.2.120.4.3 type: gauge help: Number of seconds remaining until UPS will receive a ShutdownAfterDelay command - 1.3.6.1.4.1.674.10902.2.120.4.3 - name: physicalBatteryABMStatus oid: 1.3.6.1.4.1.674.10902.2.120.5.1 type: EnumAsStateSet help: Advanced Battery Monitoring satus. - 1.3.6.1.4.1.674.10902.2.120.5.1 enum_values: 1: abmCharging 2: abmDischarging 3: abmFloating 4: abmResting 5: abmOff - name: physicalBatteryTestStatus oid: 1.3.6.1.4.1.674.10902.2.120.5.2 type: EnumAsStateSet help: Battery test satus. - 1.3.6.1.4.1.674.10902.2.120.5.2 enum_values: 1: donePassed 2: doneWarning 3: doneError 4: aborted 5: inProgress 6: noTestIniated 7: testScheduled - name: physicalBatterySecondsRemaining oid: 1.3.6.1.4.1.674.10902.2.120.5.3 type: gauge help: Battery remaining time calculated by the autonometer. - 1.3.6.1.4.1.674.10902.2.120.5.3 - name: physicalEnvironmentSensorName oid: 1.3.6.1.4.1.674.10902.2.120.7.2 type: DisplayString help: User name of EMP. - 1.3.6.1.4.1.674.10902.2.120.7.2 - name: physicalEnvironmentValuesTemperatureUnit oid: 1.3.6.1.4.1.674.10902.2.120.7.3.1 type: EnumAsInfo help: Temperature unit setting. - 1.3.6.1.4.1.674.10902.2.120.7.3.1 enum_values: 1: celsius 2: fahrenheit - name: physicalEnvironmentValuesTemperature oid: 1.3.6.1.4.1.674.10902.2.120.7.3.2 type: gauge help: Current temperature value in 0.1 degree Celsius. - 1.3.6.1.4.1.674.10902.2.120.7.3.2 - name: physicalEnvironmentValuesHumidity oid: 1.3.6.1.4.1.674.10902.2.120.7.3.3 type: gauge help: Current humidity value in 0.1 percents. - 1.3.6.1.4.1.674.10902.2.120.7.3.3 - name: physicalEnvironmentValuesTemperatureHysteresis oid: 1.3.6.1.4.1.674.10902.2.120.7.3.6 type: gauge help: Temperature hysteresis in units of degree Celsius. - 1.3.6.1.4.1.674.10902.2.120.7.3.6 - name: physicalEnvironmentValuesHumidityHysteresis oid: 1.3.6.1.4.1.674.10902.2.120.7.3.9 type: gauge help: Humidity hysteresis in percents. - 1.3.6.1.4.1.674.10902.2.120.7.3.9 - name: physicalEnvironmentInputState oid: 1.3.6.1.4.1.674.10902.2.120.7.4.1.3 type: EnumAsStateSet help: Current state of input. - 1.3.6.1.4.1.674.10902.2.120.7.4.1.3 indexes: - labelname: physicalEnvironmentInputIndex type: gauge lookups: - labels: - physicalEnvironmentInputIndex labelname: physicalEnvironmentInputName oid: 1.3.6.1.4.1.674.10902.2.120.7.4.1.2 type: DisplayString - labels: - physicalEnvironmentInputIndex labelname: physicalEnvironmentInputOpenedState oid: 1.3.6.1.4.1.674.10902.2.120.7.4.1.4 type: DisplayString - labels: - physicalEnvironmentInputIndex labelname: physicalEnvironmentInputClosedState oid: 1.3.6.1.4.1.674.10902.2.120.7.4.1.5 type: DisplayString enum_values: 1: opened 2: closed interfaces_non_hc: walk: - 1.3.6.1.2.1.2 - 1.3.6.1.2.1.31.1.1.1.1 - 1.3.6.1.2.1.31.1.1.1.18 metrics: - name: ifNumber oid: 1.3.6.1.2.1.2.1 type: gauge help: The number of network interfaces (regardless of their current state) present on this system. - 1.3.6.1.2.1.2.1 - name: ifType oid: 1.3.6.1.2.1.2.2.1.3 type: EnumAsInfo help: The type of interface - 1.3.6.1.2.1.2.2.1.3 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString enum_values: 1: other 2: regular1822 3: hdh1822 4: ddnX25 5: rfc877x25 6: ethernetCsmacd 7: iso88023Csmacd 8: iso88024TokenBus 9: iso88025TokenRing 10: iso88026Man 11: starLan 12: proteon10Mbit 13: proteon80Mbit 14: hyperchannel 15: fddi 16: lapb 17: sdlc 18: ds1 19: e1 20: basicISDN 21: primaryISDN 22: propPointToPointSerial 23: ppp 24: softwareLoopback 25: eon 26: ethernet3Mbit 27: nsip 28: slip 29: ultra 30: ds3 31: sip 32: frameRelay 33: rs232 34: para 35: arcnet 36: arcnetPlus 37: atm 38: miox25 39: sonet 40: x25ple 41: iso88022llc 42: localTalk 43: smdsDxi 44: frameRelayService 45: v35 46: hssi 47: hippi 48: modem 49: aal5 50: sonetPath 51: sonetVT 52: smdsIcip 53: propVirtual 54: propMultiplexor 55: ieee80212 56: fibreChannel 57: hippiInterface 58: frameRelayInterconnect 59: aflane8023 60: aflane8025 61: cctEmul 62: fastEther 63: isdn 64: v11 65: v36 66: g703at64k 67: g703at2mb 68: qllc 69: fastEtherFX 70: channel 71: ieee80211 72: ibm370parChan 73: escon 74: dlsw 75: isdns 76: isdnu 77: lapd 78: ipSwitch 79: rsrb 80: atmLogical 81: ds0 82: ds0Bundle 83: bsc 84: async 85: cnr 86: iso88025Dtr 87: eplrs 88: arap 89: propCnls 90: hostPad 91: termPad 92: frameRelayMPI 93: x213 94: adsl 95: radsl 96: sdsl 97: vdsl 98: iso88025CRFPInt 99: myrinet 100: voiceEM 101: voiceFXO 102: voiceFXS 103: voiceEncap 104: voiceOverIp 105: atmDxi 106: atmFuni 107: atmIma 108: pppMultilinkBundle 109: ipOverCdlc 110: ipOverClaw 111: stackToStack 112: virtualIpAddress 113: mpc 114: ipOverAtm 115: iso88025Fiber 116: tdlc 117: gigabitEthernet 118: hdlc 119: lapf 120: v37 121: x25mlp 122: x25huntGroup 123: transpHdlc 124: interleave 125: fast 126: ip 127: docsCableMaclayer 128: docsCableDownstream 129: docsCableUpstream 130: a12MppSwitch 131: tunnel 132: coffee 133: ces 134: atmSubInterface 135: l2vlan 136: l3ipvlan 137: l3ipxvlan 138: digitalPowerline 139: mediaMailOverIp 140: dtm 141: dcn 142: ipForward 143: msdsl 144: ieee1394 145: if-gsn 146: dvbRccMacLayer 147: dvbRccDownstream 148: dvbRccUpstream 149: atmVirtual 150: mplsTunnel 151: srp 152: voiceOverAtm 153: voiceOverFrameRelay 154: idsl 155: compositeLink 156: ss7SigLink 157: propWirelessP2P 158: frForward 159: rfc1483 160: usb 161: ieee8023adLag 162: bgppolicyaccounting 163: frf16MfrBundle 164: h323Gatekeeper 165: h323Proxy 166: mpls 167: mfSigLink 168: hdsl2 169: shdsl 170: ds1FDL 171: pos 172: dvbAsiIn 173: dvbAsiOut 174: plc 175: nfas 176: tr008 177: gr303RDT 178: gr303IDT 179: isup 180: propDocsWirelessMaclayer 181: propDocsWirelessDownstream 182: propDocsWirelessUpstream 183: hiperlan2 184: propBWAp2Mp 185: sonetOverheadChannel 186: digitalWrapperOverheadChannel 187: aal2 188: radioMAC 189: atmRadio 190: imt 191: mvl 192: reachDSL 193: frDlciEndPt 194: atmVciEndPt 195: opticalChannel 196: opticalTransport 197: propAtm 198: voiceOverCable 199: infiniband 200: teLink 201: q2931 202: virtualTg 203: sipTg 204: sipSig 205: docsCableUpstreamChannel 206: econet 207: pon155 208: pon622 209: bridge 210: linegroup 211: voiceEMFGD 212: voiceFGDEANA 213: voiceDID 214: mpegTransport 215: sixToFour 216: gtp 217: pdnEtherLoop1 218: pdnEtherLoop2 219: opticalChannelGroup 220: homepna 221: gfp 222: ciscoISLvlan 223: actelisMetaLOOP 224: fcipLink 225: rpr 226: qam 227: lmp 228: cblVectaStar 229: docsCableMCmtsDownstream 230: adsl2 231: macSecControlledIF 232: macSecUncontrolledIF 233: aviciOpticalEther 234: atmbond 235: voiceFGDOS 236: mocaVersion1 237: ieee80216WMAN 238: adsl2plus 239: dvbRcsMacLayer 240: dvbTdm 241: dvbRcsTdma 242: x86Laps 243: wwanPP 244: wwanPP2 245: voiceEBS 246: ifPwType 247: ilan 248: pip 249: aluELP 250: gpon 251: vdsl2 252: capwapDot11Profile 253: capwapDot11Bss 254: capwapWtpVirtualRadio 255: bits 256: docsCableUpstreamRfPort 257: cableDownstreamRfPort 258: vmwareVirtualNic 259: ieee802154 260: otnOdu 261: otnOtu 262: ifVfiType 263: g9981 264: g9982 265: g9983 266: aluEpon 267: aluEponOnu 268: aluEponPhysicalUni 269: aluEponLogicalLink 270: aluGponOnu 271: aluGponPhysicalUni 272: vmwareNicTeam 277: docsOfdmDownstream 278: docsOfdmaUpstream 279: gfast 280: sdci 281: xboxWireless 282: fastdsl 283: docsCableScte55d1FwdOob 284: docsCableScte55d1RetOob 285: docsCableScte55d2DsOob 286: docsCableScte55d2UsOob 287: docsCableNdf 288: docsCableNdr 289: ptm 290: ghn 291: otnOtsi 292: otnOtuc 293: otnOduc 294: otnOtsig 295: microwaveCarrierTermination 296: microwaveRadioLinkTerminal 297: ieee8021axDrni 298: ax25 299: ieee19061nanocom - name: ifMtu oid: 1.3.6.1.2.1.2.2.1.4 type: gauge help: The size of the largest packet which can be sent/received on the interface, specified in octets - 1.3.6.1.2.1.2.2.1.4 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifSpeed oid: 1.3.6.1.2.1.2.2.1.5 type: gauge help: An estimate of the interface's current bandwidth in bits per second - 1.3.6.1.2.1.2.2.1.5 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifPhysAddress oid: 1.3.6.1.2.1.2.2.1.6 type: PhysAddress48 help: The interface's address at its protocol sub-layer - 1.3.6.1.2.1.2.2.1.6 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOperStatus oid: 1.3.6.1.2.1.2.2.1.8 type: EnumAsStateSet help: The current operational state of the interface - 1.3.6.1.2.1.2.2.1.8 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString enum_values: 1: up 2: down 3: testing 4: unknown 5: dormant 6: notPresent 7: lowerLayerDown - name: ifLastChange oid: 1.3.6.1.2.1.2.2.1.9 type: gauge help: The value of sysUpTime at the time the interface entered its current operational state - 1.3.6.1.2.1.2.2.1.9 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInOctets oid: 1.3.6.1.2.1.2.2.1.10 type: counter help: The total number of octets received on the interface, including framing characters - 1.3.6.1.2.1.2.2.1.10 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInUcastPkts oid: 1.3.6.1.2.1.2.2.1.11 type: counter help: The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were not addressed to a multicast or broadcast address at this sub-layer - 1.3.6.1.2.1.2.2.1.11 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInNUcastPkts oid: 1.3.6.1.2.1.2.2.1.12 type: counter help: The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a multicast or broadcast address at this sub-layer - 1.3.6.1.2.1.2.2.1.12 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInDiscards oid: 1.3.6.1.2.1.2.2.1.13 type: counter help: The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol - 1.3.6.1.2.1.2.2.1.13 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInErrors oid: 1.3.6.1.2.1.2.2.1.14 type: counter help: For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol - 1.3.6.1.2.1.2.2.1.14 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifInUnknownProtos oid: 1.3.6.1.2.1.2.2.1.15 type: counter help: For packet-oriented interfaces, the number of packets received via the interface which were discarded because of an unknown or unsupported protocol - 1.3.6.1.2.1.2.2.1.15 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutOctets oid: 1.3.6.1.2.1.2.2.1.16 type: counter help: The total number of octets transmitted out of the interface, including framing characters - 1.3.6.1.2.1.2.2.1.16 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutUcastPkts oid: 1.3.6.1.2.1.2.2.1.17 type: counter help: The total number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent - 1.3.6.1.2.1.2.2.1.17 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutNUcastPkts oid: 1.3.6.1.2.1.2.2.1.18 type: counter help: The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent - 1.3.6.1.2.1.2.2.1.18 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutDiscards oid: 1.3.6.1.2.1.2.2.1.19 type: counter help: The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted - 1.3.6.1.2.1.2.2.1.19 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutErrors oid: 1.3.6.1.2.1.2.2.1.20 type: counter help: For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors - 1.3.6.1.2.1.2.2.1.20 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifOutQLen oid: 1.3.6.1.2.1.2.2.1.21 type: gauge help: The length of the output packet queue (in packets). - 1.3.6.1.2.1.2.2.1.21 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifSpecific oid: 1.3.6.1.2.1.2.2.1.22 type: OctetString help: A reference to MIB definitions specific to the particular media being used to realize the interface - 1.3.6.1.2.1.2.2.1.22 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifAlias oid: 1.3.6.1.2.1.31.1.1.1.18 type: DisplayString - labels: - ifIndex labelname: ifDescr oid: 1.3.6.1.2.1.2.2.1.2 type: DisplayString - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString ```Was wondering if YAML Anchors and Aliases are supported? I'm trying to use it so as not to have repeating sections.
I believe the official documentation is here: https://yaml.org/spec/1.2/spec.html#id2785586