bartdonders

updated

15 years ago

B

bartdonders

25 Posts

0

2298

January 27th, 2011 07:00

remote administration Powerpath

Hi all,

Hope you can help me...

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.

Can I script this?

Any help appreciated.

Regards, Bart

  • 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.

  • Conor

    341 Posts

    767

    0

    Posted February 1st, 2011 11:00

    What OS's do you have PowerPath on in your environment? If it is mainly Windows there is a PowerPath Viewer App in test at the moment...

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    766

    0

    Posted February 1st, 2011 12:00

    what OS ?

  • bartdonders

    25 Posts

    766

    0

    Posted February 3rd, 2011 00:00

    Well, we use Powerpath on Windows 2003 server only.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    768

    0

    Posted February 3rd, 2011 03:00

    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.

  • bartdonders

    25 Posts

    770

    0

    Posted April 11th, 2011 02:00

    Can you be more specific about the location?

    A search for "Powerpath Viewer" returns no results.


    Regards,

    Bart

  • hersh1

    197 Posts

    636

    0

    Posted April 11th, 2011 06:00

    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")

    For j=0 to i

    WshShell.Sendkeys "(%F)"
    WshShell.Sendkeys "M"
    WshShell.Sendkeys "(%D)"
    WshShell.Sendkeys "P"
    WshShell.Sendkeys "o"
    WshShell.Sendkeys "(%A)"
    WshShell.SendKeys "{DOWN}"
    WshShell.SendKeys "{TAB}"
    WshShell.Sendkeys array_hosts(j)
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys username
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys domain
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys password
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{ENTER}"

    WshShell.SendKeys "(%C)"
    WshShell.Sendkeys "(%D)"
    WshShell.Sendkeys "Disk Management"
    WshShell.Sendkeys "(%A)"

    WshShell.SendKeys "{DOWN}"
    WshShell.SendKeys "{TAB}"
    WshShell.Sendkeys array_hosts(j)
    WshShell.SendKeys "{ENTER}"
    WshShell.SendKeys "(%C)"
    WshShell.SendKeys "{ENTER}"


    Next


    WshShell.SendKeys "(%C)"
    WshShell.Sendkeys "{ENTER}"


    ' Leave the MMC application in user control when this script ends.

    objMMC.UserControl = 1
    password = "garabe data"

    wscript.echo "Script Complete"

  • odurasler

    1 Rookie

    •

    103 Posts

    770

    0

    Posted May 9th, 2011 16:00

    do we know when this app will come out?

  • Brion2

    154 Posts

    474

    0

    Posted May 9th, 2011 17:00

    Hello. I believe you are referring to PowePath Viewer. It is scheduled to be available in June.

    Thanks, Brion

    Brion Stultz

    EMC Corporate Systems Engineer

    (cell) 508 498 4806

    Sent from my iPhone

  • odurasler

    1 Rookie

    •

    103 Posts

    474

    0

    Posted May 17th, 2011 12:00

    cool! thanks!