MultiPath policy set to VMW_PSP_FIXED_AP gets error

Hi, I am running the following script and get the below error

# Get the user information

$vc = Read-Host "Please enter the name of the vCenter server:
$uname = Read-Host "Please enter the user name to connect to vCenter server:
$upass = Read-Host "Please enter the password that is associated:
$clusterName = Read-Host "Please enter the name of the Cluster:
Write-Host "Connection to the server vCenter $vc, please wait." - black BackgroundColor - ForegroundColor white
SE connect-VIserver $vc - user $uname - password $upass | Out-Null

###

# Recover clustered ESX hosts

$VMHosts = get-Cluster $clusterName | Get-VMHost

# Go through this loop for each host in the cluster

foreach ($VMHost to $VMHosts)
{
$luns = @($VMHost | get-scsilun-luntype disque | where-object {$_.) {ConsoleDeviceName-like ' / vmfs/devices/drives/naa * "} | Sort-Object CanonicalName)
$firstLUNPaths = get-ScsiLunPath - ScsiLun $luns [0]
$numPaths = $firstLUNPaths.Length
$count = 0
foreach ($lun to $luns)
{
If ($count - ge $numPaths)
{
$count = 0
}
$paths = @(get-ScsiLunPath-ScsiLun $lun)
$lun | Game-ScsiLun - MultipathPolicy VMW_PSP_FIXED_AP - PreferredPath $paths [$count]
$count += 1
# Sleep for 30 seconds to avoid saturation of the picture.
Start-Sleep - 30 seconds
}
}

Here is the error


Game-ScsiLun: cannot bind parameter 'MultipathPolicy '. Cannot convert value "VM".
W_PSP_FIXED_AP' type 'VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi '.
. ScsiLunMultipathPolicy' due to invalid enumeration values. Specify one of the
following enumeration values, then try again. The possible enumeration values are
"Fixed, MostRecentlyUsed, RoundRobin, unknown".
In C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\fixedp
olicy.ps1:31 tank: 36
+         $lun| Game-ScsiLun - MultipathPolicy < < < < VMW_PSP_FIXED_AP - PreferredPa
Th $paths [$count]
+ CategoryInfo: InvalidArgument: (:)) [game-ScsiLun], ParameterBin)
dingException
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomat
ion.ViCore.Cmdlets.Commands.Host.SetScsiLun

It doesn't seem like the VMW_PSP_FIXED_AP of the PSP, even if I can put it in the GUI. I'm under a Clariion CX4 and move to this policy rather than alternating repetition to get an automatic restore of LUN. Am I missing something? The script works fine if I use 'FIXED' but I want to use VMW_PSP_FIXED_AP for ALUA.

Any help would be greatly appreciated. Thank you!

OK, I see. In this case, you can use the Get-EsxCli cmdlet.

See the post of Arnim, called ESXCLI the PowerCLI, for a detailed description.

Tags: VMware

