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
#!/usr/bin/php | |
<?php | |
$url = 'http://127.0.0.1:8000/statistics?json=1'; | |
if(count($argv) == 2 && $argv[1] == 'authconf') { | |
exit('yes'); | |
} | |
$data = file_get_contents($url); | |
if($data != false){ |
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
param ( | |
[Parameter(Mandatory=$true)][int]$From, | |
[Parameter(Mandatory=$true)][int]$To, | |
[string]$Description = "", | |
[string]$Tagged = "", | |
[string]$Untagged = "" | |
) | |
if($From -le $To){ | |
for($i = $From; $i -le $To; $i++){ | |
Write-Host "interface vlan" $i |
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 |
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
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
<?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
#!/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
[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/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
# | |
# 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]" |
OlderNewer