[ixpmanager] Error when Adding Switch via SNMP on IXP Manager

k.abdalla at q-ab.com k.abdalla at q-ab.com
Tue Nov 28 14:04:39 GMT 2017


sorry for inconvenience ,, 
We edited 
/SRV/IXPMANAGER/VENDOR/OPENSOLUTIONS/OSS-SNMP/SRC/OSS_SNMP/PLATFORMS/VENDOR_CISCO.PHP

to add our new switch model by adding below lines : 

" 
if( substr( $sysDescr, 0, 12 ) == 'Cisco IOS Software')
{

//our_switch

(preg_match( '/Cisco(.+)C3560
Software(.+)Version\s([0-9A-Za-z\(\)\.]+),\sRELEASE SOFTWARE.*/',
$sysDescr, $matches ));

$this->setVendor( 'Cisco Systems' );
$this->setModel( 'C3560' );
$this->setOs( 'IOS' );
$this->setOsVersion( $matches[3] );
$this->sietOsDate( null );
}

" 

, when try to add again it gave us : 
" 

ERROREXCEPTION

 File
/srv/ixpmanager/vendor/opensolutions/oss-snmp/src/OSS_SNMP/Platforms/vendor_cisco.php
Line 78 Message Undefined offset: 1 Code 0" 

It is code syntax Error and we don't know how to deal with it . 

Thanks in advance  

On 2017-11-28 07:08, Mike Hammett wrote: 

> You'll need to be more verbose. What doesn't work? Why?
> 
> -----
> Mike Hammett
> Intelligent Computing Solutions [1 [1]]
> [2 [2]] [3 [3]] [4 [4]] [5 [5]]
> Midwest Internet Exchange [6 [6]]
> [7 [7]] [8 [8]] [9 [9]]
> The Brothers WISP [10 [10]]
> [11 [11]] [12 [12]]
> 
> -------------------------
> 
> FROM: "k abdalla" <k.abdalla at q-ab.com>
> TO: "Barry O'Donovan" <barry.odonovan at inex.ie>
> CC: "INEX IXP Manager Mailing List" <ixpmanager at inex.ie>, "a rifat"
> <a.rifat at q-ab.com>
> SENT: Tuesday, November 28, 2017 6:04:51 AM
> SUBJECT: Re: [ixpmanager] Error when Adding Switch via SNMP on IXP
> Manager
> 
> Thanks for great help , I tried to add new device but it did'nt work
> can you please help me  
> 
> On 2017-11-28 04:05, Barry O'Donovan wrote: 
> 
>> Hi K,
>> 
>> 3) Remove the log file, retry and then post the entire log file to
>> a
>> pastebin and provide the URL please.
>> can you please see the log *https://pastebin.com/whR4KWP0*
> 
> Thanks.
> 
> That's narrowed it down to an issue with OSS_SNMP - the library we use
> to SNMP poll the switches. Looks like yours is not fully supported.
> 
> Can you following the instructions from:
> 
> https://github.com/opensolutions/OSS_SNMP/wiki/Device-Discovery#adding-new-devices
> 
> Specifically, provide:
> 
> 1) switch make, model, OS name and version
> 
> 2) the output of:
> 
> 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: "CISCO IOS SOFTWARE, C3560E SOFTWARE
>> (C3560E-UNIVERSALK9-M), VERSION 12.2(55)SE5, RELEASE SOFTWARE (FC1)
>> TECHNICAL SUPPORT: HTTP://WWW.CISCO.COM/TECHSUPPORT
>> COPYRIGHT (C) 1986-2012 BY CISCO SYSTEMS, INC.
>> COMPILED THU 09-FEB-12 18:32 BY PROD_REL_TEAM"
> 
>> 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.9.1.796
> 
> 3) if you want to record the serial number and your device supports
> it,
> then the OID and a sample response for that also. E.g. on a Brocade
> FESX
> it's:
> 
> snmpget -c $community -On -v 2c $hostname
> .1.3.6.1.4.1.1991.1.1.1.1.2.0
> 
> Barry 
> 
> Thanks again !and much appreciated  
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> https://www.inex.ie/mailman/listinfo/ixpmanager
> 
> Links:
> ------
> [1] http://www.ics-il.com/
> [2] https://www.facebook.com/ICSIL
> [3] https://plus.google.com/+IntelligentComputingSolutionsDeKalb
> [4] https://www.linkedin.com/company/intelligent-computing-solutions
> [5] https://twitter.com/ICSIL
> [6] http://www.midwest-ix.com/
> [7] https://www.facebook.com/mdwestix
> [8] https://www.linkedin.com/company/midwest-internet-exchange
> [9] https://twitter.com/mdwestix
> [10] http://www.thebrotherswisp.com/
> [11] https://www.facebook.com/thebrotherswisp
> [12] https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> https://www.inex.ie/mailman/listinfo/ixpmanager
 

Links:
------
[1] http://www.ics-il.com/
[2] https://www.facebook.com/ICSIL
[3] https://plus.google.com/+IntelligentComputingSolutionsDeKalb
[4] https://www.linkedin.com/company/intelligent-computing-solutions
[5] https://twitter.com/ICSIL
[6] http://www.midwest-ix.com/
[7] https://www.facebook.com/mdwestix
[8] https://www.linkedin.com/company/midwest-internet-exchange
[9] https://twitter.com/mdwestix
[10] http://www.thebrotherswisp.com/
[11] https://www.facebook.com/thebrotherswisp
[12] https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20171128/8ea16a0c/attachment.html>


More information about the ixpmanager mailing list