The PSMPAssistant is a Python-based tool that helps manage and troubleshoot CyberArk's Privileged Session Manager SSH Proxy (PSMP) on Linux systems. It checks system compatibility, verifies configurations, and assists with diagnosing issues related to PSMP and SSH access.
Prerequisites:
- Python version 3.6 or higher must be installed on the system to run PSMPAssistant.
PSMPAssistant Main Key Features:
1. System Configuration (System and Service Checks)
- PSMP and SSHD Service Status Check – Verifies if PSMP and SSHD services are running and communicating with the Vault.
- SSHD Configuration Validation – Checks
sshd_config for authentication settings and security parameters. - Detection of Version Control Management – Identifies if
sshd_config is managed by Ansible, Chef, or Puppet. - System Compatibility Check – Determines if the Linux distribution and PSMP version are compatible.
- Vault Communication Check – Ensures that PSMP can communicate with the Idira Vault.
- OpenSSH Version Verification – Checks if the installed OpenSSH version meets the PSMP requirements.
- Hostname Verification – Ensures the system hostname is properly configured and not set to default values like "localhost".
- System Resource Monitoring – Checks CPU and disk usage to identify performance issues.
- SELinux Status Check – Determines if SELinux is in enforcing mode and identifies any restrictions affecting PSMP.
- NSCD Service Check – Detects if the NSCD service is running and disables it if necessary.
- nsswitch.conf Validation – Verifies that
nsswitch.conf is correctly configured for PSMP integration. - Secure Log and Trace Log Analysis – Searches for known error patterns in system logs and PSMP logs.
2. RPM/DEB Automation (RPM/DEB Repair)
- Automated RPM/DEB Repair – Automatically detects PSMP RPM/DEB installation files.
- Installation File Verification – Ensures that all the required PSMP installation files exist before performing repairs.
- Vault Address Verification – Extracts and confirms the Vault address from the configuration files.
- PSMP Parameter File Update – Modifies installation parameters (
psmpparms) based on user input. - Credential File Creation – Automates the creation of user credentials needed for PSMP.
3&4. Side Features (Additional Functionalities)
- PSMP Connection String Generator – Generates connection strings for accessing targets via PSMP.
- Log Collection and Packaging – Collects logs from predefined locations, cleans them, and compresses them into a zip file.
- Log Debug Level Check – Ensures that SSHD and PSMP trace levels are set correctly for troubleshooting.
Steps
0Usage Demonstration for PSMPAssistant
1. Running a Full System Diagnostic Check

To check PSMP service status, SSHD configuration, system compatibility, and other settings, run:
python3 PSMPAssistant.py
What this does:
- Checks if PSMP and SSHD services are running.
- Verifies
sshd_config settings, including detection of configuration management tools (Ansible, Chef, Puppet). - Confirms if the system is compatible with the installed PSMP version.
- Ensures Vault communication is established.
- Identifies any misconfigurations in system files (
nsswitch.conf, SELinux settings, etc.). - Provides recommendations for fixing detected issues.
2. Repairing PSMP Installation (RPM/DEB Repair Automation)

If PSMP is not functioning properly or there are RPM/DEB-related issues, execute the following:
python3 PSMPAssistant.py repair
3. Collecting Logs for Troubleshooting

To gather logs from the system and PSMP directories, clean them, and package them into a zip file (last 3 days):
python3 PSMPAssistant.py logs
🔹 Optional: Collect logs from the last X days:
python3 PSMPAssistant.py logs --days X
🔹 Optional: Skip the debug and trace level check to speed up log collection:
python3 PSMPAssistant.py logs --skip-debug
4. Generating a PSMP Connection String

To create a properly formatted connection string for PSMP SSH sessions:
python3 PSMPAssistant.py string