04-13-2009
how to take file from SAP server to local serve automatically
Hi,
I have problem in writing the UNIX scripts,I have one SAP server and my local server .I want to take one file from SAP server to my local server weekly bases I want to write one UNIX scripts which will automatically takes that file from SAP server to my server.so I need not need to pull the files from SAP every time manully.
can some body please help me or better give me the UNIX code for this.I would be very thank full.
the server details are as follows.
file name = test1.txt
SAP server name = SAP.com (user_id = abc and pass=1234)
path on SAP server where the file is cd /MNO
path on my server where I have to pull file cd/xyx/abc
I want the process to be auto ...
Please help me...
Thanks
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
The Setup is like this. I'm connecting to Unix machine from my local machine. After connecting to Unix M/c, i need to connect FTP server. Am successful in connecting to FTP server, but am not able to download the file from the ftp server to my local machine. I have different user id's and... (1 Reply)
Discussion started by: ranjith_taurean
1 Replies
2. HP-UX
want to remove the thread
thanks (2 Replies)
Discussion started by: indira
2 Replies
3. Shell Programming and Scripting
want to remove this thread.
thanks (2 Replies)
Discussion started by: indira
2 Replies
4. UNIX for Dummies Questions & Answers
I would like automate the process of copying some logs files from a server to my local hard drive at a set time each week/day.
I don't really know anything about creating and scheduling jobs. Is this something I could setup relatively easily?
I would like to automatically copy all the logs... (1 Reply)
Discussion started by: Sepia
1 Replies
5. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
6. UNIX for Advanced & Expert Users
Iam putting file in ftp server.
iam doing ftp
to transfer a file to ftp server
but after sometime(10 sec) the file is automatically deleting in the ftp.
Can i know why this happens.
When my friend ftp the file to the same server , the file is not deleting aftersometime... it is there.
Can... (1 Reply)
Discussion started by: nani1984
1 Replies
7. Shell Programming and Scripting
hi,
can anyone tell me how can i store the names of a file that are in remote server to a file and then get the file that contains the name in local server?
there is a remote server where 5 files are present , say
a.txt
b.txt
c.txt
d.txt
e.txt
i want to write a script in my local... (4 Replies)
Discussion started by: Little
4 Replies
8. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
9. Solaris
Hi guys,
I've got a local IPS repository on server 1 (local server in the basement) and a second one on server 2 in another data center. Both servers act as repository servers for their locations.
The publisher list is like this
pkg publisher
PUBLISHER TYPE STATUS... (4 Replies)
Discussion started by: dheitepriem
4 Replies
LEARN ABOUT SUSE
ocf_heartbeat_sapinstance
OCF_HEARTBEAT_SAPINS(7) OCF resource agents OCF_HEARTBEAT_SAPINS(7)
NAME
ocf_heartbeat_SAPInstance - Manages a SAP instance
SYNOPSIS
SAPInstance [start | stop | status | monitor | promote | demote | validate-all | meta-data | methods]
DESCRIPTION
Resource script for SAP. It manages a SAP Instance as an HA resource.
SUPPORTED PARAMETERS
InstanceName
The full qualified SAP instance name. e.g. P01_DVEBMGS00_sapp01ci (required, string, no default)
DIR_EXECUTABLE
The full qualified path where to find sapstartsrv and sapcontrol. (optional, string, no default)
DIR_PROFILE
The full qualified path where to find the SAP START profile. (optional, string, no default)
START_PROFILE
The name of the SAP START profile. (optional, string, no default)
START_WAITTIME
After that time in seconds a monitor operation is executed by the resource agent. Does the monitor return SUCCESS, the start is handled
as SUCCESS. This is useful to resolve timing problems with e.g. the J2EE-Addin instance. (optional, string, default 3600)
AUTOMATIC_RECOVER
The SAPInstance resource agent tries to recover a failed start attempt automaticaly one time. This is done by killing runing instance
processes and executing cleanipc. (optional, boolean, default false)
MONITOR_SERVICES
(optional, string, default disp+work|msg_server|enserver|enrepserver|jcontrol|jstart)
ERS_InstanceName
(optional, string, no default)
ERS_START_PROFILE
(optional, string, no default)
PRE_START_USEREXIT
The full qualified path where to find a script or program which should be executed before this resource gets started. (optional,
string, no default)
POST_START_USEREXIT
The full qualified path where to find a script or program which should be executed after this resource got started. (optional, string,
no default)
PRE_STOP_USEREXIT
The full qualified path where to find a script or program which should be executed before this resource gets stopped. (optional,
string, no default)
POST_STOP_USEREXIT
The full qualified path where to find a script or program which should be executed after this resource got stopped. (optional, string,
no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 180.
stop
Stops the resource. Suggested minimum timeout: 240.
status
Performs a status check. Suggested minimum timeout: 60.
monitor
Performs a detailed status check. Suggested minimum timeout: 60. Suggested interval: 120.
promote
Promotes the resource to the Master role. Suggested minimum timeout: 320.
demote
Demotes the resource to the Slave role. Suggested minimum timeout: 320.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
methods
Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a SAPInstance resource using the crm(8) shell:
primitive example_SAPInstance ocf:heartbeat:SAPInstance
params
InstanceName=string
op monitor depth="0" timeout="60" interval="120"
SEE ALSO
http://www.linux-ha.org/wiki/SAPInstance_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_SAPINS(7)