06-17-2008
not able to redirect the logs of a singl date in one system
Hi All,
I have around 15 servers.
I need to check for the error in /var/adm/messages in 15 servers of current date everyday and log it in one server.
rsh is configured in all servers.
The command I am using to accomplish this in shell script is
rsh <remote sever> grep 'Jun 17' /var/adm/messages >> <file>
it is showing error :
grep: can't open 17
rsh <remote sever> grep 'Jun 17' /var/adm/messages|grep -i error>><file>
rsh <remote server> grep 'Jun 17' /var/adm/messages|grep -i error>><file>---obviously not working..
Please suggest for solution.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Solaris
How can you control old system logs keep(or storage) time in Solaris ? Is there any method ? it depends on buffer size long or date long ? (1 Reply)
Discussion started by: xramm
1 Replies
2. Solaris
Hi
I Need To Remove Logs Older Than April 1 St(4/1/2007) By Date
I Have A Script To Remove 3 Months Old Like Using 90 Days
Thanks (3 Replies)
Discussion started by: cvdev
3 Replies
3. AIX
Dear Gurus
I am running AIX with several users that are using the system, i would like to monitor the commands that are run by these users. Is there a log system that records the commands that are executed by the users???
Any kind of help will be appreciated.
Regards
Masquerder (6 Replies)
Discussion started by: masquerer
6 Replies
4. Solaris
I am working on a SUN T2000 machine with Solaris 10 running on it. When I checked the system this morning, I found it to be turned off. The lastreboot command showed that the system had been shut down the previous night.
I want to find out how the system was shut down. I have run hardware health... (2 Replies)
Discussion started by: batman727
2 Replies
5. AIX
good evening all
dear all where i can find the system logs in AIX 5.3 (1 Reply)
Discussion started by: thecobra151
1 Replies
6. Shell Programming and Scripting
Hi ,
I have a Data cleansing process which creates different log file for each step , when the process runs it creates following log files in below order:
p1_tranfrmr_log.txt
p1_tranfrmr_stats.txt
p2_globrtr_log.txt
p2_globrtr_stats.txt
p3_cusparse_log.txt
p3_cusparse_stats.txt
'
'... (8 Replies)
Discussion started by: sonu_pal
8 Replies
7. Red Hat
This isn't a RedHat specific question. The software in question might be used for any Linux distribution. Would it be advisable or inadvisable for my application, to be downloaded by many people I don't know, to write to the following logs in /var/log?
maillog or mail.log
messages
secure
... (10 Replies)
Discussion started by: Brandon9000
10 Replies
8. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
9. UNIX for Beginners Questions & Answers
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies
10. Answers to Frequently Asked Questions
I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
LEARN ABOUT DEBIAN
bntrackd
BNPROXY(1) BNETD User's Manual BNPROXY(1)
NAME
bnproxy - bnetd tracking daemon
SYNOPSIS
bntrackd [options]
DESCRIPTION
bntrackd is a simple daemon which will listen for UDP announcement packets sent by bnetd(1) servers. The list of servers and their statis-
tics is written to a text file an optionally processed by an external program. A perl(1) script is provided which processes this informa-
tion to produce an HTML document suitable for display on the web.
bnetd(1) servers must be configured to report to tracking servers. The bnetd.conf(5) file allows for multiple tracking servers to be
listed separated by commas. The master server is track.bnetd.org. Please consider including that server in your configuration.
OPTIONS
-c --command
Run the specified command after writing server information to outfile. If this option is not specified, the command
"scripts/process.pl" is executed from the directory that bntrackd was started. If an empty string is provided for command, no com-
mand will be executed.
-e --expire
Set the period of time in seconds to keep server information without receiving new updates. If this option is not specified, 600
seconds is used.
-d --debug
Place additional informational messages in the event log.
-h --help --usage
Print usage information and exit.
-l --logfile
Put the event log messages into the specified file. If this option is not specified, the file "logs/bntrackd.log" will be written
from the directory that bntrackd was started. If an empty string is provided for logfile, no event messages will be written.
-o --outfile
Put the server information into the specified file outfile..
-p --port
Listen for announcements on the specified UDP port number. If this option is not specified, the port number defaults to 6114.
-P --pidfile
Record the process ID of the tracking daemon in the specified file. If this option is not specified, this information is not writ-
ten to any file.
-u --update
Set the period of time in seconds between updates of the outfile. If this option is not specified, 150 seconds is used.
-v --version
Causes bntrackd to print its version number and exit.
NOTES
The current version is available at:
http://www.bnetd.org/
SEE ALSO
bnetd(1), perl(1)
AUTHOR
Ross Combs (ross@bnetd.org)
BNETD
12 September, 2000 BNPROXY(1)