Skip to content

Instantly share code, notes, and snippets.

@spencerbutler
Created April 6, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencerbutler/01c3d5891d7e2791fb3d3df9cabceb88 to your computer and use it in GitHub Desktop.
Save spencerbutler/01c3d5891d7e2791fb3d3df9cabceb88 to your computer and use it in GitHub Desktop.
simple script to run tests for LibreNMS new OS definition
#!/bin/sh
dir='/home/spencer/build/librenms'
device="$lnms_host"
os='liebert'
run() {
cd $dir
rm cache/os_defs.cache
./discovery.php -h $device
./poller.php -h $device
./scripts/collect-snmp-data.php -o $os -h $device
./scripts/save-test-data.php -o $os
./scripts/pre-commit.php -p -u -o $os
rm cache/os_defs.cache
}
run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment