You could have a file with the server names and try something like this (not tested):
thanks reply ,
the above script is check remote server log , it seem check 1 server only , right ?
if I want to access 10 servers to check its log , would advise how to do it ? thanks
Hi,
I am trying to exclude "/web" directory from a server.
I am able to login to the server, and this is the command it gives me:
$ /usr/openv/netbackup/exclude_list
bash: /usr/openv/netbackup/exclude_list: No such file or directory
can anyone pls help me :confused: (3 Replies)
Hi,
We work on a UNIX SCO SCO_SV Release = 3.2v5.0.5.
I have a folowing structure
/u/usr/lpp
/u/usr/lpp/SQL
/u/usr/lpp/DIR2
I use following tar to backup the /u/usr/lpp directory
cd /u/usr/lpp
tar cvf /u/usr/backup/backup.tar .
Now I want to exclude the subdirectory SQL.
I... (2 Replies)
I am familiar with using tar and exclude/include files:
tar zcf backup.dirs.tgz --files-from=include.mydirs --exclude-from=exclude.mydirs --no-recursion
but was wondering if I could use find in the same way. I know that you can just specify the directories to exclude but my list is... (2 Replies)
Hi Gurus.
I have a directory and i receive many files with extension .log. I processed the file as i get it. i want to process all the files except one which i know i don't want to process.
cd /backup/temp/rajesh/PACS #--- directory , under this i have below files... (1 Reply)
Hi below is my current scripting which will monitor for any errors in the application
logfile="/tmp/application.log"
output=$(grep "ERROR" $logfile)
if
then
echo "found- send email"
else
echo "not found"
fi
Now I wanted the script not to send the email for one of the... (12 Replies)
Hi,
I need to exlucde the files which are present in exclude.txt from a directory
exlcude.txt
AUZ.txt
AUZ.chk
NZ.txt
NZ.chk
tried with below code but not working
ls -ltr | grep -v `cat exclude.lst` (9 Replies)
Hi Experts,
Below is my shell script and it will move the files older than 90 days to archive mount. Now my new requirement is , I need to move some of the directory files older than 365 days. How can I achieve this.
Simply I have
DIR1
DIR2
DIR3
DIR4
I need to exclude DIR 2 and DIR 2... (5 Replies)
How do you exclude a filesystem using du command in solaris?
for example /proc
Tried this but its not working
du -sk -d /* --exclude=/proc | sort -nr | cut -f2 | xargs du -sh | head -
in linux it is working. (2 Replies)
How do you exclude a filesystem using du command in solaris?
for example /proc
Tried this but its not working
du -sk -d /* --exclude=/proc | sort -nr | cut -f2 | xargs du -sh | head - (1 Reply)
Discussion started by: jinslick25
1 Replies
LEARN ABOUT DEBIAN
cvlogit
CLOGIT(3) Common Library Functions CLOGIT(3)NAME
Clogit - log server messages in local log or in system logger
SYNOPSIS
#include "Clog.h"
int Cinitlog (char *cmd, char *logfile)
int Clogit (int level, char *func, char *msg, ...)
int Cvlogit (int level, char *func, char *msg, va_list ap)
DESCRIPTION
Cinitlog initializes the server logging routines.
Clogit logs server messages in a local log or in the system logger.
Cvlogit is the same as Clogit but takes a va_list instead of a variable number of arguments.
cmd specifies a string to be prepended to the syslog messages.
logfile
specifies a path for the server log file. If set to syslog, the system logger will be used. By default, only messages with level at
least as important as LOG_INFO will be logged. The level threshold can be changed with the environment variable LOG_PRIORITY.
level is associated with the message. The possible values, in order of decreasing importance are:
LOG_EMERG
LOG_ALERT
LOG_CRIT
LOG_ERR
LOG_WARNING
LOG_NOTICE
LOG_INFO
LOG_DEBUG
func is the name of the function that issues the message.
msg is a format as in printf.
RETURN VALUE
These routines return 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EFAULT logfile is a NULL pointer.
ENAMETOOLONG The length of logfile exceeds CA_MAXPATHLEN.
LCG $Date$ CLOGIT(3)