Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.