The error on SnmpMgrRequest 40
CodePudding user response:
Snmputil execute the commandC: \ & gt; Snmputil get localhost public. 1.3.6.1.2.1.1.3.0
The error on SnmpMgrRequest 40
1 configure SNMP service
1, CMD (services. MSC) on the service, and then find a double-click configure SNMP
2, trap add group name in public, added to the list, add below "trap" target: 127.0.0.1
3, add group name: [security] public, tick "send authentication trap",
4, the last point to determine,
Only do C: \ & gt; Snmputil get 127.0.0.1 public. 1.3.6.1.2.1.1.3.0
Or
C: \ & gt; Snmputil get localhost public. 1.3.6.1.2.1.1.3.0
If you want to allow running C: \ & gt; Snmputil get 192.168.0.27 public. 1.3.6.1.2.1.1.3.0
Requires in [security], "accept SNMP packets from the host of the following (T)", "192.168.0.27" is added to the
E: \.. \ snmputil> Snmputil get 192.168.0.27 public. 1.3.6.1.2.1.1.3.0
Variable=system. SysUpTime. 0
Value=629050
https://bbs.csdn.net/topics/TimeTicks
To execute the above command:
C: \ & gt; Snmputil get localhost public. 1.3.6.1.2.1.1.3.0
If still at 40 error is, for the following:
2, check the SNMP port Settings
1, check the port 161 to take up;
C: \ & gt; Netstat aon | findstr searches "161"
UDP 0.0.0.0: * : 50161 * 6136
UDP [: :] : 50161 * : * 6136
Found no enabled 161 service
2, modify the SNMP port
In the C: \ WINDOWS \ system32 \ drivers \ etc \ services found in
SNMP # 50161/udp SNMP SNMP Research wpaagt. Exe service
It can be seen that the SNMP service port Settings is 50161 instead of 161
Snmputil and carry out a command is sent to port 161, and so will quote 40 mistakes,
Modify the SNMP port number of 161
SNMP # 161/udp SNMP SNMP Research wpaagt. Exe service
To execute the command:
C: \ & gt; Snmputil get localhost public. 1.3.6.1.2.1.1.3.0
Variable=system. SysUpTime. 0
Value=32626
https://bbs.csdn.net/topics/TimeTicksYou can see there are output,