I am using the shell script code to connect to Oracle RAC database.
Passing the parameter of cluster database name.
Question: Here I want the IF condition to succeed if first 5 characters of $ORACLE_SID matches with ${DB_ID}. Please advise.
For example: [ sivDB1x != sivDBx ]
Note: Actually I pass the Oracle RAC DB name. During the setdb ( setting the Oracle Environment ) it sets the instance running on the node like sivDB1 for Node1 and sivDB2 for Node 2 for the RAC DB of sivDB.
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
I am new to UNIX and Linux. I have some experiences with Windows server. I am thinking to start with those OS (Unix/Linux) and more specifically with the OS for the server. however, i have no idea which one would i start first, unix or linux? Because i also dont know how they are different.
... (3 Replies)
Hello all,
I have a question, and would like some advice please. I am a windows guy by trade....5 years in the Marines is where I learnt a lot of what i know. I took a junior level sys admin job...learned a bit more...and now I do IT security. All of this happened in the last 8 years. So I'm 27... (2 Replies)
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
I have a sample server name listed in variable as below:
var="server-13"
I need to check if the 7th character on $var is number 1
whichenv=`echo "$var"| head -c 7 | tail -c 1`
if ]; then
echo "9 found"
else
echo "9 Not Found"
fi
Output:
This works... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT HPUX
cm
cm(5) File Formats Manual cm(5)NAME
cm - cluster monitor for high availability clusters
Remarks
Cluster operations require the installation of the optional Serviceguard or Serviceguard Extension for RAC software, which is not included
in the standard HP-UX operating system.
DESCRIPTION
Serviceguard and Serviceguard Extension for RAC are high availability products which provide an environment such that after a failure of a
node, services (applications) can be up and running again on another node within a very short amount of time. In addition, Serviceguard
Extension for RAC is the enabling software for the Real Application Clusters (RAC). Working with the basic Serviceguard product, Service-
guard Extension for Faster Failover allows configuration of clusters for optimized failover.
Commands
The following set of commands is used to configure a high availability cluster:
cmquerycl(1M)cmmakepkg(1M)cmcheckconf(1M)cmapplyconf(1M)
The following commands are used to run or halt a cluster:
cmruncl(1M)cmhaltcl(1M)cmrunnode(1M)cmhaltnode(1M)cmviewcl(1M)
Once a cluster is formed, the following commands are provided for manual operation on high availability packages:
cmrunpkg(1M)cmhaltpkg(1M)cmmodpkg(1M)
The following commands are used within a package control script to control the services and networks configured for a package:
cmrunserv(1M)cmhaltserv(1M)cmmodnet(1M)
A command is provided to aid in migrating from a SwitchOver/UX configuration to a Serviceguard cluster:
cmmigrate(1M)
This command is not applicable with Serviceguard Extension for RAC.
SEE ALSO
Managing Serviceguard.
Configuring RAC Clusters with Serviceguard Extension for RAC.
Requires Optional Serviceguard Software cm(5)