Could anyone tell me the purpose/use of the following handler registration
method?
netsnmp_mib_handler *handler1 = netsnmp_create_handler("", handle_snmp);
netsnmp_register_handler_by_name("", handler1);
Instead of the usual registration method:
netsnmp_handler_registration *handler_reg =
netsnmp_create_handler_registration("",
handle_snmp,
scalar_oid,
oid_length,
HANDLER_CAN_RONLY);
int returnValue = netsnmp_register_scalar(handler_reg);
I have been asked if it is possible to register all scalars under a root node
recursive. This instead of registering all scalars one by one. The only
approach I have found is to register scalar groups with
netsnmp_register_scalar_group, but that one needs to be invoked for each scalar
group. With my current approach of registering 4000 scalars one by on it takes
a few minutes and snmpd uses a lot of CPU in that time. By registering scalar
groups consumed time and CPU load of snmpd wasn't any different.
CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
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