Install NET-SNMP under win7

Source: Internet
Author: User
Tags snmp snmpget snmpwalk

Recently, net-snmp needs to be installed on UNIX machines and can be used in windows, so I want to try it on the local machine. However, this is a strange thing. I just want to record the process first and then learn more.

 

What is it for? I borrowed a paragraph from someone else:

 

The purpose of a Simple Network Management Protocol is to make the loose network run more effectively. It is widely used to monitor the status of the network, the running status of network devices, various computer devices, and some auxiliary peripheral devices, so that the network administrator can discover and locate faults by querying and setting nodes, and then take appropriate measures to maintain the network. The Research on Network Management has been developing for many years. For the increasingly complicated demands, simplicity and scalability are still the subject of the research.

 

 

 

1. Download

Http://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.5-binaries/net-snmp-5.5.0-1.x86.exe

 

2. install it in D:/usr.

 

Check whether the installation is successful. You can view the version:

 

 

 

 

 

3. Registration Service

 

This process encountered an error:

 

Cannot register, because the operating system used is win7, so it should be a permission issue:

Register with the Administrator in the installation directory:

 

 

Installed successfully

4. Why can't I start the service in the CMD command line? I still don't have the permission. Services. MSC is started in the service list after being executed.

5. Configure the snmpd. conf file

Find the etc directory under the installation directory and go to the SNMP folder. An SNMP is found. CONF file. What we use is snmpd. conf is not an existing one. Create a common file named snmpd. conf, write in it

 

Rocommunity public

Only one sentence.

Note: If this sentence is not added, the host will not respond frequently, because it is equivalent to having no access protocol pass.

Then restart the service.

6. Test

 

 

Switch to the bin folder under the installation directory in cmd and execute:

 

Snmpwalk-V 1-C public 135.32.9.189

 

 

 

 

 

 

 

Snmpwalk.exe-V 1-C public localhost versiontag

 

 

Snmpwalk.exe-V 1-C public localhost sysdesc

 

The test is basically passed and you will continue to study later

 

References:

Http://bibu.blogchina.com/inc/net_snmp_doc.htm

Http://forums.cacti.net/viewtopic.php? T = 26151

 

 

Update:

To set the port, add a line in the snmpd. conf file.

Agentaddress 10061

If you want to use SNMPTRAP, you need to add the target host and port for sending messages to this file after the extended protocol.

Trap2sin135.32.247.18: 10062

 

Three other command examples

Snmpget-v2c-C public 135.32.24.161: 10061 1.3.6.1.4.1.81000.2.103.2.2.8.1.1.6.0

Snmpgetnext-v2c-C public 135.32.24.161: 10061 1.3.6.1.4.1.81000.2.103.2.2.8.2.1.1.0

Snmpget-v2c-C public 135.32.24.161: 10061 1.3.6.1.4.1.81000.2.103.2.2.8.2.1.1.0

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.