Server IP : 149.255.58.128 / Your IP : 216.73.216.74
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib64/sa//sa1
#!/usr/bin/sh
# /usr/lib64/sa/sa1
# (C) 1999-2021 Sebastien Godard (sysstat <at> orange.fr)
#
#@(#) sysstat-12.5.4
#@(#) sa1: Collect and store binary data in system activity data file.
#
# Set default value for some variables.
# Used only if ${SYSCONFIG_DIR}/${SYSCONFIG_FILE} doesn't exist!
HISTORY=0
SADC_OPTIONS=""
SA_DIR=/var/log/sa
SYSCONFIG_DIR=/etc/sysconfig
SYSCONFIG_FILE=sysstat
UMASK=0022
LONG_NAME=n
[ -r ${SYSCONFIG_DIR}/${SYSCONFIG_FILE} ] && . ${SYSCONFIG_DIR}/${SYSCONFIG_FILE}
umask ${UMASK}
# If the user-supplied value for SA_DIR in sysconfig file is not a directory
# then fall back on default directory. Create this default directory if it doesn't exist.
[ -d ${SA_DIR} ] || SA_DIR=/var/log/sa
[ -d /var/log/sa ] || mkdir /var/log/sa
if [ ${HISTORY} -gt 28 ]
then
SADC_OPTIONS="${SADC_OPTIONS} -D"
LONG_NAME=y
fi
ENDIR=/usr/lib64/sa
cd ${ENDIR}
[ "$1" = "--boot" ] && shift && BOOT=y || BOOT=n
[ "$1" = "--sleep" ] && shift && SLEEP=y || SLEEP=n
ROTATE=n
[ "$1" = "--rotate" ] && shift && ROTATE=y && [ "$1" = "iso" ] && shift && LONG_NAME=y
if [ "${ROTATE}" = "y" ]
then
if [ "${LONG_NAME}" = "y" ]
then
DATE=`date --date=yesterday +%Y%m%d`
else
DATE=`date --date=yesterday +%d`
fi
SA_DIR=${SA_DIR}/sa${DATE}
fi
if [ "${SLEEP}" = "y" ]
then
exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} -C "LINUX SLEEP MODE ($*)" ${SA_DIR}
elif [ $# = 0 ] && [ "${BOOT}" = "n" ]
then
# Note: Stats are written at the end of previous file *and* at the
# beginning of the new one (when there is a file rotation) only if
# outfile has not been explicitly specified on the command line...
exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 ${SA_DIR}
else
exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* ${SA_DIR}
fi
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 22 2025 21:42:28 | 0 / root | 0555 | |
| | | | | |
sa1 | 1.686 KB | October 02 2024 21:19:40 | 0 / root | 0755 | |
sa2 | 1.505 KB | October 02 2024 21:19:40 | 0 / root | 0755 | |
sadc | 87.289 KB | October 02 2024 21:19:46 | 0 / root | 0755 | |