[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    
From:       Akhilesh kumar <95akumar () gmail ! com>
Date:       2014-11-27 6:14:49
Message-ID: CAFgeEmca6RmvXzvjNKCqrBtLOEavRe4PXPXT+KbdDSBUqrESxg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all

I have solved all problems till my last conversation. Here comes the next
problem.

I am writing a *C* code by taking the apis of net-snmp to create my own app
similar to snmpset. I want to set the integer value for 10 number of OIDs.
I have done till following :

                init_snmp("my_snmpset");
                snmp_sess_init( &session );
                session.version = SNMP_VERSION_1;
                session.community = "private";
                session.community_len = strlen(session.community);
                session.peername = argv[1];
                sess_handle = snmp_open(&session);
                pdu = snmp_pdu_create(SNMP_MSG_SET);


Till here i have created the PDU for set. Now which *api/function* to take
(to pass my *OID* and the *value* by which i want to set it). Next i cant
understand. Kindly suggest me.

[Attachment #5 (text/html)]

<div dir="ltr">Hi all<br><div><br>I have solved all problems till my last \
conversation. Here comes the next problem.<br><br>I am writing a <b>C</b>  code by \
taking the apis of net-snmp to create my own app similar to  snmpset. I want to set \
the integer value for 10 number of OIDs. I have  done till following :<br><br>        \
init_snmp(&quot;my_snmpset&quot;);<br>                snmp_sess_init( &amp;session \
);<br>                session.version = SNMP_VERSION_1;<br>                \
session.community = &quot;private&quot;;<br>                session.community_len = \
strlen(session.community);<br>                session.peername = argv[1];<br>         \
sess_handle = snmp_open(&amp;session);<br>                pdu = \
snmp_pdu_create(SNMP_MSG_SET);<br><br><br>Till here i have created the PDU for set. \
Now which <b>api/function</b> to take (to pass my <b>OID</b> and the <b>value</b> by \
which i want to set it). Next i cant understand. Kindly suggest me.

	  </div></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic