10.2.2. Configure SNMP host address
The Agent in certain cases,also will send a message to the NMS,to configure the Agent actively send
messages NMS host address,In global configuration mode, perform the following command:
10.2.3. Set the SNMP agent parameters
The basic parameters of SNMP Agent configuration,Set equipment contact network elements,
equipment of coded information, equipment, location information, serial number,NMS through access
device of these parameters,can be told of the contact device, device information such as the physical
location.
To configure SNMP agent parameters in global configuration mode, perform the following command:
10.2.4. Close the SNMP agent
To close the SNMP agent services in global configuration mode, perform the following command:
10.2.5. Configuration agent take the initiative to send NMS sends the Trap
message
The Trap is Agent without request to take the initiative to send messages to the NMS,Used to report
some urgent and important event.The default is not to allow Agent to send Trap messages,If you want
to permit, in global configuration mode, perform the following command:
Command
Function
Switch(config)#
snmp-server enable traps
[
type
]
[
option
]
Permit active Agent sends
the Trap message
Command
Function
Switch#configure terminal
Enter the global model
Switch(config)#snmp-server start
Enable SNMP
Switch(config)#
snmp
-
server host
{
host-addr
[
traps
]
community name
[
version
{
1 | 2
}
Set the SNMP host address
Switch(config)#
no snmp
-
server host
community
name
Delete the existing host, the use of
the community name removed
Command
Function
Switch(config)#
snmp-server contact
text
Set up the system's contact information
Switch(config)# snmp-server location text
Sets the position of system
Command
Function
Switch(config)# no snmp-server start
Close the SNMP agent