- 论坛徽章:
- 30
|
start(Mibs, AgentAddr, AgentConfig) ->
Conf = [{mibs, Mibs}],
{ok, _Pid} = snmp_ex2_manager:start_link(Conf),
snmp_ex2_manager:agent(AgentAddr, AgentConfig),
simple_standard_test("192.168.1.101:161-v1"),
snmp_ex2_manager:stop().
155> snmp_ex2_simple_standard_test:start().
Command 1 (get-next [1,1]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 2 (get-next [1,3]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 3 (get-next [1,3,6]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 4 (get-next [1,3,6]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 5 (get-next [1,3,6,1,2]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 6 (get-next [1,3,6,1,2,1]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 7 (get-next [1,3,6,1,2,1,1]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 8 (get-next [1,3,6,1,2,1,1,1]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 9 (get [sysDescr,0]): ok
Hardware: Intel64 Family 6 Model 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)
Command 10 (get [1,3,6,1,2,1,1,1]): error
{unexpected_command_result,
{ok,{noSuchName,1,[{varbind,[1,3,6,1,2,1,1,1],'NULL','NULL',1}]},5000}}
Test completed.
ok
156> |
|