shane_emc

updated

19 years ago

S

shane_emc

59 Posts

0

20135

September 11th, 2007 08:00

PowerPath clear dead paths from command line

Anybody know of a way to clear all dead paths from the command line via powermt? I want to script this so users can just run a bat file to clean up powerpath rather than me doing it manually everytime.
  • MarcT2

    2 Intern

    •

    131 Posts

    9256

    0

    Posted September 11th, 2007 09:00

    "powermt check" will do this for you. Answer "a" for all paths.
    "powermt check force" will do the same with no confirmation.
  • MarcT2

    2 Intern

    •

    131 Posts

    9256

    1

    Posted September 11th, 2007 09:00

    If you remove the "dead" path, it won't be configured back in once the migration is complete. You'll have to visit each server and run "powercf -q"; "powermt config"; "powermt save"
  • shane_emc

    59 Posts

    9256

    0

    Posted September 11th, 2007 09:00

    I was also going to use psexec to run the command remotley so I wouldn'nt have to log into the servers. I have 450+ san attached hosts that will be losing 1 path during some switch upgrades and want to clean up powerpath afterwords so users don't complain about the red X's in powerpath. If there is a way to do this via the command line then I can script it and share it with everybody.
  • shane_emc

    59 Posts

    9256

    0

    Posted September 11th, 2007 10:00

    That did the trick. Now is there a way to do a refresh from the command line so that the red X in the task tray will go away?
  • shane_emc

    59 Posts

    9256

    0

    Posted September 11th, 2007 10:00

    True. I forgot to mention that we were going to assign new SP ports in order to distribute things better. Also somebody used all the mirrorview ports for hosts so they need to be cleaned up as well
  • shane_emc

    59 Posts

    9256

    0

    Posted September 11th, 2007 13:00

    Is this a typo "powercf -q"
  • Conor

    341 Posts

    9256

    0

    Posted September 11th, 2007 13:00

    I don't believe 'powercf -q' command is run in an Windows environment, Solaris only AFAIK...
    MarcT is correct, you will need to configure the new paths into PowerPath, once you have removed the old dead paths (powermt check force) you will need to configure the new paths once they have been attached (run powermt config; powermt save)

    CB