Hi Guys,

It does appear to be working now, so please disregard my previous post. When checking it from an outside server it responds as expected.

Thanks for the help.
Steve.


On 16/02/2011 8:21 PM, Ashwin Kumar wrote:
Hello Anthony,

(I had posted this same mail early morning to an user, you may check it on the forum :-))

Follow these steps for the fresh installation from source.

1. Log in as root (su - root)

2. Navigate to the home folder where the net-snmp tar.gz is kept
Issue this command at the prompt

tar -zxvf net-snmp-5.5.tar.gz
(I still happen to use v 5.5. Change this with your version)

3. Navigate to the un-tarred directory.

4. Run ./configure

5. make

6. make install

7. You now have netsnmp installed and ready to use.

Ha Ha .. not quite.. theres still a lot of stuff that needs to be done before we can say...yup..thats working beautifully..

8. Navigate to /usr/local/bin to see if the folder has a bunch of snmp stuff like *snmpconf snmptranslate* and so on...

9. Also see if the /usr/local/share/snmp/mibs folder and see if all the MIB files are present..

10. If everything is fine until here try to some configurations checking (else start-over).
Run,
net-snmp-config --default-mibdirs
and you must get the output
/root/.snmp/mibs:/usr/local/share/snmp/mibs

Run,
net-snmp-config --snmpconfpath
output should be like
/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp:/var/net-snmp

11. Run,
ldd /usr/local/bin/snmptranslate
output will be:
linux-gate.so.1 =>  (0x00110000)
       libnetsnmpagent.so.15 => not found
       libnetsnmphelpers.so.15 => not found
       libnetsnmpmibs.so.15 => not found
       libnetsnmp.so.15 => not found
This means that you might get snmp*: error while loading shared libraries:
like for example as mentioned above libnetsnmp.so.20: It cannot open shared object file.

If no error comes like above , no need to do anything, but if error comes, then, you have to do the steps below Edit ld.so.conf in /etc and add the details of the lib path of /usr/local/lib and then run ldconfig

vi /etc/ld.so.conf

/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/lib/Xaw3d
/usr/i386-suse-linux/lib
/usr/local/lib
/opt/kde3/lib
include /etc/ld.so.conf.d/*.conf

(I happen to Use Suse a lot. But something is also very similar to Debian)

12. Run,
ldconfig

13. Now you have to tell netsnmp where to look for MIB files. You use the snmpconf command to do this. Issue this command at the prompt.
snmpconf

This is what it will appear on your screen,
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

  1:  snmpd.conf
  2:  snmptrapd.conf
  3:  snmp.conf

Other options: quit

Select File: 3

The configuration information which can be put into snmp.conf is divided
into sections.  Select a configuration section for snmp.conf
that you wish to create:

  1:  Debugging output options
  2:  Textual mib parsing
  3:  Output style options
  4:  Default Authentication Options

Other options: finished

Select section: finished

I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

  1:  snmpd.conf
  2:  snmptrapd.conf
  3:  snmp.conf

Other options: quit

Select File: quit


The following files were created:

 snmp.conf

These files should be moved to /usr/local/share/snmp if you
want them used by everyone on the system.  In the future, if you add
the -i option to the command line I'll copy them there automatically for you.

Or, if you want them for your personal use only, copy them to
/root/.snmp .  In the future, if you add the -p option to the
command line I'll copy them there automatically for you.

14. Copy the snmp.conf file.
cp snmp.conf /usr/local/share/snmp/

15. Finally try this.
snmptranslate -Tp -IR ipMIB

You will observe a tree structure on your screen.
This means that everything that you have installed is working

So now the errors are not going to be there because of configuration..
whatever gets screwed up , its your responsibilty ;-) (a little joke)


Cheers,

2011/2/16 Dave Shield <d.t.shi...@liverpool.ac.uk <mailto:d.t.shi...@liverpool.ac.uk>>

    2011/2/16 ?? (Anthony Jiang) <2nth0...@gmail.com
    <mailto:2nth0...@gmail.com>>:
    >     But the compiled snmpd( in /usr/local/sbin/snmpd ) doesn't
    response any
    > pdu when executing snmpget( in /usr/local/bin ).

    How did you start the agent?
    Was anything logged?

    Try running the agent using "snmpd -f -Le"
    That will let you see any error messages that it reports.

    If I had to guess, my suspicion is that you are being hit by
    the problem covered in the FAQ entry

       My new agent is ignoring the old snmpd.conf file. Why?
    http://net-snmp.sourceforge.net/wiki/index.php/FAQ:Agent_28

    Dave

    
------------------------------------------------------------------------------
    The ultimate all-in-one performance toolkit: Intel(R) Parallel
    Studio XE:
    Pinpoint memory and threading errors before they happen.
    Find and fix more than 250 security defects in the development cycle.
    Locate bottlenecks in serial and parallel code that limit performance.
    http://p.sf.net/sfu/intel-dev2devfeb
    _______________________________________________
    Net-snmp-users mailing list
    Net-snmp-users@lists.sourceforge.net
    <mailto:Net-snmp-users@lists.sourceforge.net>
    Please see the following page to unsubscribe or change other options:
    https://lists.sourceforge.net/lists/listinfo/net-snmp-users




--
-- Ashwin Kumar
+91-974-054-7793


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to