Re: 'Inter-Tables indexing' and perl

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

> [sorry for taking so long, but I've been busy with other things]
>
> Quoting Dave Shield <[email protected]>:
>
>> On Sat, 2005-10-22 at 10:46 +0200, Turbo Fredriksson wrote:
>>> If I read your explanation correct above, you're not supposed to
>>> see the index (baculaStatsIndex etc) AT ALL!?
>>
>> Correct.
>>
>>>  I do (see the ...snmpwalk.txt file).
>>
>> Check the agent code - what does it return when asked for an OID
>> that happens to belong to an index object?   It ought to completely
>> ignore such object - just as if they don't exist at all.
>
> I've started to modify my Bind9 SNMP Subagent that have the same
> problem to fix this, but can't get rid of the INDEX:
>
> ----- s n i p -----
> root@aurora:~# export OID_BASE=.1.3.6.1.4.1.8767.2.1
> root@aurora:~# alias snmpwalk="/usr/bin/snmpwalk -On localhost:161 private"
> root@aurora:~# /usr/bin/snmptable localhost:161 private $OID_BASE.3
> SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTable
>
>  b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
>                ?         success          1820713            1574605               2524
>                ?        referral               79                 75                  0
>                ?         nxrrset            54522              54198                  0
>                ?        nxdomain            54564               8662                  5
>                ?       recursion            28790                  2                  0
>                ?         failure             3411               1761                 74
> ----- s n i p -----

With 'completely ignore...', do you mean "return 'NONE\n'" or just
ignore it completely - literally (not returning ANYTHING)?

Returning 'NONE\n' doesn't help (still get the question mark with
'snmptable', and if I just ignore it, I don't get any values at all
in/from the table...

----- s n i p -----
root@aurora:~# export OID_BASE=bind9Stats
# => ignoring the value all together:
root@aurora:~# /usr/bin/snmptable localhost:161 private $OID_BASE.3
Timeout: No Response from localhost
# => returning '\n'
root@aurora:~# /usr/bin/snmptable localhost:161 private $OID_BASE.3
Timeout: No Response from localhost
# => returning 'NONE\n'
root@aurora:~# /usr/bin/snmptable localhost:161 private $OID_BASE.3
SNMP table: enterprises.bayourCom.snmp.bind9Stats.b9stTotalsTable

 b9stIndexTotals b9stCounterName b9stCounterTotal b9stCounterForward b9stCounterReverse
               ?         success            60271              33476                771
               ?        referral               17                 16                  0
               ?         nxrrset             9150               9101                  0
               ?        nxdomain            14367               1714                  0
               ?       recursion             7542                  0                  0
               ?         failure              854                378                 12
----- s n i p -----


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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.