A computer record virtual using the VI Toolkit gets "a general error has occurred: invalid error" error.

Hello

I am a relative to the VI Toolkit novice so apologies if I ask you something ridiculous.

I am trying to save a virtual machine using the VI Toolkit, but get the error "a general error has occurred: failure of ' (seen in the VI Client) when the virtual machine must be connected to the host. I use Registervm_task to perform this task.

Here is the code:

-


to connect-VIServer MyVIServer

http://Reflection.Assembly: LoadWithPartialName ("vmware.vim")

$clus_name = "MY_CLUSTER".

$folder_name = "DR".

$esxcsv = import-csv «.\esx-hosts.csv.

$vmcsv = import-csv «.\vm-list.csv.

$dr_folder = get-view-file-filter viewtype @{"name" = $folder_name}

$clus = get-view - viewtype ClusterComputeResource-filter @{"name" = $clus_name}

foreach ($vm to $vmcsv)

{

+ $dr_folder. RegisterVM_task($vm.) PATH, $vm. VM, $false, $clus. ResourcePool, $null) +.

}

-


If I look in the 'tasks and events' VI, I see the following events:

'Machine virtual myvm is connected' and then a few seconds later "Creating myserver on the host myhost.myfqdn.net in my data center"

I can join the virtual machine manually via the VI Client and confirmed the account that I'm using has permissions.

Any ideas or suggestions would be welcome.

Kind regards

Jamie.

If the problem persists, could perhaps include a sample of the content of the two CSV files?

Tags: VMware

