Hi,
I am planning to implement a scheduled script that will go against my log files (every hour), search for a set of key words (errors, exceptions, faults etc). The script must be intelligent enough to scan only the new lines added to the log file since it last ran.
I can use grep for... (3 Replies)
Hi everyone , i m working on Sun solaris and i have a file "smsapp.cur" which has information like this paragraph given below , there are millions of such paragraphs
From:923212802736
To:923222326807
logMessage: 07-04-08 17:34:29 Getting message topup from code page default in language English... (2 Replies)
How can i scan a file in a UNIX script and look for a particular keyword?
For example if i wanted to scan the file "lpcmp165.out" and see if it contains the term "error" or "ERROR" and then return a 0 or 1 or some indicator as such?
Detail example:
sqlplus -s xx/yyyyyyy#@zzz <<EOF >... (11 Replies)
Hi
I am working on a script which needs to scan a sequential file and fetch the row where 2nd column = 'HUB'
Can any one help me with this...
Thanks (1 Reply)
hi guys,
i am very new to scripting & lookin for a shell script/perl script which would scan another file with the keyword "no change" & take a count of the same. Let me know if any further details are required. (3 Replies)
I need to read the last line of a log file and save it, sleep for X minutes and read the last line again. If the line is the same, exit 1, otherwise sleep for X minutes until the last line contains 'Status: Process completed'. Can anyone offer advice here? Thanks. (2 Replies)
Hi everyone.
I am still new to UNIX, and am having trouble figuring out how to create a script to scan a log file to look for errors based on a string.
We run AIX 5.3, and would like the ability to report all the instances of WebSphere Broker Execution groups crashing. This script would... (8 Replies)
Hi
Please I dont have a lot of redhat skills, but I need some help on creating a file system.
I need to rescan for this new LUN, so I try to check existing LUNs:
fdisk -l
Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of... (8 Replies)
Hi
I have a system running uname -a
Linux cmoveldb02 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux and I was told by the NetApp Admin that he has provided 5 LUNs of 1Tb, 200Gb and remaining 3 of 300Gb, but I am not able to see the new LUNs.
I have... (4 Replies)
The below bash runs clamav on all files in DIR and produces virus-scan.log. My question is the portion in bold is supposed to move the infected files, lines not OK, to /home/cmccabe/quarantine. Does the bash look correct? Thank you :).
virus-scan.log
Mon Jan 16 14:39:05 CST 2017... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT OSF1
genufi
genufi(8) System Manager's Manual genufi(8)NAME
genufi - Generates a User File Inventory (UFI) file
SYNOPSIS
/usr/bin/genufi
DESCRIPTION
The genufi utility creates a User File Inventory (UFI) file that contains the names of user files created or copied to your system after an
installation. Some of these files reside on file systems that are overwritten during a new installation of the operating system. You must
have superuser privileges to run the genufi utility, and you must invoke the genufi utility from the /usr/.smdb. directory.
To create the UFI file, the genufi utility checks the Master Synchronization Inventory (MSI) file created by the invsync utility to deter-
mine which file systems will be overwritten by a complete installation. The genufi utility searches those file systems for user files and
writes these entries to the UFI file. File systems that remain intact during a new installation of the operating system are not searched.
The genufi utility also filters out certain files and directories that would not commonly be considered for backup. For example, some log
files, installation files, and temporary directories do not need to be restored after a complete installation and are not written to the
UFI file.
The following directories are not included:
/tmp /tmp /usr/.smdb. /usr/sys/HOST /var/adm/smlogs /var/adm/syslog.dated /var/rwho /var/tmp
In the previous list, HOST represents the hostname of the system (such as /usr/sys/BLUTO) on the system named bluto.
The following files are not included:
*/core */*.dummy */.new.. /osf_boot */.profile */.proto.. /var/adm/binary.errlog /var/adm/xdm/xdm-pid */vmcore /*vmunix
Edit the UFI file to remove the entries for files and directories that you do not want to back up. The UFI file is written in the setld
inventory file format. Refer to the stl_inv(4) reference page for more information.
RESTRICTIONS
You must have superuser privileges to run the genufi utility.
You must invoke the genufi utility from the /usr/.smdb. directory.
FILES
Master Synchronization Inventory file User File Inventory file
SEE ALSO ils(8), invsync(8), udelta(8), udetect(8), updmv(8), usync stl_inv(4)genufi(8)