Database - RAC/Scalability (MOSC)

MOSC Banner

reading argument with -n option in the script

edited Dec 2, 2013 5:12PM in Database - RAC/Scalability (MOSC) 1 commentAnswered
 Assuming this script name would be status_res.sh and the user needs to use arguments nodename which would give results specific to one server 
Code:
status_res.sh -n node1

Now how should I read this argument internally whichgets prefixed with -n option in the script since I would be using below command in script

Code:
crsctl status res -n nodenamw| grep -E "ora\.$DATABASE\.(.+)\.svc" | awk -F"." '{print $(NF-1)}

Best regards,
Vishal

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center