background preloader

Technical

Facebook Twitter

MySql

4.5.5 mysqlimport — A Dat. Backup and Restore MySQL Databases MySQL. Solaris. Log Rotation in Solaris Using Logadm. Starting from Solaris 9, there is a standard tool, called logadm, to rotate logs. Logadm is an independent Utility, unlike integrated in syslog daemon capability that can be found in AIX. The logadm command is a preconfigured entry in the default crontab file supplied with Solaris 9 and Solaris 10. The /usr/lib/newsyslog script is no longer used. Note: Before Solaris 9 there was FreeBSD-style tool newsyslog located at /usr/lib/ and Perl script rotatelog written by Shaun Rowland. It meant to be run from cron, with a configuration file and documentation available. For Solaris 8 and earlier you can download the tar.gz file and untar it. Logadm uses a configuration file logadm.conf.

The syntax of the logadm.conf file is as follows: logname <space> options A very simple configuration to rotate these files. /var/adm/sshdlog -C 7 -P 'Sat Jan 21 08:10:00 2006' -a 'pkill sshd2' As you can see from the line above, we specified /var/adm/sshdlog as our log to rotate. # cat /etc/logadm.conf ... Solaris Tips and Tricks.

Software

Linux.