Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: SNMP Connect Issue (Oliver Gorwits)
--- Begin Message ---
Hi Charles

Netdisco tries hard to ignore any local system MIBs and configuration, and
instead get all mibs from: "$ENV{HOME}/netdisco-mibs" (see below for more
detail)
(for example /home/netadmin/netdisco-mibs/cisco,
/home/netadmin/netdisco-mibs/netgear,
etc)

So, that's where you should be unpacking the archive to.

The "MIB search path" is, I think, just reported from the net-snmp
libraries after reading your local snmp.conf (which Netdisco tries to
ignore). But if you think it's not ignoring, then maybe add the default
above to it.

According to the source code, Netdisco will look for "netdisco-mibs" in all
of: the "mibhome" setting in your deployment.yml (if you have set it), or
NETDISCO_HOME environment, or HOME environment.
see:
https://github.com/netdisco/netdisco/blob/master/lib/App/Netdisco/Transport/SNMP.pm#L332

I presume above that your netdisco user is "netadmin" and you installed
into that folder using the instructions at:
https://metacpan.org/pod/App::Netdisco

Hope this helps?

regards,
Oliver.


On Mon, 21 Nov 2022 at 01:25, Charles Schoonover via netdisco-users <
netdisco-users@lists.sourceforge.net> wrote:

