Unable to use PASS or OVERRIDE to implement Printer-MIB
Wayne Conrad <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to get snmpd to pretend to have a Printer-MIB, so that I
can test a manager that wants to talk to a printer.
It seems like OVERRIDE or PASS ought to do, but although they both
work when I use them to override SNMPv2-MIB::sysName.0, they don't
work when I try to use them to implement the Printer-MIB.
First, OVERRIDE
If I override SNMPv2-MIB::sysName.0, all is fine. Before I do the
override, here's what I get.
$ snmpget -v 2c -O n -c public localhost .1.3.6.1.2.1.1.5.0
.1.3.6.1.2.1.1.5.0 = STRING: treebeard
Here's the override:
override .1.3.6.1.2.1.1.5.0 octet_str "Little Bunny Foo Foo"
And here's the correct result from that override:
$ snmpget -v 2c -O n -c public localhost .1.3.6.1.2.1.1.5.0
.1.3.6.1.2.1.1.5.0 = STRING: Little Bunny Foo Foo
But if I try to override a value in Printer-MIB:
override .1.3.6.1.2.1.43.8.2.1.12.1.1.0 octet_str "USLetter:f10012"
Then I don't get the result I expect:
$ snmpget -v 2c -O n -c public localhost .1.3.6.1.2.1.43.8.2.1.12.1.1.0
.1.3.6.1.2.1.43.8.2.1.12.1.1.0 = No Such Object available on this
agent at this OID
Now, PASS
If I use PASS on SNMPv2-MIB::sysName.0, all is fine. Here's the
configuration line:
pass .1.3.6.1.2.1.1.5.0 /etc/snmp/foo.rb
And here's the correct result, showing that the pass script was called:
$ snmpget -v 2c -O n -c public localhost .1.3.6.1.2.1.1.5.0
.1.3.6.1.2.1.1.5.0 = STRING: Silly String
But if I change my configuration line to override part of the
Printer-MIB:
pass .1.3.6.1.2.1.43.8.2.1.12.1.1.0 /etc/snmp/foo.rb
Then nothing good happens:
$snmpget -v 2c -O n -c public localhost .1.3.6.1.2.1.43.8.2.1.12.1.1.0
.1.3.6.1.2.1.43.8.2.1.12.1.1.0 = No Such Object available on this
agent at this OID
In fact, /etc/snmp/foo.rb isn't even called.
Additional Info
Debian testing
snmpd 5.2.2-3
/etc/snmpd/snmpd.conf unchanged from how the Debian package installed
it, except for my attempts at override and pass.
I've also tried these experiments, with the same results, using the
snmpd 5.3.1 that is currently in Debian experimental.
-------------------------------------------------------------------------
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