Re: 'Inter-Tables indexing' and perl

This is a discussion on Re: 'Inter-Tables indexing' and perl within the SNMP Users forums, part of the Networking and Network Related category; Quoting Dave Shield <D.T.Shield@csc.liv.ac.uk>: > OK - I've tried running this script, ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-30-2005
Turbo Fredriksson
 
Posts: n/a
Default Re: 'Inter-Tables indexing' and perl

Quoting Dave Shield <D.T.Shield@csc.liv.ac.uk>:

> OK - I've tried running this script, using the MIB file from
> http://www.bayour.com/bind9-snmp/BAYOUR-COM-MIB.txt
>
> Bad news, I'm afraid - it works perfectly.


Thanx a lot for trying. You mean you don't get that weird 'b9stIndexTotals'
(and/or b9stIndexDomains)?!

----- s n i p -----
root@aurora:~# alias snmptable
alias snmptable='/usr/bin/snmptable <snmp_server_fqdn> private'
root@aurora:~# snmptable .1.3.6.1.4.1.8767.2.1.3
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTa ble

b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
? success 251621 151271 1789
? referral 165 104 0
? nxrrset 51224 51089 0
? nxdomain 37905 5931 5
? recursion 26370 5 0
? failure 4037 1406 68
root@aurora:~# snmptable .1.3.6.1.4.1.8767.2.1.4
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stDomainsT able

b9stIndexDomains b9stDomainName b9stCounterSuccess b9stCounterReferral b9stCounterNXRRSet b9stCounterNXDomain b9stCounterRecursion b9stCounterFailure
? 0.in-addr.arpa 2 0 0 0 0 0
? 127.in-addr.arpa 1398 0 0 0 0 0
? 168.192.in-addr.arpa 386 0 0 5 0 68
? 255.in-addr.arpa 3 0 0 0 0 0
? domain1.tld 1211 2 10 3 0 144
? domain2.tld 374 0 0 0 0 73
? domain3.tld 139494 0 50265 5583 0 0
? domain4.tld 212 15 1 0 0 51
? domain5.tld 391 9 190 5 0 72
? domain6.tld 1357 39 167 43 5 145
? domain7.tld 390 0 0 0 0 71
? localhost 2538 0 8 0 0 0
? domain8.tld 391 0 0 0 0 64
? domain9.tld 132 4 7 0 0 34
? domainA.tld 125 0 42 1 0 29
? domainB.tld 157 0 30 5 0 43
? domainC.tld 380 0 1 0 0 67
? domainD.tld 380 0 0 0 0 75
? domainE.tld 933 1 11 3 0 157
? domainF.tld 1059 2 12 254 0 161
----- s n i p -----

> That's with both 5.3.pre4 and 5.2.2.rc6 installations (though
> I don't think the version is relevant here).


You don't happen to have a 4.2.3 *begging* ?

I know it's old (and that I'm asking a lot), but... I didn't think/thought
that it mattered...

I've been busy trying to compile me a 5.2.1 the last day(s?), but I'm
not sure I dare upgrade just yet any way. I want to introduce as small
changes to my live systems as possible, and my (stable) development
platform is currently broken. Gonna' take me a couple of days to get
up and running properly...


If you don't have one, that's ok by me. I _CAN_ wait (even if I don't
WANT to :).

> I am 100% convinced that your "snmptable" command must be picking
> up an old copy of the BAYOUR-COM-MIB, that still has the index
> column as readable.


That's just not possible...

----- s n i p -----
root@aurora:~# find / -name '*BAYOUR*'
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
/var/cvs/scripts/Attic/BAYOUR-COM-MIB.txt,v
/var/cvs/snmp-modules/BAYOUR-COM-MIB.txt,v
/var/cvs/snmp-modules/BAYOUR-COM-MIB.bui,v
/var/www/bayour/Softwares/bacula-snmp/BAYOUR-COM-MIB.txt
/var/www/bayour/Softwares/bacula-snmp/BAYOUR-COM-MIB.xml
/var/www/bayour/Softwares/bind9-snmp/BAYOUR-COM-MIB.txt
/var/www/bayour/Softwares/bind9-snmp/BAYOUR-COM-MIB.xml
/mnt/chroots/pumba/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
----- s n i p -----

There's more of them that I had expected... But all of these
(exept the CVS repository files of course) is identical,
so no matter WHICH file it loaded, I would still get the
same behaviour..

----- s n i p -----
root@aurora:~# strace -o /tmp/snmpd-debug.out /usr/sbin/snmpd -D -f
[Ctrl-C after a couple of seconds - plenty of time]
root@aurora:~# egrep -i 'b9stIndexTotals|b9stIndexDomains' `grep ^open /tmp/snmpd-debug.out | grep -v 'No such file or directory' | sed -e 's@open("@@' -e 's@".*@@' | sort | uniq`
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: INDEX { b9stIndexTotals }p -v 'No such file or directory' | sed -e 's@open("@@' -e 's@".*@@' | sort | uniq`
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: b9stIndexTotals CounterIndex,
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: b9stIndexTotals OBJECT-TYPE
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: INDEX { b9stIndexDomains }
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: b9stIndexDomains CounterIndex,
/usr/share/snmp/mibs/BAYOUR-COM-MIB.txt: b9stIndexDomains OBJECT-TYPE
root@aurora:~# diff -u /usr/share/snmp/mibs/BAYOUR-COM-MIB.txt /var/www/bayour/Softwares/bind9-snmp/BAYOUR-COM-MIB.txt
root@aurora:~# file /var/www/bayour/Softwares/bacula-snmp/BAYOUR-COM-MIB.txt
/var/www/bayour/Softwares/bacula-snmp/BAYOUR-COM-MIB.txt: symbolic link to ../bind9-snmp/BAYOUR-COM-MIB.txt
----- s n i p -----

It loads the file I had expected it to load. And I load the EXACT
same file as you downloaded...

--
tritium Ft. Bragg cracking Khaddafi Nazi Legion of Doom subway Mossad
Cuba assassination pits jihad Panama strategic arrangements
[See http://www.aclu.org/echelonwatch/index.html for more about this]
[Or http://www.europarl.eu.int/tempcom/e...chelon_en.pdf]
If neither of these works, try http://www.aclu.org and search for echelon.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0