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: 4500x (Oliver Gorwits)
   2. Re: netdisco version 2.033004 (Oliver Gorwits)
   3. Re: netdisco version 2.033004 (Dwayne Hottinger)
--- Begin Message ---
Hi Dwayne,

On 2016-01-16 14:40, Dwayne Hottinger wrote:
I cant get snmp walk to connect to the
switch at all.  
Ive configured snmp on the switch everywhich way I can and still cant
get anything info from it.  

From this I assume you've not even been able to get the command line toolset to work?

For example "snmpstatus -v 2c -c public 192.0.2.1" gives nothing? If it gives a segfault that's sometimes a way of saying there's an OID view/filter in place on the switch which needs to be removed.

In any case, if you cannot get the command line tools to work then indeed Netdisco will not work either, as it uses the same libraries and routines.

regards,
oliver.



--- End Message ---
--- Begin Message ---
Hi Dwayne,

On 2016-01-14 18:40, Dwayne Hottinger wrote:
Here is the error message from the console:

 ~netdisco/bin/netdisco-do discover -d 10.40.1.8
[11740] 2016-01-14 18:30:47  info discover: started at Thu Jan 14
13:30:47 2016
Use of uninitialized value in concatenation (.) or string at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 139.

It could be a YAML formatting error in your configuration file. There isn't any formatting checking or validation in Netdisco 2 so the config needs to be correct.

Are you able to use pastie.org to share the SNMP config in your deployment.yml file (changing the secrets, obviously)?

You can also run the same command above but add the -D flag for debug and also set environment variable SHOW_COMMUNITY=1 to show what Netdisco is reading as the SNMP community.

regards,
oliver.



--- End Message ---
--- Begin Message ---
Here is the output from debug command lines.  The error is a result of my
deployment.yml file not getting read when I restart, so IM pretty sure I
have an error there somewhere.  Seems that pastebin is offline right now.
Ill paste my file and email back:
SHOW_COMMUNITY=1 ~netdisco/bin/netdisco-do discover -d 10.40.1.1 -DIQ

                                   SELECT me.version, me.installed
  FROM dbix_class_schema_versions me
WHERE 1 = 0
SELECT me.version
  FROM dbix_class_schema_versions me
ORDER BY installed DESC
  LIMIT '1'
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.40.1.1' AND me.ip = '10.40.1.1'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.ports, me.ma
                                                          c, me.serial,
me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan,
me.slots, me.vendor, me.os, me.os_
                                            ver, me.log, me.snmp_ver,
