inex / IXP-Manager

Full stack web application powering peering at over 200 Internet Exchange Points (IXPs) globally.
https://www.ixpmanager.org/
GNU General Public License v2.0
374 stars 160 forks source link

SNMP Poll for Arista switch brings error #197

Closed bcix closed 9 years ago

bcix commented 9 years ago

Hi,

just updated to 3.7.2 I added one new Arista 7504E Core Switch [core-n15] to IXP-Manager.

When running an Live port States SNMP poll I get the following yellow error message in the web interface:

Stale data gathered on 2015-01-27 23:59:12. Could not update switch and switch port details via SNMP poll.

In the logfile I have the following messages for several tries:

2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Model: 
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Os: EOS
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsDate: Unknown
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsVersion: 
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Updating SerialNumber from  to (not implemented)
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]: Found new port for core-n15 with index 3001
2015-01-27T23:54:46+01:00 INFO (6) [91.64.76.9]: [core-n15]: [Index: 3001] Updating Name from [] to [Ethernet3/1]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfName from [] to [Ethernet3/1]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfHighspeed from [] to [10000]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfMtu from [] to [9214]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfPhysAddress from [] to [001C7328DBF7]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfAdminStatus from [] to [1]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfOperStatus from [] to [1]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauType from [] to [10GigBaseLR]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauState from [] to [operational]
2015-01-27T23:54:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauAvailability from [] to [available]

2015-01-27T23:56:14+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Model: 
2015-01-27T23:56:14+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Os: EOS
2015-01-27T23:56:14+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsDate: Unknown
2015-01-27T23:56:14+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsVersion: 
2015-01-27T23:56:14+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Updating SerialNumber from  to (not implemented)
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: Found new port for core-n15 with index 3001
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]: [Index: 3001] Updating Name from [] to [Ethernet3/1]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfName from [] to [Ethernet3/1]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfHighspeed from [] to [10000]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfMtu from [] to [9214]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfPhysAddress from [] to [001C7328DBF7]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfAdminStatus from [] to [1]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfOperStatus from [] to [1]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauType from [] to [10GigBaseLR]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauState from [] to [operational]
2015-01-27T23:56:15+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauAvailability from [] to [available]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Model: 
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Os: EOS
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsDate: Unknown
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsVersion: 
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Updating SerialNumber from  to (not implemented)
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: Found new port for core-n15 with index 3001
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]: [Index: 3001] Updating Name from [] to [Ethernet3/1]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfName from [] to [Ethernet3/1]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfHighspeed from [] to [10000]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfMtu from [] to [9214]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfPhysAddress from [] to [001C7328DBF7]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfAdminStatus from [] to [1]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfOperStatus from [] to [1]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauType from [] to [10GigBaseLR]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauState from [] to [operational]
2015-01-27T23:56:47+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauAvailability from [] to [available]

2015-01-27T23:59:12+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Model: 
2015-01-27T23:59:12+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found Os: EOS
2015-01-27T23:59:12+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsDate: Unknown
2015-01-27T23:59:12+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Found OsVersion: 
2015-01-27T23:59:12+01:00 INFO (6) [91.64.76.9]:  [core-n15] Platform: Updating SerialNumber from  to (not implemented)
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: Found new port for core-n15 with index 3001
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]: [Index: 3001] Updating Name from [] to [Ethernet3/1]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfName from [] to [Ethernet3/1]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfHighspeed from [] to [10000]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfMtu from [] to [9214]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfPhysAddress from [] to [001C7328DBF7]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfAdminStatus from [] to [1]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating IfOperStatus from [] to [1]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauType from [] to [10GigBaseLR]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauState from [] to [operational]
2015-01-27T23:59:13+01:00 INFO (6) [91.64.76.9]: [core-n15]:Ethernet3/1 [Index: 3001] Updating MauAvailability from [] to [available]
bcix commented 9 years ago

And additional messages from ixptool.php -a switch-cli.snmp-poll :

PHP Notice: Undefined offset: 2 in /ixp/library/OSS_SNMP.git/src/OSS_SNMP/Platforms/vendor_arista.php on line 48 PHP Notice: Undefined offset: 1 in /ixp/library/OSS_SNMP.git/src/OSS_SNMP/Platforms/vendor_arista.php on line 50 ERROR: OSS_SNMP exception polling core-n15 by SNMP

fooelisa commented 9 years ago

Sorry, that must be my fault, I was just tinkering with this part recently. I've seen the "Stale data gathered" message as well, but the import succeeded in the end anyways (aka ports were in the database). The below should not be happening though, can you send me the output of:

snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.1.0 snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.2.0

Thanks! Elisa

On Jan 28, 2015, at 10:15 AM, bcix notifications@github.com wrote:

And additional messages from ixptool.php -a switch-cli.snmp-poll :

PHP Notice: Undefined offset: 2 in /ixp/library/OSS_SNMP.git/src/OSS_SNMP/Platforms/vendor_arista.php on line 48 PHP Notice: Undefined offset: 1 in /ixp/library/OSS_SNMP.git/src/OSS_SNMP/Platforms/vendor_arista.php on line 50 ERROR: OSS_SNMP exception polling core-n15 by SNMP

— Reply to this email directly or view it on GitHub.

barryo commented 9 years ago

@fooelisa - please note opensolutions/OSS_SNMP@c3ba0c256d8cdf1958796e1a2a4b379a491c2fcf

fooelisa commented 9 years ago

Oh that's a good idea! In theory those should have matched on the sysDescr though... wondering if Thorleif's are different from mine

On Jan 28, 2015, at 12:15 PM, barryo notifications@github.com wrote:

@fooelisa - please note opensolutions/OSS_SNMP@c3ba0c2

— Reply to this email directly or view it on GitHub.

barryo commented 9 years ago

yeah, belt and braces is always a good idea but I'm as guilty as the next person for forgetting! :cry:

bcix commented 9 years ago

snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.1.0

.1.3.6.1.2.1.1.1.0 = STRING: "Arista Networks EOS version 4.14.2F running on an Arista Networks DCS-7504"

snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.2.0

.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.30065.1.3011.7504
fooelisa commented 9 years ago

Oh, sorry, this is my fault.

Barry not sure which branch you checked this into? Can't find it. Can you add: "running on Arista Networks" => "running on an Arista Networks"

Sorry about this!!

On Jan 28, 2015, at 12:37 PM, bcix notifications@github.com wrote:

snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.1.0

.1.3.6.1.2.1.1.1.0 = STRING: "Arista Networks EOS version 4.14.2F running on an Arista Networks DCS-7504"

snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.2.0

.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.30065.1.3011.7504

— Reply to this email directly or view it on GitHub.

barryo commented 9 years ago

Done. It was on the master branch.

fooelisa commented 9 years ago

Oh, right, I guess I won't find it looking in my fork :) Thanks and sorry again!

On Jan 28, 2015, at 1:27 PM, barryo notifications@github.com wrote:

Done. It was on the master branch.

— Reply to this email directly or view it on GitHub.