Policy in the form of traffic-"a specified parameter was not correct."

Hello.

Here's a question for you all the gurus of cutting the code checking the syntax.

I have a requirement to address the political shaping traffic outside esxcfg so orders need to complete in PS. I jumped directly to the Web of Alan site and found this wonderful example but when I copy / paste, change to vSwitch0 vSwitch1, it returns the message.

Exception by calling 'UpdatePortGroup' with '2' or the arguments: "it was not correct to specified parameters.

Vim.Host.PortGroup::Specification:vswitchId ".

To: tank line: 22:28

++ $. mor UpdatePortGroup & lt; & lt; & lt; & lt; ($pgName, $portgrp) +.

The URL for the code is here: http://www.virtu-al.net/2010/01/13/powercli-automating-traffic-shaping-on-portgroups/

Any suggestions where I understand will be rewarded with points

See you soon,.

Darren.

Hi Darren,

I tried the code on my system and changed vSwitch1 to vSwitch0 and got the same error you did. Then I saw that you change to vSwitch0 vSwitch1 in two places in the code, line 3 and line 4. After that I changed both places it worked perfectly.

Best regards, Robert

Tags: VMware

Similar Questions

  • The specified parameter was not correct: ".."

    Hello

    I am using VMware vCenter Converter Standalone to virtualize a few physical servers on an ESXi server.

    I installed ESXi 4.1.0 on a new server (quad core 2 processors, 48 gb of ram, a mirrored raid (where is the ESXi software) and a raid 5 for virtual servers).  I've already enabled 64-bit virtualization in the bios of the destination server.

    The first server I want to virtualize is a small server (Nothing mission critical).   The software main is executing is SpiceWorks.  I installed VMware vCenter Converter Standalone 4.3.0 Build-292238 on the source server.

    The error that I'm left with after you run the converter is:

    The specified parameter was not correct: ".."

    Let me guide you through the steps of how I get there.

    Launch of vCenter Converter

    Click on Convert Machine

    Under Select Source Type: Tension machine

    Specify the machine 'this local computer '.

    Next

    Select the Destination Type: VMware Infrastructure virtual machine

    Server: xxx.xxx.xxx.xxx

    user name: root

    password: password for root

    Next

    Name: leave the same...

    Next

    Select localhost.localdomain

    SELECT data store: Data1 (it was created on the raid 5 group, 860,75 1 GB of free space)

    Virtual Machine version: Version 7 of the

    Next

    Check the destination parameter... Check

    Let all the suggested default values / (go play with it more that one I get a working basis...)

    Next

    Summary (see bottom of post for summary)

    Finishing

    Special presentation...

    Then I get the error message

    The specified parameter was not correct: ".."

    The error message ends actually in times of double quotes

    If anyone has any suggestions, I would be grateful.

    Thank you.

    -


    Summary

    Information source system

    Source type: slot machine tension

    Name/IP address: the machine where works the VMware vCenter Converter Standalone server

    The CPU limit: None

    The network limitation: None

    Destination system information

    Virtual machine name: xxxxx

    Host/server: xxx.xxx.xxx.xxx

    Logged in as: root

    VM folder: None

    The host system: localhost

    List of resources: by default

    Power after the conversion: No.

    Number of processors: 2

    Physical memory: 3584 MB

    Network: Preserve County NIC

    NIC1 connected

    The VM network

    Type of disk controller: Preserve source

    Storage: The Volume of cloning-based

    Data configuration files store: Data1

    Customization of the destination

    Synchronize changes that occur during cloning: No.

    Install VMware Tools: No.

    Customize the guest operating system: No.

    Delete restore points: Yes

    Reconfigure the virtual machine: Yes

    in step 3 you can check to see if all volumes can be copied?  Just to make sure that it is a disk volume to move...

    The error should be something between the two tick marks, which is not double quotes.

    He complains that a value is null, rather than not null.  So, in step 3, make sure that nothing is missing.

    Kind regards

    Jon Hemming, b.SC., RHCT, VMware vExpert 2009
    http://Twitter.com/vJonHemming

    If your question or problem has been resolved, please click the "right answer".  If someone helped him, please click "useful answer.

  • Converter Standalone 4.3.0 question - Get "the specified parameter was not correct" and no source listed volumes

    Sorry - hopefully an admin can move this to the correct forum. I could find no community forum labeled converter so no idea where to post this message.

    My first time trying to use the converter. Use the latest version of the Converter 4.3.0 to try a P2V by using the source computer. This is a laptop Dell D820 running Windows 7 Ultimate x 64 business. I chose the source machine and all the default settings. Destination product is VMware Workstation 7.x and target files are either local or to a port USB drive (tried both). In the last step, I get a yellow bar with the error "the specified parameter was not correct" "but the following quotes are empty and presume it suppose to say the name of the setting.» The only thing I see that is suspect is that if I click on change in section 'Data copy', the list of volumes and empty and assume that shouldn't be. The sample video to get advice on the use of converter on VMware support sites show a volume listed here. I tried the same approach on a completely different system under Vista SP2 and still no volumes appear so maybe it normal?

    No idea what I am doing wrong? I did export logs and watch and it appears no volume information has been captured (a lot of & lt; destroyed & gt ;) but even once, just guessing.) Any advice would be appreciated greadly.

    Thank you

    Don

    I had the same problem on a Win7 x 64 machine... There was no listed disk to convert.

    I managed to solve the problem by running the converter as an administrator. Right-click on the Desktop Converter icon and select run as administrator.

    The disks appears and you can select which can be the converter.

  • Cannot add the vmkernel nic: a specified parameter was not correct. vSphere CLI + ESXi 4

    Hello. I try to add vmknic with frames in my distributed virtual switch.

    I read the vSphere command-line Interface Installation and reference Guideguide:

    "vicfg-vmknic - a-i DHCP"vmk5"

    I see the error message:

    Cannot add the vmkernel nic: a specified parameter was not correct.

    Vim.Host.VirtualNic.Specification.Ip

    What's wrong?

    I tried all the combinations of parameters with the same result.

    Ok! I've found a workaround.

    Since adding a vmkernel remote interface doesn't seem to work with DVS, I simply created one on a standard vSwitch and it then migrated to the DVS. And voila: the value 9000 MTU migrated intact with her! Here are the steps I followed:

    1. put the ESX host into maintenance mode - evacuate VMs manually if necessary

    2 remove the VMKernel iSCSI/NFS to the DVS interface

    3. create a standard virtual switch with no physical cards. He has no need to be a VMKernel VM Networking switch is fine. Make a note of the name you gave to the PortGroup created on the new vSwitch.

    4 using the remote control line, add the new interface vkernel specifying an appropriate jumbo MTU (9000) and the PortGroup on the standard new vSwitch. For example:

    esxcfg - vmknic.pl - Server

    If you get 3 answers, everything works. If you get failures, something has gone wrong. Go back and check that the interface is configured correctly using the command list esxcfg - vmknic.pl-.

    Enjoy!

    M

  • From convert W2K3 comments led to "a specified parameter was not correct" error

    I converted a physical W2K3 server to VI3 (ESX 3.5.0 123623 and VC 2.5 119598) successfully.

    I was able to start the client afterwards, but nothing happened. Customer VI stated that the power has been a success but the machine did not come and showed again that power off.

    Making it the second and most times leads to an error message: "a specified parameter was not correct."

    I checked the hardware settings of the guest and has seen three ports series configured. I deleted the and tried to start it again. Again, the customer VI said that the power has been a success but the machine did not come and he always showed that power off and all suite trying generated this error again.

    I connected to the web interface and tried to start from there, but that has not worked, as well.

    I checked the disk space on the volume of SAN (there is an article stating that this error message appears when there is not enough space left to store the paging file in VC 2.0), but there are a lot of free concerts.

    .vmx:

    #! / usr/bin/vmware

    config.version = '8 '.

    virtualHW.version = "4".

    floppy0. Present = 'false '.

    NVRAM = "IN1CPTAPP005.nvram."

    deploymentPlatform = "windows".

    virtualHW.productCompatibility = "hosted".

    Tools.Upgrade.Policy = "useGlobal".

    powerType.powerOff = "default".

    powerType.powerOn = "default".

    powerType.suspend = "default".

    powerType.reset = "default".

    displayName = "IN1CPTAPP005."

    extendedConfigFile = "IN1CPTAPP005.vmxf".

    numvcpus = '2 '.

    scsi0. Present = 'true '.

    scsi0.sharedBus = 'none '.

    memsize = "4096".

    scsi0:0. Present = 'true '.

    scsi0:0. FileName = "IN1CPTAPP005.vmdk".

    scsi0:0. DeviceType = "scsi-disk" hard

    ide0:0. Present = 'true '.

    ide0:0. FileName = "".

    ide0:0. DeviceType = "atapi cdrom.

    ethernet0. Present = 'true '.

    ethernet0.wakeOnPcktRcv = "false".

    ethernet0.networkName = "internal129.230.149.x".

    ethernet0. AddressType = 'vpx.

    ethernet0.generatedAddress = "00:50:56:a6:26:d6."

    Serial0.present = "false".

    Serial0.yieldOnMsrRead = 'true '.

    Serial0.filename = ' / dev/ttyS0 ".

    serial1. Present = 'false '.

    serial1.yieldOnMsrRead = 'true '.

    serial1. FileName = ' / dev/ttyS1 ".

    serial2. Present = 'false '.

    serial2.yieldOnMsrRead = 'true '.

    serial2. FileName = ' / dev/ttyS0 ".

    guestOS = "winNetEnterprise."

    UUID. BIOS = ' 50 26 c2 cf 94 ea 50 - dd 6f 3A ff c3 e8 ec c0 EB.

    SCHED. CPU. Affinity = "all".

    sched.mem.Affinity = "all".

    scsi0:0. Redo = «»

    UUID. Location = "56 4 d 45 3 c this 36 28-4 b 69 93 d7 e1 93 a5 b5 cc.

    sched.swap.derivedName = ' / vmfs/volumes/48fc3709-252c5c10-6258-0014c26377c1/IN1CPTAPP005/IN1CPTAPP005-11a5b48b.vswp '.

    hostCPUID.0 = "00000005756e65476c65746e49656e69".

    guestCPUID.0 = "00000005756e65476c65746e49656e69".

    userCPUID.0 = "00000005756e65476c65746e49656e69".

    hostCPUID.1 = "00000f4800040800000064bdbfebfbff".

    guestCPUID.1 = "00000f4800010800000020010febbbff".

    userCPUID.1 = "00000f4800040800000064bdbfebfbff".

    hostCPUID.80000001 = "00000000000000000000000120000000".

    guestCPUID.80000001 = "00000000000000000000000120000000".

    userCPUID.80000001 = "00000000000000000000000120000000".

    evcCompatibilityMode = "FALSE".

    ide0:0.startConnected = "false".

    ide0:0.clientDevice = 'true '.

    guestOSAltName = "Microsoft Windows Server 2003, Enterprise Edition (32-bit)"

    .vmxf:

    Any ideas?

    I'm not sure why you're having the problem, but a quick fix is to create a new machine virtual just how you want with no disc, then join the VMDK virtual machine files that usually start.  The fire and see if it works.  It should be fine.  If so, you have some cleanup to do to get all the files in the same directory for the new virtual machine and removing the old VM.  Just pay attention do not remove your VMDK files!

  • New-VM with OSCustomizationSpec, error "a specified parameter was not correct."

    I'm doing a script where I read a CSV file with settings to deploy multiple virtual machines. Now, I added functionality to get him to make sysprep with the help of OSCustomizationSpec and when I tested it work very well. After that, I made a few minor, such changes that added "-ResourcePool" and other things I can't remember unfortunately. Or at least I thought they were minor changes which should influence what negatively, but when I run it now I get error "a specified parameter was not correct." I found this thread saying it was a bug in the previous version, but that must have been fixed. I tried a workaround but I still get the same error. The script works well when I remove the "-OSCustomizationSpec" parameter, but it seems nothing wrong with the file I can manually deploy the virtual machines with the file OSCust from the GUI and the same models. And as I said, it worked well earlier when I used this setting. Any ideas on what "parameter", it's wrong?


    PSVersion: 4.0

    PowerCLI Version: VMware vSphere PowerCLI 5.5 Release 2 build 1671586


    The script starts the error message:

    New - VM: 2014-07-14 10:13:13 New - VM the functioning of the entity "model" failed with the following message is displayed: "specified a parameter was not correct. . ' spec.identity.userData.computerName '

    Script.ps1:141 tank: 6

    + New-VM-model $Template"

    +                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [new-VM], InvalidArgument)

    + FullyQualifiedErrorId: Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    And in the GUI:

    Task: Clone virtual machine

    Status: A specified parameter was not correct. spec. Identity . userData.c omputerN soul


    Below is the part of the script New - VM and OSCust:

    New-OSCustomizationSpec-name "PowerCLI" '

    -"Password" AdminPassword"

    -AutoLogonCount 0'

    -ChangeSID: $True '

    -Confirm: $False '

    -DeleteAccounts: $False '

    -Description "only for use with PowerCLI." "

    -FullName $Customer '

    -LicenseMode "NotSpecified" "

    «- NamingScheme «Fixed "»

    -NamingPrefix $VMName '

    OrgName - $Customer '

    -OSType 'Windows' "

    Time zone - 110'

    -'Persistent' type '

    -Workgroup 'WORKGROUP ' | Out-Null

    New-VM-model $Template"

    -Name of the $VMName '

    -VMHost $VMHost '

    -Store data $Datastore"

    -Map $Folder '

    ResourcePool - $ResourcePool '

    OSCustomizationSpec - PowerCLI | Out-Null

    Heck, I'm stupid, I think that it is Monday today!

    Just as you understand, it has something to do with the name of the computer.

    'spec.identity.userData ComputerName'.

    Or more precisely '-NamingPrefix $row.» Nu. Since this is the NETBIOS name, which can contain only letters, numbers and hyphens.

    As previously stated I'm stupid. I had $row. Defined as 'nickey_test01' and underscore name isn't a character allowed. This explains why the script already worked before when I created client VM. Guess I'll have to build in several controls in the script, for fool proof.

    Cheers for the help of Luke.

  • a specified parameter was not correct Vim.Host.VirtualNic.Specification.Ip

    Test network.

    ESX 3.5

    I want to connect ESX to Openfiler. When I try to add VMKernel I get err. : a specified parameter was not correct Vim.Host.VirtualNic.Specification.Ip

    For the IP, I entered the host IP. Clean install. No virtual machine in the inventory.

    Where to look?

    THX.

    You cannot use the same address IP assigned to the path of your host ESX service console - the VI Client is smart enough to know that the IP address is used - try using a different IP address on the same subnet.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful-

  • New-AlarmActionTrigger: A specified parameter is not correct

    Hello world

    I am trying to add a new alarm action to all my alarm vCenter definitions. Nothing complicated and because I'm lazy, I tried using PowerCLI for this. It's my little script:

    Get-AlarmDefinition | % {
      $_ | Get-AlarmAction | Remove-AlarmAction -Confirm:$false
        $_ | New-AlarmAction -Email -To '[email protected]' | % {
      $_ | New-AlarmActionTrigger -StartStatus 'Yellow' -EndStatus 'Red' -Repeat:$false
      $_ | New-AlarmActionTrigger -StartStatus 'Green' -EndStatus 'Yellow' -Repeat:$false
       }
    }
    

    When I run it, the action of the alarm and the two triggers are added. But when you add the alarm fires from "Yellow" to "Red", the following error occurs:

    New-AlarmActionTrigger : 04.07.2015 16:59:25    New-AlarmActionTrigger        A specified parameter was not correct. 
        
    At C:\Users\patrick\AppData\Local\Temp\bcfe38ed-7669-43dd-a588-7e88e59d70c4.ps1:4 char:8
    +         $_ | New-AlarmActionTrigger -StartStatus 'Yellow' -EndStatus 'Red' -Repeat:$fa ...
    +              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AlarmActionTrigger], InvalidArgument
        + FullyQualifiedErrorId : Client20_AlarmServiceImpl_NewAlarmActionTrigger_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Alarm.NewAlarmActionTrigger
    

    Unfortunately I can not know what setting is not correct. The error occurs only for "Yellow" to "Red". No idea what is wrong or what did I miss?

    Thanks for the tips!

    Strange, as far as I know there is no beta 6R2 for now.

    Yes, it should work.

    You might find some clues in the vpxd.log.

    Otherwise, use Onyx to check what really happened to the methods.

  • a specified parameter is not correct: entityID

    Has anyone seen this error before? I have a call in VMware, but I'm waiting for management to answer.

    screenshot.png

    Solved my problem... Had to give up the license via the web client. VMware documentation did not specify this, but as MRS is now Web Client that I guess it makes sense.

  • A snapshot could not be created. Check the event logs application VSS amd SPP for more information. Details: the specified object was not found.

    I get this message to 5 seconds after attempting to back up using a Seagate external hard drive. The drive has plenty of space (1 TB) and is formatted NTFS. System recognizes no problem when I Plug and I can move files to and from it no problem otherwise.

    No other thread does deal directly with this version of the problem (with the object "not found"). Any help or ideas are appreciated.

    Hello

    This occurs generally when the Volume Shadow Copy service and SPP services are not started. We will analyze and identify the cause of the problem.

    I suggest you perform the steps mentioned by "Diana D replied October 23, 2010" to a similar discussion.

    Reference:

    snapshot could not be created Details: the specified object was not found.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/shadow-copy-could-not-be-created-details-the/a55057f8-67ed-4FA3-b61e-15f8904aaba1

    Note: Make sure you put in road security software and Windows Firewall later once you are finished with the test.

    Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost. When you run the checkdisk, there are risks of data loss you can take a backup before starting the checkdisk.

    See also:

    Back up and restore frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions

    Back up your files

    http://Windows.Microsoft.com/en-us/Windows7/back-up-your-files

    Hope this information helps. Response with status so that we can help you.

  • Web sites appear in the form of lists of hyperlinks that are not interactive.

    I can't use certain websites, such as Charter.net and company store because they appear as a mishmash of lists of hyperlinks and pictures.  It happened all of a sudden this week.  Besides the change to Mozilla or another browser, what can I do to fix this?

    Hi Keverh,

    Welcome to the Microsoft community. According to the description of the problem sites appear in the form of lists of hyperlinks that are not interactive. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         You use Internet Explorer? If so, what version are you using?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Can't access some Web sites in Internet Explorer

    Method 2: Perform an optimization of Internet Explorer.

    How to optimize Internet Explorer

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    You can also read these articles for more information:

    Why a few blank pages or incorrectly displayed in Internet Explorer?

    Why can't I view some websites?

    I hope this helps. Let us know if you need help with Windows.

  • Im getting attached in the form of PDF files, that I can not open

    Im making attached in the form of PDF files, which I can not open as they come out all mixed write a cross etc I don't know how open them I have 2007 microsoft office word and excellent, thanks

    Cannot display PDF files

    You must install a PDF reader to open and view PDF files.
    Are two of the most popular to install Acrobat Reader or Foxit Reader - so you will be able to view the PDF files.

    Both are free:
    http://get.Adobe.com/reader
    http://www.foxitsoftware.com/PDF/reader

  • I bought cs 5.5 of Austria and the form to get my serial number does not recognize my product number. What should I do?

    I bought cs 5.5 of Austria and the form to get my serial number does not recognize my product number. What should I do?

    Since CS5.5 is no longer sold by Adobe, CS6 and a cloud subscription, just where have you bought?

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    - and https://forums.adobe.com/thread/1572504

  • The /drm-web-client/Logon.aspx file was not precompiled and cannot be requested.

    Hi all

    We currently use DRM Version 11.1.2.2.302 patch.

    We are facing the error when we open the web console below.

    The /drm-web-client/Logon.aspx file was not precompiled and cannot be requested.

    It used to work very well and we see that this web configuration file has been updated. I assume that there is a problem with Internet Information services.

    Any help would be greatly appreciated.

    Thank you

    VINET

    Hi all

    The Web configuration file has been modified by windows service and after restarting the server, new web configuration file has been created and we have web access console.

    VINET

  • I get an error message when previewing: "1 WARNING: assets/private/var/folders/hm/sf71s7m90n727jhsls9fgsp80000gn/T/cleaning the start-up/InDesign Snippets / Snippet_30BBDDE25.idms was not exported because it is not found." It might have to do with an MPA

    I get an error message when previewing: "1 WARNING: assets/private/var/folders/hm/sf71s7m90n727jhsls9fgsp80000gn/T/cleaning the start-up/InDesign Snippets / Snippet_30BBDDE25.idms was not exported because it is not found." It might have to do with an image that I created in InDesign and exported an earnings per share, then created a PNG out of it. I hope that's it, it's, it's scare me... Thanks for the ideas.

    Please try to recreate a link to the file or try to check if the assets are actually located in the defined path.

    Thank you

    Sanjit

