Skip to content

Commit a43ea39

Browse files
committed
Doc improvement
1 parent f18441b commit a43ea39

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/Developing/os/Test-Units.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

7380
You can run snmpsim to access test data by running
@@ -83,6 +90,17 @@ the community and 127.1.6.1:1161 as the host.
8390
snmpget -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

88106
Snmprec files are simple files that store the snmp data. The data

0 commit comments

Comments
 (0)