This is a discussion on OID comparision within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------=_NextPart_000_0318_01C52FE4.667E9D70 Content-Type: text/plain; charset="big5" Content-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
------=_NextPart_000_0318_01C52FE4.667E9D70 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Someone please help me on how to do OID comparision, when receiving a = SNMP GET/SET request. is it like this?? char old[]=3D"1.3.6.1.2.1.1.1"; if ( requests->requestvb->name =3D=3D oid) { .............. } Please help me. Thanks. ------=_NextPart_000_0318_01C52FE4.667E9D70 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5"> <META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Someone please help me on how to do OID = comparision, when receiving a SNMP GET/SET request.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>is it like this??</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>char = old[]=3D"1.3.6.1.2.1.1.1";</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>if ( requests->requestvb->name = =3D=3D=20 oid)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>{</FONT></DIV> <DIV><FONT face=3DArial size=3D2>.............</FONT></DIV> <DIV><FONT face=3DArial size=3D2>}</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Please help me. Thanks.</FONT><FONT = face=3DArial=20 size=3D2></FONT></DIV></BODY></HTML> ------=_NextPart_000_0318_01C52FE4.667E9D70-- ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |