Thanks for the reply..
here is my script:-
Here is my question to move further:
if file exist script need to check whether log file keep on rolling or not ,if log file not rolling more than 30mins script should trigger mail.
dont know how to write or use if condition in if loop.
Last edited by Franklin52; 11-25-2014 at 05:47 AM..
Reason: Please use code tags
Hi,
I've got a question. How do I show the last updated time?
Whenever I do any of the following:
ls -l
ls -lu
ls -lt
I get the creation time.
I need the modification/last update time. I'm FTP'ing a file to a different server. I'd like to know when the FTP is completed. (2 Replies)
Hi,
I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work
I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
hi all, i'm a student and managing lab at my insti. there in one application in which log file has to be maintaine the number of bytes transferred and received. but after certain entries these two attributes stop getting updated and holds same values for rest of the session. This happens one time... (4 Replies)
Hello Friends
I am facing a weird problem :confused:, we receive thousands of files in my system on a daily basis, access time stamp on some of the files are being updated as old time stamp like 1968-01-19, Could some one help me what could be causing this? so that i can narrow down the problem... (4 Replies)
Hi All,
I have a process which after some time continues move a files to some folder(say the name of the folder is logdir)
What i am trying to do is as the files are coming to the logdir folder, I want the latest updated time and date
of the folder in PERL. (1 Reply)
Hi ,
We have around 22 logs , each has different entries. I have to automate this using shell script. The ideas which am sharing is given below
1) We use only TAIL -100 <location and name of the log> Command to check the logs.
2) We want to check whether the log was updated before 24... (13 Replies)
Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Hello,
Iam running with one issue, since particular date looks like one of the script vanished from the system after restarting of the system.
I dont know which scrit it was but definatelt there should be one.
but might be some logs would be there which have not updated from that day.
so... (2 Replies)
I have a log file which have a date and time at the start of every line.
I need to search the log file starting from a specific time to the end of file.
For example:
Starting point: July 29 2018 21:00:00
End point : end of file
My concern is what if the pattern of `July 29 2018 21:00:00`... (3 Replies)
Discussion started by: erin00
3 Replies
LEARN ABOUT OSF1
cdslinvchk
cdslinvchk(8) System Manager's Manual cdslinvchk(8)NAME
cdslinvchk - Checks the CDSL inventory of the base operating system and layered applications.
SYNOPSIS
/usr/sbin/cdslinvchk [log_file_path]
OPTIONS
The path name to a location for the log file. By default this will be /var/adm/cdsl_check_list.
DESCRIPTION
Use the cdslinvchk script to verify the current inventory of Context Dependent Symbolic Links (CDSLs) on a running system. CDSLs are spe-
cial symbolic links that enable a system to work in a cluster. If CDSLs are accidentally removed, your system will not function correctly
in a cluster. While this is not a problem for stand-alone systems, you may not be able to add the system as a member of a working cluster
at some future time. You can run this script at any time or configure it to run at system start-up, or as a cron task.
When you invoke the script, it checks the CDSLs on the running system against CDSLs of the installed inventory in /usr/.smdb and the addi-
tional entries in /var/adm/cdsl_admin.inv, and ensures that each target file exists on the system as a properly-constituted CDSL. If the
check is successful, the following message is displayed and the script terminates: Successful CDSL inventory check
If the script finds inconsistencies in the inventory, warning messages are displayed on your terminal and logged to the default log file at
/var/adm/cdsl_check_list. You can specify an alternate location for the log fill if required. The script locates any modified, missing,
or replaced CDSLs. Note that the previous copy of the log file is renamed and retained for reference and is renamed by appending to the
filename.
Refer to the System Administration guide for information on recreating any missing or broken CDSLs. Refer to the hier(5) reference page
for an inventory of CDSLs.
MESSAGES
One or more of the following messages may be displayed and logged to the log file: Unable to create <pathname> report file -- the script
was not able to create a log file. Check the target directory and security. Expected CDSL: <cdsl_pathname> -> <pathname> CDSL Target has
been modified to: <pathname> CDSL has been replaced with <pathname> CDSL is missing Failed CDSL inventory check. See details in <log file>
FILES
Additional inventory file entries. This file will not exist on all systems. The current and previous log files for inventory errors and
messages
SEE ALSO
Commands: cron(8)
Others: hier(5)
See also the System Administration guide for details of CDSLs
cdslinvchk(8)