registered watcher reporting no such instance

"Paul Davies" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
The following code snippet works and returns a valid oid value;

    netsnmp_register_read_only_ulong_instance("myVar",
                              myVar_oid,
                              OID_LENGTH(myVar_oid),
                              &myVar, NULL); 

I then replaced it with a consolidated watcher;

   /*
     * myVar uses a consolidated "watcher" helper 
     */
    netsnmp_register_watched_scalar(
        netsnmp_create_handler_registration(
            "myVar ",
            NULL, // access handler funtion
            myVar _oid,
            OID_LENGTH(myVar _oid),
            HANDLER_CAN_RONLY),
        netsnmp_create_watcher_info(
            (void*)&myVar ,
            sizeof(myVar ),
            ASN_GAUGE,
            WATCHER_FIXED_SIZE));

and now when querying the MIB, I get "no such instance".

Can anybody see anything obvious that I may be doing incorrect?

thanks
--
Paul D



The information contained within this e-mail and any files attached to this e-mail is confidential and in addition may include commercially sensitive information. The contents of this e-mail are for the intended recipient only and therefore if you wish to disclose the information contained within this e-mail or attached files, please contact the sender prior to any such disclosure. 

If you are not the intended recipient, any disclosure, copying or distribution is prohibited. Please also contact the sender and inform them of the error and delete the e-mail, including any attached files from your system.

www.eadsdsuk.com 




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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.