This is a multi-part message in MIME format.

------_=_NextPart_001_01C65D68.06FE4C37
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All

I have the following piece of java code:
snmpTrapDesc =3D "Bad-administartor-Username-or-Password";
snmpCmd =3D "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress +
" '' PROXY-MIB:roxyWrongUserPassTrap
PROXY-MIB:roxyWrongUserPassTrap s " + snmpTrapDesc;=20
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.=20
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
=20
_______________________________________________
Whenever you find that you are on the side of the majority, it is time
to reform.=20
- Mark Twain
=20

------_=_NextPart_001_01C65D68.06FE4C37
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



charset=3Dus-ascii">


Hi All


I have the following piece of java=20
code:
    snmpTrapDesc =3D=20
"Bad-administartor-Username-or-Password";
   &nbsp=
;=20
snmpCmd =3D "/usr/bin/snmptrap -v 2c -c public " + nmsIpAddress=20
+
            =
   =20
    " '' PROXY-MIB:roxyWrongUserPassTrap=20
PROXY-MIB:roxyWrongUserPassTrap s " + snmpTrapDesc;=20

    Logger.logInformation(this,=20
snmpCmd);
   =20
Runtime.getRuntime().exec(snmpCmd);

snmpTrapDesc, snmpCmd and=20
nmsIpAddress  are all String-s.

I failed to get the =
sysUpTime in the=20
trap on the trap receiver application. In C, the same works perfectly =
well (with=20
the required modifications to code, of course). I get the trap, but w/o =
the=20
sysUpTime.
My questions:
1. Why aren't those double single quote =
signs=20
working?
2. Is there something I can use to replace them (I tried=20
SNMP_MIB2::sysUpTime.0. Didn't =
work).

Thanks,
Ofer

 


size=3D2>_______________________________________________


style=3D"FONT-SIZE: 7.5pt; COLOR: #707070; FONT-FAMILY: Verdana"> size=3D2>Whenever you find that you are on the side of the majority, it =
is time to=20
reform.
- Mark=20
Twain

 


------_=_NextPart_001_01C65D68.06FE4C37--


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders