08-21-2007
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 stuck on configuring "snmptrapd.conf" file for
getting OID's from the Remote machine when I am giving following command
#snmptrap -v2c -c public <dest. IP> 256 <trap-oid> <object-oid> <type> value
Please help me ?
Regards
JAGDISH
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All
Can anybody tell me how to configure snmptrapd.conf ?
Thanx (0 Replies)
Discussion started by: jeenat
0 Replies
2. UNIX for Dummies Questions & Answers
Dear all
I want to redirect the logs of the syslog of a tru64 unix machine in a log and event monitoring tool installed in another server. In the syslog.conf i have appended *.*@<server_name> at the end, where <server_name> is the name of the machine on which the reporting tool is running. I... (0 Replies)
Discussion started by: adak2010
0 Replies
3. UNIX for Dummies Questions & Answers
i tried this to get snmptrapd.conf bt unable...
# snmpconf
The following installed configuration files were found:
1: /etc/snmp/snmp.conf
2: /etc/snmp/snmpd.conf
3: /usr/share/snmp/snmp.conf
4: /usr/share/snmp/snmpd.conf
Would you like me to read them in? Their... (0 Replies)
Discussion started by: jeenat
0 Replies
4. Red Hat
What would be Redhat RHEL 4.0 equivalent for Solaris sd.conf and lpfc.conf? What are the files called and where are the files located? (1 Reply)
Discussion started by: soupbone38
1 Replies
5. Solaris
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
6. Infrastructure Monitoring
Hi All,
I'm hardening my linux. And I came across with this file.
/etc/snmp/snmpd.conf
It's current mod is 644 with root:root ownership and group. Can I make this 640 without hurting the OS? Meaning no public read access. Does other resources need to read to it?
Thanks and more... (1 Reply)
Discussion started by: itik
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
trying to get snmp traps logged in /var/log/messages.
I put this option in snmptrapd.conf:
logOption Ls d
then restarting the snmptrad daemon I got this warning:
Unknown token: logoption.
and server is not logging traps. Starting snmptrapd manually works, traps are logged.... (0 Replies)
Discussion started by: neutrino
0 Replies
8. Red Hat
Hi,
I would like to configure syslog linux client, syslog server is windows server.
so adding on linux client in /etc/syslog.conf @hostname will work in the place of directory location.
example of /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up... (2 Replies)
Discussion started by: manoj.solaris
2 Replies
9. Shell Programming and Scripting
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
10. Solaris
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
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)