I'm having seemingly the same issue, though I'm trying to use the "pass"
mechanism with a Python script and a proprietary MIB.
Here's my MIB:
-- Prototype MIB for kwared
KWARED-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE, MODULE-IDENTITY, enterprises,
Integer32
FROM SNMPv2-SMI;
kwared MODULE-IDENTITY
LAST-UPDATED "200706011107Z"
ORGANIZATION
""
CONTACT-INFO
""
DESCRIPTION
"kwared service"
::= { sendza 1 }
-- sendza ent node
sendza OBJECT IDENTIFIER ::= { enterprises 111 }
kwared-cycle-int OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"kwared cycle interval"
::= { kwared 1 }
END
Here's the entry in my snmpd.conf file:
pass .1.3.6.1.4.1.111.1.1 /root/kwared/kwared-mib.py
Here's the output of an snmptranslate command:
[EMAIL PROTECTED] ~]# snmptranslate -Tp -IR sendza
+--sendza(111)
|
+--kwared(1)
+-- -RW- Integer32 kwared-cycle-int(1)
Here are the results of various combinations of local snmpwalk and snmpget
commands:
[EMAIL PROTECTED] ~]# snmpwalk -v 2c -c public myserver .1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No more variables left in this MIB View (It
is past the end of the MIB tree)
[EMAIL PROTECTED] ~]# snmpwalk -v 2c -c public myserver 1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No more variables left in this MIB View (It
is past the end of the MIB tree)
[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public myserver 1.3.6.1.4.1.111.1.1
End of MIB
[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public myserver .1.3.6.1.4.1.111.1.1
End of MIB
[EMAIL PROTECTED] ~]# snmpget -v 1 -c public myserver 1.3.6.1.4.1.111.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: KWARED-MIB::kwared-cycle-int
[EMAIL PROTECTED] ~]# snmpget -v 1 -c public myserver .1.3.6.1.4.1.111.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: KWARED-MIB::kwared-cycle-int
[EMAIL PROTECTED] ~]# snmpget -v 2c -c public myserver .1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No Such Object available on this agent at
this OID
[EMAIL PROTECTED] ~]# snmpget -v 2c -c public myserver 1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No Such Object available on this agent at
this OID
Any help would be appreciated.
Thanks.
Ken....
----- Original Message -----
From: "Abdul-Wahid Paterson" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 04, 2007 7:28 AM
Subject: net-snmp isn't running pass_persist script? how do i know?
>I setup a script for reading QoS/traffic shaping information from the
> output of the tc command. The idea being that when I run the script as
> a pass_persist extension for snmpd I can read the information remotely
> from my network monitoring machine so I can see the traffic on the
> different queues in all the router/firewalls on the network.
>
> I add a line to snmpd.conf like this....
> Code:
>
> pass_persist .1.3.6.1.4.1.2021.255 /usr/bin/snmp_persist.pl
>
>
> But when I try to browse it remotely I get this....
>
> Code:
>
> # snmpwalk -c yeahyeah -v 2c 10.0.0.1 .1.3.6.1.4.1.2021.255
> UCD-SNMP-MIB::ucdavis.255 = No Such Instance currently exists at this OID
>
>
> Any ideas why it might not be working or another step I have to
> perform? I am pretty sure the script itself (snmp_perist.pl) works but
> as far as I can see the script is not even being run by snmpd.
>
> Is there any way I can switch on debugging inside snmpd to let me see
> what is happening? All the options I have tried so far don't tell me
> anything.
>
> Regards,
>
> Abdul-Wahid
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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