How to enable KESMac Nagent traces easily [KES for Mac]
Description and cautions
The original scenario located on the page https://support.kaspersky.com/kes11mac/diagnostics/15299, requires a lot of efforts and manual manipulations.
I am offering a bit easier and time-saving approach doing the same.
Details
All the commands from the original document are saved here, but placed together and being run one after another consequently; the old product logs are also wiped up in order to avoid mess:
-
Login under root:
sudo-i -
Enable KESMac KLnagent tracing:
rm-rf/Library/Logs/Kaspersky\ Lab/*/Library/Logs/klnagent_trace.log && launchctl unload/Library/LaunchDaemons/com.kaspersky.klnagent.plist &&cat/Library/LaunchDaemons/com.kaspersky.klnagent.plist >/Library/LaunchDaemons/com.kaspersky.klnagent.plist.backup &&chmodugo+w/Library/LaunchDaemons/com.kaspersky.klnagent.plist && curl -o klnagent_enabled_traces.zip -J -L https://media.kaspersky.com/utilities/CorporateUtilities/klnagent_enabled_traces.zip && unzip klnagent_enabled_traces.zip &&catklnagent_enabled_traces.plist >/Library/LaunchDaemons/com.kaspersky.klnagent.plist &&chmodugo-w/Library/LaunchDaemons/com.kaspersky.klnagent.plist && launchctl load/Library/LaunchDaemons/com.kaspersky.klnagent.plist
Now you can check the log is being written:ls-lh/Library/Logs/klnagent_trace.log - In case you need to enable KESMac tracing, refer to the specially dedicated article https://support.kaspersky.com/kes11mac/diagnostics/15041;
- It is time to reproduce the issue;
-
When it is done, disable KESMac KLnagent tracing the same manner (ensure, you are still under root: sudo -i):
launchctl unload/Library/LaunchDaemons/com.kaspersky.klnagent.plist &&chmodugo+w/Library/LaunchDaemons/com.kaspersky.klnagent.plist &&cat/Library/LaunchDaemons/com.kaspersky.klnagent.plist.backup >/Library/LaunchDaemons/com.kaspersky.klnagent.plist &&chmodugo-w/Library/LaunchDaemons/com.kaspersky.klnagent.plist && launchctl load/Library/LaunchDaemons/com.kaspersky.klnagent.plist -
Upon finish, gather the collect package (https://support.kaspersky.com/collect)
curl -o collect.tar.gz -L"https://box.kaspersky.com/f/00a1a6d8beb24554a72d/?dl=1"&&tar-zxvf collect.tar.gz &&chmod+x collect.sh &&sudo./collect.sh
0 Comments
Recommended Comments
There are no comments to display.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now