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 302890848 by vipul_prajapati on Saturday 1st of March 2014 02:27:03 AM
Old 03-01-2014
Ubuntu Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

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 traps. which steps i have to follow to achieve this? reply me friends...
 

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
snmpd(8n)																 snmpd(8n)

Name
       snmpd - Simple Network Management Protocol (SNMP) Agent for ULTRIX gateways and hosts

Syntax
       /etc/snmpd [ -d debuglevel logfile ]

Description
       The  SNMP  Agent,  performs SNMP operations on an ULTRIX gateway or host.  The daemon, which is started up by an entry in the file, sits in
       the background and listens on SNMP port 161.  When the daemon receives an SNMP packet from a Network Management Station (NMS),  the  daemon
       performs SNMP operations on the packet and returns a valid response to the NMS.

       The  daemon extracts much of its information from kernel memory.  Static variables whose values are not available in the kernel take values
       from the SNMP configuration file,

   SNMP Trap Support
       The cold start and authentication failure trap types are supported by

       The cold start trap type is generated by when is restarted.  The authentication failure trap type is generated when an attempt at  using  a
       community fails.  The attempt fails when an unauthorized client tries to use or the community is used in a way that the community type does
       not allow.

       The daemon sends traps to all communities specified in the configuration file with a community type

       The default is for the daemon to generate authentication failure traps.	However, if the following clause is  specified	somewhere  in  the
       file, authentication failure traps are not generated:
       no_authen_traps

   SNMP Sets
       When  the  daemon receives a set-request packet, it processes the variables in the packet and verifies that they are valid read-write vari-
       ables.  While performing this verification, the daemon constructs a linked list of the set requests.  After it has completed the  verifica-
       tion,  it performs the actual set operations on the variables, as if they were being performed simultaneously.  If any actual set operation
       fails, all of the previous set variables from the set-request packet are restored to their old values.

   SNMP Supported Variables
       For a complete listing of the SNMP Management Information Base (MIB) variables that are supported, see the Guide to Networking.

Options
       By default, the daemon uses the command to record its error messages.  However, you can obtain certain debugging and trace  information	by
       specifying the flag, the appropriate debug level, and a log file for the output on the command line.

       -d debuglevel logfile
	    Outputs debugging and trace information.

       You can specify any one of the following debug levels with the flag:

       1    Print  the version number, start time, and exit time of Also print out when an SNMP packet is received, the address of the sender, and
	    the packet size in bytes.

       2    Print out what the daemon has read from the file.

       3    Dump the SNMP packet that the daemon has just received and is about to process.  Also print out the route and interface  address  that
	    the  daemon  is  currently	looking  up.  This debug level also dumps the SNMP packet that the server is sending back in response to a
	    received SNMP message.

       4    Dump the variable tree.  Also print out the static bootstrap array of tree information.

       The output for a debug level includes the information for all levels including and below the level that you specify.  For example,  if  you
       specify a debug level of 3, your output includes debug information for levels 3, 2, and 1.

       If no debug levels are set, detaches itself from the controlling terminal and executes in the background.

Restrictions
       Not all of the MIB variables are supported.

       Only the variable is settable.

Files
	    SNMP configuration file

See Also
       snmpext(3n), snmpd.conf(5n), snmpsetup(8n)
       RFC 1066--Management Information Base for Network Management of TCP/IP-based Internets
       RFC 1067--A Simple Network Management Protocol
       Guide to Networking

																	 snmpd(8n)
All times are GMT -4. The time now is 12:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy