Re: building 5.7.2.1 or 5.6.2.1 on net-bsd gives undefined reference errors for libnetsnmp.so

2014-08-18 Thread Niels Baggesen
Den 16-08-2014 kl. 16:20 skrev clearc...@lycos.com:
> Hello,
>
> I am trying to build net-snmp on netbsd-6.1_RC4 and have tried both
> net-snmp-5.7.2.1 and net-snmp-5.6.2.1 and am getting the same error from
> make in both: undefined references to netbsd_read_ip_stat,
> netbsd_read_icmp_stat, netbsd_read_tcp_stat, and netbsd_read_udp_stat in
> libnetsnmp.so. I have just been doing the normal ./configure and make. I
> also did a nm -u on libnetsnmp.so and got a long list of undefined
> references.

Do you really mean 6.1.RC4? It is more than a year old. 6.1.4 is the 
current release and has been out for 4 months!

I just downloaded the 5.7.2.1 tarball to my 6.1.4 test system, and after 
./configure --with-defaults it compiled without problems.

And yes, the .so has a large number of undefined references, but that is 
to be expected. Those are references to libc, openssl, et c.

/Niels


-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


How to add a enterprise MIB into tree

2014-08-18 Thread Miguel Angel Torres Santos
Hi all,
I've been looking around about how to add a enterprise MIB into the tree MIB of 
a linux server, but I don't know if I'm asking with the adequate question or 
might it is not possible what I want. 
I have developed with perl an agent which is working well and also I have 
defined a MIB in SMI v1, so I can query for elements names also. The agent 
manage the OID  iso.3.6.1.4.1.34567 (It's an example), an enterprises branch.   








What I want is when I query for all the tree MIB starting from "enterprises" 
(.1.3.6.1.4.1) all the tree of my enterprise MIB appear. Now when I launch: 








snmpwalk -On -v2c -c public localhost enterprises
I get:








.1.3.6.1.4.1.2021.2.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2021.2.1.1.2 = INTEGER: 2
.1.3.6.1.4.1.2021.2.1.1.3 = INTEGER: 
3.1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = STRING: 
.1.3.6.1.4.1.8072.1.2.1.1.4.0.1.1.0 = STRING: 
.1.3.6.1.4.1.8072.1.2.1.1.4.0.1.2.0 = STRING: 










.1.3.6.1.4.1.8072.1.2.1.1.4.0.7.1.3.6.1.2.1.4.127 = STRING: ip








.1.3.6.1.4.1.8072.1.9.1.1.5.15.103.114.112.105.110.116.101.114.110.97.108.85.115.101.114.0.3.2.6.110.111.116.105.102.121
 = INTEGER: active(1)
So ¿where is my the MIB branch of my company (34567)? it would be after 8072 
¿wouldn't be?
¿It's posible to do what I want?

 I have added the next line to the snmp.conf
mibs +MY-ENTERPRISE-MIB
so the MIB is loaded by the tools, so when I ask for an element of 
MY-ENTERPRISE-MIB  I have the correct answer.
Thanks in advance,Miguel  --
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders