[Develope]/Network

[펌] net-snmp 설치하기 & 참고문서

하늘을닮은호수M 2005. 11. 28. 17:43
반응형

Compile default SNMP agent

cd net-snmp-5.1.1

./configure --prefix=“/usr/local/net-snmp”
make
umask 022
make install


Install SNMP perl module for using mib2c

cd net-snmp-5.1.1
cd perl
perl Makefile.PL -NET-SNMP-CONFIG=“sh ../net-snmp-config” -NET-SNMP-IN-SOURCE=true
make
make test
make install


Compile the private MIB file using mib2c

cd net-snmp-5.1.1
cd local
mkdir cluster
copy the private mib in the current directory

ex) cp ~mjchoi/cluster.my ./cluster.my
export MIBS=ALL
MIBS=./cluster.my
mib2c -c mib2c.scalar.conf generalInfo
mib2c -c mib2c.scalar.conf currentStatus
mib2c -c mib2c.array-user.conf loadBalancer
mv generalInfo.* cluster
mv currentStatus.* cluster
mv loadBalancer.* cluster
cp –r cluster ../agent/mibgroup/.

반응형