Skip to content

Instantly share code, notes, and snippets.

@vicendominguez
vicendominguez / iperfd
Created August 5, 2014 10:51
iperf server as a daemon for bandwidth checking in RHEL6
#! /bin/bash
#
# iperf advanced bandwidth test tool
#
# chkconfig: - 90 60
# description: iperf is an advanced bandwidth test tool
# processname: iperf
# pidfile: /var/run/iperf.pid
# Source function library.
. /etc/init.d/functions
@Jamesits
Jamesits / NPS-Config-Sync.ps1
Created December 21, 2019 14:00
Sync 2 Network Policy Servers' configuration
###Network Policy Server Synchronization Script
#This script copies the configuration from the NPS Master Server and imports it on the secondary server.
#The Account that this script runs under must have Local Administrator rights to the NPS Master.
#This was designed to be run as a scheduled task on the NPS Secondary Servers on an hourly,daily, or as-needed basis.
# Modified from https://deployhappiness.com/two-network-policy-server-tricks-subnets-and-syncing/
###Variables
#NPSMaster - Your Primary Network Policy Server you want to copy the config from.
$NPSMaster = "adds0.corp.contoso.com"
$NPSSecondary = "adds1.corp.contoso.com"