7 snmp-server set, Default configuration, Command mode – PLANET WGSD-1022 User Manual

Page 263: User guidelines, Example, Syntax

Advertising
background image

Default Configuration

The default is SNMPv2.

UDP Port - 162

timeout - 15 seconds

retries - 3.

Command Mode

Global Configuration mode

User Guidelines

If a trap and inform are defined on the same target, and an inform was sent, the trap is not sent.

An inform request is held in memory until a response is received or the request times out. An inform can

be resent or retried several times, but traps are sent only once. Network traffic is increased with retries.

Therefore, traps and informs require a trade-off between reliability and resources. Inform requests should

be used, if it is important that the SNMP manager receives every notification. If traffic on the network or

memory in the switch is a concern and notification is not required, traps should be used.

To define an SNMP recipient on the out-of-band port, use the out-of-band IP address format —

oob/ip-address.

Use only unicast IP addresses.

Example

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

5.20.7 snmp-server set

The snmp-server set global configuration command sets SNMP MIB value by the CLI.

Syntax

snmp-server set variable-name name1 value1 [name2 value2 …]

ƒ variable-name — MIB variable name.

ƒ name value... — List of name and value pairs. In case of scalar MIBs there is only a single pair of

name values. In case of entry in a table the first pairs are the indexes, followed by one or more

fields.

Default Configuration

This command has no default configuration.

Advertising