agentCommunityString
SWCOMMGMT-MIB ·
.1.3.6.1.4.1.2272.1.201.1.1.1.4.1.1
Object
column OctetString
When an SNMP message is received by this entity, the community string in the message is compared with this string first. If it doesn't match, the user can't access this entity by manage tool.
Context
- MIB
- SWCOMMGMT-MIB
- OID
.1.3.6.1.4.1.2272.1.201.1.1.1.4.1.1- Type
- column
- Access
- readonly
- Status
- current
- Parent
- agentCommunityEntry
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 'SWCOMMGMT-MIB' -M '/opt/observium/mibs/nortel:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWCOMMGMT-MIB::agentCommunityString'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWCOMMGMT-MIB' -M '/opt/observium/mibs/nortel:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWCOMMGMT-MIB::agentCommunityString.<agentCommunityString>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWCOMMGMT-MIB' -M '/opt/observium/mibs/nortel:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWCOMMGMT-MIB::agentCommunityString'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-32