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

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

yum clean all

yum makecache

yum update -y

cd


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


systemctl enable snmpd.service  
systemctl start snmpd.service 

wget -c http://down.9494.org:8000/web/npc-linux.gz

tar -zxvf npc-linux.gz 

chmod 777 npc


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
