kentik / snmp-profiles

SNMP Profiles for ktranslate
Apache License 2.0
25 stars 68 forks source link

Use name: cLWlanSsid for 9800 WLCs #779

Closed aditdeshpande10 closed 5 months ago

aditdeshpande10 commented 6 months ago

profiles/kentik_snmp/cisco/cisco-wlc.yml

Can this metric be used for 9800 WLCs to display the SSID Name instead of bsnDot11EssSsid since the OID (1.3.6.1.4.1.14179.2.1.1.1.2) is unavailable on the 9800 WLCs?

I have attached a screenshot of a Air OS WLC and 9800 WLC for reference. Screenshot 2024-05-30 at 5 59 32 PM Screenshot 2024-05-31 at 12 46 35 PM

[user@host ~]$ snmpwalk -v3 -l authPriv -u user -a <> -A <> -x <> -X <> hyd1-wlc-a 1.3.6.1.4.1.9.9.512.1.1.1.1.4 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.12 = STRING: "SalesforceGuest" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.13 = STRING: "Mirror"

thezackm commented 6 months ago

@aditdeshpande10 - thanks for the issue

can you validate that the index value of the 2 tables is aligned as expected? this would be the "join" between them that could enable your request.

cLWlanConfigTable:cLWlanIndex

snmpwalk -v 3 -l $LEVEL -u $USERNAME -a $AUTH_PROTOCOL -A $AUTH_PASSPHRASE -x $PRIV_PROTOCOL -X $PRIV_PASSPHRASE -ObentU -Cc $IP_ADDRESS .1.3.6.1.4.1.9.9.512.1.1.1

bsnDot11EssTable:bsnDot11EssIndex

snmpwalk -v 3 -l $LEVEL -u $USERNAME -a $AUTH_PROTOCOL -A $AUTH_PASSPHRASE -x $PRIV_PROTOCOL -X $PRIV_PASSPHRASE -ObentU -Cc $IP_ADDRESS .1.3.6.1.4.1.14179.2.1.1

The idea being that adding CISCO-LWAPP-WLAN-MIB::cLWlanConfigTable::cLWlanSsid as a metric tag decoration on the AIRESPACE-WIRELESS-MIB::bsnDot11EssTable::bsnDot11EssSsid will only work if the Index value from the 2 different MIB tables is identical. Otherwise there won't be a way to understand which value from one MIB aligns to the other.

aditdeshpande10 commented 5 months ago

@thezackm Thanks for the feedback. The index values are same for both the MIBs. However, the objects in the 2 tables are completely different. I'm attaching a screenshot of the index values - 1 is from a Air OS WLC ([cLWlanIndex]and the other is from a IOS-XE (9800 series WLC) [bsnDot11EssTable:bsnDot11EssIndex]

SNMPwalk-

  1. cLWlanSsid: snmpwalk -v3 -l <> -u <> -a <> -A <> -x <> -X <> .1.3.6.1.4.1.9.9.512.1.1.1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.11 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.12 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.13 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.12 = STRING: "Salesforce Guest" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.13 = STRING: "Mirror" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.12 = STRING: "SalesforceGuest" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.13 = STRING: "Mirror"

    snmpwalk -v3 -l <> -u <> -a <> -A <> -x <> -X <> .1.3.6.1.4.1.9.9.512.1.1.1 .1.3.6.1.4.1.9.9.512.1.1.1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.11 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.12 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.2.13 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.12 = STRING: "SalesforceGuest" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.13 = STRING: "Mirror" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.12 = STRING: "SalesforceGuest" SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.4.13 = STRING: "Mirror"

  2. bsnDot11EssSsid: snmpwalk -v3 -l <> -u <> -a <> -A <> -x <> -X <> .1.3.6.1.4.1.14179.2.1.1 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.11 = Gauge32: 11 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.12 = Gauge32: 12 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.13 = Gauge32: 13 SNMPv2-SMI::enterprises.14179.2.1.1.1.5.11 = INTEGER: 1 SNMPv2-SMI::enterprises.14179.2.1.1.1.5.12 = INTEGER: 1 SNMPv2-SMI::enterprises.14179.2.1.1.1.5.13 = INTEGER: 1 SNMPv2-SMI::enterprises.14179.2.1.1.1.6.11 = INTEGER: 1 SNMPv2-SMI::enterprises.14179.2.1.1.1.6.12 = INTEGER: 1 SNMPv2-SMI::enterprises.14179.2.1.1.1.6.13 = INTEGER: 1

snmpwalk -v3 -l <> -u <> -a <> -A <> -x <> -X <> .1.3.6.1.4.1.14179.2.1.1 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.11 = Gauge32: 11 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.12 = Gauge32: 12 SNMPv2-SMI::enterprises.14179.2.1.1.1.1.13 = Gauge32: 13 SNMPv2-SMI::enterprises.14179.2.1.1.1.2.11 = STRING: "GoMobile" SNMPv2-SMI::enterprises.14179.2.1.1.1.2.12 = STRING: "SalesforceGuest" SNMPv2-SMI::enterprises.14179.2.1.1.1.2.13 = STRING: "Mirror"

Screenshot 2024-06-10 at 10 35 30 AM Screenshot 2024-06-10 at 10 36 17 AM
thezackm commented 5 months ago

I'm not sure I understand. Is the value from both MIBs looking at the same SSID or not? If not, then the vendor's MIB support doesn't extend to your needs. If it is, we can probably adjust this profile to make it work.

aditdeshpande10 commented 5 months ago

Yes, the values are matching i.e. it's pointing to the same SSIDs. Should I proceed with a PR? I'll move the metrics tags (lines 196-206) to line 468 such that it's added as an extension to AIRESPACE-WIRELESS-MIB. Please advise if this is appropriate.

thezackm commented 5 months ago

correct; technically you'd copy, not move. we still want the original metric tag for lines 197-206 in place as well.

aditdeshpande10 commented 5 months ago

@thezackm Thanks for confirming, please review the PR - https://github.com/kentik/snmp-profiles/pull/780 Suggest changes, if any.

aditdeshpande10 commented 5 months ago

Hi @thezackm I'm following up on the PR - https://github.com/kentik/snmp-profiles/pull/780 I submitted last week. Please let me know if any changes/modifications are required from my side.