Run an Example Application

This section describes running an example application on either a UNIX A2A client or a Windows A2A client.
capam32
This section describes running an example application on either a UNIX A2A client or a Windows A2A client.
Run an Example Application on a UNIX Client
Follow these steps:
  1. Launch the example with the target alias and the bypass cache flag set
    true
    .  The local credential cache is bypassed and the query goes directly to the
    Privileged Access Manager
    server:
    /opt/catech/cspmclient/examples/example.pl SydneyAlias1 true
    When using Integrity Verification in UNIX, you must use the complete path to invoke the requestor script.
  2. A successful query provides the user name and password that is associated with the target alias. For example, running the Java example on a UNIX-based A2A Client yields the following result:
    /opt/catech/cspmclient/examples/Run_example testAlias1 true Status Code: 400 UsedId: someaccount Password: q6YIbGECP0C261Xo PASSED
Run an Example Application on a Windows Client
The Windows A2A Client contains example projects that you can compile in Visual Basic, C, and C#. (Compiled programs are no longer provided.) The examples also include Java, Python, PHP, Perl, VBScript, and PowerShell scripts. The examples are in the
$CSPM_CLIENT_HOME\cspmclient\examples
folder. 
The PowerShell example (
example.ps1
) has an error in version 3.2. Update Line 15 to include the
-Command
parameter:
$output = Invoke-Expression -Command $command