Hello,
I would like to create a shell script which would check whether the hosts have SAN dual path or not. If yes, then I should get a success message, else should get a list of hosts on which SAN dual path is not working.
Get to know the command to display the number/status of your SAN paths. If you have no clue, maybe tell the people here what OS you are using together with which pathing software you use.
Using this command, there would be some kind of output which could be parsed by grep or awk etc., maybe with some if/then/fi logic etc., but that depends on the output what might be better suited or not.
If you have a particular problem, do not hesitate to ask but don't expect the people to write a script for you especially not without this scarce info.
Well, I myself would'nt like someone doing my homework and it was my mistake that I did not entered the requested details in my request.
Sorry for not mentioning the type of os on which this script needs to run. I am probably looking for SAN dual path information on Linux, AIX and Solaris hosts.
I have made a script for Linux and would like to know whether it looks good or not
So logically you will have to check what type of OS you are on, maybe use uname -a which should work on most types. According to this, issue the command you want to use. You could do that in case / esac block for example.
The requirement now is to create another script which will check the SAN path status from the above script. If the no of Paths shows less than 1 for SAN disks, then I should get an alert that SAN path failed or if all the path is ok, then SAN path is ok.
Hi everybody,
i am working on the new script , its job discover the Storage Env ( especially MultiPATH ) and FC cards for solaris 11 sparc systems for now..
script is seem working ( but may contain any mistakes or bug ) on the oracle Qlogic fc cards on Emc_VMAx systems and Solaris 11 Sparc_64... (0 Replies)
Hello All,
We have a script which when run on the host gives us the status of the internal and SAN attached disks, its paths and other information. The output of which is as follows:
Nm DEVICE VEND PROD LunID SYM DevID DISKGROUP SIZE N E... (3 Replies)
Thanks I need to know if my server has dual HBA and if multipath has been configured. For Multipath I ran lspath and it shows all drives and if MPIO is configured for that drive.
Thanks for any input. (2 Replies)
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd... (1 Reply)
The situation is a data center with around 800 servers.
Each server has installed one of these unix-like OS: rhel, sunos, aix, hp-ux.
And we have to make scripts general enough to being able to be executed over all these servers.
Furthermore, sometimes the scripts will be executed as a... (1 Reply)
Hi there
Now, Ive always support servers that used multi path software with dual cards, e.g. powerpath (emc ) / MPXIO. I got asked a question today, that if a solaris 8/9/10 host had 2 HBA cards, but no multipathing software, what would happen ?? Does the HBA card with the highest id on the... (2 Replies)
UNIX Shell Script
I'm in /home/suneel dirctory
in that directory need to check for a path for example com/src/resources
If Path exists need to copy the files from one directory
If path not exist need to create the folders and copy the files
UNIX shell script help required (3 Replies)
Hi
I have a path link
/test/df/link1/actual/file1
here link1 is actually a softlink link1= a/b
i need to print the ACTUAL FULL path instead of a linked path
is there any direct command to print the actual path of any linked path
eg
showPhyscialPath /test/df/link1/actual/file1 and it... (4 Replies)