Skip to content

Commit 491ec9c

Browse files
committed
README(.md): Add Enforcement (Policy/Profile) Chapiter
1 parent deb100b commit 491ec9c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

README.md

+57
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ With this module (version 0.7.0) you can manage:
3939
- [CPPM](#clearpass-version) (Get Version)
4040
- [Device Fingerprint](#device-fingerprint) (Add /Get)
4141
- [Endpoint](#endpoint) (Add / Get / Set / Remove and Add / Set / Remove [Attribute](#attribute))
42+
- [Enforcement](#Enforcement) (Get Enforcement Policy / Profile)
4243
- [Local User](#local-user) (Add / Get / Set / Remove and Add / Set / Remove [Attribute](#attribute))
4344
- [Network Device](#Network-device) (Add / Get / Set / Remove a Network Device and Add / Set / Remove [Attribute](#attribute))
4445
- [Network Device Group](#network-device-group) (Add / Get / Set / Remove a Network Device Group and Add/remove Member)
@@ -603,6 +604,62 @@ You can add Endpoint `Add-ArubaCPEndpoint`, retrieve its informations `Get-Aruba
603604
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Y
604605
```
605606

607+
### Enforcement
608+
609+
You can retrieve its Enforcement Policy information (name, Type, Rules...) `Get-ArubaCPEnforcementPolicy`, or Enforcement Profile `Get-ArubaCPEnforcementProfile`
610+
Need ClearPass >= 6.11.0
611+
612+
```powershell
613+
# Get Enforcement Policy
614+
Get-ArubaCPEnforcementPolicy
615+
616+
id : 5
617+
name : [Admin Network Login Policy]
618+
description : Enforcement policy controlling access to Policy Manager Admin
619+
enforcement_type : TACACS
620+
default_enforcement_profile : [TACACS+ Deny Profile]
621+
rule_eval_algo : evaluate-all
622+
rules : {@{enforcement_profile_names=System.Object[]; condition=System.Object[]}, @{enforcement_profile_names=System.Object[]; condition=System.Object[]},
623+
@{enforcement_profile_names=System.Object[]; condition=System.Object[]}, @{enforcement_profile_names=System.Object[]; condition=System.Object[]}…}
624+
_links : @{self=}
625+
626+
id : 7
627+
name : [AirGroup Enforcement Policy]
628+
description : Enforcement policy controlling access for AirGroup devices
629+
enforcement_type : RADIUS
630+
default_enforcement_profile : [AirGroup Response]
631+
rule_eval_algo : evaluate-all
632+
rules : {@{enforcement_profile_names=System.Object[]; condition=System.Object[]}, @{enforcement_profile_names=System.Object[]; condition=System.Object[]},
633+
@{enforcement_profile_names=System.Object[]; condition=System.Object[]}, @{enforcement_profile_names=System.Object[]; condition=System.Object[]}}
634+
_links : @{self=}
635+
[...]
636+
637+
# Get Enforcement Profile
638+
Get-ArubaCPEnforcementProfile
639+
640+
id : 1
641+
name : [Allow Access Profile]
642+
description : System-defined profile to allow network access
643+
type : RADIUS
644+
action : Accept
645+
_links : @{self=}
646+
647+
id : 2
648+
name : [Deny Access Profile]
649+
description : System-defined profile to deny network access
650+
type : RADIUS
651+
action : Reject
652+
_links : @{self=}
653+
654+
id : 3
655+
name : [Drop Access Profile]
656+
description : System-defined profile to drop the request
657+
type : RADIUS
658+
action : Drop
659+
_links : @{self=}
660+
[...]
661+
```
662+
606663
### Local User
607664

608665
You can add Endpoint `Add-ArubaCPLocalUser`, retrieve its informations `Get-ArubaCPLocalUser`, modify its properties `Set-ArubaCPLocalUser` or delete it `Remove-ArubaCPLocalUser`.

0 commit comments

Comments
 (0)