Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-users digest..."


Today's Topics:

   1. Re: netdot 1.0.4 not detecting interfaces on linux host
      (Klavs Klavsen)
   2. Re: netdot 1.0.4 not detecting interfaces on linux host
      (Klavs Klavsen)
   3. Re: netdot 1.0.4 not detecting interfaces on linux host
      (Phil Regnauld)
   4. Re: netdot 1.0.4 not detecting interfaces on linux host
      (Phil Regnauld)
   5. Re: netdot 1.0.4 not detecting interfaces on linux host
      (Klavs Klavsen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 02 Jul 2013 12:43:55 +0200
From: Klavs Klavsen <[email protected]>
Subject: Re: [Netdot-users] netdot 1.0.4 not detecting interfaces on
        linux host
To: Phil Regnauld <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Phil Regnauld said the following on 07/02/2013 12:31 PM:
> Klavs Klavsen (kl) writes:
>> Hi,
>>
>> Just installed netdot - and it seems to handle my switches fine.
>>
>> I then wanted an NSM to make topology working - and figured I should use
>> my monitoring machine - on which netdot runs.
>>
>> However, after adding localhost (with net-snmp running on centos 6) - it
>> does not see any interfaces for that device :(
>       Hi Klavs,
>
>
>> SNMP::Info::_global layers : sysServices.0
>       Have you tried setting sysServices to 72 ?

Yes - set in /etc/snmp/snmpd.conf and restarted snmpd ofcourse.. no 
apparent change :(

>
>> SNMP::Info::_global description : sysDescr.0
>> Device doesn't implement sysServices but did return sysDescr. Might give
>> unexpected results.
>>    at /usr/local/netdot/lib/Netdot/Model/Device.pm line 3962
>> DEBUG - Device::assign_name: 127.0.0.1 resolves to localhost
>> DEBUG - Device::assign_name: RR localhost already exists in DB
>       And localhost already exists - but fair enough, it should rediscover it.

I had actually just deleted it (using the webinterface) before running 
that. I retried - the device is gone in the webinterface after deleting 
it - but updatedevices still says it already exists..

>> DEBUG - localhost.defaultdomain: Could not insert base MAC: : Error
>> while inserting PhysAddr: Missing address
>       That's a bit odd.
>
>       Try again with sysServices.72 to start with.

Appearently it's not picking that up :(

-- 
Regards,
Klavs Klavsen, GSEC - [email protected] - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer



------------------------------

Message: 2
Date: Tue, 02 Jul 2013 13:54:10 +0200
From: Klavs Klavsen <[email protected]>
Subject: Re: [Netdot-users] netdot 1.0.4 not detecting interfaces on
        linux host
To: Phil Regnauld <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Phil Regnauld said the following on 07/02/2013 12:31 PM:
> [CUT]

> Have you tried setting sysServices to 72 ? 
[CUT]
>> DEBUG - localhost.defaultdomain: Could not insert base MAC: : Error
>> while inserting PhysAddr: Missing address
>       That's a bit odd.

Indeed.

I tried pointing it at the public IP - instead of at localhost - but 
same error:
INFO - Inserting new Device: 10.x.x.x
DEBUG - Device::insert: Device 9 already exists in DB as 
monitor01.example.dk
DEBUG - monitor01.example.dk did not return base MAC. Using first 
available interface MAC.
Use of uninitialized value $address in sprintf at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 5313.
DEBUG - monitor01.example.dk: Could not insert base MAC: : Error while 
inserting PhysAddr: Missing address
DEBUG - monitor01.example.dk: No suitable base MAC found

>
>       Try again with sysServices.72 to start with.


#  snmpwalk -v2c localhost -c public | grep sysServices
SNMPv2-MIB::sysServices.0 = INTEGER: 72

- and yet:
]# /usr/local/netdot/bin/updatedevices.pl -H 10.x.x.x -c public -I -F -A 
-d | grep -i sysservices
SNMP::Info::_global(lldp_sys_cap) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 738
SNMP::Info::_global layers : sysServices.0
SNMP::Info::_global(ipforwarding) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 744
SNMP::Info::_global(netsnmp_vers) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 759
SNMP::Info::_global(b_mac) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 760
SNMP::Info::_global(mac) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 760
SNMP::Info::_global(router_ip) NOSUCHOBJECT at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 762
Use of uninitialized value $address in sprintf at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 5313.
Use of uninitialized value in sprintf at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 3747.

Any ideas? or should I try an older version than 1.0.4 - or perhaps 
latest from repository?

-- 
Regards,
Klavs Klavsen, GSEC - [email protected] - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer



------------------------------

Message: 3
Date: Tue, 2 Jul 2013 15:24:42 +0200
From: Phil Regnauld <[email protected]>
Subject: Re: [Netdot-users] netdot 1.0.4 not detecting interfaces on
        linux host
To: Klavs Klavsen <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Klavs Klavsen (kl) writes:
> 
> Any ideas? or should I try an older version than 1.0.4 - or perhaps
> latest from repository?

        First, can you test against another SNMP enabled host ? Make sure you
        don't have restrictions in your SNMP config on what parts of the subtree
        can be queries.

        What do you get for snmpwalk -c community -v 2c localhost ifPhysAddress 
?

        Phil


------------------------------

Message: 4
Date: Tue, 2 Jul 2013 15:26:41 +0200
From: Phil Regnauld <[email protected]>
Subject: Re: [Netdot-users] netdot 1.0.4 not detecting interfaces on
        linux host
To: Klavs Klavsen <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Another helpful thing would be the *full* output frmo updatedevices.pl -d

Cheers,
Phil


------------------------------

Message: 5
Date: Tue, 02 Jul 2013 15:33:29 +0200
From: Klavs Klavsen <[email protected]>
Subject: Re: [Netdot-users] netdot 1.0.4 not detecting interfaces on
        linux host
To: Phil Regnauld <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thank you Phil.

I found the issue. the public community did not have read access to the 
relevant info.

Would have been nice with a better error message :)

I added:
view    systemview    included   .1.3.6

to net-snmp config - which worked.

Phil Regnauld said the following on 07/02/2013 03:24 PM:
> snmpwalk -c community -v 2c localhost ifPhysAddress


-- 
Regards,
Klavs Klavsen, GSEC - [email protected] - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer



------------------------------

_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users


End of Netdot-users Digest, Vol 56, Issue 3
*******************************************

Reply via email to