Re: 'Inter-Tables indexing' and perl

Turbo Fredriksson <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Bah!
Message-ID <[email protected]>
Quoting Dave Shield <[email protected]>:

> Try removing all these copies of the MIB, and check that
> "snmptable" complains and bombs out.  (Since it relies on
> the structure of the MIB definitions, it's one of the few
> tools that won't work without the MIB file).

----- s n i p -----
root@aurora:~# snmptable .1.3.6.1.4.1.8767.2.1.3
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTable

 b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
               ?         success                6                  6                  0
               ?        referral                0                  0                  0
               ?         nxrrset                2                  2                  0
               ?        nxdomain                1                  1                  0
               ?       recursion                2                  0                  0
               ?         failure                0                  0                  0
root@aurora:~# mv /usr/share/snmp/mibs/BAYOUR-COM-MIB.txt /tmp
root@aurora:~# snmptable .1.3.6.1.4.1.8767.2.1.3
Was that a table? enterprises.8767.2.1.3.1.1
root@aurora:~# mv /tmp/BAYOUR-COM-MIB.txt /usr/share/snmp/mibs/
root@aurora:~# snmptable .1.3.6.1.4.1.8767.2.1.3
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTable

 b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
               ?         success                6                  6                  0
               ?        referral                0                  0                  0
               ?         nxrrset                2                  2                  0
               ?        nxdomain                1                  1                  0
               ?       recursion                2                  0                  0
               ?         failure                0                  0                  0
----- s n i p -----

I _COULD_ do an even worse attempt and really remove all files, but
I thought/think this was prof enough...

Never mind, not that much trouble...

----- s n i p -----
root@aurora:~# cd /
root@aurora:/# tar --remove-files -cvzf tmp/bayour-mib.tgz `find -type f -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/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
root@aurora:/# find -type f -name '*BAYOUR*'
root@aurora:/# snmptable .1.3.6.1.4.1.8767.2.1.3
Was that a table? enterprises.8767.2.1.3.1.1
root@aurora:/# tar xvzf tmp/bayour-mib.tgz ./usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
./usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
root@aurora:/# find -type f -name '*BAYOUR*'
./usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
root@aurora:/# snmptable .1.3.6.1.4.1.8767.2.1.3
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTable

 b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
               ?         success              470                293                  2
               ?        referral                1                  0                  0
               ?         nxrrset              109                109                  0
               ?        nxdomain               46                 13                  0
               ?       recursion               64                  0                  0
               ?         failure                0                  0                  0
root@aurora:/# rm usr/share/snmp/mibs/BAYOUR-COM-MIB.txt
root@aurora:/# snmptable .1.3.6.1.4.1.8767.2.1.3
Was that a table? enterprises.8767.2.1.3.1.1
root@aurora:/# find -type f -name '*BAYOUR*'
root@aurora:/# /usr/bin/snmptable 2> /dev/null | grep version
UCD-snmp version: 4.2.3
----- s n i p -----

-- 
cracking SDI DES Mossad critical AK-47 KGB Soviet Legion of Doom
iodine [Hello to all my fans in domestic surveillance] South Africa
Nazi quiche $400 million in gold bullion
[See http://www.aclu.org/echelonwatch/index.html for more about this]
[Or http://www.europarl.eu.int/tempcom/echelon/pdf/rapport_echelon_en.pdf]
If neither of these works, try http://www.aclu.org and search for echelon.
BAYOUR-COM-MIB.txt.gz (application/octet-stream, 7.6 KB) - not displayed
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.