Welcome, Guest. Please login or register.

Author Topic: Definition file for Aruba 6100 Switch  (Read 4245 times)

ggessler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Definition file for Aruba 6100 Switch
« on: December 08, 2021, 07:18:29 pm »
Hello everybody,

I am searching for a def file for Aruba 6100 Switch models (JL678A, JL677A, JL675A, ...).
I made a start with an Aruba 6100 24G 4SFP+ (JL678A) but am still struggling with some details.

Code: [Select]
# Definition for 1.3.6.1.4.1.47196.4.1.1.1.253 created by Defed 1.0 on 7.Jun 2018 (admin)

# Main
SNMPv   2HC
Type    Aruba 6100 24G 4SFP+ (JL678A)
TypOID
DesOID
OS      ArubaOS
Icon    s2m
Size    1
Uptime  S
Bridge  qbriV
ArpND
Dispro  LLDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11
Bimage  1.3.6.1.2.1.47.1.1.1.1.10
VLnams  1.3.6.1.2.1.47.1.2.1.1.2
VLnamx  1.3.6.1.2.1.47.1.2.1.1.3
Group
Mode
CfgChg
CfgWrt
FTPConf
Fanstat

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.2.2.1.2
IFaddr  adr
IFalia  1.3.6.1.2.1.2.2.1.3
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
InDisc  1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan 
IFvlix
IFpowr 
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modom
Moslot 
Moclas 
Movalu 
Modesc 
Modhw
Modfw
Modsw
Modser 
Momodl 
Modloc
Mostat
Mostok

# RRD Graphing
CPUutl 
Temp   
MemCPU 
Custom


Furthermore, config backup is not working. The "sh running-config" command works fine, but NeDi does not recognize the output as config:

Code: [Select]
SSH :Connect xxx@xx.xx.xx.xx:22 Tout:10s OS:ArubaOS EN:(.+?)#\s?$
PTY :Forking ssh -o 'StrictHostKeyChecking no' -l NeDiService xx.xx.xx.xx
CLI2:Matched 'password: ' sending password
CLI3:Password sent
CLI8:Matched enable prompt, OK
CMDR:no paging result is OK
CMDR:show running-config result is OK
WAIT:show running-config
WAIT:Current configuration:
WAIT:!
WAIT:!Version ArubaOS-CX PL.10.08.1021
.......
WAIT:ip source-interface all interface vlan22
WAIT:no https-server vrf default
ERR :No config ()
EVNT:MOD=B/1 L=150 CL=cfge TGT=xxxxxxxx MSG=Config backup error: 0

Thanks, Gerhard

ggessler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Definition file for Aruba 6100 Switch
« Reply #1 on: January 13, 2022, 03:38:06 pm »
Hello everybody,

lots of reads of this post so far, but no answers.....

Nevertheless, I worked some more on this issue and made the .def file work better, but there are still some issues:
- Configured access VLAN / native vlan on switch port is still not found via SNMP
- Temperature is reported with 255 degree Celsius -> needs to be scaled down by factor 1000. I tried to put in a scaling factor like for the MemCPU, but it is not honored (probably needs to be implemented)

I fixed the problem of backing up the running configuration: In file inc/libcli.pm the line "$cmd{'ArubaOS'}{'cfst'} = '^version';" needs to be extended to "$cmd{'ArubaOS'}{'cfst'} = '^version|Version';"
@rickli: Is this info good enough to go into the latest NeDi version? I can also provide a patch....

Looking forward to some replies / hints how to extract configured vlans per port or fix temperature reporting.

Latest .def file for Aruba 6100 24G 4SFP+ (JL678A) attached to this post.

Thanks, Gerhard

ggessler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Definition file for Aruba 6100 Switch
« Reply #2 on: January 21, 2022, 06:05:00 pm »
Hello everybody,

thanks for all the reading of this question, but it feels a little bit like I am talking just to myself ......

Well, after skimming through some of the Perl code (I never get used to Perl code, sorry), I solved the temperature scaling problem. As the reported value seems to be in mCelsius, I just scaled it with 0.001 in the def file. So the line for the "Temp" now reads:
 Temp    1.3.6.1.2.1.99.1.1.1.4.7001     0.001

And viola, NeDi now reports 25 degree Celsius which is correct.

Hint: I am still looking for a solution to read the configured VLANs from the switch.

Cheers, Gerhard

ukmuenster

  • Guest
Re: Definition file for Aruba 6100 Switch
« Reply #3 on: November 03, 2022, 09:05:28 am »
Hello,

We have been using the first 20 switches from the Aruba CX 6000 family for a week now. Config backup works, but we have the same problem with identifying the PVID. I've done a number of SNMP walks, but can't find a suitable OID. To me this looks like a missing/wrong SNMP implementation. Does anyone here have new information?

Rainer

Sebastian

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Definition file for Aruba 6100 Switch
« Reply #4 on: November 10, 2022, 10:33:02 am »
Hello Gents.

I have used information that you've posted.

Backup for CX witch was working fine after modification proposed by ggessler

after switch upgrade to 10.10 Nedi backups only first 3 rows of the config, whitch looks like:

"
!Version ArubaOS-CX PL.10.10.1010
!export-password: default
hostname %hostname%
"

 do you have the same?

ggessler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Definition file for Aruba 6100 Switch
« Reply #5 on: November 10, 2022, 11:06:08 am »
Hi Sebastian,
we are still using PL.10.09.1050 and there we do not have that problem.
Will plan to upgrade to PL.10.10.1010, but not in the next weeks.

Anyone was successful with extracting the VLANs assigned to switch port?

Cheers, Gerhard

ukmuenster

  • Guest
Re: Definition file for Aruba 6100 Switch
« Reply #6 on: November 11, 2022, 09:10:03 am »
Hi folks,

I just updated to 10.10.1020. Backup works. However, I have adjusted the section for ArubaOS in libcli.pm as follows:
Code: [Select]
$cmd{'ArubaOS'}{'cfst'} = 'Current configuration:';I also had to adjust the timeouts in the connect subroutine in libcli.pm:
Code: [Select]
Timeout => $misc::timeout + 10,Unfortunately, it is still not possible to read out the PVIDs.

Rainer

Sebastian

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Definition file for Aruba 6100 Switch
« Reply #7 on: November 14, 2022, 07:05:50 pm »
I have digged some info and found why VLAN's are not readed from CX Devices.

According to CX Release Notes documentation Aruba dropped support for Q-BRIDGE-MIB.  (dot1qVlan)

So far I have found no replacement.

ukmuenster

  • Guest
Re: Definition file for Aruba 6100 Switch
« Reply #8 on: November 16, 2022, 10:28:16 am »
Hi Sebastian,
Where did you get that information? I asked the Airhead community and got the following OID:
1.3.111.2.802.1.1.4.1.4.5.1.1.1
With this I can read out the PVIDs of the access ports.