Need help for adding my own MIB

avihai marchiano <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I want to have a simple string mib that just allow me to call to snmpget and snmpset.
no need in hadlers...

After lot of playing the simplest way that i found is to define the MIB and to add a class with init and this impl:
    const oid open_connections_list_oid[] = { 1, 3, 6, 1, 4, 1, 8075, 21 };//In this we dont add the 0 at the end
    strcpy(open_connections_list_value, "");
    netsnmp_register_watched_scalar(
            netsnmp_create_handler_registration("open_connections_list", NULL,
                    open_connections_list_oid, OID_LENGTH(open_connections_list_oid),
                    HANDLER_CAN_RWRITE),
            netsnmp_create_watcher_info(&open_connections_list_value, MY_MAX_LEN,
                    ASN_OCTET_STR, WATCHER_MAX_SIZE));


is there a simple way to add a simple MIB with no handlers? do i have to implement this?

Thank you

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
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.