poweraruba / powerarubacp Goto Github PK
View Code? Open in Web Editor NEWPowerShell module to manage Aruba ClearPass (CPPM)
License: Apache License 2.0
PowerShell module to manage Aruba ClearPass (CPPM)
License: Apache License 2.0
I have many more than 25 NAD objects in my CPPM NAD list and by default Invoke-ArubaCPRestMethod only pulls the first 25 objects which means that the NetworkDevices functions cannot find any objects by name that are not within the first 25 that an 'Invoke-ArubaCPRestMethod' -uri "api/network-device" -method 'GET' command would list...
So, we need to find a way to pass the appropriate 'limit' and 'filter' options into Invoke-ArubaCPRestMethod and amend Get-ArubaCPNetworkDevice accordingly.
As an example, I have the same number of network objects in FRPAR and UKLON (3 each). The FRPAR objects are in the first 25, the UKLON devices are not and as a result I get the following results when trying to search for them:
PS C:\> Get-ArubaCPNetworkDevice -Name FRPAR
id : 3006
name : EU-FRPAR-VC1
description : Aruba Virtual Controller - Paris
ip_address : 192.168.32.100
radius_secret :
tacacs_secret :
vendor_name : Aruba
coa_capable : True
coa_port : 3799
radsec_enabled : False
snmp_read : @{snmp_version=V2C; community_string=; force_read=False; read_arp_info=True}
snmp_write : @{snmp_version=V2C; community_string=}
attributes :
_links : @{self=}
id : 3019
name : FRPAR-Switches
description : FRPAR-Switches
ip_address : 192.168.32.1/29
radius_secret :
tacacs_secret :
vendor_name : Aruba
coa_capable : True
coa_port : 3799
radsec_enabled : False
snmp_read : @{snmp_version=V2C; community_string=; force_read=True; read_arp_info=True; zone_name=default}
attributes :
_links : @{self=}
id : 3026
name : FRPAR-Core
description : FRPAR-Switches
ip_address : 192.168.216.254
radius_secret :
tacacs_secret :
vendor_name : Aruba
coa_capable : True
coa_port : 3799
radsec_enabled : False
snmp_read : @{snmp_version=V2C; community_string=; force_read=True; read_arp_info=True; zone_name=default}
attributes :
_links : @{self=}
PS C:\> Get-ArubaCPNetworkDevice -Name UKLON
PS C:\>
Can you add the Patch option in your validate set of the invoke function ? I need it to create a function that permit to update guest account info
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.