This file contains hidden or 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
@echo off | |
echo Stoppting W32Time Service... | |
net stop w32time | |
echo Setting ntp.level66.network as primary NTP Server... | |
w32tm /config /manualpeerlist:"ntp.level66.network",0x8 /syncfromflags:MANUAL | |
w32tm /config /reliable:yes | |
echo Starting W32Time Service... | |
net start w32time |
This file contains hidden or 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/bash | |
echo "Write special configurations onto Intel NICs." | |
echo "Search for ensXfX devices and apply settings..." | |
for iface in $(ip link list | cut -d ' ' -f2 | tr ':' '\n' | awk NF) | |
do | |
if [[ "$iface" =~ ^ens[0-9]f[0-9]$ ]]; then | |
echo $iface | |
echo "Disable LLDP..." | |
/usr/sbin/ethtool --set-priv-flags $iface disable-fw-lldp on |
This file contains hidden or 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
# | |
# Author: Jan Gilla | |
# Company: level66.network UG (haftungsbeschränkt) | |
# Description: PowerShell script to install snmpd daemon on windows systems, generate the configuration and reload the service. | |
# | |
# Define variables here. | |
$SNMPD_COMMUNITY = "public" | |
$SNMPD_LOCATION = "Milki Way" | |
$SNMPD_CONTACT = "[email protected]" |
This file contains hidden or 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/bash | |
# | |
# Author: Jan Gilla | |
# Company: level66.network UG (haftungsbeschränkt) | |
# Description: BASH script to install snmpd daemon on Debian/Ubuntu based linux systems, generate the configuration and reload the service by using systemd. | |
# | |
# Define variables here. | |
SNMPD_COMMUNITY=public | |
SNMPD_LOCATION="Milki Way" |
This file contains hidden or 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
[Unit] | |
Description=ooklaserver | |
After=network.target | |
[Service] | |
User=ooklaserver | |
Group=ooklaserver | |
WorkingDirectory=/opt/ooklaserver | |
ExecStart=/opt/ooklaserver/OoklaServer --daemon --pidfile=/opt/ooklaserver/OoklaServer.pid | |
PIDFile=/opt/ooklaserver/OoklaServer.pid |
This file contains hidden or 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/vbash | |
IP=`dig +short $1 A` | |
IF=$2 | |
source /opt/vyatta/etc/functions/script-template | |
configure | |
set interfaces tunnel $IF remote-ip $IP | |
commit | |
save |
This file contains hidden or 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
<?php | |
/* | |
* Display LibreNMS interface graphs in Netbox | |
* | |
* 1. Upload this file into the plugin folder of LibreNMS. | |
* 2. Generate an API key in LibreNMS and insert the connection details below. | |
* 3. Create graphs in Netbox using the following URL scheme. | |
* https://nms.level66.network/plugins/netbox-graph.php?device={{ obj.device.name }}&interface={{ obj.name }}&duration=8h | |
* 4. Save time in your daily work! | |
* |
This file contains hidden or 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
zones=(level66.network jangilla.de) | |
for i in "${zones[@]}" | |
do | |
echo $i | |
/usr/bin/pdns_control notify $i | |
done |
This file contains hidden or 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
zones=(level66.network jangilla.de) | |
servers=(ns26.ns26.de ns27.ns27.de ns28.ns28.de) | |
for i in "${zones[@]}" | |
do | |
echo "================" $i "================" | |
for j in "${servers[@]}" | |
do | |
dig $i SOA @$j +short | |
done | |
echo |
This file contains hidden or 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
# Move vCenter Portgroup Uplinks to DVS LAG | |
# Jan Gilla / www.jangilla.de | |
$Settings_vCenter = '' | |
$Settings_vCenter_User = '' | |
$Settings_vCenter_Password = '' | |
$Settings_vCenter_DVS = 'dS-FRA1' | |
$Settings_vCenter_Uplink = 'lag1' | |
# Connect to vCenter |
NewerOlder