-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Silverpeak devices #524
Comments
The MIBs will only be loaded when they are referenced by a device class. As far as I can see, there is no SNMP::Info class for Silverpeak yet. Now the MIBs have been added, someone could start creating an SNMP::Info class for these devices with the basic stuff, like reporting vendor, model, OS version etc. |
Thanks Jeroen, how difficult is it to create this class in snmp info?Ive noticed snmp info doesnt get as many updates as netdisco.Im not a developer but would be nice if somone that knows how to do it if it could get done. Mibs are there but one thing is missing. If there is a template or instruction how to do it, i wouldnt mind trying it myself.On 15 Apr 2024, at 21:43, Jeroen van Ingen Schenau ***@***.***> wrote:
The MIBs will only be loaded when they are referenced by a device class. As far as I can see, there is no SNMP::Info class for Silverpeak yet. Now the MIBs have been added, someone could start creating an SNMP::Info class for these devices with the basic stuff, like reporting vendor, model, OS version etc.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
either they didn't update the "last-updated" part of their mibs (silverpeak) or the mibs are ancient (circa 2012). since your device has a firmware date that mentions 2021 the mibs we added might not be relevant. snmp::info's main manpage has info on how to write a module, but it might not be very intuitive. made a writeup of how to at least build the basics here: |
Hey, ive been working on this a bit but still havent been able to make it work fully. Here is what i have done, i made a SilverPeak.pm file and updated to the latest mibs 9.5 attached which need to be updated in the mibs for netdisco.
Also have a test script to test the mibs, just as a test.pl file to run
I edited the netdisco users ./bashrc file and added the following
Running the test script returns the following :
So once i made the Silverpeak.pm and the test script netdisco isnt still picking up the silverpeak device correct product/system, i feel i am missing something to append for it to be able to pickup these values. I feel i am almost there to get it operational it just needs a slight tweaking, anyone can assist? |
Hi Muris, you're setting |
I found i needed to make changes to Info.pm /home/netdisco/perl5/lib/perl5/SNMP/Info.pm So i have added the following -
Even with this added i still cant get it to work properly for the silverpeak Layer 3 class with this script using relying on SNMP Info, it just gets "NO SUCH OBJECT"
But if i do direct queries on those OIDS using SNMP Info Layer 3 it returns results
So what else am i missing? |
Your edit to SNMP::Info looks good (although not all context is present to check it fully) and now AutoSpecify appears to work. I can't explain the result that you're getting from Netdisco yet; based on your code, I would expect the vendor to be updated to 'silverpeak' and the model to match the model from your test code. |
alright, so youre not sure why its returning from its own specific sub-class this error- Im thinking there might be something else missing in the SilverPeak.pm file and mapping things, i know its basic, the other .pms ones i looked through seem more comprehensive, feel like im almost there but not sure what to put in or edit |
No, not sure about that one. I always test subclasses through SNMP::Info with AutoSpecify on, never directly. |
Can you give me an example what i should do try test it? Do you see in myCode anything else im missing?I spent a week on this to try get it going but seems this product is so difficult to integrate.On 22 Jul 2024, at 18:33, Jeroen van Ingen Schenau ***@***.***> wrote:
alright, so youre not sure why its returning from its own specific sub-class this error- SNMP::Info::_global spsProductModel : SILVERPEAK-MGMT-MIB::spsProductModel.0 : 1.3.6.1.4.1.23867.3.1.1.1.2.0 SNMP::Info::_global(spsProductModel) NOSUCHOBJECT at ./test15.pl line 27.
No, not sure about that one. I always test subclasses through SNMP::Info with AutoSpecify on, never directly.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
If you want, I can try with the code that you provided, but I'd need a load of SNMP data from your device in order to simulate it (as I don't have access to a Silverpeak device myself). A dump created with |
Alright, i can do it, can i send it to you via a secure method ?On 22 Jul 2024, at 20:20, Jeroen van Ingen Schenau ***@***.***> wrote:
If you want, I can try with the code that you provided, but I'd need a load of SNMP data from your device in order to simulate it (as I don't have access to a Silverpeak device myself).
A dump created with snmprec as described at https://github.com/netdisco/snmp-info/wiki/Simulating-Agents would be preferred. I can probably spend one or two hours on it later this week.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
One secure method that I can suggest is to create a private github repo and give me access to it. You can remove it when we're done. |
ok I managed to finally crack it and got it working Info.pm
SilverPeak.pm
Output |
Thanks I'll have a look at putting this into SNMP::Info |
I implemented this in 099c302 but I can't make the tests work as I've no idea how SNMP::Info tests are engineered. This means it can't be released, yet, sorry. |
Hi Oliver, those mibs are version 9.2 or something the latest mibs are 9.5 which ive uploaded on that link/thread. They just need updating.What do you mean by how SNMP::Info tests are engineered?On 23 Jul 2024, at 03:24, Oliver Gorwits ***@***.***> wrote:
I implemented this in 099c302 but I can't make the tests work as I've no idea how SNMP::Info tests are engineered. This means it can't be released, yet, sorry.
BTW it does look like netdisco-mibs already contains the SilverPeak MIBs (in silver-peak directory)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hey Oliver, I made a test file that you can use to test, if this helps? Create a mocktest.t file with execute rights
Executing the test file..
Methods for fetching specific attributes using the SilverPeak MIBs:
If you can just update the repositry with 9.5 version of the mibs that will be great. |
I've written SNMP::Info tests before; I'm a bit rusty at it, but need to catch up anyway - I have a local addition for Westermo industrial switches that I can finalize. Will give it a go in the next couple of days. |
The netdisco-mibs analysis of the 9.5 mibs is that they're the same as the bundled ones, at least for the silver-peak items:
|
Hi Oliver, version 9.5 of the products mib has been updated with more models of the hardware thats all the changes are.On 26 Jul 2024, at 01:42, Oliver Gorwits ***@***.***> wrote:
Hi Oliver, those mibs are version 9.2 or something the latest mibs are 9.5 which ive uploaded on that link/thread.
The netdisco-mibs analysis of the 9.5 mibs is that they're the same as the bundled ones, at least for the silver-peak items:
% EXTRAS/scripts/prepmibs ~/Downloads/silver-peak
👀 Scanning submitted files
👀 Building MIBs baseline
✔ Index rebuilt (0 errors, 106 vendors, 4586 mibs).
= SILVERPEAK-MGMT-MIB is the same revision (SILVERPEAK-MGMT-MIB.txt ⇰ same/SILVERPEAK-MGMT-MIB.mib)
= SILVERPEAK-PRODUCTS-MIB is the same revision (SILVERPEAK-PRODUCTS-MIB.txt ⇰ same/SILVERPEAK-PRODUCTS-MIB.mib)
= SILVERPEAK-SMI is the same revision (SILVERPEAK-SMI.txt ⇰ same/SILVERPEAK-SMI.mib)
= SILVERPEAK-TC is the same revision (SILVERPEAK-TC.txt ⇰ same/SILVERPEAK-TC.mib)
⚠ file Readme.txt was skipped by our indexer
✘ IANA-ADDRESS-FAMILY-NUMBERS-MIB already known in rfc (IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt ⇰ other/.../IANA-ADDRESS-FAMILY-NUMBERS-MIB.mib)
✘ IANA-LANGUAGE-MIB already known in rfc (IANA-LANGUAGE-MIB.txt ⇰ other/.../IANA-LANGUAGE-MIB.mib)
✘ IANAifType-MIB already known in rfc (IANAifType-MIB.txt ⇰ other/.../IANAIFTYPE-MIB.mib)
✘ IF-MIB already known in rfc (IF-MIB.txt ⇰ other/.../IF-MIB.mib)
✘ INET-ADDRESS-MIB already known in rfc (INET-ADDRESS-MIB.txt ⇰ other/.../INET-ADDRESS-MIB.mib)
✘ IP-MIB already known in rfc (IP-MIB.txt ⇰ other/.../IP-MIB.mib)
✘ RFC1155-SMI already known in rfc (RFC1155-SMI.txt ⇰ other/.../RFC1155-SMI.mib)
✘ RFC1213-MIB already known in rfc (RFC1213-MIB.txt ⇰ other/.../RFC1213-MIB.mib)
✘ SNMP-FRAMEWORK-MIB already known in rfc (SNMP-FRAMEWORK-MIB.txt ⇰ other/.../SNMP-FRAMEWORK-MIB.mib)
✘ SNMP-MPD-MIB already known in rfc (SNMP-MPD-MIB.txt ⇰ other/.../SNMP-MPD-MIB.mib)
✘ SNMP-NOTIFICATION-MIB already known in rfc (SNMP-NOTIFICATION-MIB.txt ⇰ other/.../SNMP-NOTIFICATION-MIB.mib)
✘ SNMP-TARGET-MIB already known in rfc (SNMP-TARGET-MIB.txt ⇰ other/.../SNMP-TARGET-MIB.mib)
✘ SNMP-USER-BASED-SM-MIB already known in rfc (SNMP-USER-BASED-SM-MIB.txt ⇰ other/.../SNMP-USER-BASED-SM-MIB.mib)
✘ SNMP-VIEW-BASED-ACM-MIB already known in rfc (SNMP-VIEW-BASED-ACM-MIB.txt ⇰ other/.../SNMP-VIEW-BASED-ACM-MIB.mib)
✘ SNMPv2-CONF already known in rfc (SNMPv2-CONF.txt ⇰ other/.../SNMPV2-CONF.mib)
✘ SNMPv2-MIB already known in rfc (SNMPv2-MIB.txt ⇰ other/.../SNMPV2-MIB.mib)
✘ SNMPv2-SMI already known in rfc (SNMPv2-SMI.txt ⇰ other/.../SNMPV2-SMI.mib)
✘ SNMPv2-TC already known in rfc (SNMPv2-TC.txt ⇰ other/.../SNMPV2-TC.mib)
✔ MIBs ready for import.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Okay so they updated the content of the products MIB and didn't bump the version (naughty!). We can just copy the new version in if the changes are clean. |
Alright cool hows my snmp integration work so far have you done any test?So far im using my modifications in our environment with no problems.On 26 Jul 2024, at 17:49, Oliver Gorwits ***@***.***> wrote:
Okay so they updated the content of the products MIB and didn't bump the version (naughty!). We can just copy the new version in if the changes are clean.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi Oliver , are you any closer to integrating this into SNMP info?
From: Muris ***@***.***>
Date: Friday 26 July 2024 at 17:56
To: netdisco/snmp-info ***@***.***>
Cc: netdisco/snmp-info ***@***.***>, Author ***@***.***>
Subject: Re: [netdisco/snmp-info] Silverpeak devices (Issue #524)
Alright cool hows my snmp integration work so far have you done any test?
So far im using my modifications in our environment with no problems.
On 26 Jul 2024, at 17:49, Oliver Gorwits ***@***.***> wrote:
Okay so they updated the content of the products MIB and didn't bump the version (naughty!). We can just copy the new version in if the changes are clean.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
FYI, I failed to get a working dev environment to get the tests done, before leaving on holiday. It's still on my ToDo list to get this working again.
Regards,
Jeroen
Get BlueMail for Android<https://bluemail.me/>
On Aug 12, 2024, at 09:22, Muris ***@***.******@***.***>> wrote:
Hi Oliver , are you any closer to integrating this into SNMP info?
From: Muris ***@***.***>
Date: Friday 26 July 2024 at 17:56
To: netdisco/snmp-info ***@***.***>
Cc: netdisco/snmp-info ***@***.***>, Author ***@***.***>
Subject: Re: [netdisco/snmp-info] Silverpeak devices (Issue #524)
Alright cool hows my snmp integration work so far have you done any test?
So far im using my modifications in our environment with no problems.
On 26 Jul 2024, at 17:49, Oliver Gorwits ***@***.***> wrote:
Okay so they updated the content of the products MIB and didn't bump the version (naughty!). We can just copy the new version in if the changes are clean.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#524 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEC6LH3T53UQRJJLDGALBLTZRBPCRAVCNFSM6AAAAABGEEBBSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTGI3DMOJTHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I worked for a while getting this integrated and making it work, not sure why it’s taking so long to add it into SNMP info.
I want to update to the next netdisco revision but I’d like it with the full SNMP info silverpeak support so I don’t have to hack the files manually..
I’ll hold tight a bit longer 😊
From: Jeroen van Ingen Schenau ***@***.***>
Reply to: netdisco/snmp-info ***@***.***>
Date: Monday 12 August 2024 at 8:15 PM
To: netdisco/snmp-info ***@***.***>
Cc: Muris ***@***.***>, Author ***@***.***>
Subject: Re: [netdisco/snmp-info] Silverpeak devices (Issue #524)
FYI, I failed to get a working dev environment to get the tests done, before leaving on holiday. It's still on my ToDo list to get this working again.
Regards,
Jeroen
Get BlueMail for Android<https://bluemail.me/>
On Aug 12, 2024, at 09:22, Muris ***@***.******@***.***>> wrote:
Hi Oliver , are you any closer to integrating this into SNMP info?
From: Muris ***@***.***>
Date: Friday 26 July 2024 at 17:56
To: netdisco/snmp-info ***@***.***>
Cc: netdisco/snmp-info ***@***.***>, Author ***@***.***>
Subject: Re: [netdisco/snmp-info] Silverpeak devices (Issue #524)
Alright cool hows my snmp integration work so far have you done any test?
So far im using my modifications in our environment with no problems.
On 26 Jul 2024, at 17:49, Oliver Gorwits ***@***.***> wrote:
Okay so they updated the content of the products MIB and didn't bump the version (naughty!). We can just copy the new version in if the changes are clean.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#524 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEC6LH3T53UQRJJLDGALBLTZRBPCRAVCNFSM6AAAAABGEEBBSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTGI3DMOJTHA>.
You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I see the MIBS are added for silverpeak, but its still not detecting them and comes up as "unknown enterprises" etc.
Is there any cmd i can pass through to see what its actually doing on the device and how its parsing the mib?
Discussed in netdisco/netdisco#879
Originally posted by alcatron June 14, 2022
Is there any chance to update the MIBS or support for silverpeak devices? Starting to see some of these for SD-WAN..
Vendor / Model unknown / enterprises.23867.1.2.0
Description Silver Peak Systems, Inc. ECSP Linux 4.19.87-sps netdisco/netdisco#1 SMP PREEMPT Thu Dec 9 20:04:39 UTC 2021 ECOS 9.0.5.2_90055 netdisco/netdisco#1-dev 2022-03-07 14:50:12 x86_64 sptest@yocto-app-build7:unknown
Ports/Connected nodes doesnt detect anything also.
The text was updated successfully, but these errors were encountered: