File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,17 @@ tests: `lnms dev:check unit --db --snmpsim`
6464
6565` lnms dev:check unit -o osname `
6666
67+ ### Test an OS, but only discovery and polling modules (exluding OS detection)
68+ ` lnms dev:check unit --os osname --os-modules-only `
69+
70+
6771### Specific Module
6872
6973` lnms dev:check unit -m modulename `
7074
75+ ### Test all modules for all os and stop on failure
76+ ` lnms dev:check unit --db -snmpsim --os-modules-only -f `
77+
7178## Using snmpsim for testing
7279
7380You can run snmpsim to access test data by running
@@ -83,6 +90,17 @@ the community and 127.1.6.1:1161 as the host.
8390snmpget -v 2c -c ios_c3560e 127.1.6.1:1161 sysDescr.0
8491```
8592
93+ ## Simulate specific device from test data
94+
95+ Add/update a device called "snmpsim" to your install and set to use a specific snmprec file
96+
97+ ``` bash
98+ lnms dev:simulate ios_2960x
99+ ```
100+
101+ You can then run ` ./discovery.php -h snmpsim -d -v ` and ` lnms device:poll snmpsim -vvv `
102+ to discover and poll the simulated device.
103+
86104## Snmprec format
87105
88106Snmprec files are simple files that store the snmp data. The data
You can’t perform that action at this time.
0 commit comments