Re: what Api should i use to put a octetstr in an OBJECT-TYPE like manufacter

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 07/03/2008, Zombi process <[email protected]> wrote:
>  I need to include strings in register to put
>  manufacter ,model , etc in the mib of my proyect .
>
>  I used this for int vars
>  netsnmp_register_int_instance("var1",var1_oid,OID_LENGTH(var1_oid),&var1,
>  NULL);
>
>  but i don't know how to used to octetstr

Try either 'netsnmp_register_scalar' or 'netsnmp_register_watched_scalar'.
There are examples of both of these in the agent/mibgroup tree, and
the 'mib2c.scalar.conf' template will generate code for the first approach.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.