juniPolicyIfAttachPolicyId
Juniper-POLICY-MIB ·
.1.3.6.1.4.1.4874.2.2.27.1.4.2.1.5
Object
column r/w
Integer32
This object is used to control the attachment of policies to the
interface specified by juniPolicyIfAttachInterfaceId,
juniPolicyIfAttachForwardingType and juniPolicyIfAttachPolicyType.
Attach a policy by setting this value to the ID of the policy.
Remove a policy attachment by setting this value to zero.
This object may be modified while the row is active. If so, the
attachment is immediate.
Context
- MIB
- Juniper-POLICY-MIB
- OID
.1.3.6.1.4.1.4874.2.2.27.1.4.2.1.5- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- juniPolicyIfAttachEntry
- Groups
- 2
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 'Juniper-POLICY-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-POLICY-MIB::juniPolicyIfAttachPolicyId'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'Juniper-POLICY-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-POLICY-MIB::juniPolicyIfAttachPolicyId.<juniPolicyIfAttachInterfaceId>.<juniPolicyIfAttachForwardingType>.<juniPolicyIfAttachPolicyType>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'Juniper-POLICY-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'Juniper-POLICY-MIB::juniPolicyIfAttachPolicyId'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-2147483647