Hello,

 

The Net-SNMP versions above 5.4 (5.4.2.1 & 5.5) the following
observations made on functionality of snmptrapd.

 

By default process snmptrapd opens a file descriptor (fd) in RW format
for console log file in versions 5.4.2.1 & 5.5 and traps are writing in
to the console log by default and the option -t while starting the
snmptrapd to restrict process not to write to console log is also not
working.

 

r...@delhi> ps -ef | grep -i trap

    root  5820     1   0 10:43:44 ?           0:00
/opt/SMAW/SMAWnsnmp/sbin/snmptrapd

    root  5823  5185   0 10:43:51 pts/2       0:00 grep -i trap

r...@delhi> pfiles 5820

5820:   /opt/SMAW/SMAWnsnmp/sbin/snmptrapd

  Current rlimit: 256 file descriptors

   0: S_IFCHR mode:0666 dev:354,0 ino:6815752 uid:0 gid:3 rdev:13,2

      O_RDWR

      /devices/pseudo/m...@0:null

   1: S_IFCHR mode:0666 dev:354,0 ino:6815752 uid:0 gid:3 rdev:13,2

      O_RDWR

      /devices/pseudo/m...@0:null

   2: S_IFCHR mode:0666 dev:354,0 ino:6815752 uid:0 gid:3 rdev:13,2

      O_RDWR

      /devices/pseudo/m...@0:null

   3: S_IFIFO mode:0000 dev:352,0 ino:1453325 uid:0 gid:1521 size:0

      O_RDWR

   4: S_IFIFO mode:0000 dev:352,0 ino:1453325 uid:0 gid:1521 size:0

      O_RDWR

   5: S_IFIFO mode:0000 dev:352,0 ino:1453326 uid:0 gid:1521 size:0

      O_RDWR

   6: S_IFIFO mode:0000 dev:352,0 ino:1453326 uid:0 gid:1521 size:0

      O_RDWR

   7: S_IFSOCK mode:0666 dev:361,0 ino:57537 uid:0 gid:0 size:0

      O_RDWR

        SOCK_STREAM

        SO_SNDBUF(16384),SO_RCVBUF(5120)

        sockname: AF_UNIX 

        peername: AF_UNIX /var/agentx/master

   8: S_IFIFO mode:0644 dev:358,2 ino:41924061 uid:4711 gid:1521 size:0

      O_WRONLY|O_CREAT|O_TRUNC

      /tmp/tsp_traps_99

   9: S_IFCHR mode:0000 dev:354,0 ino:61605 uid:0 gid:0 rdev:21,132

      O_WRONLY FD_CLOEXEC

      /devices/pseudo/l...@0:conslog

  10: S_IFSOCK mode:0666 dev:361,0 ino:9664 uid:0 gid:0 size:0

      O_RDWR

        SOCK_DGRAM

        SO_SNDBUF(57344),SO_RCVBUF(57344),IP_NEXTHOP(0.0.224.0)

        sockname: AF_INET 0.0.0.0  port: 50162

r...@delhi>

 

Can you please let us know how to disable this feature of writing the
traps into console log as well as the opening of file descriptor (fd) on
console log?

Does this functionality of snmptrapd is intended or is it a bug? If it
is a bug, please let us know the bug id to track it for the
solution/patch which solves the error.

 

With Best Regards,

Satish. J

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to