Similar Questions

  • Unable to set up account, get error in Windows Fax and Scan

    I have Windows 7 Home Premium installed, update of Vista home Premium. I've never used the Windows Fax and Scan until today. When I went to set up a Fax account this error in popup:

    An error has occurred. Try the operation again later or contact your administrator.

    I am the only user & administrator of this PC.

    I saw a post on the forum Vista, I tried but still have not been able to solve this problem. Help, please.

    Hello

    I tried the suggested method of deletion of registry keys, but it doesn't work on my laptop Win 7 Prof 32 bit with the built-in fax modem.

    The fax service works only when I connect the the domain administrator account, even if I put my user account in domain with administrator rights. Before my network has been migrated to Win 2003 Server Win 2008 Server, the fax service worked very well for my domain user account, then the problem could be due to a setting in group policy by default under Win 2008 Server?

    Looking forward to responses. Thank you.

    Managed to solve today after I do a right-click on WFS, go into properties, Security tab, button "Advanced", then "Change permissions" for my special user for total control account. Open WFS again and click new fax to set up a new Fax account and all went well.

  • When you use a set of accounts, get error "provider was not found.

    I use Windows 7-64 bit.

    I had been using a set of accounts a month ago, when I started having 'provider cannot be found. It cannot be installed correctly. The package is in program files (x 86) then I guess that it is 32-bit.

    Their support team said I need "Microsoft Data Access / JET of objects ' but I don't understand how these things can have deserted.

    I think that the Jet is part of windows 7 and so I don't think that I can download.

    I ran the System File Checker and who found a hash with msjint40.dll problem but it could not fix it. He says that the source file in the store is also corrupt.

    What is going on? Msjint40.dll (winxsx/Syswow64) files do not look as if they have changed recently - 14/07/2009.

    The problem of hash can cause a provider not found message?

    What happened and, more specifically, how do I do?

    2012-10-05 16:52:42, CSI 0000029f hashes for Member file Info? \C:\Windows\SysWOW64\msjint40.dll are not real file [l:24 {12}] "msjint40.dll": "

    Found: {l:32 b:4co68RsJJzz / 05RpZb1lX48bQFAlpOhNYOhLRTD0T2o =} expected: {l:32 b:hz / peGdAuJRqXXf8RXlIEtc + 8CQBNBHngjeC5skUVWc =}

    2012-10-05 16:52:42, CSI Info a 000002-0 hashes of file members \SystemRoot\WinSxS\x86_microsoft-windows-m... mponents-jetintlerr_31bf3856ad364e35_6.1.7600.16385_none_0f472a3521bdcfd4\msjint40.dll is not actual file [l:24 {12}] "msjint40.dll": "

    Found: {l:32 b:4co68RsJJzz / 05RpZb1lX48bQFAlpOhNYOhLRTD0T2o =} expected: {l:32 b:hz / peGdAuJRqXXf8RXlIEtc + 8CQBNBHngjeC5skUVWc =}

    2012-10-05 16:52:42, 000002 a-1 CSI Info [SR] could not reproject corrupted file [ml:48 {24}, l:46 {23}] '------? \C:\Windows\SysWOW64"\[l:24{12}]"msjint40.dll '; source file in the store is also corrupted

    Thank you

    Heather

    The date of 07/14/2009 of the file is correct.

    Did anything else on PC donations problems?

    You have a real MS win7 dvd or only a recovery disk?

    If you run chkdsk which reveals problems?

  • Getting the error with the no compatibility to older versions of Office Word, "this file type is blocked to open in this version by your registry policy setting.

    I use Office Word 2003. I'm trying to get an older file that I created. I get a message that "this file type is blocked to open in this version by your registry policy setting. Question: How do I enter everything I've been through the country to get and I stored in this file? Barbara Perkins * address email is removed from the privacy *.

    Barbara Perkins

    This article, you should get going again...

    "You receive an error message when you try to open a file type that was blocked by your registry policy settings in Word 2010, Word 2007 or in Word 2003.
      <>http://support.Microsoft.com/kb/922849 >

    HTH,
    JW

  • Windows backup never completes. Can not enter backup set up and get the following error _

    Internal error. There is no error 0 X 80070424 code your specified service. I am backing up to DVD

    Hi you are tired,

    We will follow these steps that should fix the problem:

    Step 1
    I first suggest you to check if the Volume Shadow Copy service is started. He is responsible to perform the backup.
    1. open run it and type services.msc, and then press ENTER.
    2. in the services window find shadow copy Volume service in the services list.
    3. check that the status is started. If the condition column is empty,
    Right-click on the Volume Shadow Copy service and select start.
    4. If you get error trying to force the Volume Shadow Copy service started, try to change the Startup Type to automatic and restart the computer.

    Step 2
    Try to take in another DVD or any other external device and check.

    Step 3
    Perform a clean boot that starts Windows 7 by using a minimal set of drivers and startup programs and eliminate software conflicts. Then try to get back and check.
    The following link has steps showing how to perform the clean boot: http://support.microsoft.com/kb/929135
    (1) perform the clean boot (check the link to perform the clean boot).
    (2) enable half the services.
    (3) determine if the problem comes back.
    (4) enable half of the startup items.
    (5) determine if the problem comes back.
    (6) repeat the steps above until you find out which program or service is causing the issue
    Note: Please make sure that the computer is configured to start as usual according to step 7 of the article: how to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7: http://support.microsoft.com/kb/929135.

    Check out this link where user had a similar problem:
    http://social.answers.Microsoft.com/forums/en-us/w7install/thread/0ab20bb4-24FC-4e24-bce9-aac4e2756be9

    http://social.technet.Microsoft.com/forums/en/w7itprogeneral/thread/55f5fe3a-a1cb-4855-ba4d-73f32c202246

    Hope the helps of information. Please post back and we do know.
    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I am trying to install itunes 9 on windows vista. Get error message - error occurred during the installation of Assembly political 8.0.microsoft.vc80.CRT, type version 8.0.50727.403 win 31 policy publicketoken = process 1fc8b3b901e18e3b = x 86 architectur

    try to install itunes 9, get error message - error occurred during the installation of the political Assembly 8.0.microsoft.vc80.CRT, version 8.0 (see above). Am able to install quicktime OK. I uninstalled itunes and quicktime, cleaned the installer, deleted the users temp directory and restarted several times - always get the same error and does not support network for apple, install

    Hello. It worked for me:

    1. download and install 7 - zip;
    2 right-click the iTunesSetup.exe icon and choose 7-zip > 'excerpt from iTunes\ ";
    3. then double-click AppleApplicationSupport.msi and install;
    4 install everything except iTunes;
    5. install iTunes;
    5. it must be .

  • It is a group policy setting that allows Silverlight store data for a roaming profile user limited account?

    We have customers that use our Silverlight application. Application off because errors that the software is not able to store data about user roaming profile folder. So far, developers have a setting which allows the application to be listened to, but that makes it real slow. We try to get out of that. So my question is there a group policy setting they are system administrator can setup to allow Silverlight to store data for a roaming profile user limited account? Maybe allow data to be written locally only to the specific folder that requires Silverlight?

    Thank you!
    Carlos.

    Hi Carlos,

    ·         Are these computers on the domain?

    If the computers are on the field then I suggest you to ask your question on the Microsoft TechNet Forums.

    Windows XP IT Pro category

    If this isn't the case, you can post your question on the forums of Microsoft SilverLight.

  • Test bench set property Value.vi - error 97

    I get error 97 test bench set property Value.vi.  I posted my code as an attachment.  AMP - PW FG1 - 1A_SPS.vi is the main VI.  The cluster of error can be seen in the .bmp file.

    Thanks in advance.

    I think that my problem was that I ran the VI outside TestStand.  When I ran the TestStand sequence called the VI, I had no errors.

  • Using W7 X 64 Ult I try to load KB976422 update and getting error 80070005. __

    Using W7 X 64 Ult I try to load the KB976422 update and get error 80070005.
    It dowloads OK, but when the machine charging the update fails and the system comes back and restarts.
    I understand that this update is for large flash cards, (which I did not), but it is still very irritating not to have a clean sheet on the history of the update and do not forget that it ever works.

    I looked in all the likely places, but can't seem to find this combination. I missed the answer somehow?

    DAve

    Dave

    80070005 is an access denied error. This error occurred never install any other updates? The update in question, KB976422, update drivers 4. Most likely, location of the drivers is 'protected' against driver changes or their registry setting is. Suggest that you manually download the update and save: Update for Windows 7 for x 64-based systems (KB976422)

    Configure the system to boot: How to troubleshoot a problem by performing a boot in Windows Vista or in Windows 7

    Try to install KB976422 now. If you are prompted to restart.  Who are you installed?

    MowGreen Services update - consumer safety

  • Recently, I installed Microsoft Works 9, and now I have trouble to download the Windows Update update of security for Microsoft Works 9 (KB967044). I am getting error 646. What is a network problem? ___

    Recently, I installed Microsoft Works 9, and now I have trouble to download the Windows Update update of security for Microsoft Works 9 (KB967044). I am getting error 646. What is a network problem?
    I have also recently set up a wireless network.

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

    ------------------------------------------------------

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    ----------------------------------------------------

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps and happy holidays!

    Rob - bicycle - Mark Twain said it is good.

  • I can't update windows. I get error 0x8024D007

    I can't update windows.  Under XP.  He's trying to download updates but will not continue to the web page.  I get error 0x8024D007.  What can I do?

    I can't update windows.  Under XP.  He's trying to download updates but will not continue to the web page.  I get error 0x8024D007.  What can I do?

    Not knowing what you tried to do so far to remedy this, here are my suggestions...

    Make sure that your time and time zone are set correctly.

    If you are not on the level of service pack 3, you need to get there.

    Go through the following, in order, as needed.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    Reset.

    Now reset your Windows with this FixIt components update:
    How to reset the Windows Update components?

    Reset.

    Try to get updates.

    If it still does not work, try this...

    1. Start an elevated command prompt.
    2. Run the following commands pressing on enter after each line:

      net stop wuauserv

      CD %SystemRoot%\System32

      Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

      net start wuauserv
    3. Reset
    4. Try to reinstall updates


    * Important *
    the following issues occur when you perform this operation:

    • Updates that are currently downloaded but which have not yet been installed must be downloaded again by using Windows Update or Microsoft Update.
    • When you remove the Software Distribution folder, your download history is deleted.
    • If you currently receive updates from Microsoft Update and Windows Update, you will need to reselect this option from the Windows Update Web site.


    * Note *
    if the problem is resolved and you can successfully download and install the updates, you can delete the directory SoftwareDistribution.old to recover disk space.

  • I get error number ox80248015 when I try to install the update from the ms window

    I get error number ox80248015 when I try to install the update from the window

    see if that covers your situation: http://support.microsoft.com/kb/896226

    Also make sure that the date and the system time is set correctly.

  • I'm getting error .exe - image incorrect when I start the computer and click on anything

    I keep on getting error bad .exe continuous Image on my Windows XP machine. Help, please

    Hi leondsouza,

    1. What is the exact error message that you receive?

    2. did you of recent changes on the computer?

    3. do you have security software installed on the computer?

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • I use Windows Live mail for months and suddenly can not receive or by e-mail. I'm getting Error 0x800CCC0E, socket 10013 error ID.

    Windows Live Error 0x800CCC0E, socket 10013 error

    I use Windows Live mail for months and suddenly can not receive or by e-mail.  I'm getting Error 0x800CCC0E, socket 10013 error ID.  I don't think that all the parameters have been changed recently.  What motivates this error?

    This computer is home and cable? If so, this is the e-mail scan probably the cause. According to your AV program, you may need to reinstall.

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for many AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck e-mail scanning when the option is available.

    Also note that WLMail has its own forum.

    Windows Live Mail Forum
    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Cannot install KB2653956 get error code 80071aa7

    Every day that I get a message that I need to install update KB2653956.  I have download and restart my computer, but it goes back to the previous settings when you set up.  Then, I get error code 80071aa7 when it fails.  I tried the Mr FixIt, reset Windows Update, disable my antivirus and firewall and I always get a reminder to install the update. Someone at - it ideas?

    Hello

    Method 1:

    I also suggest you go through the steps mentioned in the link and the Coachman.

    Problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Method 2:

     

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Method 3:

    If the steps do not help, I you suggest to perform a clean boot and then try to install the update manually.

    Step 1:

    Clean boot helps eliminate software conflicts.

    Follow the steps mentioned in the article below.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7 http://support.microsoft.com/kb/929135

    Note: when you are finished troubleshooting, follow step 7 article to start on normal startup.

    Step 2:

     

    You can download the update manually from the link below.

     

    MS12-024: vulnerability in Windows could allow remote code execution: April 10, 2012

    http://support.Microsoft.com/kb/2653956

     

    Hope this helps and keep us posted.

Maybe you are looking for

  • Buttons to the left of the URL are missing.

    I accidentally did something to make the buttons 'Coffee Morning', 'Web of Trust' and 'Readability' gone to the left of the URL that is in the 3rd line horizontally to the browser (i.e. line 1 is orange "Firefox", line 2 are tabs that are currently o

  • applock

    can I have the app stop to stop applications on my iPhone with password is it possible?

  • problems of memory capacity!

    Can I use the external library FCPX after be installed on a hard drive? because it takes about 400 GB of memoriaou have discovered. work?

  • Where to purchase media recovery at HP!

    My hard drive died on the laptop HP Probook 4440 s.  I found the instructions on the Support page, but they seem to be outdated and lead to no where to keep you on a wild goose chase. Is it possible to go directly to the purchase page to attempt to n

  • Connect my scanner HP for my MAC Mini

    How can I connect my HP Officejet 5610 all-in-one scanner to my MAC mini? I get a message on my printer that says go to unit Documents. My printer is about five years old. Can I use updates of device for a MAC that is listed in my manual? Thanks in a