cachePeerPortIcp
SQUID-MIB ·
.1.3.6.1.4.1.3495.1.5.1.3.6
Object
column ValidPort
The port the peer listens for ICP requests should be 0 if not configured to send ICP requests
Context
- MIB
- SQUID-MIB
- OID
.1.3.6.1.4.1.3495.1.5.1.3.6- Type
- column
- Access
- readonly
- Status
- current
- Parent
- cachePeerEntry
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 'SQUID-MIB' -M '/opt/observium/mibs/squid:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SQUID-MIB::cachePeerPortIcp'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SQUID-MIB' -M '/opt/observium/mibs/squid:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SQUID-MIB::cachePeerPortIcp.<cachePeerIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SQUID-MIB' -M '/opt/observium/mibs/squid:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SQUID-MIB::cachePeerPortIcp'