Maybe you are looking for

  • I downloaded Firefox 4, three times. It shows that I have! But it is not applied.

    I have HP laptop with windows 7. I did the thing "Download firefox 4 now" 3 times. It presents at my downloads three times. I continue to receive update messages, now, and it makes me frustrated. Nothing seems to have changed, either.

  • No driver Windows 7 for new PC

    I just bought a HP Envy Phoenix 800-060 desktop PC.  HP no longer offers Windows 7, so I installed W7 support allong dual-boot OS Windows 8.  Unfortunately, the Win7 installation disc doesn't have drivers for the wireless network, bluetooth or a USB

  • Without WiFi Smart remote administration

    Hello is it possible to access the WRT1900AC of the interface "the old-fashioned way", using a dedicated port? In this case, you would what port? I would avoid using the way of Smart Wifi: with big companies be hacked, I won't have my password networ

  • The converter failed to save the file!

    Cannot open the files I need access to the school, I'm older than dirt and don't know much about computers. So need me some time to navigate through classes, because it was such a new mandate... HELP *.

  • Latitude E6400 built-in Microphone does not

    Hello. My machine is a Latitude E6400 running Windows 7 34 bit. I bought used recently and found that the microphone (which, according to specifications must be built in) does not work. I tried to check it is not cut, as well as turn the off/on it ag