Software Distributor Administration Guide for HP-UX 11i
Troubleshooting
Common Problems
Appendix B 475
Command Logfile Grows Too Large
If you want to reduce the contents of a SD-UX command logfile, follow
this procedure:
Resolution To reduce messages to a minimum, set the verbose command option to 0
in one of the option files or by using the -x option on the command line.
For example, entering -x spackage.verbose=0 on the command line
when you run swpackage would reduce the number of entries to the
swpackage log to a minimum. See Appendix A, “Command Options,” on
page 421 for details about setting options.
Daemon Logfile Is Too Long
If you want to shorten (truncate) the SD-UX daemon logfile because it is
getting too long, follow this procedure:
Resolution If the daemon is currently running, DO NOT remove its logfile. The
running daemon continues to log messages to its logfile even after you’ve
removed it, causing any subsequent information to be lost. Also, the disk
space used by the logfile will not be freed as long as the daemon is
running.
Instead, truncate the logfile by typing (as root):
echo > /var/adm/sw/swagentd.log
This replaces the previous data in the log with an empty string.
If you inadvertently remove the daemon logfile while it is running, you
must kill and restart the daemon if you want to see subsequent daemon
log messages and free up the disk space used by the logfile. You can stop
(kill) a daemon by typing:
usr/sbin/swagentd -k
You can also kill and restart a currently running daemon by typing:
usr/sbin/swagentd -r