01-30-2018
There is not SFTP perl module supported by redhat as of now. Got it checked with Redhat support and hence cannot implement it.
9 More Discussions You Might Find Interesting
1. Solaris
Can anyone tell me how to safely archive data across the network instead of tape in Solaris.
Thanks
Remi (1 Reply)
Discussion started by: Remi
1 Replies
2. UNIX for Advanced & Expert Users
My code is
tar -cvf logs.tar `find /usr/openv/logs/512*.log -mtime +2` && find *.log* -mtime +2 -exec rm {} \;
this gives me output as:
tar: Missing filenames:confused: (1 Reply)
Discussion started by: timus1980
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: Incremental
8 Replies
4. Shell Programming and Scripting
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)
Discussion started by: chebarbudo
5 Replies
5. Shell Programming and Scripting
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)
Discussion started by: vivi.raghav
3 Replies
6. Shell Programming and Scripting
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)
Discussion started by: vsmeruga
3 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: sonja
1 Replies
8. Solaris
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)
Discussion started by: dreams5617
0 Replies
9. Shell Programming and Scripting
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)
Discussion started by: Pratik4891
4 Replies
LEARN ABOUT CENTOS
pmgetarchiveend
PMGETARCHIVEEND(3) Library Functions Manual PMGETARCHIVEEND(3)
NAME
pmGetArchiveEnd - locate logical end of file for an archive log
C SYNOPSIS
#include <pcp/pmapi.h>
int pmGetArchiveEnd(struct timeval *tvp);
cc ... -lpcp
DESCRIPTION
Assuming the current PMAPI context is associated with an archive log, pmGetArchiveEnd will attempt to find the logical end of file (after
the last complete record in the archive), and return the last recorded timestamp via tvp. This timestamp may be passed to pmSetMode(3) to
reliably position the context at the last valid log record, e.g. in preparation for subsequent reading in reverse chronological order.
For archive logs that are not concurrently being written, the physical end of file and the logical end of file are co-incident. However if
an archive log is being written by pmlogger(1) at the same time an application is trying to read the archive, the logical end of file may
be before the physical end of file due to write buffering that is not aligned with the logical record boundaries.
pmGetArchiveEnd returns an error less than zero if the context is neither valid, nor associated with an archive, or the archive is seri-
ously corrupted. Otherwise, the return value is 0 if there has been no change of state since the last call, or 1 if the logical end of
file has advanced since the last call.
In the absence of an error, the result returned via tvp is well-defined.
pmGetArchiveEnd preserves the positioning state of the log file prior to this function call.
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5). Values for these variables may be obtained programmatically using the pmGetConfig(3) function.
SEE ALSO
PMAPI(3), pmFetch(3), pmFetchArchive(3), pmGetArchiveLabel(3), pmGetConfig(3), pmSetMode(3), pcp.conf(5) and pcp.env(5).
DIAGNOSTICS
PM_ERR_NOCONTEXT
the current PMAPI context is either invalid, or not associated with an archive log
PM_ERR_LOGREC
the archive is sufficiently damaged, that not a single valid record can be found
Performance Co-Pilot PCP PMGETARCHIVEEND(3)