LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2011, 11:25 AM   #1
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Rep: Reputation: 0
SNMP - snmpwalk not working 100%


Hello

2 machines (one of them working as a server to monitor the network with IP 192.168.100.110 and the other one to be monitored with IP address 192.168.100.1):

In the first machine:
snmpwalk -v1 localhost -c public sysName (working fine)
snmpwalk -v1 192.168.100.1 -c public sysName (don't works -> Timeout: No Response from 192.168.100.1)

In the monitored machine:
snmpwalk -v1 192.168.100.110 -c public sysName (it works)
snmpwalk -v1 localhost -c public sysName (dont works -> Timeout: No Response from localhost)

Any ideas? thank you
 
Old 03-15-2011, 02:13 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hi aocferreira,

what you setup in your SNMP configuration file? can you post it here?
 
Old 03-16-2011, 12:40 PM   #3
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
Hello sem007,

Thanks for your reply. Now it's working, at least there is a connection between the 2 machines. But i still have a problem with MIBs, any idea?

snmpwalk -v1 -c public 192.168.100.1 system
No log handling enabled - using stderr logging
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
End of MIB

snmpwalk -v1 -c public 192.168.100.110 system
MIB search path: /usr/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
system: Unknown Object Identifier (Sub-id not found: (top) -> system)

I think this was not happening in the beginning but i had a problem because I could only fetch values from SNMPv2-MIB.txt and not from the other modules..
 
Old 03-18-2011, 12:02 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
MIB search path: /root/.snmp/mibs:/usr/local/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
End of MIB
It seems there is missing HOST-RESOURCES-MIB.txt file in /usr/local/share/snmp/mibs.

Copy this file from working machine or reinstall net-snmp package.

HTH
 
Old 03-18-2011, 12:53 AM   #5
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Rep: Reputation: 0
My Question us with SNMPSET....
SNMPSET is also not working.....

i am trying with
snmpset -r 0 -t 1 -v 1 -c public 127.0.0.1 MYTEST-MIB::highCpuUsage.0 i `date +%s`

but its not working its give MESSAGE :

Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: MYTEST-MIB::highCpuUsage.0
 
Old 03-18-2011, 01:13 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hi dashang.trivedi,

do not hijack other member's post and post question in only one forum. You have already post your question here
 
Old 03-18-2011, 02:53 AM   #7
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Rep: Reputation: 0
Extremly Sorry for that....
i am just try to solve my question...,
 
  


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
cacti, mrtg, and snmpwalk don't work after computer reboot cannot collect snmp data scheidel21 Linux - Networking 2 08-03-2009 07:15 AM
snmp problem, regarding snmpwalk, please help wooonix Linux - Networking 1 06-24-2009 07:16 AM
snmpwalk not working for localhost gitecravirs Linux - Newbie 6 06-18-2009 07:00 AM
SNMP: snmpwalk giving dissimilar results jaredboyd Linux - Networking 0 09-23-2008 12:26 PM
snmp not working, help me out badall Linux - Networking 1 06-19-2007 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:06 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