Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap Post 302893306 by DGPickett on Tuesday 18th of March 2014 12:09:55 PM
Old 03-18-2014
Seems like you need a client to send your trap messages with udp port 162, maybe something in here: Net-SNMP - Wikipedia, the free encyclopedia You can tail -f the log and filter out the lines you want to send as traps, being careful about latency such as with pipes.
 

10 More Discussions You Might Find Interesting

1. IP Networking

snmp trap generator

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

Creating SNMP Strings To Trap ALOM Console Messages

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. IP Networking

Send A Snmp Trap

Hi, do you know the syntax to send a snmp trap to a server ? Many htanks. (2 Replies)
Discussion started by: big123456
2 Replies

4. Infrastructure Monitoring

linux snmp trap relay

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

5. Infrastructure Monitoring

Allow specific hosts for snmp trap

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

6. Infrastructure Monitoring

SNMP Trap on Solaris...HELP!

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

7. Solaris

snmp trap for passwd file deltas in 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

8. UNIX for Advanced & Expert Users

Snmp trap command for Solaris 5.10

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

9. Shell Programming and Scripting

Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog

I have been searching and reading about syslog. I would like to know how to Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog. tail -f /var/log/messages dblogger: msg_to_dbrow: no logtype using missing dblogger: msg_to_dbrow_str: val ==... (2 Replies)
Discussion started by: kenshinhimura
2 Replies

10. Red Hat

Snmp [xx] Got trap from peer in Red Hat Linux

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
snmpdx(1M)						  System Administration Commands						snmpdx(1M)

NAME
snmpdx - Sun Solstice Enterprise Master Agent SYNOPSIS
/usr/lib/snmp/snmpdx [-hy] [-a filename] [-c config-dir] [-d debug-level] [-i filename] [ -m GROUP -m SPLIT] [-o filename] [-p port] [-r filename] DESCRIPTION
The Master Agent, snmpdx, is the main component of Solstice Enterprise Agent technology. It runs as a daemon process and listens to User Datagram Protocol (UDP) port 161 for SNMP requests. The Master Agent also opens another port to receive SNMP trap notifications from vari- ous subagents. These traps are forwarded to various managers, as determined by the configuration file. Upon invocation, snmpdx reads its various configuration files and takes appropriate actions by activating subagents, determining the sub- tree Object Identifier (OID) for various subagents, populating its own Management Information Bases (MIBs), and so forth. The Master Agent invokes subagents, registers subagents, sends requests to subagents, receives responses from subagents, and traps notifications from sub- agents. The Master Agent is invoked from a start-up script at boot time only if contents of the resource configuration file /etc/snmp/conf/snm- pdx.rsrc are non-trivial. OPTIONS
The following options are supported: -a filename Specify the full path of the access control file used by the Master Agent. The default access control file is /etc/snmp/conf/snmpdx.acl. -c config-dir Specify the full path of the directory containing the Master Agent configuration files. The default directory is /etc/snmp/conf. -d debug-level Debug. Levels from 0 to 4 are supported, giving various levels of debug information. The default is 0 which means no debug information is given. -h Help. Print the command line usage. -i filename Specify the full path of the enterprise-name OID map. This file contains the PID used by the Master Agent for recovery after a crash. It contains tuples of the UNIX process ID, port number, resource name, and agent name. The default file is /var/snmp/snmpdx.st. -m GROUP | -m SPLIT Specify the mode to use for forwarding of SNMP requests. GROUP Multiple variables can be included in each request from the Master Agent to the subagents. This results in, at mose, one send-request per agent. SPLIT Each variable in the incoming request results in one send-request to each subagent. The default is GROUP. -o filename Specify the full path of the file containing the tuple (enterprise-name, OID). For example, (Sun Microsystems, 1.3.1.6.1.4.32). The Master Agent uses this file as a base for look-up in the trap-filtering and forwarding process. The default file is /etc/snmp/conf/enterprises.oid. -p port Specify the port number. The default port number is 161. -r filename Specify the full path of the resource file to be used by the Master Agent. This file stores information about the subagents that the Master Agent invokes and manages. The default resource file is /etc/snmp/conf/snmpdx.rsrc. -y Set a recovery indicator to invoke the recovery module. The recovery process discovers which subagents in the pre- vious session are still active; those subagents not active are re-spawned by the Master Agent. FILES
/etc/snmp/conf/enterprises.oid Enterprise-name OID map /etc/snmp/conf/snmpdx.acl Access control file /etc/snmp/conf/snmpdx.rsrc Resource configuration file /var/snmp/snmpdx.st Master Agent status file /var/snmp/mib/snmpdx.mib Master Agent MIB file EXIT STATUS
The following error values are returned: 0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsasnm | +-----------------------------+-----------------------------+ SEE ALSO
snmpXdmid(1M), attributes(5) SunOS 5.10 17 Oct 2002 snmpdx(1M)
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy