Created
April 6, 2019 15:42
-
-
Save spencerbutler/01c3d5891d7e2791fb3d3df9cabceb88 to your computer and use it in GitHub Desktop.
simple script to run tests for LibreNMS new OS definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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