mirror of
https://git.valherun.com/valherun/pxe_boot_alma.git
synced 2026-10-15 22:22:03 -04:00
- restructure boot/kickstarts/scripts/docs into homelab/ - docs: alma9->10 breaking changes, CIS hardening, kickstart changes - add find_cron_entries.sh helper and codex running memory notes Co-Authored-By: Claude Fable 5 <[email protected]>
51 lines
3.0 KiB
Plaintext
51 lines
3.0 KiB
Plaintext
#
|
|
# Setup customer DBs on probe
|
|
#
|
|
|
|
if [ -z "$PROBE" ]; then
|
|
Warn "Probe name required for cust DB setup."
|
|
|
|
elif [ -z "$CUST" ]; then
|
|
Warn "Customer required for cust DB setup"
|
|
|
|
else
|
|
|
|
ADDR=
|
|
for IP in $(hostname -I); do
|
|
if echo $IP | grep -qE '^192\.168\.177'; then
|
|
ADDR="$IP"
|
|
fi
|
|
done
|
|
|
|
if [ -z "$ADDR" ]; then
|
|
Warn "No local ip address found. Could not setup probe DB"
|
|
|
|
echo "Sonicwall:"
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $CUST-fw-a --ip $ADDR --probe iprobe001 --notgroup issp --machgroup \<byLocation\> --machgroup 'Colo A Firewalls' --machgroup 'Colo A' --connection '{"snmp": {"community": "l00k@m3"}}' --comment 'Public IP: <fw public IP details>'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $CUST-fw-a --poll Ping --uname \<iGLASS username\>
|
|
|
|
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $CUST-fw --ip $ADDR --probe iprobe005 --notgroup issp --machgroup <byLocation> --machgroup 'Colo E Firewalls' --machgroup 'Colo E' --connection '{"snmp": {"community": "l00k@m3"}}' --comment 'Public IP: <fw public IP details>'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $CUST-fw --poll Ping --uname <iGLASS username>
|
|
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $CUST-fw-w --ip $ADDR --probe iprobe007 --notgroup issp --machgroup <byLocation> --machgroup 'Colo W Firewalls' --machgroup 'Colo W' --connection '{"snmp": {"community": "l00k@m3"}}' --comment 'Public IP: <fw public IP details>'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $CUST-fw-w --poll Ping --uname <iGLASS username>
|
|
|
|
echo Probe:
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $PROBE-a --ip $ADDR --nick $CUST --probe iprobe001 --notgroup issp --parent \"$CUST-fw-a\" --machgroup <byLocation> --machgroup 'Colo A Probes' --machgroup 'Colo A' --connection '{"snmp": {"community": "op49KcurT"}}'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $PROBE-a --poll Ping --uname <iGLASS username>
|
|
|
|
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $PROBE --ip $ADDR --nick $CUST --probe iprobe005 --notgroup issp --parent \"$CUST-fw\" --machgroup <byLocation> --machgroup 'Colo E Probes' --machgroup 'Colo E' --connection '{"snmp": {"community": "op49KcurT"}}'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $PROBE --poll Ping --uname <iGLASS username>
|
|
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust issp --name $PROBE-w --ip $ADDR --nick $CUST --probe iprobe007 --notgroup issp --parent \"$CUST-fw-w\" --machgroup <byLocation> --machgroup 'Colo W Probes' --machgroup 'Colo W' --connection '{"snmp": {"community": "op49KcurT"}}'
|
|
echo sudo -u noc /opt/iglass/bin/addPoint.pl --cust issp --mach $PROBE-w --poll Ping --uname <iGLASS username>
|
|
|
|
echo sudo -u noc /opt/iglass/bin/addMach.pl --cust iss --name iss-$CUST --ip $ADDR --probe iprobe001 --notgroup iss --machgroup "FW Events"
|
|
|
|
fi
|
|
fi
|
|
|
|
Continue
|