snmptrap.conf file


 
Thread Tools Search this Thread
Special Forums IP Networking snmptrap.conf file
# 1  
Old 04-17-2008
snmptrap.conf file

Hi
I tried a lot bt could not configure snmptrapd.conf...
Can any one tell me the steps or give me the configured snmptrapd.conf file??
Its really important..Plz help me..

Thanx
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

2. Shell Programming and Scripting

Script to update rsyslog.conf and auditd.conf

Hello all, Newbie here. I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies

3. UNIX for Advanced & Expert Users

Snmptrap command help

Dear all, I have configured the "snmpd.conf" to be able to send traps to a network manager. The file is saved in "/etc/net-snmp/snmp/". Attached is my configuration, which seems to be correct. (The IP address 10.192.4.4 is the trap receiver). Next my aim was to send a test trap to verify... (0 Replies)
Discussion started by: nms
0 Replies

4. Shell Programming and Scripting

Spawn snmptrap from python

Hi I am trying to spawn an snmptrap from python but i keep getting the following error Invalid version specified after -v flag: 2c -c public 192.168.2.162 SNMPv2-SMI::enterprises.3.1.1 here is the python code i am using from subprocess import Popen Popen() When i test the same... (0 Replies)
Discussion started by: kaf3773
0 Replies

5. Solaris

snmptrap command - Help Please!!

Hi All, I am trying to generate a trap with in the localhost. Please see the attachment for the exact syntax what I am using to generate the traps. However, I am getting the following error. Unknown Object Identifier (Sub-id not found: (top) -> ) Can you please guide me how to use the... (1 Reply)
Discussion started by: ntgobinath
1 Replies

6. Shell Programming and Scripting

Help with awk and conf file

hello i have a configuration file with some fields, for example: #file conf.cfg name;object;var1;var2;var8 then i have a csv data file: var1;var2;var3;var4;var5;var6;var7;var8;var9 aaa;bbb;ccc;ddd;eee;fff;ggg;hhh;iii ... now i should read the conf.cfg file and extract the... (3 Replies)
Discussion started by: drain
3 Replies

7. Shell Programming and Scripting

Conf file entry.

Hi, Lets say I have a script which reads a conf file (say MASTERFILE) line by line to fetch file_name, source_path, dest_path. But currently, here the file name are static for eg: ABC.txt or XYZ.txt. So i have hard-coded in the conf file. So what happens that the script picks up the file_name... (1 Reply)
Discussion started by: amit.mathur08
1 Replies

8. UNIX for Advanced & Expert Users

How can i tell which conf file it is using

i have this program running on my solaris and there are two identical config files, i am not sure which one is being used by this program but I am sure it uses one of them. I run lsof -p {pid} but it does not show which config file has been read by this program, what i am doing wrong? thanks (4 Replies)
Discussion started by: fedora
4 Replies

9. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

10. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies
Login or Register to Ask a Question
snmptrapd.conf(4)						   File Formats 						 snmptrapd.conf(4)

NAME
snmptrapd.conf - configuration file for the Net-SNMP trap daemon SYNOPSIS
snmptrapd.conf DESCRIPTION
The snmptrapd.conf file is the configuration file that defines how the Net-SNMP trap-receiving daemon (snmptrapd(1M)) operates when it receives a trap. These files can 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. There can be multiple snmptrapd.conf files on a single machine. Before creating or modifying a snmptrapd.conf file, read snmp_config(4). This page describes how the Net-SNMP configuration files work, individually and together, and where they are located. 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 the 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 that sent the trap, as determined by gethostbyaddr(3NSL). 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, delimited by a space, is the OID. The remainder of the line is its value. The first OID should be system.sysUpTime.0. The second should be the ...snmpTrap.snmpTrapOID.0 OID. The remaining 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 docu- ment (RFC 2576). dontRetainLogs true Turns off the support for the NOTIFICATION-LOG-MIB and thus does not retain logged traps. Normally, the snmptrapd program keeps a cer- tain number of traps in memory so that they can be retrieved by querying the nlmLogTable and nlmLogvariableTable tables. See snmptrapd(1M) and the NOTIFICATION-LOG-MIB for details. createUser username (MD5|SHA) authpassphrase [DES] See snmpd.conf(4) for a description of how to create SNMPv3 users. The process of creating users is similar to creating users for other SNMP versions. For SNMPv3, the configuration file name changes to snmptrapd.conf from snmpd.conf. format1 format The format used to print a SNMPv1 TRAP message. See snmptrapd(1M) 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. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
snmptrapd(1M), syslog(3C), snmpd.conf(4), snmp_variables(4), snmp_config(4), attributes(5), sma_snmp(5) NOTES
In the current release, the daemon blocks on the executing traphandle commands. This behavior is subject to change in a future release. SunOS 5.10 16 Jan 2004 snmptrapd.conf(4)