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
@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 |
OlderNewer