tRPOperPSDefActBgpMedExpr
TIMETRA-ROUTE-POLICY-MIB ·
.1.3.6.1.4.1.6527.3.1.2.17.1.1.37.1.34
Object
column TPolicyBgpMedExpression
The value of tRPOperPSDefActBgpMedExpr indicates the expression that
is used to calculate the BGP MED value.
The value of this object is ignored when the object
tRPOperPSDefActBgpMedSource has a value different from 'expression'.
Context
- MIB
- TIMETRA-ROUTE-POLICY-MIB
- OID
.1.3.6.1.4.1.6527.3.1.2.17.1.1.37.1.34- Type
- column
- Access
- readonly
- Status
- current
- Parent
- tRPOperPSDefActParamsExtEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'TIMETRA-ROUTE-POLICY-MIB' -M '/opt/observium/mibs/nokia:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TIMETRA-ROUTE-POLICY-MIB::tRPOperPSDefActBgpMedExpr'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TIMETRA-ROUTE-POLICY-MIB' -M '/opt/observium/mibs/nokia:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TIMETRA-ROUTE-POLICY-MIB::tRPOperPSDefActBgpMedExpr.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TIMETRA-ROUTE-POLICY-MIB' -M '/opt/observium/mibs/nokia:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TIMETRA-ROUTE-POLICY-MIB::tRPOperPSDefActBgpMedExpr'
Syntax
- Source
- TPolicyBgpMedExpression
- Base type
OctetString- Based on
- SNMPv2-TCDisplayString
Type Description
TPolicyBgpMedExpression specifies an expression containing terms and
operators.
A term is either: 1) _igp_ (predefined variable holding the IGP cost)
2) _med_ (predefined variable holding the received MED value) 3) a
floating point value 4) a policy variable 5) another expression
surrounded by parentheses()
A BGP MED expression must contain at least one occurrence of either
'_igp_' or '_med'.
The list of supported operators are:
1) '*' - multiply
2) '+' - add
3) '-' - subtract
BGP MED expression examples:
- '_med_ * 0.125'
- '(_igp + 100) * @med-multiplier@'
- '_med_ + _igp_ + 50'
Values & Constraints
Type Constraints
range: 0..64
Conformance
Member of