> Hi everyone,
>
>
>
> I installed Netdisco onto a VM recently. Install seemed to go OK. Web
> server up and running and reachable. However, when I try to run the initial
> discovery on the first device. I get an error message. Whether through the
> CLI or Web GUI. Pasted output below. Did some research and it seemed like
> my MIB/OIB files were in the wrong location. I downloaded the files
> manually and put them in every potential location I could think of in the
> Netdisco and admin directories (including the MIB search path in the output
> below). No luck. Afterwards I verified my YAML config was correct and it
> appears to be. Included output below and can provide more details if
> needed. Sorry for the newb question!
>
>
>
> $ ~/bin/netdisco-do discover -DI -d 10.0.1.1
>
> [82856] 2022-10-29 21:40:19  info App::Netdisco version 2.052010 loaded.
>
> [82856] 2022-10-29 21:40:20  info discover: [10.0.1.1] started at Sat Oct
> 29 14:40:20 2022
>
> [82856] 2022-10-29 21:40:20 debug discover: running with timeout 600s
>
> [82856] 2022-10-29 21:40:20 debug => running workers for phase: check
>
> [82856] 2022-10-29 21:40:20 debug -> run worker check/_base_/0
>
> [82856] 2022-10-29 21:40:20 debug Discover is able to run.
>
> [82856] 2022-10-29 21:40:20 debug => running workers for phase: early
>
> [82856] 2022-10-29 21:40:20 debug -> run worker early/properties/100
>
> [82856] 2022-10-29 21:40:20 debug snmp reader cache warm: [10.0.1.1]
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 2,
> class: SNMP::Info, comm: <hidden>
>
> MIB search path: /home/netadmin/netdisco-mibs/netdisco-mibs-4.028
>
> Cannot find module (SNMPv2-MIB): At line 1 in (none)
>
> Cannot find module (IF-MIB): At line 1 in (none)
>
> Cannot find module (IP-MIB): At line 1 in (none)
>
> Cannot find module (TCP-MIB): At line 1 in (none)
>
> Cannot find module (UDP-MIB): At line 1 in (none)
>
> Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none)
>
> Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
>
> Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
>
> Cannot find module (DISMAN-SCHEDULE-MIB): At line 1 in (none)
>
> Cannot find module (HOST-RESOURCES-TYPES): At line 1 in (none)
>
> Cannot find module (MTA-MIB): At line 1 in (none)
>
> Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none)
>
> Cannot find module (UCD-DISKIO-MIB): At line 1 in (none)
>
> Cannot find module (UCD-DLMOD-MIB): At line 1 in (none)
>
> Cannot find module (LM-SENSORS-MIB): At line 1 in (none)
>
> Cannot find module (UCD-SNMP-MIB): At line 1 in (none)
>
> Cannot find module (UCD-DEMO-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-TARGET-MIB): At line 1 in (none)
>
> Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-FRAMEWORK-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-MPD-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-USER-BASED-SM-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-COMMUNITY-MIB): At line 1 in (none)
>
> Cannot find module (IPV6-ICMP-MIB): At line 1 in (none)
>
> Cannot find module (IPV6-MIB): At line 1 in (none)
>
> Cannot find module (IPV6-TCP-MIB): At line 1 in (none)
>
> Cannot find module (IPV6-UDP-MIB): At line 1 in (none)
>
> Cannot find module (IP-FORWARD-MIB): At line 1 in (none)
>
> Cannot find module (NET-SNMP-PASS-MIB): At line 1 in (none)
>
> Cannot find module (NET-SNMP-EXTEND-MIB): At line 1 in (none)
>
> Cannot find module (SNMP-NOTIFICATION-MIB): At line 1 in (none)
>
> Cannot find module (SNMPv2-TM): At line 1 in (none)
>
> Cannot find module (NET-SNMP-VACM-MIB): At line 1 in (none)
>
> Cannot find module (SNMPv2-MIB): At line 1 in (none)
>
> [82856] 2022-10-29 21:40:20 debug The SNMPv2-MIB did not load. See README
> for SNMP::Info
>
> at /home/netadmin/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 236.
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 1,
> class: SNMP::Info, comm: <hidden>
>
> Cannot find module (IF-MIB): At line 1 in (none)
>
> [82856] 2022-10-29 21:40:20 debug The IF-MIB did not load. See README for
> SNMP::Info
>
> at /home/netadmin/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 236.
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 2,
> class: SNMP::Info, comm: <hidden>
>
> Cannot find module (SNMPv2-MIB): At line 1 in (none)
>
> Cannot find module (IF-MIB): At line 1 in (none)
>
> Cannot find module (IP-MIB): At line 1 in (none)
>
> [82856] 2022-10-29 21:40:20 debug The IP-MIB did not load. See README for
> SNMP::Info
>
> at /home/netadmin/perl5/lib/perl5/App/Netdisco/Transport/SNMP.pm line 236.
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 1,
> class: SNMP::Info, comm: <hidden>
>
> Cannot find module (SNMPv2-MIB): At line 1 in (none)
>
> Cannot find module (IF-MIB): At line 1 in (none)
>
> Cannot find module (IP-MIB): At line 1 in (none)
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> SNMP::Info::_validate_autoload_method(hrSystemUptime) Unable to resolve
> method.
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 2,
> class: SNMP::Info, comm: <hidden>
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> SNMP::Info::_validate_autoload_method(hrSystemUptime) Unable to resolve
> method.
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> [82856] 2022-10-29 21:40:20 debug [10.0.1.1:161] try_connect with ver: 1,
> class: SNMP::Info, comm: <hidden>
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> SNMP::Info::_validate_autoload_method(hrSystemUptime) Unable to resolve
> method.
>
> SNMP::Info::_validate_autoload_method(sysUpTime) Unable to resolve method.
>
> [82856] 2022-10-29 21:40:20 debug discover failed: could not SNMP connect
> to 10.0.1.1
>
> [82856] 2022-10-29 21:40:20 debug -> run worker early/properties/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker early/properties/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker early/properties/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker early/properties/100
>
> [82856] 2022-10-29 21:40:20 debug => running workers for phase: main
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/canonicalip/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/entities/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/neighbors/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/neighbors/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/neighbors/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/portpower/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/portproperties/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/vlans/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/wireless/100
>
> [82856] 2022-10-29 21:40:20 debug -> run worker main/withnodes/0
>
> [82856] 2022-10-29 21:40:20 debug => running workers for phase: late
>
> [82856] 2022-10-29 21:40:20 debug -> run worker late/hooks/0
>
> [82856] 2022-10-29 21:40:20 debug  [10.0.1.1] hooks - 0 queued
>
> [82856] 2022-10-29 21:40:20  info discover: finished at Sat Oct 29
> 14:40:20 2022
>
> [82856] 2022-10-29 21:40:20  info discover: status defer: discover failed:
> could not SNMP connect to 10.0.1.1
>
>
>
> Thanks!
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to