All MIBs › Fore-Switch-MIB › snmpReadCommunity
snmpReadCommunity
Module: Fore-Switch-MIB
OID (symbolic): Fore-Switch-MIB::snmpReadCommunity
OID (numeric): 1.3.6.1.4.1.326.2.2.2.2.2.2
Node type: OBJECT-TYPE
Type: OCTET STRING
Access: read-write
Description:
The community string used for SNMP (v1) read operations, i.e. get and getnext requests. This has been deprecated, since it's now possible to have more than one read community string. Setting this variable will result in all current read community strings being deleted, and this one added.
Note this object is write-only and reading it will result in implementation-specific results.
What is snmpReadCommunity?
This object specifies the community string used for SNMP v1 read operations (GET and GET-NEXT requests). This object is deprecated but when written, it replaces all existing read community strings with the new value. Operators configure this to control SNMP access security, though modern devices should use SNMP v3 authentication instead.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.326.2.2.2.2.2.2 snmpwalk -v2c -c public <target> Fore-Switch-MIB::snmpReadCommunity
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.326.2.2.2.2.2.2.1 snmpget -v2c -c public <target> Fore-Switch-MIB::snmpReadCommunity.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.326.2.2.2.2.2.2.1 s <value>
OID Breakdown
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | BIANCA-BRICK-PPP-MIB |
| 1.3.6 | dod | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1 | internet | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4 | private | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4.1 | enterprises | ANIROOT-MIB |
| 1.3.6.1.4.1.326 | fore | Fore-Common-MIB |
| 1.3.6.1.4.1.326.2 | systems | Fore-Common-MIB |
| 1.3.6.1.4.1.326.2.2 | atmSwitch | Fore-Common-MIB |
| 1.3.6.1.4.1.326.2.2.2 | software | Fore-Common-MIB |
| 1.3.6.1.4.1.326.2.2.2.2 | snmp | Fore-Switch-MIB |
| 1.3.6.1.4.1.326.2.2.2.2.2 | snmpConfGroup | Fore-Switch-MIB |
| 1.3.6.1.4.1.326.2.2.2.2.2.2 | snmpReadCommunity | Fore-Switch-MIB |