Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

Home > Success Center > Kiwi Syslog Server > Kiwi Syslog Server Administrator Guide > Create scheduled tasks > Create a scheduled task to run a script

Create a scheduled task to run a script

Table of contents
No headers

Create a Run Script task to run a script. You can schedule the task to run at regular intervals.

For information about writing scripts to use with Kiwi Syslog Server, see Scripting resources.

  1. From the Kiwi Syslog Service Manager, choose File > Setup.
  2. In the left pane of the Setup dialog, right-click Schedules and select Add new schedule.

    File:Success_Center/Reusable_content_-_InfoDev/Kiwi_Syslog_Server_Admin_Guide/KSS_Scheduled_Task_Updates/0020-Create_scheduled_tasks/0040-Create_a_scheduled_task_to_run_a_script/gs-schedules-create-new.png

  3. Replace the default name with a descriptive name.

  4. As the Task Type, select Run Program.
  5. As the Task Trigger, specify when you want the archive task to run:
    • To schedule the task, select On a schedule. Then specify the start date, frequency, end date, and any exceptions on the Schedule tab.
    • To run the task each time you start or stop the Kiwi Syslog Server application or service, select On app/service startup or On app/service shutdown.
  6. On the Program Options tab, complete the following fields:

    Script file name

    Enter the path and file name of an existing script file or of the file to be created.

    Script description Describe the purpose or function of the script.
    Script language

    Select the scripting language.

    Windows Script provides script engines for the following languages, which have similar feature sets.

    • VBScript: a variation of Visual Basic or VBA (Visual Basic for Applications) used in MS Word and Excel.

    • JScript: a variation of Java Script used in web pages.

      Consider JScript if you are familiar with Java Script. Also, JScript is usually faster than VBScript at performing string manipulations.

    To use one of the following languages, you must install the Active Scripting engine for that language:

    • PerlScript
    • Python
    • RubyScript
    Field Read/Write permissions

    Select the groups of fields that Kiwi Syslog Server can access:

    • When you grant read access to a group of fields, their values are copied into the script variables and are readable from within the script.
    • When you grant write access to a group of fields, their values are copied from the script variables and replace the equivalent program fields.

    Each time a script runs, the available message fields are copied to the script variables and back again upon completion of the script. The copying takes time and uses CPU cycles. To improve script performance, SolarWinds recommends granting read and write access only to the variables used in the script.

    For more information about the fields in each group, see Script variables.

  7. To email or save the report generated each time the clean-up task runs, select one or more options on the Run Program Notification tab.
    • To email the report to multiple recipients, separate the list of email addresses by commas or semicolons.
    • If you save the report to a file, insert date and time variables in the file name to ensure that it is unique. If the file name is not unique, Kiwi Syslog Server overwrites the existing file when it creates a new file.
  8. Click Apply to save your changes.
Last modified
16:42, 23 Mar 2017

Tags

Classifications

Public