LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing a net-snmp 5.6.1 problem.... (https://www.linuxquestions.org/questions/linux-software-2/installing-a-net-snmp-5-6-1-problem-875803/)

dashang.trivedi 04-19-2011 02:04 AM

Installing a net-snmp 5.6.1 problem....
 
My objective is to install net-snmp with perl module....


Currently i type command snmpd -d
it will give
UCD-snmp version: 4.2.1
Author: Wes Hardaker
Email: ucd-snmp-coders@ucd-snmp.ucdavis.edu


to update this version i download
net-snmp-5.6.1.tar.gz
put in /root/dashang/net-snmp-5.6.1.tar.gz

Extract the that file

cd net-snmp-5.6.1
type
1)./configure --prefix=/usr/local/net-snmp/
Then Long process is going on.process ask several question..
Then I type MAKE but still same process is going on..
No single file is install in /usr/local/net-snmp/

if i install perl
cd perl
MAKEFILE.pl
it will give ERROR first install net snmp first....




PLEASE TELL ME THE SOLUTION HOW TO INSTALL SNMP..
when i type snmpd -v it should give latest version of snmp......

TB0ne 04-19-2011 09:38 AM

Quote:

Originally Posted by dashang.trivedi (Post 4328971)
My objective is to install net-snmp with perl module....

Currently i type command snmpd -d it will give
UCD-snmp version: 4.2.1
Author: Wes Hardaker
Email: ucd-snmp-coders@ucd-snmp.ucdavis.edu

to update this version i download net-snmp-5.6.1.tar.gz put in /root/dashang/net-snmp-5.6.1.tar.gz

Extract the that file
cd net-snmp-5.6.1
type
1)./configure --prefix=/usr/local/net-snmp/
Then Long process is going on.process ask several question..
Then I type MAKE but still same process is going on..
No single file is install in /usr/local/net-snmp/

if i install perl
cd perl
MAKEFILE.pl
it will give ERROR first install net snmp first....

PLEASE TELL ME THE SOLUTION HOW TO INSTALL SNMP..
when i type snmpd -v it should give latest version of snmp......

You ran the make...did you read the installation instructions that come in that .gz file? Did you run the "make install", which actually puts the files into place? Did you restart the SNMP daemon afterwards?

And Perl has nothing to do with snmp...or do you mean you're trying to install a particular perl MODULE? Which one? Chances are you need to install the net-snmp development libraries. You say nothing about the version/distro of Linux you're using, but you can install net-snmp and the development libraries via your online repositories much easier, and you'll know they work too.

dashang.trivedi 04-22-2011 05:48 AM

i Solve my installation problem.....

But i still got problem on Adding Private Mib........


My objective is to add a a private MIB file...and perform operation snmpset and snmpget



1) I install net-snmp-5.3.3
./configure --with-perl-modules
make
make install
2)I copied MIB file to /usr/share /snmp/mibs


Now which step i have to take ???
i search that CREATE A TEMPLATE CODE of MIB file in .C and .H file

For That i use tool mib2c

i just try
mib2c -c mib2c.scalar.conf ucdDemoPublic

---> it gives output
outputting to ucdDemoPublic.c and ucdDemoPublic.h ...
depth: 1
Number of Lines Created:
2 ucdDemoPublic.c
1 ucdDemoPublic.h
3 total
Done.

but the file content is blank....its not generating template code....



PLEASE GUIDE ME WHAT IS THE FURTHER STEP FOR ADDING MY PRIVATE MIB FILE....

THANK IN ADVANCE..


All times are GMT -5. The time now is 12:25 PM.