agentSnmpCommunityName
SWITCHING-MIB ·
.1.3.6.1.4.1.7244.2.1.2.6.2.1.2
Object
column r/w
OctetString
The switch's Snmp Community Name This name identifies each SNMP community; the name can be up to 16 characters, and it is case-sensitive. Community names in the SNMP community must be unique. If you make multiple entries using the same community name, the first entry is kept and processed and all duplicate entries are ignored.
Context
- MIB
- SWITCHING-MIB
- OID
.1.3.6.1.4.1.7244.2.1.2.6.2.1.2- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- agentSnmpCommunityConfigEntry
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 'SWITCHING-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCHING-MIB::agentSnmpCommunityName'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCHING-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCHING-MIB::agentSnmpCommunityName.<agentSnmpCommunityIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCHING-MIB' -M '/opt/observium/mibs/quanta:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCHING-MIB::agentSnmpCommunityName'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-16