04-22-2008
Ok thank you. In this document it says :
and when received by snmptrapd is displayed as follows
1999-11-12 23:26:07 localhost [127.0.0.1] TRAP-TEST-MIB::demotraps:
Enterprise Specific Trap (demo-trap) Uptime: 1 day, 5:34:06
SNMPv2-MIB::sysLocation.0 = "Just here"
But where is it displayed ? In a file ? Which file ? Where is it lockated ?
Many thanks.
10 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I am writing a program in java to simulate a trap being sent from a device. I came to know that rawsocket cant be opened in java. Is there a provision to do in java?
My requirement is:
I am writing the java program in the machine 1.1.1.1
I want to simulate the trap being sent from a... (0 Replies)
Discussion started by: kkrish7
0 Replies
2. Solaris
Greetings To All!
I am trying to accomplish the following:
Using a public SNMP string, create a trap which will trap ALOM console messages on a Solaris Sunfire T-1000 ALOM console. The platform is Solaris 10. These newly created traps need to be configured in such a way that they will send... (0 Replies)
Discussion started by: RobSand
0 Replies
3. Infrastructure Monitoring
Hi all,
I'm after a linux utility that can relay all incoming traffic on a certain port to another server. Can anyone recommend a good program?
I've taken a look at snmptrapd, but it's not obvious how this can be configured for my requirements.
Many thanks. (1 Reply)
Discussion started by: badoshi
1 Replies
4. Infrastructure Monitoring
I want to receive snmp traps only from specifis ip's or host.
I tried to get help from VACM , but it's complicated. Can any one please suggest me simple way to do it (0 Replies)
Discussion started by: nrbhole
0 Replies
5. Infrastructure Monitoring
Hi all,
I am currently doing a project regarding traps and would like to help me in this issue. I am knew to the trap world :confused::) and thought that by posting this thread helps me move forward in this project.
First of all I will begin exactly from the very beginning, i.e. the net-snmp... (0 Replies)
Discussion started by: Wizard_1979
0 Replies
6. Solaris
Hello
I am trying to monitor when a user account gets added to my solaris server.
Does anyone know how I can set up an snmptrap for changes in the /etc/passwd file ? (4 Replies)
Discussion started by: prince2010
4 Replies
7. Infrastructure Monitoring
I am working on a SunOS 5.10 Generic_142900-03 sun4v sparc SUNW,Netra-T2000
With this command: (Unix based cronjob)
tail -1 FSC-xxxxxxxxx.stat | nawk -F, '{print $2}'
I want to send the numeric output of this command from a statistical file which is updating constantly via SNMPv2 every 1... (4 Replies)
Discussion started by: thinktank
4 Replies
8. UNIX for Dummies Questions & Answers
i am working with embedded system -Dell DCS management sub system. my question is as below:
currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies
9. UNIX for Advanced & Expert Users
I am using the following command to successfully send snmp traps on Linux but I cant get it to work on Solaris , can someone give me the syntax plz?
Linux:
/usr/sbin/snmptrap -v 2c -c org 10.100.10.211 \'\' 1.3.6.1.4.1.791.2.9.2 1.3.6.1.4.1.791.2.9.2 s \"$1 \"
Solaris:... (5 Replies)
Discussion started by: aliyesami
5 Replies
10. Red Hat
hi
I get below error from console and message log in red hat linux
snmp Got trap from peer on fd 13 .
Any idea why there is error and how to fix it ??
Please use CODE tags as required by forum rules! (0 Replies)
Discussion started by: chuikingman
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)