Sponsored Content
Top Forums UNIX for Dummies Questions & Answers System Log for Sun Solaris 2.6 Post 330 by me2unix on Sunday 26th of November 2000 01:17:09 PM
Old 11-26-2000
1. auto terminal time out : I know telnet windows have a timeout and close after some idle time.
Donno about what terminal you talk about exactly.
2. system logs on Solaris 2.6 are under /var for example :
/var/adm/messages - system messages log.
/var/log/syslog - the syslogd main logfile - usually inclode sendmail's log too.
logging of the logon/logoff is available with the 'last' commmand.
There are many other logs on the system :
e.g. /var/cron/logs - logs of the crontab.
user's command history can be kept in some shells automaticaly in .history.
4. Yes password's termination is a built in feature read man passwd , enter it via admintool or useradd or manually in /etc/shadow. (only if you know what you're doing).


Hope that helps,
Hezki
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

system messages log (Sun and AIX)

Hello, I need a few explanation about the log files for system messages: /var/adm/messages and /var/log/syslog. As /var/adm/messages is empty on my machine, i need help. First, i would like to know what the difference between these 2 files is? Do they contain different kinds of system... (3 Replies)
Discussion started by: VeroL
3 Replies

2. UNIX for Dummies Questions & Answers

Sun Certified System Administrator for the Solaris 10

i want to take certificate which are: Solaris 10 OS . Part I - Sun Certified System Administrator for the Solaris 10 Operating System (CX-310-200) . Part II - Sun Certified System Administrator for the Solaris 10 Operating System (CX-310-202) ; my question is about S10 adminitration... (0 Replies)
Discussion started by: nibiru78
0 Replies

3. Solaris

Sun Solaris Server Configuration System Files

Dear All, I am a Ubuntu Linux user and currently performing an audit on a Sun Solaris machine. As I am not too familiar with Sun Solaris, may I know where can I extract the following information from a Sun Solaris server. /etc/profile /etc/login.defs /etc/pam.d/system-auth... (2 Replies)
Discussion started by: nerd
2 Replies

4. Solaris

file system full in Sun Solaris 9 sparc

I am trying to install the JDK 1.6 on Solaris9 Sparc machine but after downloaded .tar file from Sun website and when I am trying to untar that, I an getting the following error- zcat jdk-6u7-solaris-sparc.tar.Z | tar -xf - Sep 2 18:42:36 mgsun ufs: NOTICE: alloc: /: file system full ... (11 Replies)
Discussion started by: smartgupta
11 Replies

5. Solaris

Sun Certified System Administrator for the Solaris 10 OS, Part I (CX-310-200)

Hi all, I have been reading for Sun Solaris Administrator exam (CX-310-200) but i have kind of been dragging. Is there anyone preparing for this exam so we could make like a study group or accountability partner. Awaiting your response. thanks (6 Replies)
Discussion started by: nkechifesie
6 Replies

6. Shell Programming and Scripting

To check the system configuration on Sun solaris

Hi, Could you pls. let me know what is cammand in unix to check the system configuration on Sun solaris. Thanks in advance. Cheers (2 Replies)
Discussion started by: krackjack
2 Replies

7. Solaris

Installation of IBM Cognos 8 BI on Sun solaris operating system

Hi All, I am newbie to Sun solaris operating system. I am trying to install IBM Cognos 8 on it. However it can't execute the installation path when i insert to CD when i double click it. Anyone have any idea on installing it? or any documentation for me to view? (0 Replies)
Discussion started by: lkyow
0 Replies

8. Solaris

How to get system parameters / information on Sun Solaris 5.10

Hello to everyone, i am new to Sun Solaris. i have Solaris 5.10 installed on the X86 platform. i am writing a script which gathers some system information. but i can not find some of the parameter from the system can any one please suggest to way to find these params. shell command will be... (1 Reply)
Discussion started by: nikhil.sigpro
1 Replies

9. Solaris

Making HDD backup in sun Solaris system

Hello to all, I have Fujitsu Celzius M470 workstation which has Sun solaris system installed and want to make a complete backup of the hard drive. The existing HDD is SATA II, 500 GB. I don't have much experience working with SUN solaris systems (not at all) but have some experience with... (5 Replies)
Discussion started by: Mick
5 Replies
ROTATELOGS(8)							    rotatelogs							     ROTATELOGS(8)

NAME
rotatelogs - Piped logging program to rotate Apache logs SYNOPSIS
rotatelogs [ -l ] [ -f ] logfile rotationtime|filesizeM [ offset ] SUMMARY
rotatelogs is a simple program for use in conjunction with Apache's piped logfile feature. It supports rotation based on a time interval or maximum size of the log. OPTIONS
-l Causes the use of local time rather than GMT as the base for the interval or for strftime(3) formatting with size-based rotation. Note that using -l in an environment which changes the GMT offset (such as for BST or DST) can lead to unpredictable results! -f Causes the logfile to be opened immediately, as soon as rotatelogs starts, instead of waiting for the first logfile entry to be read (for non-busy sites, there may be a substantial delay between when the server is started and when the first request is handled, meaning that the associated logfile does not "exist" until then, which causes problems from some automated logging tools). Available in version 2.2.9 and later. logfile rotationtime The time between log file rotations in seconds. The rotation occurs at the beginning of this interval. For example, if the rotation time is 3600, the log file will be rotated at the beginning of every hour; if the rotation time is 86400, the log file will be rotated every night at midnight. (If no data is logged during an interval, no file will be created.) filesizeM The maximum file size in megabytes followed by the letter M to specify size rather than time. offset The number of minutes offset from UTC. If omitted, zero is assumed and UTC is used. For example, to use local time in the zone UTC -5 hours, specify a value of -300 for this argument. In most cases, -l should be used instead of specifying an offset. EXAMPLES
CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common This creates the files /var/logs/logfile.nnnn where nnnn is the system time at which the log nominally starts (this time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). At the end of each rotation time (here after 24 hours) a new log is started. CustomLog "|bin/rotatelogs -l /var/logs/logfile.%Y.%m.%d 86400" common This creates the files /var/logs/logfile.yyyy.mm.dd where yyyy is the year, mm is the month, and dd is the day of the month. Logging will switch to a new file every day at midnight, local time. CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common This configuration will rotate the logfile whenever it reaches a size of 5 megabytes. ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M" This configuration will rotate the error logfile whenever it reaches a size of 5 megabytes, and the suffix to the logfile name will be cre- ated of the form errorlog.YYYY-mm-dd-HH_MM_SS. PORTABILITY
The following logfile format string substitutions should be supported by all strftime(3) implementations, see the strftime(3) man page for library-specific extensions. o %A - full weekday name (localized) o %a - 3-character weekday name (localized) o %B - full month name (localized) o %b - 3-character month name (localized) o %c - date and time (localized) o %d - 2-digit day of month o %H - 2-digit hour (24 hour clock) o %I - 2-digit hour (12 hour clock) o %j - 3-digit day of year o %M - 2-digit minute o %m - 2-digit month o %p - am/pm of 12 hour clock (localized) o %S - 2-digit second o %U - 2-digit week of year (Sunday first day of week) o %W - 2-digit week of year (Monday first day of week) o %w - 1-digit weekday (Sunday first day of week) o %X - time (localized) o %x - date (localized) o %Y - 4-digit year o %y - 2-digit year o %Z - time zone name o %% - literal `%' Apache HTTP Server 2010-11-06 ROTATELOGS(8)
All times are GMT -4. The time now is 09:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy