LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash: snmpwalk: command not found (https://www.linuxquestions.org/questions/linux-newbie-8/bash-snmpwalk-command-not-found-834538/)

no1san 09-26-2010 04:04 AM

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?

repo 09-26-2010 04:12 AM

Welcome to LQ
What is the output from
Code:

whereis snmpwalk
Kind regards

David the H. 09-26-2010 04:15 AM

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.)

no1san 09-26-2010 04:19 AM

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

no1san 09-26-2010 04:22 AM

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

David the H. 09-26-2010 04:24 AM

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.

no1san 09-26-2010 04:36 AM

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.


All times are GMT -5. The time now is 11:44 PM.