LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-26-2010, 04:04 AM   #1
no1san
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
bash: snmpwalk: command not found


Hi,

I followed this tutorial:
http://www.debianhelp.co.uk/snmp.htm

After this tutorial I did:

root@web1:~# /etc/init.d/snmpd restart
Restarting network management services: snmpd.

As far as I think evrything went ok.
I want to test my config with:
snmpwalk localhost -c public -v1

I get this error:
bash: snmpwalk: command not found

Already used the search forum and google but I have no idea.
Any idea how to solve this error message?
 
Old 09-26-2010, 04:12 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ
What is the output from
Code:
whereis snmpwalk
Kind regards
 
Old 09-26-2010, 04:15 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Try apt-get install snmp. That program appears to be in a different package from the daemon itself.

(Hint, the apt-file program is very helpful in finding out which package contains which file.)
 
1 members found this post helpful.
Old 09-26-2010, 04:19 AM   #4
no1san
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Welcome to LQ
Thanks.

Quote:
What is the output from
Code:
whereis snmpwalk
root@web1:~# whereis snmpwalk
snmpwalk:


Quote:
Try apt-get install snmp. That program appears to be in a different package from the daemon itself.
But will it mess up my current config? (/etc/snmp)

tutorial = apt-get install snmpd - done
apt-get install snmp - in progress

Last edited by no1san; 09-26-2010 at 04:21 AM.
 
Old 09-26-2010, 04:22 AM   #5
no1san
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
snmpwalk localhost -c public -v1
Working now after apt-get install snmp

Thanks.
ater today I will try to use this for some cactie data on another server
 
Old 09-26-2010, 04:24 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
No. It just installs some related programs, such as snmpwalk.

Quote:
# apt-file show snmp

Description: SNMP (Simple Network Management Protocol) applications
The Simple Network Management Protocol (SNMP) provides a framework
for the exchange of management information between agents (servers)
and clients.
.
The Net-SNMP applications are a collection of command line clients
for issuing SNMP requests to agents.
ETA:

Installing and uninstalling packages almost never affects your configuration files, although it does occasionally ask you if you want to replace a default configuration file if it's been modified. Just be careful not to say yes unless you know what you're doing.

Last edited by David the H.; 09-26-2010 at 04:35 AM.
 
1 members found this post helpful.
Old 09-26-2010, 04:36 AM   #7
no1san
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Not sure if it is related:
WARNING: UDP Ping Error: gethostbyname failed for domain.nl

How can I test the udp ping from server 1 to domain.nl ?
Is it related to the snmp setting?

Local vlan is open in the config from snmp.
 
  


Reply



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
bash: command not found hamish Linux - Newbie 7 02-23-2011 04:28 PM
Bash command can not found help michaelpang Ubuntu 1 08-09-2010 09:59 PM
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 01:45 PM
bash: g++ command not found briemac Programming 14 12-31-2006 01:31 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM

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

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