cache task object Wininit

I can't find any references for this task and I looked at before I posted, so I wouldn't waste the time. It is a new generation which ended at the same time as the updates of Windows March 2013. I now have an additional task that is running in my task scheduler that did not previously exist. This new motherboard has different characteristics and it may or may not be related to drivers Intel USB3 or ASMedia USB3. Is that something caused by the latest MS updates or something caused by a new motherboard drivers? My system has been analyzed using MRT, AVG and Malwarebytes with no infections found. This task must be disabled or should it also aired on my last system? All references I can find show that the other three tasks are the only tasks which must be active in a normal Windows 7 machine. Please tell us what to do...

Hello

Thank you for your reply,

task of Wininit cache is tied to Windows. It runs on every computer. You can complete the task wininit cache task in Task Scheduler, umbrella it will start after you restart the computer.

I suggest you to not turn it off.

I hope this helps!

Tags: Windows

Similar Questions

  • Cache.get (Object) when using the list and Arrays.asList as keys

    Hello

    I saw a problem when doing the cache.get (object) with the list. Here's my test.

    NamedCache cohCache = CacheFactory.getCache ("Test");

    Key is a list
    Key list = new ArrayList();
    Key.Add ("A");

    cohCache.put (key, 1);

    System.out.println ("Get with Arrays.asList:" + cohCache.get (Arrays.asList ("A")));
    System.out.println ("list:" + cohCache.get (key));
    System.out.println ("list is equal to Arrays.asList:" + Arrays.asList("A").equals (key));

    Actual output:

    Get with Arrays.asList: null
    List is equal to Arrays.asList: true
    Download list: 1

    Expected results:

    Get with Arrays.asList: 1
    List is equal to Arrays.asList: true
    Download list: 1


    Arrays.asList("A") and the key are equal but consistency does not return the value. I thought that, in cache.get (object) consistency returns if object.equals (key) is true.

    Any idea?

    Reg

    Fatou.

    Dasun.Weerasinghe wrote:
    Hello

    I saw a problem when doing the cache.get (object) with the list. Here's my test.

    NamedCache cohCache = CacheFactory.getCache ("Test");

    Key is a list
    Key list = new ArrayList();
    Key.Add ("A");

    cohCache.put (key, 1);

    System.out.println ("Get with Arrays.asList:" + cohCache.get (Arrays.asList ("A")));
    System.out.println ("list:" + cohCache.get (key));
    System.out.println ("list is equal to Arrays.asList:" + Arrays.asList("A").equals (key));

    Actual output:

    Get with Arrays.asList: null
    List is equal to Arrays.asList: true
    Download list: 1

    Expected results:

    Get with Arrays.asList: 1
    List is equal to Arrays.asList: true
    Download list: 1

    Arrays.asList("A") and the key are equal but consistency does not return the value. I thought that, in cache.get (object) consistency returns if object.equals (key) is true.

    Any idea?

    Reg

    Fatou.

    Hi Eric,.

    There is a slight misunderstanding in how you think that the works of coherence.

    For clustered caches Coherence does not return the value of the object key of equals to the key specified when caching, object instead, it returns When serialized forms of the key used to and used to get equal to one another.

    If you use no POF, then most of the time Java serialization is used to serialize the objects of key, and in any case if you don't use of POF, and the name of the serialized object class is in the serialized form.

    Now, the thing is that the key that you put in is a java.util.ArrayList. The key that you have tried to get with is a java.util.Arrays.ArrayList.
    It's two different classes, so the serialized forms that store the name of class implementation (which is true in this case) cannot be the same. So consistency is not going to put initially entrance the key that it uses (the serialized form) is actually different from the original key, so there is no entry for the key used in the get() method, and correctly you get back null.

    On the other hand, the two implementations ArrayList implement equals as defined in AbstractList, requiring not only the types of implementation of lists be the same, they apply just that the relation to the object is also a list, so two lists containing the same elements in the same order are equal as long as equals() on AbstractList is concerned, that's why your equals() check evaluates to true even if the types of implementation are different.

    Best regards

    Robert

    Published by: robvarga on May 2, 2012 11:44

  • Disable the cache of objects

    Hello!

    Is it possible to turn off the display of the values cached for elements (e.g. numeric values)? For a list help to speed up the work in general, but sometimes can be disturbing. So, it is possible to disable the list of the value cached for specific items?

    András

    Andras salvation,

    I think you talk to the native browser AutoComplete feature. Try adding the following to the 'attributes of the HTML Form element"for the specific item that you want to disable this feature:

    autocomplete="off"
    

    If you wanted to do it at the page level, it is also possible for this turning off declarative "Edit Page > Security > full auto shape '."

    I hope this helps.

    Anthony.

  • Cache objects VI shared between 32 and 64 bit?

    Transferred into the LAVA: http://lavag.org/topic/16349-vi-object-cache-shared-between-32-and-64-bit/page__pid__99898

    I am currently working on a major project that is to be deployed in 32 - bit and 64-bit flavors. This means that I must periodically switch between installed versions of LV to build.

    It * seems * that if I work in 32-bit BT, and then I close and re-open my project in 64-bit BT, that everything needs to recompile... even if I had only changed a few things since the last, I worked in 64-bit.

    It seems that while LV keeps a Cache of objects VI separate for each version of LV, that it does NOT keep a cache separate for 32-bit versions and 64-bit. Is this really the case?

    Fabric Hello,

    LabVIEW maintain separate caches for versions 32-bit and 64-bit of the same version, but in the same file. They are separate entries in the objFileDB. Because 32-bit and 64-bit are very different beasts, the project must be recompiled in order to adapt to the new platform every time that you open in a new environment. It is possible to separate the compiled source code code. Research in the other forum posts, this separation likely to cause a higher risk of corruption VI.

    Best,

    tannerite

  • Update server caching the my objects?

    Hello

    I created "SomeObject" and additional objects that it all inherit from "SomeObject", the key tells the server what to do with it.
    public class SomeObject implements Seriallizable {
         private int id;
         private Key key;
         public SomeObject(int id, Key key) {
              // blah blah
         }
         //getters/setters
    }
             
    public class SomeObject1 extends SomeObject implements Seriallizable {
         // Other stuff
    }
    Key inherits number and contains an int value.

    I send a SomeObject1 to the server with a key of 1, then I send the same SomeObject1 again, this time, I put the key in a 2 and the server picks up the key 1.

    Is someone can you please tell me why this is happening?

    Thanks in advance.

    Kind regards

    My guess is that you are re-using the same RMI connection to the server for each request. RMI caches of objects of reference and will not send the same object twice (it sends just a marker that says "the same object that I sent before"). at the reception, the object is cached by the ObjectInputStream and simply returned back to your code. If you want to send the same object twice with different contents, you can use ObjectOutputStream.writeUnshared () or call the ObjectOutputStream.reset () between each entry.

  • Task parallel library

    I use c# with NET4.0. I would use the 'Task' object in the system. Threading.Tasks for parallel processing. But 'Task' is already defined in namespace DAQmx. I find that I have to explicitly state the namespace (or the other system. Threading.Tasks or NationalInstruments.DAQmx) to distinguish what "task" I refer whenever I use "task". Y at - it an easier way to do it.

    Best regards

    Shane

    In c#, you can declare an alias for a type with a using directive, as:

    using DAQmxTask = NationalInstruments.DAQmx.Task;
        using ParallelTask = System.Threading.Tasks.Task;

  • get a custom by a GroupDataModel object

    Hey gang,

    I have a GroupDataModel that I fill like this:

    m_model->insert(new Task(lineList.at(3), lineList.at(0), 11223344, lineList.at(2), true));
    

    in a loop.  There will be several objects "Task" in the GroupDataModel.

    What I am not clear is how to get a specific "task" out of the GroupDataModel.

    I tried to use toListOfObjects(), but I don't know how to use it.

    I can't find good examples, although there is some for toGroupOfMaps().

    anyone able to help?

    THX,

    J

    Try this

    toListOfMaps

    QList list = m_model->toListOfMaps();
    
    foreach(QVariantMap item, list){
        // here is logic for compare/find the item by the any value
        if (item["your key"] == your condition){
            //here is your find item
        }
    }
    

    Even logic, you can use toListOfObjects, but instead of QVariantMap use your task object.

    QList list = m_model->toListOfObjects();
    
    foreach(Task *item, list){
        // here is logic for compare/find the item by the any value
        if (item->youkey == your condition){
            //here is your find item
        }
    }
    

    May be a better solution, but hope this works will

  • Two operations are launched: getChildren () .add & one task... the second is always the first :'(

    Hello

    First of all, I'm sorry but I speak very well English, I'm french. I come here to ask you for help. In fact, for two weeks I am trying to solve a problem. I have a controller that does a lot of operations. My goal is to show a progress meter during all database operations. So, I created a class with a method to do this. Below, you can see the code of a task that performs the database operations (he calls a method through its name, its class name and its parameters):

    task2 = new Task<Object>() {
                @Override
                protected Object call() throws Exception {
                    if (params != null) {
                        Object v = null;
                        try {
                            v = method.invoke(service, params.stream().toArray());
                        } catch (IllegalAccessException | IllegalArgumentException |
                                InvocationTargetException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                        return v;
                    } else {
                        Object v = null;
                        try {
                            v = method.invoke(service);
                        } catch (IllegalAccessException | IllegalArgumentException |
                                InvocationTargetException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                        return v;
                    }
                }
            };
    

    Then I get back an anchorpane that contains a progressindicator and I link them:

    spinner.getPi().visibleProperty().bind(task2.runningProperty());
    

    Before execution of the task, I put the anchorpane as a child of the main anchorpane (as reported as root):

     ap.getChildren().add(spinner);
    

    Finally, I start the task and I retrieve the value (the get() method which makes sure that all operations are completed before returning the value... In other cases, it does not...).

    new Thread(task2).start();
            try {
                val = task2.get();
            } catch (ExecutionException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
            return val;
    

    However, I must still wait for the operations of the task in order to see the anchorpane that contains the spinner. The spinner does not appear (it appears when I remove the link) but I tested it with a few colors of background anchorpane. So, I would like to know if you have an idea how I might solve the problem. Is there a way to show the anchorpane before the launch of the task?

    I thank you for your help and have a nice day.

    Vincent.

    Salut / hello

    A task should not be launchedEA in the context of a thread, but as part of a Service (javafx.concurrent.Service). It is possible to be binder on the properties of the service and not those of the task (see title, message, forward and value).

    You'll find help in french as well as a FAQ on JavaFX, here and here.


    A task must be used in conjunction with a Service (javafx.concurrent.Service) and not with a wire. You can then link on the properties of the service instead of the task (see title, message, progress and value properties).

    spinner.getPi().setVisible(true);
    Service backgroundTask = new Service() {
    
        @Override
        public Task createTask() {
            return new Task() {
    
                @Override
                public Object call() {
                    if (params != null) {
                        Object v = method.invoke(service, params.stream().toArray());
                        return v;
                    }
                    Object v = method.invoke(service);
                    return v;
                }
            };
        }
    };
    backgroundTask.setOnSucceeded(workerStateEvent -> {
        spinner.getPi().setVisible(false);
        Object value = workerStateEvent.getSource().getValue();
        [...]
    });
    backgroundTask.setOnCanceled(workerStateEvent -> {
        spinner.getPi().setVisible(false);
    });
    backgroundTask.setOnSFailed(workerStateEvent -> {
        spinner.getPi().setVisible(false);
        Throwable error = workerStateEvent.getSource().getException();
        [...]
    });
    backgroundTask.start();
    		    
                
               
  • Script to wait for Clone task is completed

    Good day, as part of the post, I run a command that enables the NIC and sets the right Port-Group of cloning process. I put a sleep command in each environment is diferrent, so I find myself always change this duration of sleep because the cloning process does not end in the time of sleep and the rest of the script fails. So in order to get rid of the sleep control that I want to capture the CloneVM_Task and pass this parameter to wait-task that will force the completion of the ClonVM_Task. I could just make sure no other tasks are running but this task, but as we all know that alays can't be the case. So that's what I did.

    I begin a deployment of FVO to have an another long running task. Then I run the script.

    If ((Get - PSSnapin - name Vmware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null) {Add-PSSnapin "Vmware.VimAutomation.Core"}

    # Virtual Center details
    $server_address = "MYvCenter name" or IP

    SE connect-VIServer-Server $server_Address - user username-pass password - WarningAction SilentlyContinue


    #Create Master VM Templates
    #
    # Here we import the CSV file with the account information and he piped in a Foreach-object
    # Creating a Variable that imports the csv file that contains all data of the virtual machine

    CD "e:\Scripts.
    $InputFile = import-Csv "E:\scripts\mycloneinput.csv".
    $InputFile | {ForEach-Object

    $ip = $_. VM_IPAddress
    $GName = $_. VM_Guestname
    $TName = $_. Template_name
    $HName = get-VMHost "myhostname" # 1 first Select
    $Desc = $_. Description
    $Dstore = $_. Datastore_Name
    $Spec = $_. Customization
    $Folder = $_. Folder
    $Sfolder = $_. Subfolder
    $NIC = $_. NIC
    $NIC_Lable = $_. NIC_Label
    $Gateway = $_. NIC_Gateway
    $SubnetMask = "255.255.255.0".
    $DNS1 = $_. DNS1
    $DNS2 = $_. DNS2

    Write-host "creation: ' $GName
    Write-host "template name is: ' $TName

    # This takes variables and creates the virtual machine
    Get-OSCustomizationSpec $Spec | Get-OSCustomizationNicMapping | »
    Game-OSCustomizationNicMapping - IpMode UseStaticIP - $ip - $SubnetMask subnet mask - DNS IpAddress $DNS1, $DNS2 - DefaultGateway $Gateway
    New-VM-name $GName - location $Folder - model $TName - host $HName - $Dstore - $Desc Description data store - OSCustomizationSpec $Spec - RunAsync-confirm: $false

    #######################################
    #Waiting for cloning process to finish.
    #######################################

    $$$ Under notes show a little history of how I got to this point.

    $$ Note1: the first attempt, I just captured running tasks and their past to the task pending. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."

    $$ Note2: so I added the If Else loop below that failed, because $RTask never equaled only CloneVM_Task, but was a table of two.

    $$ Note3: I tried to us below to separate the two tasks to help

    # $RTask = get-task-status running (who captured the two tasks running)

    # $Array = $Rtask.Split("") (Errored with the method call failed because [System.Object []] contains a method named 'Split'.)
    # So I tried to divide the table like this. ForEach ($Task in $Rtask.Name - Split("")) {Write-Host "my tasks are:" $Task}


    Get-task-status Running | Export-CSV "E:\scripts\Current_Tasks.csv".
    $InputFile2 = import-CSV "E:\scripts\mmca\mmca_Current_Tasks.csv".
    $InputFile2 | {ForEach-Object
    $RTask = $_. Name
    Write-Host "current task is: ' $RTask
    IF ($RTask - eq "CloneVM_Task") {}
    Write-Host "current task of Clonning is: ' $RTask
    Write-Host "in the meantime the cloning process finish.
    Waiting-task-task $MyTask
    }
    Else {}
    Write-Host "no cloning process is executed.
    }
    }

    # This allows the NIC and set the correct Port Group
    Get-VM-name $GName | Get-NetworkAdapter-name $NIC | Together-NetworkAdapter - NetworkName $NIC_Lable-confirm: $false - StartConnected $true

    }

    When I run the present, I get the following:

    # #This shows the task start Clonning #.

    erverId: /[email protected]:443 /
    Status: running
    IsCancelable: true
    PercentComplete: 5
    StartTime: 03/05/2013 00:52:13
    FinishTime:
    ObjectId: VirtualMachine-vm-382
    Result:
    Description: Clone virtual machine
    ExtensionData: VMware.Vim.Task
    ID: Work-task-2070
    Name: CloneVM_Task
    UID: /[email protected]:443 / task = work-work-2070 /

    #########################################################

    # #Runs through the tasks running.

    Current task: deploy the model to the FVO
    No cloning process is executed

    # Ignore deploy it task #.

    # #Matches the If statement and continues to process #.
    Current task is: CloneVM_Task
    Task current Clonning is: CloneVM_Task
    Wait for the cloning process to complete

    # #Error #.

    Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
    E:\scripts\Working_Create_Master_Templates.ps1:71 tank: 24
    + Wait-task-task < < < < $RTask
    + CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

    $$$ Under notes show a little history of how I got to this point.

    Note1: The first attempt, I have just captured tasks currently running and pending their past to the task. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."

    NOTE2: So I added the If Else loop below which failed because $RTask never equaled only CloneVM_Task, but was a picture of two tasks.

    Note3: I tried to use the following to divide the two tasks:

    $RTask = get-task-status running (who captured the two tasks running)

    foreach ($Task in $Rtask - Split(""))
    {
    {Write-Host "my tasks are:" $Task}
    IF ($Task - eq "CloneVM_Task") {}
    Write-Host "current task of Clonning is: ' $Task
    Write-Host "in the meantime the cloning process finish.
    Waiting-task-task $Task
    }
    Else {}
    Write-Host "no cloning process is executed.
    }


    }

    # #Output the little script above #.

    Current task: deploy OVF model CloneVM_Task
    My tasks are: deploy
    My tasks are: OVF
    My tasks are: model
    My tasks are: CloneVM_Task
    Task current Clonning is: CloneVM_Task
    Wait for the cloning process to complete
    Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
    Online: 11 char: 24
    + Wait-task-task < < < < $Task
    + CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

    I'm new to Powercli and I've scoured Google for a possible answer. I thought I might have a solution that has been published on the VMware PowerCLI Forum, but I couldn't get this to work. Any help would be greatly appreciated.

    #########################################

    I wasn't worried about how to tasks where splits, unless I was trying to follow the import fo the OVF, so that the script went into the loop If and as one of the names for CloneVM_Task then he Treaty. But I got the same error I did in the last version of the above script. That's why I have the version curent thinking that if I exported and then imported the tasks it might make a difference.

    I'm new to Powercli and would like a little help. I am either very close or by a mile off. :-)

    Thank you

    Mitch

    Why don't you store the the task object that is returned when you use the RunAsync switch?

    You can create a loop around the State and wait until the clone job is done.

    $task = New-VM -Name MyVM ... -RunAsync 
    
    while($task.ExtensionData.Info.State -eq "running"){
      sleep 1  $task.ExtensionData.UpdateViewData('Info.State')
    }
    

    The big difference with the Wait-job cmdlet, it is that this will allow you to perform additional work in the While loop.

    Waiting-task the cmdlet waits just until the task is finisned and you can not do anything else.

  • Status of the task put TaskInfo

    Hello

    I tried to get the task status of ApplyStorageDrsRecommendation_Task today and had no luck. I just get 'pending' once again the task completed. To test this part more I wrote some code in c# to turn on the virtual machine, wait and then check the status. Anyone can fix the where I'm going wrong by using TaskInfo with the provided managed object reference.

    name of the VM to power on
    String VMname = 'testvm ';
    Find the MoRef for the virtual machine
    NameValueCollection searchVMCol = new NameValueCollection();
    searchVMCol.Add ("name", VMname);
    EntityViewBase tempMoRefID = vClient.FindEntityView (typeof (VirtualMachine), vClient.ServiceContent.RootFolder, searchVMCol, null);
    VirtualMachine VM = new VirtualMachine (vClient, tempMoRefID.MoRef);
    Turn on the virtual machine
    ManagedObjectReference PowerON_Task_MoRef is VM. PowerOnVM_Task (null);
    Response.Write ("Power on the task:" + PowerON_Task_MoRef + "< BR >");
    Thread.Sleep (4000);
    TaskInfo TaskInfoObj = new TaskInfo();
    TaskInfoObj.Task = PowerON_Task_MoRef;
    Response.Write ("< BR >" + TaskInfoObj.State);

    Thank you

    David

    The problem is the following code:

    TaskInfo TaskInfoObj = new TaskInfo();

    TaskInfo is the type of a property defined with the managed the task object. With the ManagedObjectReference of a task, you must use PropertyCollector to get its property. The TaskInfo isn't supposed to be 'new' ed. If you use open source VI Java API, you Task object and call:

    TaskInfo ti = task.getInfo ();

    In order to clarify the concept, see: http://www.doublecloud.org/2011/06/managedobjectreference-vs-managedobject/

  • Non-blocking with Perl VI API monitor task

    I am writing a perl script that needs...

    1. Suspend a virtual machine
    2. Do 'some other supervision' while the virtual machine in the suspension process
    3. Make sure that the task is complete suspension

    I was looking at the documentation for the API, but also the code example and there are many examples which have helped me understand how to do #1 and to some extent #3 by calling SuspendVM() on the managed virtual computer object (see my sample code "Option 1").  But it is not perfect for #3 and does not allow me to do #2 at all.  API documentation leads me to believe that I should be able to use SuspendVM_Task() on the virtual computer object for a task monitor-a measure of object (see 'Option 2') in my sample code.)

    However, I can't understand how to use this object task to track progress.  I think it must be something like "Block monitor" in my code, but that doesn't seem to work.  Watching a dump of the task object, "info" property seems to not even be there.  I can bless the object to its class real slot (instead of the generic ManagedObjectReference, it starts as), but then the property of the info is just empty.

    I know I probably stopped next to a simple shade of perlOO/perl/perlReference, but can not find where I'm going wrong... any help out there?

    Output of dump of the object of the task

    ========================

    $VAR1 = bless ({}
    'value' = > ' haTask-1808 - vim.VirtualMachine.suspend - 1852795401',
    'type' = > 'task '.
    (}, "ManagedObjectReference");

    Code example

    ==========

    #! / usr/bin/perl - w

    use strict;

    use warnings;

    Use Data::Dumper;

    use VMware::VIRuntime;

    past #./vmSuspend.pl--mot, username - XXXX XXXX - Server XXX.XXX.XXX. XXX - vmname XXXX

    My % opts =)

    'vmname' = > {}

    Type = > "s =",

    help = > "the name of the virtual machine.

    required = > 1,

    },

    'filter' = > {}

    Type = > "s =",

    help = > 'filter to select corresponding virtual machines. "

    required = > 0,

    },

    );

    OPTS::add_options (%OPTS);

    OPTS::parse();

    OPTS::Validate();

    Util::Connect();

    My $retval = 0;

    my $name = Opts::get_option ('vmname');

    My $vm_view = Vim::find_entity_view (view_type = > 'VirtualMachine',)

    filter = > {'name' = > $name});

    my $state = $vm_view-> run - > powerState-> val;

    Print "$name is $state\n";

    # Option 1 - blocking

    # $vm_view-> SuspendVM();

    # Option 2 - non-blocking

    My $suspendTask = $vm_view-> SuspendVM_Task();

    print Dumper ($suspendTask);

    # Block monitor

    # everything in ($suspendTask-> info-> status-> val eq 'running' | $suspendTask-> info-> status-> val eq 'pending') {}

    # < < some other surveillance > >

    #}

    $vm_view-> update_view_data();

    $state = $vm_view-> run - > powerState-> val;

    Print "$name is $state\n";

    Take a look at this script for example: http://communities.vmware.com/docs/DOC-10269 there is a method in there called getStatus() that shows you a task queue is complete before continuing. You are on the right track, but must do a few more things to get the display of the task and make sure that you update the view after sleep/wait and then check again.

  • Access to the content of the problems and configuring scheduled tasks

    Hi all!

    I am new to the community. IM an apprentice in the last year. I'm working with vmware esx / vsphere since August 2009.

    In December 2009 I started to script powershell and powerCLI.

    Maybe someone can help me, I searched for a long time, but I do not know how.

    I have a small script that takes you through some menus. There you can select the data center, the template and insert the name of the virtual machine. Data warehouses and the host or a cluster will automatically get to deploy. In the end, the script creates an INI file like this:

    vmname = test

    Location = VENV40

    Model = w2k3eesp2x32_template

    Cluster_Host = adcv43e.xxx.yyyy .net

    DatastoreSystem = esx40_nfs01_SystemDrives1

    DatastoreSwap = esx40_nfs02_SwapDrives1

    VCenterVENV = xx.yy.xx.yyy

    Now to my problem. The second script should be an infinite loop, looking if there are a few new INI files.

    Due to our policies, we can only deploy during the night (storage overhead). We have 3 "slots".  to 01:00 to 03:00 and 05:00, where we can deploy a virtual machine.

    The second script should get the regular deployment of the Vcenter task and check if there is a "slot" to deploy, if not, check the next night and so on.

    My problems are:

    I can not only the deployment task

    The departure time you have a time difference in the vcenter? (eastern daylight time?)

    When I got the available task, how to create a new one with the Ini file information?

    Someone at - it an idea?

    That's what I have so far. It was just to try if I can get the scheduled task

    1. --------------------------------------------------------------------------------------------

    2. Force load (otherwise VMware.Vim items are not known)

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

    CLS #clearscreen

    $svcRef = new-object VMware.Vim.ManagedObjectReference

    $svcRef.Type = 'ServiceInstance.

    $svcRef.Value = 'ServiceInstance.

    $serviceInstance = get-views $svcRef

    1. This returns a MoRef scheduled task manager

    $schMgr_ref = $serviceInstance.Content.scheduledTaskManager

    1. This returns the actual scheduled task manager object

    $schMgr_obj = get-views $schMgr_ref

    1. The method must be called on the object

    2. The method requires 1 argument.

    3. As the API Ref stipulates that when the parameter is Null, the method will return

    4. all scheduled tasks

    $foo = $schMgr_obj. RetrieveEntityScheduledTask ($null)

    1. The method returns an array of task object references

    {foreach ($task in $foo)

    $infos = (get-view $task) .info

    $taskname = $infos. Name

    $taskdate =($infos.) Scheduler). RunAt

    $task = "$taskname", "$taskdate".

    }

    #----


    Thanking you in anticipation.

    I am looking before I heard you and sorry for my bad English

    Greetings PowaCLI

    There are two problems.

    (1) the property $cloneSpec.Location.Pool must a resourcepool pint. In the script below I took the default value (and hidden) resourcepool called Resources.

    (2) the $spec. Scheduler property must be one of AfterStartupTaskScheduler, OnceTaskScheduler, RecurrentTaskScheduler.

    You will probably need to put the $spec. Scheduler.runAt to the property a value if you want to avoid the task starts immediately.

    $taskName = "Create new VM"
    $taskHours = 1,3,5
    $iniPath = "D:\__IPA_PowerCLI_VM\INI\"
    
    Connect-VIServer 10.11.4.209
    
    $si = Get-View ServiceInstance
    $schedMgr = Get-View $si.Content.scheduledTaskManager
    
    $scheduled = @()
    $schedMgr.ScheduledTask | %{Get-View -Id $_} | %{
         if($_.Info.Name -like ($taskName + "*")){
              $scheduled += $_.Info.NextRunTime.ToLocalTime()
         }
    }
    
    $now = Get-Date -Minute 0 -Second 0
    if($now.Hour -gt $taskHours[-1]){
         $now = $now.AddDays(1)
    }
    
    $iniFiles = Get-Item ($iniPath + "*") -Include "*.csv"
    foreach($iniFile in $iniFiles){
         $params = Import-Csv $iniFile  # -UseCulture
         $notScheduled = $true
         while($notScheduled){
              $taskHours | %{
                   $schedTime = $now.Date.AddHours($_)
                   if(!($scheduled -contains $schedTime)){
                        $spec = New-Object VMware.Vim.ScheduledTaskSpec
    
                        $spec.Action = New-Object VMware.Vim.MethodAction
    
                        $arg1 = New-Object VMware.Vim.MethodActionArgument
                        $arg1.Value = New-Object VMware.Vim.VirtualMachineRelocateSpec
                        $arg1.value = (Get-Folder vm| Get-View).MoRef  # (Get-Folder $params.Location| Get-View).MoRef
                        $spec.Action.argument += $arg1
    
                        $arg2 = New-Object VMware.Vim.MethodActionArgument
                        $arg2.value = "TESTVM"
                        $spec.Action.argument += $arg2
    
                        $cloneSpec = New-Object VMware.Vim.VirtualMachineCloneSpec
                        $cloneSpec.Location = New-Object VMware.Vim.VirtualMachineRelocateSpec
                        $cloneSpec.Location.Datastore = (Get-Datastore qesx00_nfs01_SystemDrives1| Get-View).MoRef
                        $cloneSpec.Location.Pool = (Get-cluster QVENV00_Cluster00 | Get-ResourcePool Resources  | Get-View).MoRef
    
                        $arg3 = New-Object VMware.Vim.MethodActionArgument
                        $arg3.value = $clonespec
                        $spec.Action.argument += $arg3
                        $spec.Action.Name = "CloneVM_Task"
                        $spec.Description = "Test"
                        $spec.Scheduler = New-Object VMware.Vim.OnceTaskScheduler
    
                        $spec.Enabled = $true
                        $spec.Name = $taskName + " " + $now
    
                        $entity = Get-Template IPAtestmaschine_Luca | Get-View
    
                        $schedMgr.CreateScheduledTask($entity.MoRef,$spec)
    
                        $notScheduled = $false
                   }
              }
              $now = $now.AddDays(1)
         }
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to view and monitor running tasks?

    I need to be able to monitor a running task, and it does not work:

    While ($clntask.Info.State - eq 'running' - or $clntask.Info.State - eq "pending")

    {

    $clntask = get - see $clntask. MoRef

    Write-Host "on hold".

    }

    I'll assume that you used a SDK method to start the task.

    I'll take the method of ExitMaintenanceMode_Task for example.

    *) the SDK .. ._Task methods return a MoRef (a kind of pointer) on a Task object.

    *) to get the task of object properties use us the cmdlet Get-view to get a copy of the actual object of the task

    *) we check the property which gives the status of the task. The State can be: error in waiting, running or success.

    *) If the status is "running" or "pending" wait US 2 seconds and get a new copy of the Task object. The VI will not update the properties of our copy of the Task object

    *) Where the State is not 'running' or 'pending' out us the while loop

    
    ......
    $taskMoRef = $esx.ExitMaintenanceMode_Task(0)
    
    $task = Get-View $taskMoRef
    while ($task.Info.State -eq "running" -or $task.Info.State -eq "queued") {
      sleep 2
      $task = Get-View $taskMoRef
    }
    

    Just saw your response. My comments are still valid.

  • Is there a more effective way to interrogate this cache?

    I have an interesting dilemma that I don't know how to fix. I have a cache of objects ClientType (see below). I'm trying to find the CustomerGroups that contain a password key for the customerValues card, which also have a CustomerValue.value between a high and low value. In others, do me all the CustomerGroups who have a client of "101" code, which contains a CustomerValue between 50 and 250. I have this fine work to aid request a customer filter - but the problem I have is that the cache contains approximately 500,000 items. The research must be applied to all objects, and because most of the clients contain a customervalue - we end up deserialization of objects to perform the comparison of the value in the cache that fills the eden space so quickly (in a multi-threaded env) that we are to throw himself into the holder space. This causes performance issues because it weakens the large global catalogs. We use 3.5.2 consistency and all are active POF. The works of current query - I'm looking for the most effective way to do with respect to the use of time and lot. I am willing to trade increased Rightsizing memory use for best performance - which means the addition of index / improves the news is very good. The big problem is fill the eden space so quickly. Any ideas?
    class CustomerGroup
    {
        Set<Customer> customers ;
    }
     
    class Customer
    {
        Map<Integer, CustumerValue> customerValues;
    }
    
    class CustomerValue
    {
      private int value ;
      private boolean isNew ;
    }

    Simi74 wrote:
    Robert - appreciate the help. The question I have for this juicer is that the price is related to a specific customer. For example:

    ClientType contains 1 client.

    This customer has 2 CustomerValues in his card.

    These entries to resemble the following:

    Key: 100
    Value: CustomerValue.value = 10
    
    Key: 200
    Value: CustomerValue.value = 50
    

    If I'm following your logic, the extractor that you recommended would apply to values (that is to say, 10, and 50). So, if I searched for CustomerGroups that have values between 5 and 15,
    return the ClientType as one of the values is 10. However, I also this map to a specific client code (in this case either 100 or 200 - they key in the matching values). Thus, the query is really more like 'give me all the objects ClientType to 100 client code where the value is between 5 and 15'. I should only get this object if the client code is 100. I can't do a ContainsFilter with the client code and use BetweenFilter because using an AllFilter since this logic would be tantamount to a 'false' positive press 200. Logical in this case being 'the ClientType contains a 200 client' who is true and does the ClientType contain a value between 5 and 15, which is also true, because the value list has 10 and 50. But it must return this object ONLY if the customer key passed is 100. The example below is a false positive.

    /* following code returns the object, but should not! */
    Filter[] filterArray = { new ContainsFilter( new CustomerKeyExtractor(), new Integer( 200 ) ),
    new BetweenFilter( new CustomerValueExtractor(), 5, 15) };
    
    Filter filter = new AllFilter( filterArray ) ; 
    

    So my question is how to apply a hint on the CustomerKey/CustomerValue as a whole without deserialize all the objects for each search? Or is it a problem with the structuring of the object? If that's the problem - of recommendations on alterations are welcome as well fix this filtering.

    Ah, ok, got it now...

    What is the client code?

    Is it just a key generated with an arbitrary value, or is it a thing of enum type (key to a value of metadata property with only a finite number of different property names, etc.) with only a small number of different codes in all of the cache?

    If it's a thing of enum type, then instead to extract only the 'value' s as integers, you can extract pairs ' value: code "represented as long with the code being the high 32 bit which would be always classifiable and allow querying: instead of valueMin and valueMax, you would code: valueMin and code: valueMax as the beach.

    If it's an arbitrary generated value, then it is a bit more problematic (extraction POF does not support crossed down in individual map entries, so it can't be indexed without the plan, including the entire Customer objects to deserialize), but I wouldn't address that if it is not necessary, so please indicate if the previous approach fits your needs :). In the case that it is not, you would probably want to the extracted value to be structured on the other hand, the value is the code and 32-bit higher at least 32. You must also write a custom filter that supports the index which is able to use this index going in the direction of Alexey BetweenFilter but with additional controls for the code... In addition, you must check whether the consumption of memory of the filter can be too high...

    Best regards

    Robert

  • Read-through Caching with time expired and nearly cache (foreground)

    We are experiencing a problem with our custom CacheLoader and near cache with expiration / delay on the storage card scheme.

    I was under the assumption that it was possible to have an expiry time configured on the system of support and that the cache near object was expelled during the backup object has been expelled. But, according to our tests, there must be a delay expires on the regime of front also.

    My hypothesis is correct, as there is not an automatic eviction on the cache near (foreground)?

    With this config, close cache is never cleared:
                 <near-scheme>
                      <scheme-name>config-part</scheme-name>
                      <front-scheme>
                            <local-scheme />
                      </front-scheme>
                      <back-scheme>
                            <distributed-scheme>
                                  <scheme-ref>config-part-distributed</scheme-ref>
                            </distributed-scheme>
                      </back-scheme>
                <autostart>true</autostart>
                </near-scheme>
    
    
                <distributed-scheme>
                      <scheme-name>config-part-distributed</scheme-name>
                      <service-name>partDistributedCacheService</service-name>
                      <thread-count>10</thread-count>
                      <backing-map-scheme>
                            <read-write-backing-map-scheme>
                                  <read-only>true</read-only>
                                  <scheme-name>partStatusScheme</scheme-name>
                                  <internal-cache-scheme>
                                        <local-scheme>
                                              <scheme-name>part-eviction</scheme-name>
                                              <expiry-delay>30s</expiry-delay>
                                        </local-scheme>
                                  </internal-cache-scheme>
                                  <cachestore-scheme>
                                        <class-scheme>
                                              <class-name>net.jakeri.test.PingCacheLoader</class-name>
                                        </class-scheme>
                                  </cachestore-scheme>
                                  <refresh-ahead-factor>0.5</refresh-ahead-factor>
                            </read-write-backing-map-scheme>
                      </backing-map-scheme>
                      <autostart>true</autostart>
                      <local-storage system-property="tangosol.coherence.config.distributed.localstorage">true</local-storage>
                </distributed-scheme>
    With this config (added expiration-behind front-scheme), near cache gets cleared.
            <near-scheme>
                      <scheme-name>config-part</scheme-name>
                      <front-scheme>
                            <local-scheme>
                                 <expiry-delay>15s</expiry-delay>
                            </local-scheme>
                      </front-scheme>
                      <back-scheme>
                            <distributed-scheme>
                                  <scheme-ref>config-part-distributed</scheme-ref>
                            </distributed-scheme>
                      </back-scheme>
                <autostart>true</autostart>
                </near-scheme>
    
    
                <distributed-scheme>
                      <scheme-name>config-part-distributed</scheme-name>
                      <service-name>partDistributedCacheService</service-name>
                      <thread-count>10</thread-count>
                      <backing-map-scheme>
                            <read-write-backing-map-scheme>
                                  <read-only>true</read-only>
                                  <scheme-name>partStatusScheme</scheme-name>
                                  <internal-cache-scheme>
                                        <local-scheme>
                                              <scheme-name>part-eviction</scheme-name>
                                              <expiry-delay>30s</expiry-delay>
                                        </local-scheme>
                                  </internal-cache-scheme>
                                  <cachestore-scheme>
                                        <class-scheme>
                                              <class-name>net.jakeri.test.PingCacheLoader</class-name>
                                        </class-scheme>
                                  </cachestore-scheme>
                                  <refresh-ahead-factor>0.5</refresh-ahead-factor>
                            </read-write-backing-map-scheme>
                      </backing-map-scheme>
                      <autostart>true</autostart>
                      <local-storage system-property="tangosol.coherence.config.distributed.localstorage">true</local-storage>
                </distributed-scheme>

    Hi Jakkke,

    Plan near Cache allows configurable levels of most basic cache coherence cache expiration based versioning of data cache according to the requirements of consistency of the cache invalidation based. Near Cache is commonly used to achieve the performance of the cache replicated without losing aspects of scalability of the replicated cache, and this with a subset of data (based on SRM or UPM) in the of the near cache and all the data in the cache close. Updates of can automatically trigger events to invalidate the entries in the invalidation strategy-based (present, all, none auto) configured for the cache close.

    If you want to expire the entries in the and , you must specify a time-out on the two schemes as mentioned by you in the last example. Now if you are to expire items in the for the reason that they get loaded from the cache-store but remain even keys (only the values should be updated in the cache store), so you should not set the expiration delay on the mention rather the invalidation strategy as a gift. But if you want to have a different set of entries in after a specified delay so that you need to mention this in the configuration of .

    Near cache has the ability to keep the plan before and backup data system synchronized, but the expiration of the entries is not synchronized. Still, avant-regime is a subset of background.

    I hope this helps!

    See you soon,.
    NJ

  • Maybe you are looking for

    • There is still a huge problem of compaction of the mailboxes

      Once more I heard a person in great distress because Thunderbird removed some critical mail messages. In this case they went to get the mail and gave him a TB ALERT, and told him he had no place in her dressing room IN (there was a huge 20 messages).

    • iMac (24 inch, early 2009) freezes and then thaws

      iMac (24 inch, early 2009), frequency of 2.66 Ghz Intel Core 2 Dup, NVIDIA GeForce 9400 256 MB - no reason apparent other than a mouse click randomly, the computer freezes for anything between a few minutes and maybe 15-20 minutes.  Then, he thaws an

    • No sound on Windows XP

      Original title: Samsung CD-ROM sc-148 has its lost Windows xp home, with /sound of Samsung CD-ROM sc-148

    • System files integrity check and repair the error code = 0 x 4005

      I tried to upgrade Vista Home Premium Service Pack 2 several times. Now, after running Startup Repair, I'm - Root cause found: not specified system configuration change might have caused the problem. Result: doesn't have a = 0 error code x 4005 takes

    • Placa video 913W

      ESSA Plaça esta causando carrots com problemas a cast (esmaecida, almost apagada) e. I'll can not. o programa e Vista Home Premium. O what to do prteciso? a placa mae P7S1066-M, e compativel e? monitor AOC 19 ", qual a Resolução better? Programas as