Dell PowerConnect 3324/3348 Switch CLI Guide
Use the snmp-server community global configuration command to set up the community access string to permit access to the SNMP protocol. To remove the specified community string, use the no form of this command.
snmp-server community string [ro | rw | su] [ip-address]
no snmp-server community string [ip-address]
The default is read-only and if no IP address is entered, all IP addresses are allowed.
Global Configuration Mode
There are no user guidelines for this command.
The following example sets up the community access string public to permit administrative access to the SNMP protocol, at an administrative station with the IP address 192.168.1.20.
Console (config)# snmp-server community public su 192.168.1.20 |
Use the snmp-server contact global configuration command to set up a system contact. To remove the system contact information, use the no form of the command.
snmp-server contact text
no snmp-server contact
This command has no default configuration.
Global Configuration Mode
There are no user guidelines for this command.
The following example sets up Dell_Technical_Support as the system contact point.
Console (config)# snmp-server contact Dell_Technical_Support |
Use the snmp-server location global configuration command to set up information about where the device is located. To remove the location string, use the no form of this command.
snmp-server location text
no snmp-server location
The default is no community.
Global Configuration Mode
There are no user guidelines for this command.
The following example sets the device location as New_York.
Console (config)# snmp-server location New_York |
Use the snmp-server enable traps global configuration command to enable the switch to send SNMP traps. To disable SNMP traps, use the no form of the command.
snmp-server enable traps
no snmp-server enable traps
This command has no default configuration.
Global Configuration Mode
There are no user guidelines for this command.
The following example displays the command to enable SNMP traps.
Console (config)# snmp-server enable traps |
Use the snmp-server trap authentication global configuration command to enable the switch to send Simple Network Management Protocol traps when authentication failed. To disable SNMP authentication failed traps, use the no form of this command.
snmp-server trap authentication
no snmp-server trap authentication
This command has no default configuration.
Global Configuration Mode
There are no user guidelines for this command.
The following example enables authentication when SNMP traps failed.
Console (config)# snmp-server trap authentication |
Use the snmp-server host global configuration command to specify the recipient of Simple Network Management Protocol (SNMP) notification operation. To remove the specified host, use the no form of this command.
snmp-server host host-addr community-string [1 | 2]
no snmp-server host host-addr
The default version for traps is SNMPv2.
Global Configuration Mode
There are no user guidelines for this command.
The following example enables SNMP traps for host 10.1.1.1 with community string management using SNMPv2.
Console (config)# snmp-server host 10.1.1.1 management 2 |
Use the snmp-server set global configuration command to set the SNMP MIB value by the CLI.
snmp-server set variable name [name value ... ]
This command has no default configuration.
Global Configuration Mode
Although the CLI can set any required configuration, there might be a situation where an SNMP user sets a MIB variable that doesn't have an equivalent command. Use the snmp-server set command for those situations.
The following example sets the scalar MIB sysName to the value dell.
Console (config)# snmp-server set sysName sysName dell |
The following example sets the entry MIB rndCommunityTable with keys 0.0.0.0 and public. The field rndCommunityAccess gets the value super and the rest of the fields get their default values.
Console (config)# snmp-server set rndCommunityTable rndCommunityMngStationAddr 0.0.0.0 rndCommunityString public rndCommunityAccess super |
Use the show snmp privileged EXEC command to display the SNMP status.
show snmp
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays SNMP communication status.