Back to Contents Page

SNMP Commands

Dell™ PowerConnect™ 3324/3348 Switch CLI Guide

  snmp-server community

  snmp-server contact

  snmp-server location

  snmp-server enable traps

  snmp-server trap authentication

  snmp-server host

  snmp-server set

  show snmp



snmp-server community

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.

Syntax

snmp-server community string [ro | rw | su] [ip-address]

no snmp-server community string [ip-address]

Default Configuration

The default is read-only and if no IP address is entered, all IP addresses are allowed.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

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


snmp-server contact

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.

Syntax

snmp-server contact text

no snmp-server contact

Default Configuration

This command has no default configuration.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example sets up Dell_Technical_Support as the system contact point.

Console (config)# snmp-server contact Dell_Technical_Support


snmp-server location

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.

Syntax

snmp-server location text

no snmp-server location

Default Configuration

The default is no community.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example sets the device location as New_York.

Console (config)# snmp-server location New_York


snmp-server enable traps

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.

Syntax

snmp-server enable traps

no snmp-server enable traps

Default Configuration

This command has no default configuration.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example displays the command to enable SNMP traps.

Console (config)# snmp-server enable traps


snmp-server trap authentication

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.

Syntax

snmp-server trap authentication

no snmp-server trap authentication

Default Configuration

This command has no default configuration.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example enables authentication when SNMP traps failed.

Console (config)# snmp-server trap authentication


snmp-server host

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.

Syntax

snmp-server host host-addr community-string [1 | 2]

no snmp-server host host-addr

Default Configuration

The default version for traps is SNMPv2.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

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


snmp-server set

Use the snmp-server set global configuration command to set the SNMP MIB value by the CLI.

Syntax

snmp-server set variable name [name value ... ]

Default Configuration

This command has no default configuration.

Command Mode

Global Configuration Mode

User Guidelines

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.

Examples

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


show snmp

Use the show snmp privileged EXEC command to display the SNMP status.

Syntax

show snmp

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example displays SNMP communication status.

Console# show snmp

Community-String Community-Access IP address

---------------- ---------------- -----------

public read only All

private read write 172.16.1.1

private read write 172.17.1.1

Traps are enabled.

Authentication trap is enabled.

Trap-Rec-Address Trap-Rec-Community Version

---------------- ------------------ --------

192.122.173.42 public 2

System Contact: Robert

System Location: Marketing


Back to Contents Page