I want to collect information of all the Powerpath clients in the environment. Is there a way to collect this information remotely?
For example, I want to get the status of the paths on a server. If I reboot a fibre channel switch or a storage processor, I want to make sure all the paths are online again.
I was just able to download and install powerpath viewer, looks like it was released on the 8th. It is in its own section under; Home > Support > Software Downloads and Licensing > Downloads P-R > PowerPath Viewer
Only issue I'm working through now is creating a silent install process. Won't be fun manually installing the components on each of the hosts in our environment.
take a look at "psexec" utility, it allows you to run commands on remote systems. You could write a script that would use psexec to execute powermt command and pipe output to a UNC path somewhere.
You could use the mmc snap in to connect to other servers. You have to do it from a server that has powerpath installed. I created this little hack of vbscript when we were seeing dead paths after SP reboots. It asks you for your credentials (domain, username and password) and adds all the hosts found in c:\hosts.txt file (1 server per line). I also add disk management, this way if there is a path issue you can rescan and fix it that way. I call it a hack since it uses sendkeys, so don't touch anything while it runs .
Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("c:\hosts.txt", ForReading)
Const ForReading = 1
Dim array_hosts() i = 0 Do Until objFile.AtEndOfStream Redim Preserve array_hosts(i) array_hosts(i) = objFile.ReadLine i = i + 1 Loop
Dim username, password
domain = InputBox("Enter the domain") username = InputBox("Enter your username") password = InputBox("Enter your password")
objFile.Close
' Create the MMC Application object. Dim WshShell, objMMC, objNode, View, listitem, host, StdIn, fso Set objMMC = Wscript.CreateObject("MMC20.Application")
' Show the MMC application. objMMC.Show
Set StdIn = WScript.StdIn i = i - 1
Set WshShell = WScript.CreateObject("WScript.Shell")
hersh1
197 Posts
1063
0
Posted June 9th, 2011 08:00
I was just able to download and install powerpath viewer, looks like it was released on the 8th. It is in its own section under; Home > Support > Software Downloads and Licensing > Downloads P-R > PowerPath Viewer
Only issue I'm working through now is creating a silent install process. Won't be fun manually installing the components on each of the hosts in our environment.