Hi Manik,
You can look the workflow.py file on pyaoscx (it is for add vlan but there is also get function..
https://github.com/aruba/pyaoscx/blob/master/workflows/workflow.py
You can also look PowerArubaCX (a powershell module) where there is Get function to vlan and interface => https://github.com/PowerAruba/PowerArubaCX#interface
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Oct 12, 2023 12:59 AM
From: manikmaurya
Subject: How to get VLAN members with Aruba SDK
Hi,
I am new to aruba SDK, yes I am looking for code snippet that would get all ports(tagged & untagged) on a switch that is a member of a particular VLAN and I want to return it as list.
Regards,
Manik
Original Message:
Sent: Oct 11, 2023 08:44 PM
From: Alvin.Castro
Subject: How to get VLAN members with Aruba SDK
Hi Manik,
Just for clarification, are you looking for a full python script or code snippet that would get all ports on a switch that is a member of a particular VLAN? Or are you asking how to use the pyaoscx VLAN object? Did you want it printed out as a list?
Original Message:
Sent: Oct 11, 2023 06:31 AM
From: manikmaurya
Subject: How to get VLAN members with Aruba SDK
Hi,
Waiting for response.
Need help to get the VLAN interface members(tagged, untagged) with help of Aruba SDK pyaoscx version 2.4.1
Original Message:
Sent: Sep 26, 2023 06:33 AM
From: manikmaurya
Subject: How to get VLAN members with Aruba SDK
Hi,
Using the Aruba SDK pyaoscx version 2.4.1
Need support to get the VLAN members with help of sdk.
Switch model and firmware: 8325 & GL.10.10.0001P
Regards,
Manik