Summary of common snmpwalk commands

Source: Internet
Author: User
Tags get ip snmp snmpwalk

The SNMP service is often used in routine monitoring, while the snmpwalk command is the most effective method to test the system information. Some common methods are summarized as follows:

1. snmpwalk-C public-V 1-m all 192.168.30.49. 1.3.6.1.2.1.25.1.

2. snmpwalk-C public-V 1-m all 192.168.30.49. 1.3.6.1.2.1.25.2.2 get the total system memory

3. snmpwalk-C public-V 1-m all 192.168.30.49 hrsystemnumusers

4. snmpwalk-C public-V 1-m all 192.168.30.49. 1.3.6.1.2.1.4.20 get IP information

5. snmpwalk-V 2C-C public 192.168.30.49 System View System Information

6. snmpwalk-V 1 192.168.30.49-C public ifdescr

1. snmpwalk-V 2C-C public 10.103.33.1. 1.3.6.1.2.1.25.1.

Here,-V refers to the version, and-C refers to the key, which is set in the client SNMP. conf, which is similar to the following.

2. snmpwalk-V 2C-C public 10.103.33.1. 1.3.6.1.2.1.25.2.2 obtain the total system memory.

3. snmpwalk-V 2C-C public 10.103.33.1 obtain the number of system users

4. snmpwalk-V 2C-C public 10.103.33.1. 1.3.6.1.2.1.4.20 get IP information

5. view system information in snmpwalk-V 2C-C public 10.103.33.1 System

6. snmpwalk-V 2C-C public 10.103.33.1 ifdescr get Nic Information

The above is just some common information. snmpwalk has many functions and can obtain various information about the system. You only need to change the information type. if you do not know the type, you can also leave it unspecified so that all system information is obtained:

Snmpwalk-V 2C-C public 10.103.33.1

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.