Hi All
I have the following piece of java code:
snmpTrapDesc = "Bad-administartor-Username-or
snmpCmd = "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress +
" '' PROXY-MIB::proxyWrongUserPassTr
Logger.logInformation(this, snmpCmd);
Runtime.getRuntime().exec(snmpCmd);
snmpTrapDesc, snmpCmd and nmsIpAddress are all String-s.
I failed to get the sysUpTime in the trap on the trap receiver application. In C, the same works perfectly well (with the required modifications to code, of course). I get the trap, but w/o the sysUpTime.
My questions:
1. Why aren't those double single quote signs working?
2. Is there something I can use to replace them (I tried SNMP_MIB2::sysUpTime.0. Didn't work).
Thanks,
Ofer
_______________________________________________
Whenever you find that you are on the side of the majority, it is time to
reform.
- Mark Twain
- Mark Twain
