My shell portfolio begins

This commit is contained in:
2024-12-11 13:01:29 -06:00
parent aaca49937f
commit c2b1b821f7
41 changed files with 1567 additions and 0 deletions

13
librenms-bulkAdd.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
hostsToAdd=(
pfv-vmsrv-06.turnsys.net
)
IFS=$'\n\t'
for nodeToAdd in ${hostsToAdd[@]}; do
./delhost.php $nodeToAdd
./addhost.php $nodeToAdd kn3lmgmt ; ./discovery.php -h $nodeToAdd kn3lmgmt ; ./poller.php -h $nodeToAdd kn3lmgmt &
done