Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Huawei - S6720-54C-EI-48S-AC #72

Closed
aredan opened this issue Aug 27, 2021 · 6 comments
Closed

Support for Huawei - S6720-54C-EI-48S-AC #72

aredan opened this issue Aug 27, 2021 · 6 comments

Comments

@aredan
Copy link

aredan commented Aug 27, 2021

The SNMP query (snmpwalk) is returning:

.1.3.6.1.2.1.1.1.0 = STRING: "S6720-54C-EI-48S-AC
Huawei Versatile Routing Platform Software
VRP (R) software,Version 5.170 (S6720 V200R010C00SPC600)
Copyright (C) 2007 Huawei Technologies Co., Ltd."

We also edited a little bit the vendor_huawei.php file:

else if( preg_match('/^(S\d+-[A-Z0-9-]+)\s+Huawei Versatile Routing Platform Software\s+VRP (R) software,Version ([0-9.]+) ((S[0-9]+) [A-Z0-9]+)\s+Copyright (C) 2007 Huawei Technologies.*$/',

df0c788

After that change the Switch is being detected, version and model are shown in the portal.

What we're seeing now is the lack of interface detection.

image

Looks like we need a vendor-specific Iface.php file with the OID for Huawei.

@barryo
Copy link
Member

barryo commented Sep 14, 2021

What does an snmp walk on .1.3.6.1.2.1.31 reveal?

Feel free to paste here: https://pastebin.ibn.ie/

@aredan
Copy link
Author

aredan commented Sep 14, 2021

This is the result:

image

I also uploaded the full snmpwalk to : https://pastebin.ibn.ie/?6a63942ac765143c#3Zt9vNtrdpzUwYAdXZifxPJYujxPc5BmokaE3m8LYAmB

@barryo
Copy link
Member

barryo commented Jan 15, 2022

Thanks @aredan - regex updated in master now. Can you check interface discovery with the most recent version of IXP Manager as there was a bug in recent versions around this.

@barryo barryo closed this as completed in 02de954 Jan 15, 2022
@moviedo-sc
Copy link

The Switch is recognized by IXP Manager (V6.2.0), but it is not showing any port. Live port states show:
 
Could not update switch and switch port details via SNMP poll. Last successful poll: 2022-01-17 22:23:02.
 
The only logs I see are:
[2022-01-17 22:23:00] production.INFO:  [IXP-SW01] Platform: Found Model: S6720-54C-EI-48S-AC 
[2022-01-17 22:23:00] production.INFO:  [IXP-SW01] Platform: Found Os: Huawei Versatile Routing Platform Software VRP 
[2022-01-17 22:23:00] production.INFO:  [IXP-SW01] Platform: Updating OsDate from  to Unknown 
[2022-01-17 22:23:00] production.INFO:  [IXP-SW01] Platform: Found OsVersion: 5.170 
[2022-01-17 22:23:00] production.INFO:  [IXP-SW01] Platform: Found SerialNumber: (not implemented) 
[2022-01-17 22:23:06] production.INFO:  - IXP-SW01 - found pre-existing port for ifIndex 4 
[2022-01-17 22:23:06] production.INFO: [IXP-SW01]: [Index: 4] Updating Name from [] to [MEth0/0/1] 
 
Please let me know what other information could be useful to troubleshoot further.
 

@moviedo-sc
Copy link

moviedo-sc commented Jan 18, 2022 via email

@barryo
Copy link
Member

barryo commented Jan 18, 2022

What version of IXP Manager are you using @moviedo-sc ?

I can see it's finding the management port fine:

[2022-01-17 22:23:06] production.INFO:  - IXP-SW01 - found pre-existing port for ifIndex 4 
[2022-01-17 22:23:06] production.INFO: [IXP-SW01]: [Index: 4] Updating Name from [] to [MEth0/0/1] 

But the standard ports all look like they should be discovered without issue.

At this line, can you insert the following and paste the results to the pastebin?

Sorry, line is: https://github.com/inex/IXP-Manager/blob/release-v6/app/Models/Switcher.php#L381

dump( $host->useIface()->indexes() );
dump( $host->useIface()->names() );
dump( $host->useIface()->aliases() );
dump( $host->useIface()->descriptions() );
dump( $host->useIface()->speeds() );
dump( $host->useIface()->highSpeeds() );
dump( $host->useIface()->operationStates() );
dd( $host->useIface()->types() );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants