LinuxQuestions.org
Help answer threads with 0 replies.
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, 01: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, 07:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,237

Rep: Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711
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, 10: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, 02: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 11:44 AM
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 AM.

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
Open Source Consulting | Domain Registration