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

This is a discussion on Re: what Api should i use to put a octetstr in an OBJECT-TYPE like within the SNMP Users forums, part of the Networking and Network Related category; hello dave = i tried with = netsnmp_register_watched_scalar(netsnmp_create_han dler_registration( "upsIdentManufacturer", NULL, fab_oid, OID_LENGTH(fab_oid), HANDLER_CAN_RWRITE ), netsnmp_create_watcher_info( "SILABS", ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2008
Zombi process
 
Posts: n/a
Default Re: what Api should i use to put a octetstr in an OBJECT-TYPE like

hello dave =


i tried with =


netsnmp_register_watched_scalar(netsnmp_create_han dler_registration(
"upsIdentManufacturer", NULL,
fab_oid, OID_LENGTH(fab_oid),
HANDLER_CAN_RWRITE ),
netsnmp_create_watcher_info(
"SILABS", sizeof( char )*7,
ASN_UNSIGNED, WATCHER_FIXED_SIZE
));

an the output was

Error in packet
Reason: (noSuchName) There is no such variable name in
this MIB.
Failed object: UPS-MIB::upsIdentManufacturer.0

I don't known what is wrong ?

thanks

--- Dave Shield <D.T.Shield@liverpool.ac.uk> escribi=F3:

> On 07/03/2008, Zombi process
> <elzombiedeflanders@yahoo.com.ar> 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
> =





Los referentes m=E1s importantes en compra/ venta de autos se juntaro=
n:
Demotores y Yahoo!
Ahora comprar o vender tu auto es m=E1s f=E1cil. Vist=E1 ar.autos.yahoo.com/

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0