Similar Questions

  • How to get the 'Alerts' tab info VI client using the VI Toolkit

    I wonder how can I get the information I see in the "Alarms" VMware Infrastructure Client tab, using the VI Toolkit?

    I use the vi in c# .net toolkit and use the cmdlet get - view often get items of vim, but this is not how I want to get stuff done. Using get - view on a vm host id I can cast a HostSystem vim object and then I get advice to alarms as a virtual machine host may have defined and/or triggered, but can't some simple things like the description of an alarm triggered on a virtual machine host. I guess I have to create an AlarmManager, give him the moref for an alarm that I get from the subject of vim HostSystem... but I have lost in the vi sdk documentation and examples seem to be lacking in discussions on alarms and in the land of powershell... life is so MUCH easier, but I'm just whining now...

    Any help/pointers/code snippets are welcome...

    Rob.

    Rob, you can do without having to subject AlarmManager.

    With the MoRef in TriggeredAlarmState entries you get the object of alarm triggered alarm.

    Something like that

    $esx = Get-VMHost  | Get-View
    foreach($triggered in $esx.TriggeredAlarmState){
      $alarmDef = Get-View -Id $triggered.Alarm
      Write-Host $alarmDef.Info.Name
    }
    

    In the above example, I printed out just the name of the alarm, but you can also access all the definition of the purpose of the alarm alarm information.

    Is that what you wanted to do?

  • Can I get the contacts and email from an old record without using the Migration Wizard?

    Can I recover Contacts and messaging of an old record without using the Migration Wizard? Disc of the user in question has been very corrupted with several programs having a weird behavior. Migration wizard migrated corrupt files, so, even a clean install with only migrated users gave rise to an unusable installation.

    I have now all own installed now, but need old email files and contacts. How can I transfer this information a copy of the old/bad drive and only this info?

    Yes. With the old drive mounted and available, open Mail and choose import mailboxes... from the file menu of mail. In the dialog box import data from , choose Apple Mail.

    Navigate to the Mail folder to the user of the old library drive. According to the version of courier used, you might see folders named V2 and / or V3. Choose the applicable folder, and then click Choose.

  • Computer crashed recently, used the version 3.6.15, now with 4.0, how do I bookmarks from the previous version that was on the old computer. All files of this computer on the new computer under HD1?

    Computer crashed recently, used the version 3.6.15, now with 4.0, how do I bookmarks from the previous version that was on the old computer. All files of this computer on the new computer under HD1?

    bookmarks.html contains no bookmarks, this file is no longer used to store.

    Are you sure you're looking in the right folder, you are possible to search in the installation of Firefox rather than the profile folder folder. The following link provides details on the location of the profile folder - http://kb.mozillazine.org/Profile_folder_-_Firefox

    If you do not find places.sqlite you may not have access to your old profile folder.

  • Computer will not use the drive when you restart.

    I have a Pavilion dv 9000 and had problems more and more lately (win explorer fails, application launcher fail, blue screens, crashes etc.).

    I decided to use the recovery disk that was created at first boot. According to all the manuals that I found (on - and offline), it is just to put the recovery disk in the DVD-ROM and restart.

    The problem is that nothing happens. The computer does not use the disk when it reboots.

    Anyone experienced the same problem with the recovery disk?

    I'm not having any other problems with the ROM, works perfektly once Windows is running.

    Thank you

    You may need to change the BIOS to do first the CD drive in the boot sequence to boot from the CD.  To do this, hold the screen that tells you the key F to push to enter the menu start or start of installation.  Push it quickly. Make the changes, save your work and exit.  Put the CD in the drive and reboot.  When you are prompted, press any key to boot from the CD.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I have a user who no longer works for the company.  Someone took his place, the same computer.  She used the same account as the former user.  I would like to delete the old user and assign the new.  It will lose something if I do this?  I shouldn't

    I have a user who no longer works for the company.  Someone took his place, the same computer.  She used the same account as the former user.  I would like to delete the old user and assign the new.  It will lose something if I do this?  I wouldn't reinstall anything, right?

    Hi Greg,.

    You won't lose any application on the computer.

    You can remove a user from the license and assign it to another user according to the help below document:

    Using creative cloud | Manage your creative cloud to the membership of the teams

    Kind regards

    Sheena

  • Cannot receive or send mail using the Windows Mail get 0x800CCC18 error number

    How can I fix the problem?
    Cannot receive or send mail using the Windows Mail get 0x800CCC18 error number
    Windows mail was working fine until about 2: 30 EST 2011-12-14 and tried to send an email and got the above error msg.

    Check with your mail service provider to make sure that there is not an intermittent interruption of service.  If you have webmail capabilities, you can also check.  Otherwise, compact and repair the database (www.oehelp.com/WMUtil/) and if that doesn't help, remove your e-mail account, close and reopen WinMail and then add it back back.  Also check 3rd party program interference such as antivirus software (see www.oehelp.com/OETips.aspx#3).

    Steve

  • When I try to connect from the client to the RAC by using the SCANNER, I get ERROR: ORA-12541: TNS: no listenerOracle

    CARS: 2 nodes with Oracle single Client Access name (SCAN)

    OS: OEL 5.4 64-bit

    Version: 11.2.0.3

    When I try to connect from the client to the RAC by using the SCANNER, I get ERROR: ORA-12541: TNS: no listenerOracle. I noticed that the service is in place and properly configured (client tnsnames).

    servicioBD = (DESCRIPTION = (LOAD_BALANCE = yes) (ADDRESS = (PROTOCOL = TCP)(HOST = scanvip.domain1.local) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = serviceBD) (FAILOVER_MODE = (TYPE = SΘLECTIONNER) (METHOD = BASIC) (RETRIES = 180) (DELAY = 5))))

    serviceBD service

    SQL > select name, failover_method, failover_type, failover_retries, goal, clb_goal, aq_ha_notifications from dba_services where service_id = 3;

    METHOD NAME TYPE PURPOSE CLB_GOAL AQNOT ATTEMPTS

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

    serviceBD BASIC SELECT 180 NO LONG YES

    But when I do not use the service created for the tnsnames file SCAN, it's that if I directly put tnsnames to connect to any work of two nodes very well.

    Node 1

    servicioBD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.10)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    Or

    Node 1

    servicioBD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.11)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    I have also observed the following (cluvfy).

    1 all LISTENER_SCAN running node 1

    2 there is no TCP connectivity

    3 the error message is obtained PRVF-5713

    [grid@rac1 ~] comp cluvfy $ scan - verbose

    Check scan

    Checking the single Client access name (SCAN)...

    ANALYZE the running node name?      ListenerName Port running?

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

    scanvip.Domain1.local 1521 LISTENER_SCAN1 true true rac1

    scanvip.Domain1.local 1521 LISTENER_SCAN2 true true rac1

    scanvip.Domain1.local 1521 LISTENER_SCAN3 true true rac1

    Checking TCP connectivity to ANALYZE listeners...

    Node of ListenerName TCP connectivity?

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

    RAC1 LISTENER_SCAN1 no

    RAC1 LISTENER_SCAN2 no

    RAC1 LISTENER_SCAN3 no

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.17) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.19) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.18) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    Check the resolution settings of name to 'scanvip.domain1.local '...

    SCAN the IP address status comment name

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

    scanvip.Domain1.local 10.210.2.18 spent

    scanvip.Domain1.local 10.210.2.19 spent

    scanvip.Domain1.local 10.210.2.17 spent

    Verification of the installation program ANALYZES VIP and the listener has failed

    The analysis check failed on all specified nodes.

    Could someone help me please.

    The solution was to restart scan_listener.

    srvctl stop scan_listener

    srvctl start scan_listener

  • Using the SDK to get information about the downloaded PDF files

    The SDK can be used in a situation where you have a Web site where users can upload files to your server and you want to use the SDK to get some information from the files as space color and print size?

    The documentation I've seen does not provide information on tasks like this.

    No, absolutely not, because Acrobat cannot be used on a server (for technical reasons and licenses).

    You could look in the Adobe PDF LIbrary, a C/C++ library that is very similar to the plugin API (but without the AV layer). Yet the bed PDFEdit. Note that good familiarity with the PDF specification is a must (for example to understand that each object can have a different color space, more the transparency effect mix and output intent).

  • I want to use the chat to get a serial number for installation of Adobe Acrobat Pro DC. How chat with someone at adobe?

    I want to use the chat to get a serial number for installation of Adobe Acrobat Pro DC. How chat with someone at adobe?

    Hi robertr41760081,

    Please follow this link Contact Customer Care, sign in using your adobe ID & click on the "still need help? Contact us"button to initiate a chat with our customer support team.

    However, you can also find the serial key using this link https://helpx.adobe.com/x-productkb/global/find-your-serial-number.html

    Kind regards

    Nicos

  • I bought a LR 6 update. I received the order number and the serial number by email from Digital River. However when I try to activate the product I get a message error "we cannot validate this serial number.

    I bought a LR 6 update. I received the order number and the serial number by email from Digital River. However when I try to activate the product I get a message error "we cannot validate this serial number.

    Hi avijitm,

    You are using a Mac or Windows computer?

    Make sure there is no hosts blocking Lightroom entry onto the Adobe servers.

    Follow solution 3 referred to in article Solutions to connect, activation and errors in connection with creative cloud and Creative Suite applications

    See Error failed to validate the serial number | CS6

    Let us know if that helps.

    Kind regards

    Assani

  • The message I get is Microsoft word has not been installed for the current user. Please run set up to install the application. I reinstalled the software, but get the same message.

    The message I get is Microsoft word has not been installed for the current user.   Please run set up to install the application.   I reinstalled the software, but get the same message.

    Hello

    See the methods listed in the articles below and check.
    You receive an error "Microsoft has not been installed for the current user" message when you try to start an Office 2003 program or an Office XP program for the first time
    http://support.Microsoft.com/kb/898512
     
    You receive a message "Microsoft has not been installed for the current user" when you start an Office XP program or start of Microsoft Office Maintenance mode
    http://support.Microsoft.com/kb/298022

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • My Lightroom worked the perfect time, but today when I start the program I get a message "Lightroom has stopped working".

    My Lightroom work all the perfect time, but now when I start the program I get a message "Lightroom has stopped working".

    I use Windows 7 pro SP1and Photoshop and Lightroom CC. I think that it is a more recent version.

    Yes, I use the administrator account

  • When I try to change the color I get a "program error" pop up message. I tried to restart my machine, but it makes no difference. Any ideas?

    When I try to change the color I get a "program error" pop up message. I tried to restart my machine, but it makes no difference. Any ideas?

    To reset the preferences:

    1. quit Photoshop

    2. open Finder

    3. click go in the menu bar and choose go to folder

    4. type in ~/library and click Go

    5. open the Preferences folder and rename the folder Adobe Photoshop CC2015 Settings settings Adobe Photoshop CC2015 old

    6. Restart Photoshop and try to change the color to see if the problem still occurs.

  • Try to install the trial version of acrobat pro MS but I still get a general error message.

    Try to install the trial version of acrobat pro dc on Mac OS X, yosemite, but I still get a general error message.

    Instead of working with the Adobe download utility, I downloaded the full installation version and it worked.

Maybe you are looking for

  • Stop menu bar to appear while in an application full screen.

    I am running 10.11.5. Does anyone know how to stop the menu bar from appearing when, in an application that runs full screen? If I move my mouse to the top of the screen, it raises the bar of drop-down menus and become visible in the application. Thi

  • Why iCloud is not in my mail?

    I have a MacBook Pro and a Mac Pro.  I want to synchronize some mailboxes between the two men.  I thought I'd do that via iCloud.  iCloud appears on the left column in the Mail on my MacBook Pro.  But iCloud does not appear on my Mac Pro.  I suppose

  • System restore problems

    This morning.... woke up went to computer it fine so of the error messages in the lower left corner by saying that this file and this file was corrupt - that was the message of the yellow trianage.While the "record all users ' documents and settings

  • IE8 and smart Web Printing

    Smart Web printing works with IE8?

  • Bad speed of wireless internet on EA4500

    Hello everyone. I have an ea4500 wireless router, I tested the speed at speedtest.net and wireless, I get around 9 Mbit/s. My speed is 23 MB/s when I hard wired the pc. I check the speed on a Tablet (), pc and a mac about 5 feet away from the router