LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SNMP problem (https://www.linuxquestions.org/questions/linux-newbie-8/snmp-problem-4175414580/)

zmanho 07-03-2012 02:47 AM

SNMP problem
 
Hi I have a question about SNMP/snmpwalk

I already created a custom OID. And it was success to walk the index. such as below.

[root@localhost ~]# snmpwalk -c public -v2c 127.0.0.1 1.3.6.1.4.1.228.11.4.32
SNMPv2-SMI::enterprises.228.11.4.32.1 = STRING: "2561-int"
SNMPv2-SMI::enterprises.228.11.4.32.2 = STRING: "2581-int"
SNMPv2-SMI::enterprises.228.11.4.32.3 = STRING: "2582-int"


But when i walk the exact interface it returned

[root@localhost ~]# snmpwalk -c public -v2c 127.0.0.1 1.3.6.1.4.1.228.11.4.32.1
SNMPv2-SMI::enterprises.228.11.4.32.1 = No Such Instance currently exists at this OID
[root@localhost ~]#


Have any ideas???

Thanks

chrism01 07-03-2012 08:09 PM

You could (should?) use snmpget http://linux.die.net/man/1/snmpget and/or play with some of the options shown here http://linux.die.net/man/1/snmpwalk

zmanho 07-03-2012 11:26 PM

Thank you for your reply.

But is it normal? It return No Such Instance currently exists at this OID When i walk the exact interface?

it already try to use snmpget. It cannot return result as snmpwalk....

May i know have any configuration i need to change? if i have a custom OID ??

Thank you

[root@localhost scripts]# snmpget -c public -v2c 127.0.0.1 1.3.6.1.4.1.228.11.4.32
SNMPv2-SMI::enterprises.228.11.4.32 = No Such Instance currently exists at this OID

[root@localhost scripts]# snmpget -c public -v2c 127.0.0.1 1.3.6.1.4.1.228.11.4.32.1
SNMPv2-SMI::enterprises.228.11.4.32.1 = No Such Instance currently exists at this OID
[root@localhost scripts]#

zmanho 07-05-2012 03:37 AM

Is it related with the snmpd version?

-----------------------------
NET-SNMP version: 5.3.2.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

[root@localhost ~]#
-----------------------------

snmpd.conf

pass .1.3.6.1.4.1.228.11.4.32 /var/www/mrtg/filter
-----------------------------


All times are GMT -5. The time now is 10:40 PM.