Created on
10-01-2018
08:05 AM
Edited on
03-28-2025
06:48 AM
By
Jean-Philippe_P
Description
This article describes how to collect Persistent Agent debug logging in macOS for troubleshooting purposes.
Scope
FortiNAC, Persistent Agent Version 3.0.x - 3.4.x.
Solution
- Confirm owner of com.bradfordnetworks.agent.plist. To make any changes to the plist file, the owner must be the logged-in user:
la -l
- Stop the PA Service:
sudo launchctl unload /Library/LaunchDaemons/com.bradfordnetworks.agent.plist
- Enable the logging properties:
sudo defaults write /Library/LaunchDaemons/com.bradfordnetworks.agent.plist StandardOutPath -string "/var/log/bndaemon.log"
sudo defaults write /Library/LaunchDaemons/com.bradfordnetworks.agent.plist StandardErrorPath -string "/var/log/bndaemon.error.log"
- Start the PA Service:
sudo launchctl load /Library/LaunchDaemons/com.bradfordnetworks.agent.plist
Collect Logs and Submit to Support: One of the following sets of log files is created (dependent upon agent version):
Agent 3.x and 4.x:
/var/log/bndaemon_stdout.txt
/var/log/bndaemon_stderr.txt
/var/log/bndaemon.error.log
/var/log/bndaemon.log
Agent 5.x:
/var/log/bndaemon.error.log
/var/log/syslog
Attach the log files to the ticket. Upon submission, add a case comment with the following information:
- Details regarding the symptoms experienced, including any error messages.
- Steps were taken that resulted in the symptoms.
Related documents:
Technical Tip: Troubleshooting the Persistent Agent
Troubleshooting Tip: Windows Persistent Agent logs
Persistent Agent on MacOS