Archive | korn shell (ksh) scripting RSS feed for this section

Script – To check the status of SRDF disks

Prod and DR servers have R1/R2s assigned and VxVM is being used on the server. All SRDF related operations are performed at the host level either from Prod or DR node. Ideally, all SRDF devs should be part of Veritas DG as well as symdg. What happens when you perform the DR test, and after […]

Leave a comment Continue Reading →

korn shell (ksh) – for loop

Reading from a file for line in $(cat /etc/passwd) do   echo $line done Iterate for a range for number in {1..10} do   echo “Current number is $number” done Loop for values given for planet in earth mars saturn jupiter do   echo “The planet name is $planet” done Loop for variable containing multiple values planets=”earth mars […]

Leave a comment Continue Reading →