Sponsored Content
Top Forums UNIX for Advanced & Expert Users Shell script to check the SAN dual path. Post 302546424 by mahive on Thursday 11th of August 2011 07:44:12 AM
Old 08-11-2011
Shell script to check the SAN dual path.

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.

Thanks..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to check the actual path instead of link path

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)
Discussion started by: reldb
4 Replies

2. UNIX for Dummies Questions & Answers

How to check path exist or not in UNIX shell script

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)
Discussion started by: suneelc
3 Replies

3. Solaris

2 x HBA, connected to a SAN, but no Multi path software - What happens ?

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)
Discussion started by: sbk1972
2 Replies

4. Red Hat

how do we check SAN storage?

Hello, I am using LINUX OS. I want to check what is the SAN storage size. How do i check this in server? Any help is really appreciated.. (3 Replies)
Discussion started by: govindts
3 Replies

5. Shell Programming and Scripting

binaries PATH check in a ksh script

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)
Discussion started by: asanchez
1 Replies

6. Shell Programming and Scripting

Please help I want script to check filename, size and date in specify path.

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)
Discussion started by: akeji
1 Replies

7. AIX

How to check if my AIX server has Dual HBA's?

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)
Discussion started by: 300zxmuro
2 Replies

8. Shell Programming and Scripting

Script to check the SAN paths.

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)
Discussion started by: mahive
3 Replies

9. Red Hat

How to find the SAN path?

Hi folks, How to identify the SAN is running in Single path or dual source path for linux servers. (2 Replies)
Discussion started by: gsiva
2 Replies

10. Solaris

Solaris SAN Storage Multipath and Messages Check Script

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)
Discussion started by: ygemici
0 Replies
NETWATCH()																NETWATCH()

NAME
Netwatch - Ethernet Internet Protocol Monitor SYNOPSIS
netwatch [ -h ] [-b] [-i dd.dd.dd.dd] [-m dd.dd.dd.dd] [-n] [ - t] [ -e ethnum ] [ -c netconfigfile ] DESCRIPTION
Netwatch examines all the packets travelling on an ethernet and analyses the IP packets. The information is tallied according to the source and destination hosts. An ncurses display indicates a dual-list status for all hosts. The left display refers to LOCAL hosts. The right list refers to REMOTE hosts. It is possible to examine statistics (counts) on number of packets, bytes, IP service type and last communi- cation host for each host. Use the arrow keys (left and right) to change the display. OPTIONS -e ethnum ethnum is the name of the ethernet device to attempt to run with netwatch. (e.g. -e eth1 selects the eth1 device rather than the default eth0 device. -c confignetfile selects the name of the file which contains the ifconfig information. Note that this is not necessary since netwatch will use the route information from /proc/net to build all the information needed (without using ANY configuration file). -b For a transparent bridge, ignore every other packet... (older kernels) -i dd.dd.dd.dd Fake a local internet address for "this" machine... (useful in making fake local net for monitoring when combined with the -m option ) -m dd.dd.dd.dd Fake the netmask which is used for the local net evaluation -n Do not resolve names (just display addresses) -h Simple help information -t Start Netwatch in TOP Mode (30 sec. startup delay) USER COMMANDS
The following description will attempt to clarify what keys netwatch understands. It is important to know that the program is mode depen- dent. This means commands may change depending on the current mode. The primary mode is dual-list mode. In this mode use <tab> key - switch scroll display to the other list (dual-lists). Look for KEY. <left> key - Change display options (moving left through the options) <right> key - Change display options (moving right through the options) <up> key - Scroll to previous host page on the current list (see KEY) Change display options (moving right through the options) <down> key - Scroll to next host page on the current list (see KEY) h key - gives help screen t key - Toggle TOP mode (where 30 sec update on busiest hosts) c key - Clear counts for all hosts n key - Clean the remote & local host tables N key - Clean the remote OR local host tables (depends on which is current) L key - Produce LOG of current display entries (REMOTE or LOCAL) b key - Toggle display of BLUE entries (OLD) d key - Toggle display of DOMAIN entries (Name Server Queries) w key - Enter WATCH mode for viewing ROUTING stats and HOST packets <F10>, <END> or q key - Exits the program AUTHOR
Gordon MacKay mackay@gmml.slctech.org COPYRIGHT
Copyright (c) Gordon MacKay 1997, under GPL BUGS
Yes, but hopefully the program is better than it was... NETWATCH()
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy