Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
CARE

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 92 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

snmptrapd



SYNOPSIS

       snmptrapd  [common  options]  [-P] [-o file] [-s] [-f] [-p
       port] [-e] [-l [d0-7]] [-a] [-C] [-c confFile] [-F FORMAT]


DESCRIPTION

       Snmptrapd  is  an  SNMP application that receives and logs
       snmp trap messages sent to the SNMP-TRAP port (162) on the
       local machine.

       The log messages are of the form:
       Sep 17 22:39:52 suffern snmptrapd: 128.2.13.41: Cold Start
       Trap (0) Uptime: 8 days, 0:35:46

       Snmptrapd must be run as root so that UDP port 162 can  be
       opened.


COMMAND LINE ARGUMENTS

       In  addition to the command arguments described under snm­
       pcmd(1) the following arguments are understood:

       -P     Print the logged messages to stderr.

       -o file
              Logs messages to a given file.

       -p port
              Specifies the port to run on, if the default 162 is
              not desired.

       -s     Log  the  messages to syslog(8).  These syslog mes­
              sages are sent with the level of  LOG_WARNING,  and
              to the LOG_LOCAL0 facility (by default).  The demon
              will also fork away from its caller when the syslog
              facilities  are  used.   This is the default unless
              the '-P' flag or '-o' flag is used.

       -n     Don't do reverse translation  from  IP  address  to
              host name.

       -l [d0-7]
              Specifies  the  syslog  facility  to  use, demon or
              local[0-7].

       -a     makes snmptrapd ignore AuthenticationFailure traps

       -d     Causes the application to  dump  input  and  output
              packets.

       -D     Turn debugging output on.

       -f     Don't  fork  away  from  the caller when using sys­
              log().

       %%     a literal %

       %t     decimal number of seconds since the operating  sys­
              tem's epoch

       %y     current year

       %m     current (numeric) month

       %l     current day of month

       %h     current hour

       %j     current minute

       %k     current second

       %T     up-time in seconds (in decimal)

       %Y     the year field from the up-time

       %M     the numeric month field from the up-time

       %L     the day of month field from the up-time

       %H     the hour field from the up-time

       %J     the minute field from the up-time

       %K     the seconds field from the up-time

       %A     agent's hostname if available, otherwise IP address

       %a     agent's IP address

       %B     PDU's hostname if available, otherwise IP address

       %b     PDU's IP address

       %N     Enterprise string

       %w     Trap type (numeric, in decimal)

       %W     Trap description

       %q     Trap sub-type (numeric, in decimal)

       %P     Security information from the PDU  (community  name
              for v1/v2c, user and context for v3)

       %v     list of trap's variables

       mally  a tab-separated list, but this flag changes it to a
       comma-separated one. The alternate form for the uptime  is
       similar to "3 days, 0:14:34.65"

       Examples:

       To  get a message like "14:03 TRAP3.1 from humpty.ucd.edu"
       you could use something like this:

              snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A\n"

       If you want the same thing but in GMT  rather  than  local
       time, use

              snmptrapd -P -F "%#02.2h:%#02.2j TRAP%w.%q from %A\n"


EXTENSIBILITY AND CONFIGURATION

       See the snmptrapd.conf(5) manual page.


SEE ALSO

       snmpcmd(1), syslog(8), variables(5)

                           07 Aug 2001               SNMPTRAPD(8)
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.04 Seconds