LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2012, 02:47 AM   #1
zmanho
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
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
 
Old 07-03-2012, 08:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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
 
Old 07-03-2012, 11:26 PM   #3
zmanho
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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]#
 
Old 07-05-2012, 03:37 AM   #4
zmanho
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
-----------------------------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Custom SNMP MIB to Default DELL OMSA SNMP prabakar4all Linux - Server 0 07-29-2011 12:44 PM
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 02:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 08:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 06:32 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 11:45 AM


All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration