View Issue Details

IDProjectCategoryView StatusLast Update
526RackTablesSNMPpublic2012-02-11 07:01
Reporterbiffhero Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.10 
Target Version0.20.0Fixed in Version0.20.0 
Summary526: SNMP: Unknown OID '9.1.471'
DescriptionThis is a cisco 2651XM

from "show hard"


Cisco 2651XM (MPC860P) processor (revision 4.1) with 253952K/8192K bytes of memory.
TagsNo tags attached.

Activities

adoom42

adoom42

2012-02-09 03:14

administrator   ~0000585

You need to submit the SNMP data described in the wiki: https://sourceforge.net/apps/mediawiki/racktables/index.php?title=FAQ#Why_does_the_SNMP_sync_feature_return_Unknown_OID_.28n.n.n.n.n.29

Also, please consider creating a patch.
biffhero

biffhero

2012-02-11 06:35

reporter   ~0000604

Here is what I changed.

$ rcsdiff -r1.1 dictionary.php
===================================================================
RCS file: RCS/dictionary.php,v
retrieving revision 1.1
diff -r1.1 dictionary.php
1673a1674,1675
> 1607 => array ('chapter_id' => 12, 'dict_value' => 'Cisco%GPASS%2651XM'),


$ rcsdiff -r1.1 snmp.php
===================================================================
RCS file: RCS/snmp.php,v
retrieving revision 1.1
diff -r1.1 snmp.php
853a854,865
> '9.1.471' => array
> (
> 'dict_key' => 1607,
> 'text' => '2561XM: 2 RJ-45/10-100TX',
> 'processors' => array ('catalyst-chassis-any-100TX'),
> ),
1513a1526,1529
> $swstring = $device->snmpget ('1.3.6.1.2.1.1.1.0');
> // only for routers
> if (preg_match ('/Cisco IOS Software, C2600/', $swstring))
> commitAddPort ($objectInfo['id'], 'aux0', '1-29', 'auxillary', ''); // RJ-45 RS-232 aux port

I also made the database entry into the Dictionary table.
biffhero

biffhero

2012-02-11 06:42

reporter   ~0000605

oops.


> '9.1.471' => array
> (
> 'dict_key' => 1607,
> 'text' => '2651XM: 2 RJ-45/10-100TX',
> 'processors' => array ('catalyst-chassis-any-100TX'),
> ),


It is a 2651, not a 2561.
adoom42

adoom42

2012-02-11 07:01

administrator   ~0000606

You were very close. I changed the dictionary entry to 270 as the 2651 model already exists. Please search dictionary.php for device models before adding new ones.

Also, I removed the $swstring snmpget as the sysDescr has already been grabbed. See r4956 for details.

Issue History

Date Modified Username Field Change
2012-02-08 22:32 biffhero New Issue
2012-02-08 22:32 biffhero Status new => assigned
2012-02-08 22:32 biffhero Assigned To => adoom42
2012-02-09 03:14 adoom42 Note Added: 0000585
2012-02-09 03:14 adoom42 Status assigned => feedback
2012-02-11 06:35 biffhero Note Added: 0000604
2012-02-11 06:42 biffhero Note Added: 0000605
2012-02-11 07:01 adoom42 Note Added: 0000606
2012-02-11 07:01 adoom42 Status feedback => closed
2012-02-11 07:01 adoom42 Resolution open => fixed
2012-02-11 07:01 adoom42 Fixed in Version => 0.20.0
2012-02-11 07:01 adoom42 Target Version => 0.20.0