SNMP Installation
Installing net-snmp on LINUX 390 systems.
1) Net-snmp is available from:
http://net-snmp.sourceforge.net
2) Download ucd-snmp-4.2.1.tar.gz
(or a later version when available) to your LINUX system root directory.
3) Unpack the zipped tar file using:
tar xzfv ucd-snmp-4.2.1.tar.gz cd /ucd-snmp-4.2.1
In config.sub after lines: ;;
i370-ibm* | ibm*)
basic_machine=i370-ibm
os=-mvs
;;
Add these lines:
s390-ibm)
basic_machine=s390-ibm
os=-linux-gnu
;;
In config.guess after line:
elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
Add this line:
elf_s390) echo "s390-ibm-linux-gnu" ; exit 0 ;;
./configure --with-mib-modules=host
make
make install
#!/bin/bash
# ucd-snmp init file for snmpd
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Daemon
#
# processname: /usr/local/sbin/snmpd
# config: /etc/snmp/snmpd.conf
# config: /usr/share/snmp/snmpd.conf
# pidfile: /var/run/snmpd
# source function library
. /etc/rc.d/init.d/functions
OPTIONS="-s -l /dev/null -P /var/run/snmpd -a"
RETVAL=0
start() {
echo -n "Starting snmpd: "
daemon /usr/local/sbin/snmpd $OPTIONS
RETVAL=$?
echo
touch /var/lock/subsys/snmpd
return $RETVAL
}
stop() {
echo -n "Shutting down snmpd: "
killproc /usr/local/sbin/snmpd
RETVAL=$?
echo
rm -f /var/lock/subsys/snmpd
return $RETVAL
}
reload(){
start
stop
}
restart(){
start
stop
}
condrestart(){
[ -e /var/lock/subsys/snmpd ] && restart
return 0
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
condrestart
;;
status)
status snmpd
;;
*)
echo "Usage: snmpd {start|stop|status|restart|condrestart|reload}"
RETVAL=1
esac
exit $RETVAL
cd /etc/rc.d/rc3.d ln -s ../init.d/snmpd S99snmpd cd /etc/rc.d/rc5.d ln -s ../init.d/snmpd S99snmpd cd /etc/rc.d/rc6.d ln -s ../init.d/snmpd K00snmpd
/etc/rc.d/init.d/snmpd start /etc/rc.d/init.d/snmpd stop