Hi Users,
I am facing a peculiar problem when I try to start my snmpd using rc.d. The problem is when I try to extract OID values using snmpwalk for my enterprise OID it is always coming as 0. But when I execute the snmpd manually from command line the perfect values are coming. My SNMPD file present in /etc/init.d/ and it looks like: #! /bin/sh -e # Check for daemon presence export PATH=/sbin:/usr/local/sbin:/bin:/usr/local/bin . /lib/lsb/init-functions test -x /usr/local/sbin/snmpd || exit 0 test -x /usr/local/sbin/snmptrapd || exit 0 TRAPDRUN=no TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' # Cd to / before starting any daemons. cd / case "$1" in start) echo -n "Starting network management services:" if [ "$SNMPDRUN" = "yes" -a -f /usr/local/share/snmp/snmpd.conf ]; then #start-stop-daemon --quiet --start --exec /usr/local/sbin/snmpd & /usr/local/sbin/snmpd echo -n " snmpd" fi if [ "$TRAPDRUN" = "yes" -a -f /usr/local/share/snmp/snmptrapd.conf ]; then start-stop-daemon --quiet --start --exec /usr/local/sbin/snmptrapd -- $TRAPDOPTS & echo -n " snmptrapd" fi echo "." ;; stop) echo -n "Stopping network management services:" start-stop-daemon --quiet --stop --oknodo --exec /usr/local/sbin/snmpd echo -n " snmpd" start-stop-daemon --quiet --stop --oknodo --exec /usr/local/sbin/snmptrapd echo -n " snmptrapd" echo "." ;; *) log_success_msg "Usage: /etc/init.d/snmpd {start|stop}" exit 1 ;;esac exit 0 Does anyone have any idea about the cause? Br, Ambika
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users