Subject: Re: Problem with Snmp
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Marcos Onisto <mlonisto@gmail.com>
List: port-sparc64
Date: 12/11/2006 16:59:39
Hello Michael,

That's it!! But I still have a problem. What exactly i need to put in
the file rc.conf ?

extract: /usr/pkg/lib/perl5/vendor_perl/man/man3/NetSNMP::netsnmp_request_infoPtr.3
extract: /usr/pkg/lib/perl5/vendor_perl/man/man3/SNMP.3
extract: CWD to .
Running install with POST-INSTALL for net-snmp-5.3.1.
===========================================================================
The following files should be created for net-snmp-5.3.1:

        /etc/rc.d/snmptrapd (m=0755)
            [/usr/pkg/share/examples/rc.d/snmptrapd]

        /etc/rc.d/snmpd (m=0755)
            [/usr/pkg/share/examples/rc.d/snmpd]

===========================================================================
Attempting to record package into /var/db/pkg/net-snmp-5.3.1.
Attempting to record dependency on package `perl>=5.8.7'
Package net-snmp-5.3.1 registered in /var/db/pkg/net-snmp-5.3.1

===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2002/10/24 08:29:33 jlam Exp $

If you do not have an existing snmpd.conf configuration file, you may
generate one using snmpconf(1), e.g.:

        /usr/pkg/bin/snmpconf -g basic_setup

The resulting config file should be placed in:

        /usr/pkg/etc/snmpd.conf

===========================================================================


ftp> close

When I'll use the script /etc/rc.d/snmpd start this return like this:

br-nsps12# /etc/rc.d/snmpd start
writing to routing socket: File exists
add net 10.96.78.128: gateway 10.24.8.254: File exists
writing to routing socket: File exists
add net 10.24.0.0: gateway 10.24.8.254: File exists
writing to routing socket: File exists
add net default: gateway 10.129.3.254: File exists
/etc/rc.d/snmpd: WARNING: $snmpd is not set properly - see rc.conf(5).

Can someone see something like this? What is wrong?

Thanks a lot,

Marcos



On 12/11/06, Michael L. Hitch <mhitch@lightning.msu.montana.edu> wrote:
> On Mon, 11 Dec 2006, Marcos Onisto wrote:
>
> > I have another problem trying to do it:
> >
> > # pkg_add -v net-snmp
> > parsing: ftp://ftp.netbsd.org/pub/pkgsrc/packages-2006Q3/NetBSD-3.0/sparc64
> > path: ftp://ftp.netbsd.org/pub/pkgsrc/packages-2006Q3/NetBSD-3.0/sparc64
> > increasing RLIMIT_NOFILE to max. 3404 open files
> > trying PKG_PATH
> > ftp://ftp.netbsd.org/pub/pkgsrc/packages-2006Q3/NetBSD-3.0/sparc64
> ...
> > pkg_add: no pkg found for 'net-snmp', sorry.
> >
> > ftp> close
> > pkg_add: 1 package addition failed
> >
> > I really appreciate some help.
>
>    I'm not quit sure about installing binary packages, but it looks like
> you need to add "/All' to your PKG_PATH.
>
> --
> Michael L. Hitch                        mhitch@montana.edu
> Computer Consultant
> Information Technology Center
> Montana State University        Bozeman, MT     USA
>