First, we will briefly introduce what SNMP is: The predecessor of Simple Network Management Protocol (SNMP) is the Simple gateway monitoring Protocol (SGMP), which is used to manage communication lines. Subsequently, SGMP was greatly modified. In particular, SMI and MIB compliant with Internet definitions were added: the improved protocol is the famous SNMP.
The goal of SNMP is to manage software and hardware platforms produced by many manufacturers on the Internet. Therefore, SNMP is greatly affected by the Internet standard network management framework. Now SNMP has been released to the third version, and its functions have been greatly enhanced and improved.
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 52.0.13.14. 1.3.6.1.2.1.25.1 obtain the number of system process users on windows. 2. snmpwalk-c public-v 1-m ALL 52.0.13.14. 1.3.6.1.2.1.25.2.2 obtain the total system memory. 3. snmpwalk-c public-v 1-m ALL 52.0.13.14 hrSystemNumUsers 4. snmpwalk-c public-v 1-m ALL 52.0.13.14. 1.3.6.1.2.1.4.20 obtain IP information 5. snmpwalk-v 2c-c public 52.0.13.14 system View system Information 6. snmpwalk-v 1 52.0.13.14-c public ifDescr
1. snmpwalk-v 2c-c public 52.0.13.14. 1.3.6.1.2.1.25.1 obtain the number of system process users on windows, among which-v indicates the version and-c indicates the key, that is, the client snmp. the following is the same as what is set in conf.
2. snmpwalk-v 2c-c public 52.0.13.14. 1.3.6.1.2.1.25.2.2 obtain the total system memory. 3. snmpwalk-v 2c-c public 52.0.13.14 hrSystemNumUsers obtain the number of system users. 4. snmpwalk-v 2c-c public 52.0.13.14. 1.3.6.1.2.1.4.20 get IP information 5. snmpwalk-v 2c-c public 52.0.13.14 system View system Information 6. snmpwalk-v 2c-c public 52.0.13.14 ifDescr get Nic Information
The above is just some common information, and there are many snmpwalk functions, you can obtain various information about the system, as long as you change the following information type. If you do not know the type, you can also leave it unspecified. In this way, all system information is obtained: snmpwalk-v 2c-c public 52.0.13.14