Viewing policy information on a PAMSC endpoint
search cancel

Viewing policy information on a PAMSC endpoint

book

Article ID: 245827

calendar_today

Updated On:

Products

CA Privileged Identity Management Endpoint (PIM) CA Privileged Access Manager - Server Control (PAMSC) CA Virtual Privilege Manager

Issue/Introduction

Is it possible to view details about a policy and verify what is applied to a Privileged Access Manager Server Control (PAMSC) endpoint?

Resolution

First connect to selang in order to run the commands needed to view policy information.

To view the list of policies currently on the endpoint, run the command below.

PAMSC> list gpolicy
(localhost)
Demo Policy
Example Policy

From there, choose the desired policy and run an sr gpolicy on the resource. This will show how many versions of the policy there is and which is the version that is currently deployed.

PAMSC> sr gpolicy ('Example Policy')
(localhost)
Data for GPOLICY 'Example Policy'
 -----------------------------------------------------------
Defaccess         : None
Members           : 
    Example Policy#01(POLICY ) 
Audit mode        : Failure
Owner             : +policyfetcher(USER   ) 
Create time       : 15-Jun-2022 12:32
Update time       : 15-Jun-2022 12:32
Updated by        : root          (USER   ) 
Latest Policy     : Example Policy#01
Effective UID     : ac_entm_pers

To get information about a specific version of the policy, run sr policy against that version.

PAMSC> sr policy ('Example Policy#01')
(localhost)
Data for POLICY 'Example Policy#01'
 -----------------------------------------------------------
Defaccess         : None
Audit mode        : Failure
Groups            : 
    Example Policy(GPOLICY) 
Owner             : +policyfetcher(USER   ) 
Create time       : 15-Jun-2022 12:32
Update time       : 15-Jun-2022 12:32
Updated by        : root          (USER   ) 
Finalized         : Yes
Nodes             : 
    __local__
Effective UID     : ac_entm_pers
Name              : Example Policy
Version           : 1
RULESETS          : 
    Example Policy#01

The rules contained in the policy are listed within the associated ruleset resource. If it is needed to see these rules, run sr ruleset on the resource.

PAMSC> sr ruleset ('Example Policy#01')
(localhost)
Data for RULESET 'Example Policy#01'
 -----------------------------------------------------------
Defaccess         : None
Audit mode        : Failure
Owner             : +policyfetcher(USER   ) 
Create time       : 15-Jun-2022 12:32
Update time       : 15-Jun-2022 12:32
Updated by        : root          (USER   ) 
Rule Set Commands : 
    (1) eu exampleuser owner(nobody)
Rule Set Undo Commands : 
    (1) ru exampleuser
Policies          : 
    Example Policy#01
Finalized         : Yes