communityName
COMMUNITY-MIB ·
.1.3.6.1.4.1.52.1.52.2.1.1
Object
column mandatory
r/w
OctetString
The community name that will be used for trivial authentication for SNMP get/set requests. This is also the community name used within an SNMP trap pdu. Each community name is associated with an access code of either NO_ACCESS, RO, RW, or SU.
Context
- MIB
- COMMUNITY-MIB
- OID
.1.3.6.1.4.1.52.1.52.2.1.1- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- communityEntry
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 'COMMUNITY-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'COMMUNITY-MIB::communityName'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'COMMUNITY-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'COMMUNITY-MIB::communityName.<communityIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'COMMUNITY-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'COMMUNITY-MIB::communityName'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-32