rm -rf /etc/yum.repos.d/*
cd /etc/yum.repos.d/
wget -c http://down.9494.org:9999/yum/CentOS-Base.repo
wget -c http://down.9494.org:9999/yum/CentOS-CR.repo
wget -c http://down.9494.org:9999/yum/CentOS-Debuginfo.repo
wget -c http://down.9494.org:9999/yum/CentOS-Media.repo
wget -c http://down.9494.org:9999/yum/CentOS-Sources.repo
wget -c http://down.9494.org:9999/yum/CentOS-Vault.repo
wget -c http://down.9494.org:9999/yum/CentOS-fasttrack.repo
wget -c http://down.9494.org:9999/yum/CentOS-x86_64-kernel.repo

chmod 777 /etc/yum.repos.d/*

yum clean all

yum makecache


cd

wget -c http://down.9494.org:9999/wondershaper-1.2.1-3.el7.noarch.rpm
chmod 777 wondershaper-1.2.1-3.el7.noarch.rpm
rpm -ivh wondershaper-1.2.1-3.el7.noarch.rpm

yum -y install net-snmp net-snmp-devel net-snmp-utils vim unzip zip gcc make git

systemctl enable snmpd.service  
systemctl start snmpd.service


sed -i 's/1.3.6.1.2.1.1/1.3.6.1.2.1.2/g' /etc/snmp/snmpd.conf

sed -i 's/access  notConfigGroup ""      any       noauth    exact  systemview none none/access  notConfigGroup ""      any       noauth    exact  all none none/g' /etc/snmp/snmpd.conf

sed -i 's/#view all/view all/g' /etc/snmp/snmpd.conf

git clone https://github.com/magnific0/wondershaper.git

cd

systemctl enable snmpd.service  
systemctl restart snmpd.service