Rsync use Squid Proxy
使用squid代理rsync 由于新IDC和老IDC需要迁移部分数据,但新老两个IDC之间网络目前还没打通,但 […]
使用squid代理rsync 由于新IDC和老IDC需要迁移部分数据,但新老两个IDC之间网络目前还没打通,但 […]
If you have ever handled the migration of a web service […]
懒惰
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#!/bin/bash # created by "XXB" on idclayer.com # SNMP Installer Projects service snmpd stop echo "Please enter Server Location: " echo "Like DC,City,Country" read LOC echo "Location: $LOC" yum -y install net-snmp net-snmp-devel net-snmp-utils mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf_$(date +"%N").bak echo -n " rocommunity oooo 1.1.1.1 view all included .1 80 syslocation $LOC syscontact Matt<support######idclayer.com> extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro ">> /etc/snmp/snmpd.conf #/etc/snmp/snmpd.conf service snmpd start chkconfig snmpd on #回调 使用CURL请求监控API接口 自动添加监控目标 IP=$(host $(uname -n) | grep "address" | grep -v "IPv6" | head -n 1 | awk '{print $4}') echo "Server IP is $IP" RESULT=`curl -s "http://www.test.com/add?ip=$IP" | grep -o -E "adderror|pingerror"` echo $RESULT; # ./add_device.php ip nnn v2c echo "Dot forget open IPTables 161 UDP Port!!!" |
1Gbps Port 600M/s
这些是一些高级的netstat的使用方法 自己扩展一下思路 端口和一些命令是可变的 netstat -plan […]
在iptables中 开启DNS服务端口 iptables -A INPUT -p tcp –dport 5 […]
# 开启HTTP端口: http=80 https=443 tomcat=8080 /sbin/ip […]