Do you have a file with the nine servers' access info listed, including the number of containers?
Do you want all log files in a directory compressed (by which mechanism / tool?) into one single archive?
Do you mean "delete original files" when you say "logs moved"?
Where is that script going to run, on a central server not identical with either of the nine nor the archive server?
@RudiC
Do you have a file with the nine servers' access info listed, including the number of containers?
Ans: The existing perl script called another file which contained path for the logs node wise.
So node 1 would have 2 files, file 1: perl script, file2: a txt file containing the log location of that node.
Do you want all log files in a directory compressed (by which mechanism / tool?) into one single archive?
Ans: As of now no compression is in place. We would like the script to compress the logs and then sftp post compression.
Do you mean "delete original files" when you say "logs moved"?
Ans: Yes, so as to save server space. Something like logs purging
Where is that script going to run, on a central server not identical with either of the nine nor the archive server?
Ans. Not on a central server. The script will run individually on each node and sftp it to the archive server.
Hi All,
I have a requirement where I have to archive the file as soon as I sFTP the file to remote location
below is the code I am going with
ls $FILE_NAME | while read FNAME
do
sftp -v -oport=nn $FTP_USER@$FTP_HOST <<EOF 2>&1 | tee -a ${LOG_FILE_NAME}
cd ${TGT_FOLDER_NAME}
lcd... (4 Replies)
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
-------------------------------------------------------------------------... (0 Replies)
Hi,
I need to modify my archive script to archive only files which is already sftp to the windows. We encounter some issue which the file is already archiving though it is not yet sftp'd to the Windows.
Any answers.?Thanks! (1 Reply)
Hi
I need to connect to a ServerB from Server A
eg: Server A : 172.20.273.51, un: xxx, pwd: xxx
Server B: 172.20.273.51, un:yyy, pwd: yyy
Need to copy the files(with name starts with IME*) from /grid/pc/IME*
to /grid/pc/archive
What will be the command or script to... (3 Replies)
Hi all,
Iam looking out for a shell script which pulls archive from Server A to Server B.
And at the same time, we dont want the archives which are already pulled in Server B to be removed from Server A.
Please help me on this, I have been trying on this for a quiet few time.
... (3 Replies)
Hi there,
I have one huge archive (it's a system image).
I need sometime to create smaller archives with only one or two file from my big archive.
So I'm looking for a command that extracts files from an archive and pipe them to another one.
I tried the following :
tar -xzOf oldarchive.tgz... (5 Replies)
Hi all.
I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it.
Needless to say I dont want this happen!
Could anyone lend a hand to a... (8 Replies)