LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2016, 02:54 PM   #1
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Rep: Reputation: Disabled
Snmp / Cfgmaker problem


# cfgmaker netcomro@172.27.252.3
SNMP Error:
no response received
SNMPv1_Session (remote host: "172.27.252.3" [172.27.252.3].161)
community: "netcomro"
request ID: 2076299575
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 629
SNMPWALK Problem for 1.3.6.1.2.1.1 on netcomro@172.27.252.3::::::v4only
at /usr/bin/cfgmaker line 950
WARNING: Skipping netcomro@172.27.252.3: as no info could be retrieved

I saw a snmp service(snmptrapd) down. I put it up and the result was the same. ;-(
 
Old 06-16-2016, 08:06 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
telnet 172.27.252.3 161
Traps it seems use port 162

http://catb.org/~esr/faqs/smart-questions.html
 
Old 06-16-2016, 08:37 AM   #3
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Here we Can't use telnet, I tried ssh onstead and seemed working.
 
Old 06-16-2016, 09:17 AM   #4
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I ask to see if The router is accepting both 161 and 162 , also along the route.
They will do it afternoon today and I post the results here.
Tks
 
Old 06-16-2016, 10:20 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
nc ?
 
Old 06-16-2016, 10:25 AM   #6
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Didn't understand what it means.
 
Old 06-16-2016, 10:49 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
netcat # since there's no telnet client.
https://www.digitalocean.com/communi...tions-on-a-vps

Code:
nc -z 172.27.252.3 161
 
Old 06-16-2016, 10:54 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
How was this cfgmaker installed exactly?
What OS and build is this on?
What version of snmpd?

Can you snmpwalk manually to 172.27.252.3 for the 1.3.6.1.2.1.1 OID?
version 2 I suspect.
 
Old 06-16-2016, 11:23 AM   #9
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
The log isn't enabled.
Comes an error: No security name specified.
 
Old 06-16-2016, 11:31 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Show us the command used please.
 
Old 06-16-2016, 11:37 AM   #11
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Two tries:
snmpwalk 172.27.252.3 1.3.6.1.2.1.1
No log handling enabled - turning on stderr logging
snmpwalk: No securityName specified
And
snmpwalk 172.27.252.3
Same result

I had used the second to test SNMP connection in the past.
 
Old 06-16-2016, 12:17 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Is the snmpd.conf on 172.27.252.3 configured for access ?\

Maybe it's time I ask you what you are trying to achieve.
What is the goal?

You're using snmpwalk incorrectly:
Example:
Code:
snmpwalk -v 2c -c mysecretsnmp 172.27.252.3 1.3.6.1.2.1.1
So I refer you to http://www.net-snmp.org/

So, on 172.27.252.3 you'll need to configure the "community" (you used "netcomro" earlier?)
and what they'll have access to.

Lots of examples on the web:
https://duckduckgo.com/?q=snmp+walk+...e+linux&ia=web

Last edited by Habitual; 06-16-2016 at 12:27 PM.
 
Old 06-16-2016, 12:20 PM   #13
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I asked them to verify for me, they will answer this afternoon.
Is there any way to test and tell them the problem is there ?
 
Old 06-16-2016, 12:26 PM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by thomazp View Post
I asked them to verify for me, they will answer this afternoon.
Is there any way to test and tell them the problem is there ?
Test what?
I have only your improper use of the snmpwalk command.
Edited: See above^

Also:
You didn't answer:
http://www.linuxquestions.org/questi...0/#post5561920

So, I'm waiting on that before I invest too much more time.
Make certain ports 161 and 162 are open on the snmp host being queried and the client machine doing the query.
 
Old 06-16-2016, 12:30 PM   #15
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I don't have NC command.
The Community is correct.
 
  


Reply

Tags
mrtg, snmp


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
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
MRTG cfgmaker Error SNMPwalk problem manish_2479 Linux - Networking 3 07-10-2007 03:48 PM
Cfgmaker for Mrtg pkrishna10 Linux - Newbie 0 12-05-2004 02:57 AM
cfgmaker for mrtg. pkrishna10 Linux - Wireless Networking 0 12-05-2004 02:02 AM
cfgmaker for squid assooy Red Hat 3 07-28-2004 11:37 AM

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

All times are GMT -5. The time now is 08:53 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
Open Source Consulting | Domain Registration