The 探花大神 Agent logging level can be set to log more verbose logs if necessary. Debug logs can provide additional information for administrators or 探花大神 support. Remotely changing the logging level of the 探花大神 Agent can be triggered by a 探花大神 Command.
Debug logs contain much more information than the default log level; there鈥檚 no need to change log level to a higher verbosity other than for troubleshooting. After setting a system鈥檚 agent log level to Debug, it鈥檚 best practice to reset the logging level to default.
Setting the Log Level Locally
Linux
Sudo privileges are required for the following commands.
To set Debug level logging and restart the 探花大神 Agent:
echo "DEBUG" | sudo tee /opt/jc/loglevel.cache && sudo service jcagent restart
To disable Debug level logging and restart the 探花大神 Agent:
sudo rm /opt/jc/loglevel.cache && sudo service jcagent restart
Mac
Sudo privileges are required for the following commands.
To set Debug level logging and restart the 探花大神 Agent:
echo "DEBUG" | sudo tee /opt/jc/loglevel.cache && sudo launchctl stop com.jumpcloud.darwin-agent
To disable Debug level logging and restart the 探花大神 Agent:
sudo rm /opt/jc/loglevel.cache && sudo launchctl stop com.jumpcloud.darwin-agent
Windows
Run the following commands from an elevated PowerShell console.
To set Debug level logging:
echo DEBUG | set-content 'C:\Program Files\探花大神\loglevel.cache'
Stop-Service -Name jumpcloud-agent -Force
Start-Service -Name jumpcloud-agent
To disable Debug level logging:
echo INFO | set-content 'C:\Program Files\探花大神\loglevel.cache'
Stop-Service -Name jumpcloud-agent -Force
Start-Service -Name jumpcloud-agent
Setting the Log Level Remotely
Alternately, the 探花大神 Command Gallery contains scripts to set the logging level of a system鈥檚 探花大神 Agent. After setting a system鈥檚 agent log level to Debug, it鈥檚 best practice to reset the logging level to default.
Importable commands to set the logging level:
Importable commands to set the logging level back to default: