07-16-2018
Shell script to stop and start server
Hi,
I need to create a shell script for automated server patching, with the following scenario:
- I have two Linux servers Primary and secondary.
- Server patching should start on Primary 1st and then secondary.
- 1st check both servers are up and running.
- Then stop primary and patching will start.
- Start primary after patching.
- Wait for server status to be running and check for messages ready in logs.
- Then stop the secondary side.
- start patching.
- start the secondary server after patching is completed.
- Wait for server status to be running and check for messages ready in logs.
- I want to use uc4 to create jobs for this in later
Last edited by rbatte1; 07-16-2018 at 11:35 AM..
Reason: Formatted numbered/bulletted list
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm a newbie to the Unix world Help!
I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)
Discussion started by: jjv1
2 Replies
2. Solaris
As the title. Thanks (1 Reply)
Discussion started by: eddsos
1 Replies
3. Shell Programming and Scripting
Hi,
I just learnt the shell scripting and got working on that right now. I have one problem.
Here i am having a java application that needs to be start and stop using two shell scripts, i.e., starting the java application using one shell script and stopping the application using another... (1 Reply)
Discussion started by: sadha
1 Replies
4. Solaris
Hi,
I am working with a company where some times i need to start/stop cron jobs on need basis.
I have one option to kill cron daemon.Is it right?
Please correct me.
Waiting for your reply.
Thanks in advance.. (2 Replies)
Discussion started by: varaprasadu
2 Replies
5. UNIX for Dummies Questions & Answers
i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four.
When the script starts up i want it to:
call and run shellscripta
call and run shellscriptb
sleep for about 40 seconds
again run shellscripta
again run shellscriptb
check... (4 Replies)
Discussion started by: phpfreak
4 Replies
6. Shell Programming and Scripting
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
Discussion started by: venga
1 Replies
7. UNIX for Dummies Questions & Answers
I did a search of these forums but couldnt find a suitable resolution.
I am attempting to script a stop and start of an application on AIX.
Such as:
However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies
8. Shell Programming and Scripting
Hello All,
I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform.
The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Discussion started by: pady1224
3 Replies
9. UNIX and Linux Applications
Good afternoon
I need your help please.
There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration
Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ?
Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies
LEARN ABOUT OPENSOLARIS
rdc.cf
rdc.cf(4) File Formats rdc.cf(4)
NAME
rdc.cf - Availability Suite Remote Mirror software configuration file
DESCRIPTION
The rdc.cf is an optional configuration file that supplies the sndradm(1M) command with details of the volume sets to be operated on.
Inrdc.cf, the volume sets and their host locations are defined in the following format:
post pdevice pbitmap shost sdevice sbitmap protocol mode options
The rdc.cf fields are:
phost (primary host)
Server on which the primary volume resides.
pdevice (primary device)
Primary volume partition to be copied. Specify only full path names (for example, /dev/rdsk/c0t1d0s2).
pbitmap (primary bitmap)
Volume partition in which the bitmap (scoreboard logs) of the primary partition is stored. Specify only full path names (for exam-
ple, /dev/rdsk/c0t1d0s3).
shost (secondary host)
Server on which the secondary volume resides.
sdevice (secondary device)
Secondary volume partition. Specify only full path names (for example,/dev/rdsk/c0t1d0s4).
sbitmap (secondary bitmap)
Volume partition in which the bitmap (scoreboard logs) of the secondary file is stored. Specify only full path names (for example,
/dev/rdsk/c0t1d0s5).
protocol
Network transfer protocol. Specify IP.
mode
Remote Mirror operating mode. Sync is the Remote Mirror mode where the I/O operation is not confirmed as complete until the remote
volume has been updated. Async is the other Remote Mirror mode, in which the primary host I/O operation is confirmed as complete
before updating the remote volume.
options
A consistency group name can be specified using the g character. A disk queue volume partition can be specified using the q character,
using full path name only (/dev/rdsk/c0t1d0s5). Without the q character set will default to memory base queue. When running on
a clustered system, a cluster resource group tag can be specified using the C character.
These options have the following syntax:
[g io_groupname] [q queue_volume][C ctag]
Note -
When running on a cluster configuration, the cluster resource group tag is appended to the Remote Mirror set by default.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |x86 |
+-----------------------------+-----------------------------+
|Availability |SUNWrdcu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
sndradm(1M), sndrd(1M), attributes(5)
SunOS 5.11 08 Jun 2007 rdc.cf(4)