Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have used the example provided in the snmp.conf file itself but the problem same.
1. Entered following line in the /etc/snmp/snmp.conf file
exec .18.104.22.168.4.1.2021.50 shelltest /bin/bash /tmp/shtest
2. Created the script /tmp/shtest containing following
echo hello world
echo hi there
3. Ran following command
/usr/bin/snmpwalk -v 1 localhost -c public .22.214.171.124.4.1.2021.50
4. Output as follows
> /usr/bin/snmpwalk -v 1 localhost -c public .126.96.36.199.4.1.2021.50
End of MIB
I tried this about 2 years back(older version of net-snmp) and it did work but now with new version and Fedora 7 this doesn't seems to work anymore. I am not sure whether I have missed configuring anything or some additional changes I need to perform in order to make this work. If you can help me with this it will be a great help.
Used the pass also but no result. Script execution rights are 755 so I don't think there is a problem in rights either. In the script I entered a echo to a file and it seem the script is not executed at all. I am really lost here and could not find anyone has got same issue. May be a silly mistake. Need to look for the root cause more.
If you can think of any reasons let me know. Thanks a lot your help in this.
Distribution: Ubuntu currently, but Fedora is my favorite
Cannot execute scripts from snmpd.conf file either
I am having the same problem as cdivitotawela. I will attach my conf file. I have two basic scripts I would like to run for proof of concept. One is the simple echotest, and the other is just a testing script to be built on in the future.
syslocation "Intern Cube"
#exec echotest /bin/echo hello world
exec testing /bin/sh /tmp/test
#these next three lines were just testing to see if the entire extensions
#was broken, or if it was just the exec command
disk / 100000
According to the man page the oid preceding it is not necessary, but I've tried it in snmp 1 and 2 and cannot get this to work. Please let me know if you have any ideas. Thanks in advanced,
This thread is OVER TWO YEARS OLD. Please don't thread jack other people's threads too..... Search these forums and online first, and if you can not find an answer to your question, then by all means, create a new thread. Thank you for understanding.