snmptrapd cpu usage on solaris when disconnected from pty.

2006-04-11 Thread Jayson Robinson
All I've got a wierd one. I'm running snmptrapd 5.3.01 on a solaris 9 box. When I run from the command line and use the -f option I see less then 1% cpu usage. Whenever I call the snmptrapd from the startup script (and it's using the same exact options) cpu goes way up: ps output shows time

snmptrap and single quote using java's Runtime.getRuntime().exec function

2006-04-11 Thread Ofer Goren
Hi All I have the following piece of java code:    snmpTrapDesc = "Bad-administartor-Username-or-Password"; snmpCmd = "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress +                    " '' PROXY-MIB::proxyWrongUserPassTrap PROXY-MIB::proxyWrongUserPassTrap s " + snmpTrapDesc;