Snmp-Server Set - Planet Networking & Communication WGSW-24010 User Manual

10/100/1000mbps 24-port + 1 mini-gbic managed gigabit ethernet switch
Hide thumbs Also See for WGSW-24010:
Table of Contents

Advertisement

§
host-address — Internet address of the host (the targeted recipient). An out-of-band IP address can be specified as
described in the User Guidelines.
§
community-string — Password-like community string sent with the notification operation. (R ange: 1 - 20
characters)
§
1 — SNMPv1 traps is used.
2 — SNMPv2 traps is used (Default).
§
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

3.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.
Command Mode
Global Configuration mode
User Guidelines
Although the CLI can set any required configuration, there might be a situation where a SNMP user sets a MIB variable that
does not have an equivalent command. In order to generate configuration files that support those situations, the
snmp-server set command is used.
This
command is context sensitive.
Examples
The following example sets the scalar MIB "sysName" to have the value "abc".
Console (config)# snmp-server set sysName sysname abc
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
114

Advertisement

Table of Contents
loading

Table of Contents