PSMP - How do I enable PSMP debugging?
Objective
Environment
10.5;10.10;11.4;11.5;11.6;11.7;12.0;12.2;12.6;13.0;14.0;14.2;14.6 Privileged Access Manager (PAM, self-hosted) PSMP
Procedure
Note: Before restarting SSHD daemon, please make sure you have console access to PSMP server, in case the SSHD daemon cannot start due to configuration issues.
In the PVWA GUI:
1. Go to Administration → Options → Privileged Session Management → General Settings.
2. Under Server Settings set TraceLevels=1,2,3,4,5,6,7
3. Under Connection Client Settings set TraceLevels=1,2
Make sure to Apply or Save.
On the PSMP server:
1. Edit the /etc/ssh/sshd_config and add the following to the end of the file:
LogLevel DEBUG3
2. (v13.2 or earlier) If you installed PSMP with InstallCyberArkSSHD=yes, also add the following:
Note: If installed with "integrated" or "no", adding the following will cause the sshd service to fail to (re)start
PSMP_OpenSSHTraceLevels 1,2
PSMP_OpenSSHLogFolder /var/opt/CARKpsmp/logs/components
3. Restart the SSH Daemon to make these changes take effect:
Note: The method of restarting a service is OS version, and distribution dependent; Listed are a few examples:
/etc/init.d/sshd restart
service sshd restart
systemctl restart sshd
4. Run the following commands:
sshd -T >/etc/ssh/SshdRunningConfig
If OS is RHEL:
dnf list installed > installedpackages
If OS is Ubuntu:
apt list --installed > installedpackages
5. Reproduce the issue, then gather logs using one of the two following methods:
Automatically:
Utilizing the PSMPAssistant tool, follow step 3 in the following article: https://community.cyberark.com/s/article/PSMPAssistant
Manually:
The full contents of the following directories:
/var/opt/CARKpsmp/logs/
/var/opt/CARKpsmp/logs/components/
/var/opt/CARKpsmp/temp/
/var/opt/CARKpsmp/temp/old/
/etc/ssh/sshd.d/ (If RHEL 9.x)
The following files:
/etc/opt/CARKpsmp/basic_psmpserver.conf
/var/tmp/psmpparms
/var/log/secure
/var/log/messages
/var/log/audit/audit.log
/etc/ssh/sshd_config
/etc/nsswitch.conf
/etc/os-release
/etc/ssh/SshdRunningConfig
/etc/pam.d/password-auth
/etc/pam.d/system-auth