Enabling SNMP Service


Slackware

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
mcedit  /etc/snmp/snmpd.conf
rocommunity  public-tech
syslocation  "IDC3, Technocorp"
syscontact   root@abimayu.com
bash /etc/rc.d/rc.snmpd start
chmod 755 /etc/rc.d/rc.snmpd
echo "/etc/rc.d/rc.snmpd start" >> /etc/rc.d/rc.local





Centos

yum install snmpd
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
mcedit  /etc/snmp/snmpd.conf
rocommunity  public-tech
syslocation  "IDC3, Technocorp"
syscontact   root@abimayu.com
service snmpd restart
chkconfig snmpd –-level 235 on



Ubuntu Server

sudo apt-get install snmpd

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
mcedit  /etc/snmp/snmpd.conf
 rocommunity  public-tech
syslocation  "IDC3, Technocorp"
syscontact   root@abimayu.com
 service snmpd restart
/etc/init.d/snmpd restart

No comments:

Post a Comment