pmPolicyCodeTable
POLICY-BASED-MANAGEMENT-MIB ·
.1.3.6.1.2.1.124.2
Object
table
The pmPolicyCodeTable stores the code for policy conditions and
actions.
An example of the relationships between the code table and the
policy table follows:
pmPolicyTable
AdminGroup Index ConditionScriptIndex ActionScriptIndex
A '' 1 1 2
B 'oper' 1 1 2
C 'oper' 2 3 4
pmPolicyCodeTable
AdminGroup ScriptIndex Segment Note
'' 1 1 Filter for policy A
'' 2 1 Action for policy A
'oper' 1 1 Filter for policy B
'oper' 2 1 Action 1/2 for policy B
'oper' 2 2 Action 2/2 for policy B
'oper' 3 1 Filter for policy C
'oper' 4 1 Action for policy C
In this example, there are 3 policies: 1 in the '' adminGroup,
and 2 in the 'oper' adminGroup. Policy A has been assigned
script indexes 1 and 2 (these script indexes are assigned out of
a separate pool per adminGroup), with 1 code segment each for
the filter and the action. Policy B has been assigned script
indexes 1 and 2 (out of the pool for the 'oper' adminGroup).
While the filter has 1 segment, the action is longer and is
loaded into 2 segments. Finally, Policy C has been assigned
script indexes 3 and 4, with 1 code segment each for the filter
and the action.
Context
- MIB
- POLICY-BASED-MANAGEMENT-MIB
- OID
.1.3.6.1.2.1.124.2- Type
- table
- Status
- current
- Parent
- pmMib
- Children
- 1
Net-SNMP examples
How SNMP and these commands workUse a bulk walk to inspect objects and instances beneath this OID.
Walk the subtree
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'POLICY-BASED-MANAGEMENT-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'POLICY-BASED-MANAGEMENT-MIB::pmPolicyCodeTable'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'POLICY-BASED-MANAGEMENT-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'POLICY-BASED-MANAGEMENT-MIB::pmPolicyCodeTable'
Syntax
No syntax metadata recorded.
Values & Constraints
No enumerated values or constraints recorded.