[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Testbed-admins] fun with cisco SNMP



Chaos Golubitsky wrote:
Hi, all:

I'm using a Cisco Catalyst 2960G as my experimental switch, and
i'm seeing two problems that seem to require source-diving to fix:

1. I'm seeing the problem mentioned in:

     http://www.flux.utah.edu/listarchives/testbed-admins/msg00005.html

   namely, that snmpit fails on setting speed and duplex for
   interfaces when i start an experiment.  As far as i can tell,
   this problem occurs because /usr/testbed/lib/snmpit_cisco.pm
   thinks my C2960G is a 2900-series device, which uses a special
   MIB series with OIDs ending in things like c2900PortAdminSpeed
   and c2900PortDuplexState.  Those OIDs start with .1.3.6.1.4.1.9.9.87,
   and, per snmpwalk, my C2960G doesn't think it has anything at
   that location.

   It does seem to support the standard ciscoStackMIB location,
   though, which is what the non-2900-series code uses.  Hacking
   the code so i always fail the "$self->{SWITCHCLASS} == 2900"
   checks mitigates this problem, but then:

2. I am unsure whether to setup my node connections to go to card=0
   or card=1 of the C2960G.

   If i pick card=0:

mysql> select * from wires;
+-------+-----+------+----------+-------+-------+----------+-------+-------+
| cable | len | type | node_id1 | card1 | port1 | node_id2 | card2 | port2 |
+-------+-----+------+----------+-------+-------+----------+-------+-------+
|  NULL |   0 | Node | pc1      |     1 |     1 | switch1  |     0 |     2 |
...

   setting the VLAN port membership succeeds, but portAdmin and
   portDuplex fail:

*** WARNING: snmpit:
***   SNMP SET failed - In /usr/testbed/bin/snmpit
***   SNMPIT set failed for device switch1 (try 10 of 10)
*** Variable was [portAdminSpeed,0.2,100000000,INTEGER] *** Returned (undefined), ErrorNum was 6
***   Error string is: noAccess
*** WARNING: snmpit: *** SNMP SET failed - In /usr/testbed/bin/snmpit
***   SNMPIT set failed for device switch1 (try 10 of 10)
***   Variable was [portDuplex,0.2,2,INTEGER]
*** Returned (undefined), ErrorNum was 6 *** Error string is: noAccess

   Based on debugging output, i think this is because snmpit is
   trying to get at those items with OIDs of 1.3.6.1.4.1.9.5.1.4.1.1.9.0.2
   and 1.3.6.1.4.1.9.5.1.4.1.1.10.0.2 respectively (i.e. port '0.2'
   under each relevant ID), where the C2960G thinks the OIDs are
   1.3.6.1.4.1.9.5.1.4.1.1.9.1.2 and 1.3.6.1.4.1.9.5.1.4.1.1.10.1.2
   (i.e. port '1.2' under the same ID).

   And, indeed, if i switch to card2=1, i get the opposite set of
   failures: the SNMP settings succeed (or at least don't complain),
   while the VLAN port membership settings fail with "Port not
   found, skipping".

Any thoughts?  Is this another C2960G wart?  Do i have a likely
obvious config error somewhere?  Thanks.

Chaos
_______________________________________________
Testbed-admins mailing list
Testbed-admins@flux.utah.edu
http://www.flux.utah.edu/mailman/listinfo/testbed-admins

Chaos,

1) Is your type set to cisco2960-ios in the node_types table?
2) Card should be set to 0 for that type of switch.

Both of these problems are related, setting the type correctly should choose the correct path in snmpit. If your Emulab software is new enough, it should have the patch for this.

-Jonathan