snmpCommunityName
SNMP-COMMUNITY-MIB ·
.1.3.6.1.6.3.18.1.1.1.2
Object
column r/w
OctetString
The community string for which a row in this table represents a configuration. There is no SIZE constraint specified for this object because RFC 1157 does not impose any explicit limitation on the length of community strings (their size is constrained indirectly by the SNMP message size).
Context
- MIB
- SNMP-COMMUNITY-MIB
- OID
.1.3.6.1.6.3.18.1.1.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- snmpCommunityEntry
- 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 'SNMP-COMMUNITY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SNMP-COMMUNITY-MIB::snmpCommunityName'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SNMP-COMMUNITY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SNMP-COMMUNITY-MIB::snmpCommunityName.<snmpCommunityIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SNMP-COMMUNITY-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SNMP-COMMUNITY-MIB::snmpCommunityName'
Syntax
OctetString
Values & Constraints
No enumerated values or constraints recorded.
Conformance
Member of
Compliance refinements
snmpCommunityMIBCompliance
readonly
Write access is not required.