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.

Tags: VMware

Similar Questions

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

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

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

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

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

  • 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

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

  • new yellow ink cartridge (564) do not correctly print Photosmart HP 7510 e-all-in-one

    My Hp Photosmart 7510 e - all - in - one... I replaced the yellow cartridge XL 564 and I am getting yellow streaks... when printing a report, yellow is barely noticeable, with black stripes.

    Is this a faulty new cartridge?  Help, please!

    Carol

    DUH!   A senior moment here... I pulled out the yellow ink cartridge replaced by another new... at that moment, I realized the orange tab 'pull' was still attached.   Once I got his shot and re - insert the cartridge, it was fixed!

  • new jquery mobile theme renders does not correctly

    So I'm finalizing certain things on a mobile website that is looking great! m.whitewatertours.com.. .but we wanted to make a few changes to the theming and used the jQuery ThemeRoller to do. But after downloading my new theme and apply our site looking for fabulous on a test page now looks like something a 5 years created!

    "I replaced the original < link rel ="stylesheet"href ="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"/ > code within the Head tag with the new ones mentioned below respective pages... " (generated by the 'Add new css' button in DW6)

    Here is the page of the original beautiful appearance: http://m.whitewatertours.com/rafting-hot-deals.html

    as the test with ThemeRoller theme page: http://m.whitewatertours.com/rafting-hot-deals-css-test.html

    new code = < link href = "jquery-mobile/twt-mobile - theme.css" rel = "stylesheet" type = "text/css" >


    That I tested with a theme created from Fireworks CS6, always terrible looking...

    test the page with the theme of the FWCS6: http://m.whitewatertours.com/rafting-hot-deals-css-test-fw.html

    I feel that I must have done something wrong... but have triple checked everything I can think of!

    Jenny

    Jenny, the link to jQuery.mobile css is missing from your new page. Add this before line 7 (before calling twt-mobile - theme.css)

    http://code.jQuery.com/Mobile/1.2.0/jQuery.Mobile-1.2.0.min.CSS">

    -ST

  • Change from Thin to thick to help inflate the parameter-&gt; specified is not correct

    Hello

    I wan to convert a VM disk of thin thickness.

    When "inflate" a disk from the data store, I get the message "a specified parameter was not correct."

    What to do to fix this?

    THX

    Please make sure you have machine virtual shutdown and deleted all the snapshot before proceed you to inflate. After you blow up if you see "the disc is not thin-provisioned." This means already changed my thick and in order to see the thickness that you will need to relaod the file vmdk by removing and joining the drive

  • How to erase or correct an error loading RUNDLL that keeps Poppin ' up C:\ProgramFiles\ParetoLogic UUS2\USS.dll the specified module could not be found... error?

    How to erase or correct an error loading RUNDLL that keeps Poppin ' up C:\ProgramFiles\ParetoLogic UUS2\USS.dll the specified module could not be found... error?

    Hello

    Here is some information on this problem.

    The information contained in the link suggest you delete a scheduled entry, if it exists:

    http://www.utilitysoftwarereviews.com/how-to-remove-ParetoLogic-uusdll-error-message/

    You can also use this program (FREE Autoruns) to find:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902

    See you soon.

  • Removal of startup parameter error: the specified Service does not exist as an installed Service

    Hello

    I am currently removing two services in Autoruns, for the reason that they are highlighted, and that means that it no longer exists. However, I'm running into some trouble while he was trying to do, I get the following error:

    Removal of startup parameter error: the specified Service does not exist as an installed Service

    For diagnosis, I downloaded my log of Autoruns on OneDrive text file and you can view it by clicking here.

    Thank you

    Party of Lighthouse

    My research yesterday using Google yesterday suggested malware damage.

    Select Start, all programs, accessories, right-click right-click command promptand click run as administrator on the menu drop-down... Type cd\ and press ENTER. Type "chkdsk c:/r" without the quotes and press ENTER. Make sure you include the spaces indicated. Enter it when asked if you want to run chkdsk on restart the computer. Type exit, press ENTER, and then restart the computer.

    Please run the SFC system and say if she cannot fix corrupted files: http://support.microsoft.com/kb/929833

  • I, m beginning to install my adobe master collection cs5 in a new PC and installing wonder an aditional serial number to a previus (CS4) version. I put the serial number of my cs4 and recived a message that this number is not correct, but

    I, m starting to install my adobe master collection cs5 in a new PC and installing wonder an aditional serial number to a previus (CS4) version. I put the serial number of my cs4 and recived a message that this number is not correct, but I check in my acount and is correct

    Thank you. Solved with the help of adobe

Maybe you are looking for

  • How to set the time between slides in a slideshow (iPhoto, el capitan)

    How to set the time to say - 5 seconds or 20 seconds - between slide show photos in iPhoto. I use el capitan.

  • Satellite Pro A60 white screen

    can anyone helpMy cat walked in all key areas and caused all of the programs to close. When turned on again all I get is a white screen

  • XP update demolishes my Qosmio G10-133 screen resolution

    I'm running a two years old G10-133. Great and reliable machine. The reason why I bought it was because he has big screen resolution/sharpness for MS Word and Outlook emails texts.For various reasons that I do not download the MS Windows updates that

  • Is this a safe combination for USB-6212

    USB-6212 out by SC-2345. I want to drive relay on a Board of SC-2062. The plan is to run a (probably personal) cable on the SC-2345 and wire digital output straight through inside 2345. (1) the USB-6212 will lead the relay without overloading? (2) 5

  • connect to my network home

    What should I do to connect to my network on my laptop?  The main computer and my ipad is connected, but it won't let me connect to my network on my lap top.  I see others secure networks that I can connect to.  My network indicates that the settings