PowerAruba / PowerArubaCX

PowerShell module to manage ArubaCX switches
Apache License 2.0
14 stars 5 forks source link

Request for Authenticated devices / clients #70

Closed rEs-84 closed 3 months ago

rEs-84 commented 3 months ago

Would it be possible to add getting client information?

6200# show port-access clients ?
  _detail             Show detailed Port Access Client information.
  dhcp-info          Show DHCP information of Port Access clients.
  interface          Show Port Access information for an interface.
  mac                Show Port Access information for a specific client.
  onboarding-method  Show Port Access information for a specific onboarding-method.
  role               Show Port Access information for a specific role.
  ubt                Show UBT clients port-access information.
  vxlan              Show VXLAN clients port-access information.
  <cr>_
6200# show port-access clients
---------------------------------------------------------------------------------------------------
Port     Client-Name             IPv4-Address    User-Role                           VLAN            Flags
--------------------------------------------------------------------------------------------------------------
1/1/3    09:99:99:b3:3e:5e       1.1.2.78   Auth, Auth                          multi           ma|c|-|s
1/1/3    host/PCName.xyz...      1.1.1.37   Auth, Auth                          multi           1x|c|-|s

and or equivalent of sh port-access clients onboarding-method mac-auth sh port-access clients onboarding-method dot1x show port-access clients onboarding-method port-security

Maybe also show mac-address-table

alagoutte commented 3 months ago

Hi @rEs-84

Yes, i should be possible... You need to use Invoke-ArubaCXRestMethod cmdlet and Port_Access_Clients uri From API Guide (Swagger) :

_/system/interfaces/{interface.name}/port_accessclients

replace interface.name by the name of interface (1/1/3 and replace / by %2f => 1%2f1%2f3)

May be also look _/system/port_access_cachedclients

alagoutte commented 3 months ago

Hi it is good ?

rEs-84 commented 3 months ago

hi thanks for your reply. I will have a look and report back. thanks