Top
ServerView Resource Orchestrator V3.4.0 Automatic Quarantining Function User's Guide
FUJITSU Software

3.2.4.2 Executing the Script for Linking with L-Servers

It is possible to automatically link added virtual PCs with L-Servers by registering the script created in "3.2.4.1 Creating the Script for Linking with L-Servers" in the OS Task Scheduler so it is executed periodically.

The procedure for registering the script for linking with L-Servers in the OS Task Scheduler and configuring it to be executed periodically is as follows:

  1. Copy the script file created in "3.2.4.1 Creating the Script for Linking with L-Servers" to the desired storage location.

    In addition, if there are virtual PCs which are excluded from the targets of batch linking, copy the definition file for excluding virtual PCs from the targets of batch linking to the same location.

  2. Log in to the admin server as the OS administrator.
  3. Start the Task Scheduler.

    The icons to click to start the Task Scheduler are as follows:

    • For Windows Server 2012 and Windows Server 2012 R2

      [Start]-[Administrative Tools]-[Task Scheduler]

    • For Windows Server 2016

      [Start]-[Windows Administrative Tools]-[Task Scheduler]

  4. Set the following in the Task Scheduler:
    • Task name

    • Task start date and time

    • The script file copied in step 1 as the program to be executed.

Example

  • Specifying so that execution results will be output to D:\tmp\auto_convert.log

    Script_for_linking_with_L-Servers >> D:\tmp\auto_convert.log 2>&1
  • Sample execution results

    [2017-07-28 10:57:34.62] auto convert Start 
    VmGuest export Start 
    VmGuest export End 
    VmGuest Convert Start 
    VmGuest:/VMHostPool/vmesx2/win2003 convert failed 
    VmGuest Convert End 
    display convertVMtoLserver.csv start 
    VMGuestName,Label,Comment,FolderName,Result,Note 
    /VMHostPool/vmesx2/win2003,,,,NG,FJSVrcx:ERROR:67154:/VMHostPool/vmesx2/win2003:not found 
    display convertVMtoLserver.csv end 
    convert lserver or make xml file failed. 
    [2017-07-28 10:57:37.92] auto convert End