me.snmp_comm, me.snmp_class, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, t
                                            o_char( last_arpnip,
'YYYY-MM-DD HH24:MI' ), to_char( last_discover, 'YYYY-MM-DD HH24:MI' ),
to_char( last_macsuck, 'YYYY-
                                      MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), last_arpnip ) ), extract( epoch
      FROM age( now(  ), last_discover ) ), extract( epoch
      FROM age( now(  ), last_macsuck ) ), replace( age( timestamp 'epoch'
+ uptime / 100 * interval '1 second', timestamp
                                                         '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.40.1.1'
[513] 2016-01-18 13:03:08  info discover: started at Mon Jan 18 08:03:08
2016
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.40.1.1' AND me.ip = '10.40.1.1'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.ports, me.ma
                                                          c, me.serial,
me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan,
me.slots, me.vendor, me.os, me.os_
                                            ver, me.log, me.snmp_ver,
me.snmp_comm, me.snmp_class, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, t
                                            o_char( last_arpnip,
'YYYY-MM-DD HH24:MI' ), to_char( last_discover, 'YYYY-MM-DD HH24:MI' ),
to_char( last_macsuck, 'YYYY-
                                      MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), last_arpnip ) ), extract( epoch
      FROM age( now(  ), last_discover ) ), extract( epoch
      FROM age( now(  ), last_macsuck ) ), replace( age( timestamp 'epoch'
+ uptime / 100 * interval '1 second', timestamp
                                                         '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.40.1.1'
SELECT me.ip, me.snmp_comm_rw, me.snmp_auth_tag
  FROM community me
WHERE me.ip = '10.40.1.1'
SELECT me.ip, me.snmp_comm_rw, me.snmp_auth_tag
  FROM community me
WHERE me.ip = '10.40.1.1'
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.40.1.1' AND me.ip = '10.40.1.1'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.ports, me.ma
                                                          c, me.serial,
me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan,
me.slots, me.vendor, me.os, me.os_
                                            ver, me.log, me.snmp_ver,
me.snmp_comm, me.snmp_class, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, t
                                            o_char( last_arpnip,
'YYYY-MM-DD HH24:MI' ), to_char( last_discover, 'YYYY-MM-DD HH24:MI' ),
to_char( last_macsuck, 'YYYY-
                                      MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), last_arpnip ) ), extract( epoch
      FROM age( now(  ), last_discover ) ), extract( epoch
      FROM age( now(  ), last_macsuck ) ), replace( age( timestamp 'epoch'
+ uptime / 100 * interval '1 second', timestamp
                                                         '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.40.1.1'
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.40.1.1' AND me.ip = '10.40.1.1'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.ports, me.ma
                                                          c, me.serial,
me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan,
me.slots, me.vendor, me.os, me.os_
                                            ver, me.log, me.snmp_ver,
me.snmp_comm, me.snmp_class, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, t
                                            o_char( last_arpnip,
'YYYY-MM-DD HH24:MI' ), to_char( last_discover, 'YYYY-MM-DD HH24:MI' ),
to_char( last_macsuck, 'YYYY-
                                      MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), last_arpnip ) ), extract( epoch
      FROM age( now(  ), last_discover ) ), extract( epoch
      FROM age( now(  ), last_macsuck ) ), replace( age( timestamp 'epoch'
+ uptime / 100 * interval '1 second', timestamp
                                                         '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.40.1.1'
SELECT me.ip, me.alias, me.subnet, me.port, me.dns, me.creation
  FROM device_ip me
WHERE me.alias = '10.40.1.1' AND me.ip = '10.40.1.1'
SELECT me.ip, me.creation, me.dns, me.description, me.uptime, me.contact,
me.name, me.location, me.layers, me.ports, me.ma
                                                          c, me.serial,
me.model, me.ps1_type, me.ps2_type, me.ps1_status, me.ps2_status, me.fan,
me.slots, me.vendor, me.os, me.os_
                                            ver, me.log, me.snmp_ver,
me.snmp_comm, me.snmp_class, me.vtp_domain, me.last_discover,
me.last_macsuck, me.last_arpnip, t
                                            o_char( last_arpnip,
'YYYY-MM-DD HH24:MI' ), to_char( last_discover, 'YYYY-MM-DD HH24:MI' ),
to_char( last_macsuck, 'YYYY-
                                      MM-DD HH24:MI' ), extract( epoch
      FROM age( now(  ), last_arpnip ) ), extract( epoch
      FROM age( now(  ), last_discover ) ), extract( epoch
      FROM age( now(  ), last_macsuck ) ), replace( age( timestamp 'epoch'
+ uptime / 100 * interval '1 second', timestamp
                                                         '1970-01-01
00:00:00-00' ) ::text, 'mon', 'month' )
  FROM device me
WHERE me.ip = '10.40.1.1'
[513] 2016-01-18 13:03:08 debug [10.40.1.1] try_connect with ver: 2, class:
SNMP::Info::Layer3::C6500, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:12 debug [10.40.1.1] try_connect with ver: 2, class:
SNMP::Info, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:15 debug [10.40.1.1] try_connect with ver: 1, class:
SNMP::Info::Layer3::C6500, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:18 debug [10.40.1.1] try_connect with ver: 1, class:
SNMP::Info, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
Use of uninitialized value in concatenation (.) or string at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 139.
[513] 2016-01-18 13:03:21 debug [10.40.1.1] try_connect with ver: 3, class:
SNMP::Info::Layer3::C6500, comm: v3user:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Unknown user name at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
Use of uninitialized value in concatenation (.) or string at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 139.
[513] 2016-01-18 13:03:21 debug [10.40.1.1] try_connect with ver: 3, class:
SNMP::Info, comm: v3user:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Unknown user name at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:21 debug [10.40.1.1] try_connect with ver: 2, class:
SNMP::Info::Layer3::C6500, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:24 debug [10.40.1.1] try_connect with ver: 2, class:
SNMP::Info, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:27 debug [10.40.1.1] try_connect with ver: 1, class:
SNMP::Info::Layer3::C6500, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:30 debug [10.40.1.1] try_connect with ver: 1, class:
SNMP::Info, comm: public
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance :
.1.3.6.1.2.1.1.3.0
SNMP::Info::_validate_autoload_method(CARP_TRACE) Unable to resolve method.
SNMP::Info::_global(uptime) Timeout at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 176.
[513] 2016-01-18 13:03:33  info discover: finished at Mon Jan 18 08:03:33
2016
[513] 2016-01-18 13:03:33  info discover: status error: discover failed:
could not SNMP connect to 10.40.1.1


If I add the snmp community public RO to my switch config it works fine.
However, that doesnt fix the 4500 x issue.  Im going to update the IOS on
my 4500 and see if it allows me to connect.

Here is the contents of my deployment.yml file in case there is something
real obvious:

database:
  name: 'SOMEUSER'
  user: 'SOMEUSER'
  pass: 'SOMEPASSWORD'
  host: '127.0.0.1'

# --------------------
# RECOMMENDED SETTINGS
# --------------------

# set to false if you MUST maintain backwards compatibility
# with Netdisco 1.x web frontend.
# `````````````````````````````````````````````````````````
safe_password_store: true

# will be stripped from fqdn when displayed in the web UI
# also, do not forget the leading dot.
# ```````````````````````````````````````````````````````
domain_suffix: '.harrisonburg.k12.va.us'

# SNMP community string(s)
# ````````````````````````
snmp_auth:
  - tag: 'default_v2_readonly'
    -community: community1
    -community: community2
    -community: community3
   -community: community4
    -community: community5
    -community: community6
    -community: community7
    -community: community8
    -community: community9
    -community: community10
    -community: community11
    read: true
    write: false
#  - tag: 'default_v2_for_write'
#    community: 'private'
#    read: false
#    write: true


On Mon, Jan 18, 2016 at 4:13 AM, Oliver Gorwits <oli...@cpan.org> wrote:

> Hi Dwayne,
>
> On 2016-01-14 18:40, Dwayne Hottinger wrote:
> > Here is the error message from the console:
> >
> >  ~netdisco/bin/netdisco-do discover -d 10.40.1.8
> > [11740] 2016-01-14 18:30:47  info discover: started at Thu Jan 14
> > 13:30:47 2016
> > Use of uninitialized value in concatenation (.) or string at
> > /home/netdisco/perl5/lib/perl5/App/Netdisco/Util/SNMP.pm line 139.
>
> It could be a YAML formatting error in your configuration file. There
> isn't any formatting checking or validation in Netdisco 2 so the config
> needs to be correct.
>
> Are you able to use pastie.org to share the SNMP config in your
> deployment.yml file (changing the secrets, obviously)?
>
> You can also run the same command above but add the -D flag for debug
> and also set environment variable SHOW_COMMUNITY=1 to show what Netdisco
> is reading as the SNMP community.
>
> regards,
> oliver.
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
>



-- 
Dwayne Hottinger
Supervisor of Network Operations
Harrisonburg City Public Schools
http://staff.harrisonburg.k12.va.us/~dhottinger

--- End Message ---
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to