02-19-2008
I guess my long shot would be : make sure that the Windows SNMP server is actually sending the traps out, then make sure that on the Linux side UDP port 162 is open, because this is where is the snmptrapd usually listening. What is the OS in question ?
Also, if you are not sure that snmptrapd is configured correctly, install other software and try again.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Just wondering if anyone knows how can I send an SNMP Trap in Unix Environment(AIX) to another machine (NT/Ux) after having activated the SNMP in the AIX.
Can this be done by using a single command line or do I have to write a script for it?
Thanks in advance for your advices.
:) (1 Reply)
Discussion started by: goliath
1 Replies
2. Solaris
Hello
I am trying to check that SNMP traps could be sent from one server to other .
I am running this command from receiving server to see it can receive it
/usr/sbin/snoop udp port 162
and on the sending end I am running this commad
cst051 UDP D=162 S=1480 LEN=120
but i am... (1 Reply)
Discussion started by: Ajwat
1 Replies
3. Solaris
Hi,
I want the list of SNMP traps supported by Solaris 10. DO anyone has the list prepared.
Regards,
Rajesh (1 Reply)
Discussion started by: grrajeish
1 Replies
4. Infrastructure Monitoring
Good morning to you all
I´m kinda of a noob to scripting, and my knowledge is still very basic: anyway, I´ve developed a small .sh script with the following purpose:
- it will check a result file, checking if it has any values, or if it´s empty
- if it´s empty it will send an email
What... (0 Replies)
Discussion started by: zarahel
0 Replies
5. Infrastructure Monitoring
Hi all,
lately i managed to install SNMP agent on Solaris 9 & 10. The second objective is now to configure traps. However (since i'm totally new to the SUN world) i don't know a way of how to start. Can somebody help me with details? What is the first thing that you need to do to start trapping?... (3 Replies)
Discussion started by: Wizard_1979
3 Replies
6. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
7. UNIX for Dummies Questions & Answers
All,
I have a question regarding setting up a virtual interface to recieve snmp traps from network devices.
My Solaris 10 server is running the HPOV-NNMi application. The network devices in our environment (many thousands) are all pre-configured to send their snmp traps to a specific IP... (4 Replies)
Discussion started by: turk22
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
We are using Zyrion Traverse to monitor all the servers. I like to set the traps on all of the Linux servers to send the traps to that servers.
So for on the /etc/snmp/snmp.conf file, this is what I have...
### SNMP Traps ###
trap2sink x.x.x.x # Traverse server
My... (4 Replies)
Discussion started by: samnyc
4 Replies
9. Infrastructure Monitoring
Dear Champs,
I am new to unix, and need to configure linux server to send below traps to a SNMP server.
Monitoring TRAP Disk Space Low
Monitoring TRAP Memory Low
Monitoring TRAP CPU high
Monitoring TRAP Admin login/Logoff
Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies
10. Linux
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Discussion started by: manjusharma128
0 Replies
LEARN ABOUT REDHAT
snmptrapd.conf
SNMPTRAPD.CONF(5) Net-SNMP SNMPTRAPD.CONF(5)
NAME
/usr/share/snmp/snmptrapd.conf - configuration file for the Net-SNMP trap daemon.
DESCRIPTION
snmptrapd.conf is the configuration file(s) which define how the Net-SNMP SNMP trap receiving daemon operates when it receives a trap.
These files may contain any of the directives found in the DIRECTIVES section below. This file is not required for the daemon to operate,
receive, or report traps. It is used solely as a method of providing extensibility to the trap daemon.
PLEASE READ FIRST
First, make sure you have read the snmp_config(5) manual page that describes how the Net-SNMP configuration files operate, where they are
located and how they all work together.
DIRECTIVES
traphandle OID|default PROGRAM [ARGS ...]
The traphandle configuration directive configures the snmptrapd program to launch an external program any time it receives a trap
matching the OID token. If the OID token is the word default then any trap not matching any other trap handler will call this
default one instead. The program is fed details about the trap to its standard input, in the following format, one entry per line:
HOSTNAME
The name of the host in question that sent the trap, as determined by gethostbyaddr(3).
IPADDRESS
The IP address of the host that sent the trap.
VARBINDS
A list of variable bindings that describe the trap and the variables enclosed in it. The first token on the line, up until
the space, in the OID and the remainder of the line is its value. The first OID should be the system.sysUpTime.0 OID, and
the second should be the ...snmpTrap.snmpTrapOID.0 OID. The remainder of the OIDs, with the possible exception of the last
one, are the variable bindings contained within the trap. For SNMPv1 traps, the very last OID will be the
...snmpTrap.snmpTrapEnterprise OID and its value. Essentially, SNMPv1 traps have been converted to the SNMPv2 trap PDU type
by the method described in the SNMPv1/SNMPv2/SNMPv3 coexistence document (RFC2576).
Example:
A traptoemail script has been included in the Net-SNMP package that can be used as a trap handle directive:
traphandle /usr/bin/perl /usr/bin/traptoemail -s mysmtp.somewhere.com -f admin@somewhere.com me@somewhere.com
dontRetainLogs true
Turns off the support for the NOTIFICATION-LOG-MIB and thus doesn't retain logged traps. Normally the snmptrapd program keeps a
certain number of traps around in memory so they can be retrieved via querying the nlmLogTable and nlmLogvariableTable tables. See
the snmptrapd manual page and the NOTIFICATION-LOG-MIB for details.
createUser username (MD5|SHA) authpassphrase [DES]
See the snmpd.conf(5) manual page for a description of how to create SNMPv3 users. It's roughly the same, but the file name changes
to snmptrapd.conf from snmpd.conf.
format1 format
The format used to print a SNMPv1 TRAP message. See snmptrapd(8) for the layout characters available.
format2 format
The format used to print a SNMPv2 TRAP2 or INFORM message (note that the SNMPv3 protocol uses SNMPv2 style TRAPs and INFORMs).
NOTES
o The daemon blocks on the executing traphandle commands. (This should be fixed in the future with an appropriate signal catch and
wait() combination).
SEE ALSO
snmp_config(5), snmptrapd(8), syslog(8), variables(5), snmpd.conf(5), read_config(3).
4th Berkeley Distribution 28 Aug 2001 SNMPTRAPD.CONF(5)