Description
Sends an SNMPv1 Trap to the specified host.
Notes:
mdsenv <
IP Address or Name of Domain Management Server>
).Syntax
fwm [-d] snmp_trap [-v <SNMP OID>] [-g <Generic Trap Number>] [-s <Specific Trap Number>] [-p <Source Port>] [-c <SNMP Community>] <Target> ["<Message>"] |
Parameters
Item |
Description |
---|---|
|
Runs the command in debug mode. Use only if you troubleshoot the command itself. For complete debug instructions, see the description of the |
|
Specifies an optional SNMP OID to bind with the message. |
|
Specifies the generic trap number. One of these values:
|
|
Specifies the unique trap type. Valid only of generic trap value is 6 (for Default value is 0. |
|
Specifies the source port, from which to send the SNMP Trap packets. |
|
Specifies the SNMP community. |
|
Specifies the managed target host, to which to send the SNMP Trap packets. Enter an IP address of a resolvable hostname. |
|
Specifies the SNMP Trap text message. |
Example - Sending an SNMP Trap from a Management Server and capturing the traffic on the Security Gateway
[Expert@MGMT:0]# fwm snmp_trap -g 2 -c public 192.168.3.52 "My Trap Message" [Expert@MGMT:0]#
[Expert@MyGW_192.168.3.52:0]# tcpdump -s 1500 -vvvv -i eth0 udp and host 192.168.3.51 tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 1500 bytes 22:49:43.891287 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 103) 192.168.3.51.53450 > MyGW_192.168.3.52.snmptrap: [udp sum ok] { SNMPv1 { Trap(58) E:2620.1.1 192.168.3.240 linkDown 1486440 E:2620.1.1.11.0="My Trap Message" } } CTRL+C [Expert@MyGW_192.168.3.52:0]# |