pmPolicyCodeSegment
POLICY-BASED-MANAGEMENT-MIB ·
.1.3.6.1.2.1.124.2.1.2
Object
column Unsigned32
A unique index for each segment of a policy condition or
action.
When a policy condition or action spans multiple entries in
this table, the code of that policy starts from the
lowest-numbered segment and continues with increasing segment
values until it ends with the highest-numbered segment.
Context
- MIB
- POLICY-BASED-MANAGEMENT-MIB
- OID
.1.3.6.1.2.1.124.2.1.2- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- pmPolicyCodeEntry
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 'POLICY-BASED-MANAGEMENT-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'POLICY-BASED-MANAGEMENT-MIB::pmPolicyCodeSegment'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'POLICY-BASED-MANAGEMENT-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'POLICY-BASED-MANAGEMENT-MIB::pmPolicyCodeSegment.<pmPolicyAdminGroup>.<pmPolicyCodeScriptIndex>.<pmPolicyCodeSegment>'
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::pmPolicyCodeSegment'
Syntax
Unsigned32
Values & Constraints
Object Constraints
range: 1-4294967295