Client Management Suite

 View Only

Shell Script to Manage the Unix and Macintosh Client.conf 'debug_level' Value 

Jun 19, 2008 03:42 PM

Quite often, it is necessary to modify certain values in the agent's client.conf file on Unix, Linux or Macintosh clients when troubleshooting issues. Among those values is the debug_level. The attached shell scripts can be used to facilitate this process in place of using an editor to make this modification to a client.conf file.

The debug_level is used to set the amount of detail written to the aex-client.log file for the various unix and mac processes.

This script requires that a value be entered on the command line. The only acceptable values are: error, warning, info, debug, dbgverbose and devnote. 'Error' is the least detailed and 'Devnote' is the most detailed. Typically, devnote will be used when troubleshooting. Values are NOT case sensitive. The agent process is restarted to ensure that all related processes have been updated with the new debug_level setting.

This script requires the use of root privileges or 'sudo' to modify the client.conf file and to restart the agent. If the agent restart process fails or stalls, enter 'ctrl-c' to break the currently running process and rerun the shell script using sudo, e.g., "sudo ./setdebuglevel.sh"

After downloading the file, run chmod to make it executeable, e.g., "chmod 755 setdebuglevel.sh" or "chmod u+x setdebuglevel.sh". The script will not run if it is not executable.

License:Altiris EULA
By downloading this software, you agree to the terms and conditions in the Altiris End User License Agreement
Support:User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
txt file
setdebuglevel.sh_.txt   1 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

Oct 06, 2011 11:47 AM

On a mac, elevated privileges are required for some options. Run 'sudo aex-helper agent...'.

Apr 07, 2011 06:03 PM

The mac version of aex-helper doesn't appear to support these additional options.

Sep 05, 2008 08:04 PM

You can also use the following commands on client machine to set the configuration for logging:
# Set log level to DEVNOTE:
aex-helper agent -s "Configuration" debug_level DEVNOTE
# Set log file size to unlimited:
aex-helper agent -s "Configuration" debug_file_size 0
# Restart agent to begin using new settings:
aex-helper agent restart

Related Entries and Links

No Related Resource entered.