Specification
We want to be able to store the output of the snmp walk CLI command in Emulation mode (Integration tests mode).
Command example
snmpcli 10.0.24.53 --walk 1.3.6.1.4.1.30065.4.1.1.7.1 --version v2c
Output
Hostname 10.0.24.53 - Executing SNMP walk query:
OID: 1.3.6.1.4.1.30065.4.1.1.7.1
Result:
1.3.6.1.4.1.30065.4.1.1.7.1.1.24029.1.40.98.117.116.32.111.120.101.110.32.122.111.109.98.105.101.115.32.97.99.116.101.100.32.102.111.114.119.97.114.100.32.74.97.100.101.100.32.98.117.116 COUNTER 829600972
1.3.6.1.4.1.30065.4.1.1.7.1.1.25778.4.21.116.104.101.105.114.32.102.111.114.119.97.114.100.32.122.111.109.98.105.101.115 COUNTER 4187786411
1.3.6.1.4.1.30065.4.1.1.7.1.2.24029.1.40.98.117.116.32.111.120.101.110.32.122.111.109.98.105.101.115.32.97.99.116.101.100.32.102.111.114.119.97.114.100.32.74.97.100.101.100.32.98.117.116 COUNTER 1515533887
1.3.6.1.4.1.30065.4.1.1.7.1.2.25778.4.21.116.104.101.105.114.32.102.111.114.119.97.114.100.32.122.111.109.98.105.101.115 COUNTER 681708375
1.3.6.1.4.1.30065.4.1.1.7.1.3.24029.1.40.98.117.116.32.111.120.101.110.32.122.111.109.98.105.101.115.32.97.99.116.101.100.32.102.111.114.119.97.114.100.32.74.97.100.101.100.32.98.117.116 COUNTER 2497454959
1.3.6.1.4.1.30065.4.1.1.7.1.3.25778.4.21.116.104.101.105.114.32.102.111.114.119.97.114.100.32.122.111.109.98.105.101.115 COUNTER 767384757
1.3.6.1.4.1.30065.4.1.1.7.1.4.24029.1.40.98.117.116.32.111.120.101.110.32.122.111.109.98.105.101.115.32.97.99.116.101.100.32.102.111.114.119.97.114.100.32.74.97.100.101.100.32.98.117.116 COUNTER 89868984
1.3.6.1.4.1.30065.4.1.1.7.1.4.25778.4.21.116.104.101.105.114.32.102.111.114.119.97.114.100.32.122.111.109.98.105.101.115 COUNTER 1020106112
1.3.6.1.4.1.30065.4.1.1.7.1.5.24029.1.40.98.117.116.32.111.120.101.110.32.122.111.109.98.105.101.115.32.97.99.116.101.100.32.102.111.114.119.97.114.100.32.74.97.100.101.100.32.98.117.116 COUNTER 1298331011
1.3.6.1.4.1.30065.4.1.1.7.1.5.25778.4.21.116.104.101.105.114.32.102.111.114.119.97.114.100.32.122.111.109.98.105.101.115 COUNTER 3061272827
Based on the method to execute in the SnmpClient (get, getNext or table), we retrieve the OIDs from the output file then we execute the action accordingly.
Specification
We want to be able to store the output of the snmp walk CLI command in Emulation mode (Integration tests mode).
Command example
snmpcli 10.0.24.53 --walk 1.3.6.1.4.1.30065.4.1.1.7.1 --version v2cOutput
Based on the method to execute in the SnmpClient (get, getNext or table), we retrieve the OIDs from the output file then we execute the action accordingly.