pmPolicyCodeText
POLICY-BASED-MANAGEMENT-MIB ·
.1.3.6.1.2.1.124.2.1.3
Object
column r/w
OctetString
A segment of policy code (condition or action). Lengthy
Policy conditions or actions may be stored in multiple
segments in this table that share the same value of
pmPolicyCodeScriptIndex. When multiple segments are used, it
is recommended that each segment be as large as is practical.
Entries in this table are associated with policies by values
of the pmPolicyConditionScriptIndex and
pmPolicyActionScriptIndex objects. If the status of the
related policy is active, then this object may not be
modified.
Context
- MIB
- POLICY-BASED-MANAGEMENT-MIB
- OID
.1.3.6.1.2.1.124.2.1.3- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- pmPolicyCodeEntry
- 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 'POLICY-BASED-MANAGEMENT-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'POLICY-BASED-MANAGEMENT-MIB::pmPolicyCodeText'
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::pmPolicyCodeText.<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::pmPolicyCodeText'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-1024
Conformance
Member of