1836752 Members
2875 Online
110109 Solutions
New Discussion

Scripts for new setup

 
Avadhoot
Occasional Contributor

Scripts for new setup

Hi
I am allocating to a new project . I want to know which scripts are used generally . like
i have written some scripts which gives bad attempts login to system , scripts that gives
u min max avg of cpu , memory , disk usage .
can u suggest me some more ideas which u are using on ur systems

thanks in advance
Avadhoot


3 REPLIES 3
Scott Van Kalken
Esteemed Contributor

Re: Scripts for new setup

I have a favourite log rotation script, the script is attached, the conf file is below:

#---------------------------------------------------------------------------
#
# @(#) - Log rotation config file (used by rotatelogs.sh)
#
# Version: 1.8prod 20 Feb 2001
#
# History:
# Date Ver # Programmer Details
# ==== ==== ========== =======
# 1.0 Scott van KAlken
#
# Format: logfile copies [daily|weekly|monthly] [-|day|day of month]
# [-|pre-processing script/command] [-|post-processing script/command]
# Synopsis: Fields must be tab separated. All six fields must be present.
# The preprocessing and post-processing commands are called by
# rotatelogs thus:
#
 
# where pre or post would include any parameters other than the
# log file name. The pre command is run immediately prior to the
# file moves and the post command immediately prior to the
# compression of the most recent copy (.0).
# Standard location is /opt/local/bin.
#
#---------------------------------------------------------------------------

# syslog files
/var/adm/syslog/syslog.log 5 weekly Sunday - -
/var/adm/syslog/mail.log 5 weekly Sunday - -
Khalid A. Al-Tayaran
Valued Contributor

Re: Scripts for new setup

Hi,

You need a script for file system sizes automatically sent by email.

look at: "favourite sysadmin scripts you always keep around.... "
the here's the link:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html

Look and choose for your self.


Good Luck.
Avadhoot
Occasional Contributor

Re: Scripts for new setup

Thanks khalid , it's really good