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