Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch
Rev 1.6.2
Mellanox Technologies
218
2.16 SNMP
The commands in this section are used to manage the SNMP server.
snmp-server community
snmp-server community <community> [ ro | rw]
no snmp-server community <community>
Sets a community name for either read-only or read-write SNMP requests.
The no form of the command sets the community string to default.
Syntax Description community Community name.
ro Sets the read-only community string.
rw Sets the read-write community string.
Default Read-only community: “public”
Read-write community: “”
Modes/Context Config
History 3.1.0000
Role admin
Example
switch(config) # snmp-server community private rw
switch (config) # show snmp
SNMP enabled: yes
SNMP port: 161
System contact:
System location:
Read-only community: public
Read-write community: private
Interface listen enabled: yes
No Listen Interfaces.
Traps enabled: yes
Default trap community: public
Default trap port: 162
No trap sinks configured.
switch(config) #
Related Commands show snmp
Note
• If neither the “ro” or the “rw” parameters are specified, the read-only community is set as
the default community
• If the read-only community is specified, only queries can be performed
• If the read-write community is specified, both queries and sets can be performed