Re: pass config direvtive does not work

"Mindaugas" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>

>    [ First - *please* don't mail me privately, without copying
>     any responses to the mailing list.  I don't have the time
>     or inclination to offer private, unpaid, SNMP consultancy.
>     Keep discussions to the list, where others can both learn
>     and offer advice.  Thanks.   ]

  I know. Sorry. Hit the wrong button.

>> > it's basically not possible to query .0.something or .2.something.
>> > (That's not strictly true, but it's close enough).
>>
>>   And it is not possible to enable querying of .0 or .2 somehow?
> 
> Yes, it is.
> But you need to use the "full" access control directives, not the
> simplified "rocommunity" style.  See the snmpd.conf(5) man page
> or the FAQ for full details.
> 
> As I said, this has been fixed in later versions of the software.
> But if you're using 5.1.x, then you'll have to do it the hard way.

  That's not a problem. I'll find out how to do that. But what about
second part of the question. I'll copy/paste it there:

  I also want to install new handler for existing OIDs. E.g. for 
.1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex).
  I see that config is parsed OK:

trace: read_config(): read_config.c, 738:
read_config: /etc/snmp/snmpd.conf:462 examining: pass 
.1.3.6.1.2.1.2.2.1.1/usr/local/bstat/bstat
trace: run_config_handler(): read_config.c, 441:
read_config: Found a parser.  Calling it: pass / .1.3.6.1.2.1.2.2.1.1 
/usr/local/bstat/bstat
trace: netsnmp_register_handler(): agent_handler.c, 190:
handler::register: Registering pass (::old_api) at IF-MIB::ifIndex
trace: netsnmp_inject_handler_before(): agent_handler.c, 311:
handler:inject: injecting bulk_to_next before old_api
trace: netsnmp_register_mib(): agent_registry.c, 566:
register_mib: registering "pass" at IF-MIB::ifIndex
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""

  But when I walk there I get "default" output. That is list of server's 
interfaces.
  But I would like to substitute my output. And bstat is not being run.

  Mindaugas


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.