Remote Installation of net-snmp

Source: Internet
Author: User
Tags ftp file ftp file transfer
Remote Installation of net-snmp-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. putty/ssh 192.168.25.104 // putty is the tool for remote linux connection to windows. 192.168.25.104 is the linux es5 system.

2. # ftp 10.1.9.19 // connect to the ftp server 10.1.9.19 after Logon

3.> change the ftp File Transfer Mode to binary by using ftp binary/bi //.

4.> ftp get net-snmp-5.4.1.2.tar.gz // download the net-snmp-5.4.1.2.tar.gz file to the Local Machine

5.> ftp bye // exit ftp

6. # tar? Zxvf net-snmp-5.4.1.2.tar.gz // Extract

7. # cd net-snmp-5.4.1.2 // enter the source file directory

8. #./configure // you need to select

Default version of-snmp-version: 2

Systemcontact information (the contact who configures the device): heaven

System location (location of the device): china

Location to write logfile (log File Location):/var/log/snmpd. log

Location to Write persistent (data storage directory):/var/net-snmp

9. # make & make install // compile and install

10. # cp EXAMPLE. conf/usr/local/share/snmp/snmpd. conf // copy EXAMPLE. conf in upper case

11. # vi/usr/local/share/snmp/snmpd. conf // edit snmpd. conf

Change mynetwork/24 to the ip address of the host that needs to view snmp information. The ip address is 192.168.25.40.

Change community to the value you set. The value here is cdc.

Note: When editing, press the I letter. When exiting, Press esc before entering: wq

12. # vi/etc/rc. local \ Add/usr/local/sbin/snmpd to the end of netsnmp self-start? C/usr/local/share/snmp/snmpd. conf &

13. # vi/etc/profile \ to set the environment variable, add PATH =/usr/local/bin:/usr/local/sbin: $ PATH before the export command.

14. #/usr/local/sbin/snmpd? D \ Start the snmpd service and check whether the service is started

# Netstat? One | grep 161

If you have started the service and modified snmpd. conf, you must stop the snmpd service and restart it.

Snmpd-d takes effect

How to stop: 1.ps? Ef | grep snmpd // view the process id of the snmpd

2. Kill-9 the process Number of the snmpd // end the process of the snmpd

15. For more net-snmp configurations, see the net-snmp configuration installation manual.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.