11.5 Creating Jobs

The CREATEJOB.VBS script creates a new job on a specific computer. This script does not allow you to set properties from the command-line. Therefore, you should use this script only when creating jobs that use default Knowledge Script properties or when you have created custom Knowledge Scripts with the appropriate properties, including the scheduling interval, parameter values, actions, action parameters, and advanced options.

The following example illustrates the command-line statement for this script:

c:\Program Files\NetIQ\AppManager\bin\netiqcmd.exe createjob.vbs
/user=miles /password=pwd /server=shasta /database=qdb1 /ksname=NT_CpuLoaded /target=mango

This script uses the following command-line arguments:

Parameter

Description

/USER

username of the SQL Server login account used to access the AppManager repository.

Not required if using Windows authentication.

/PASSWORD

Password for the SQL Server login account.

Not required if using Windows authentication.

/SERVER

Windows name of the server where the AppManager repository you want to work with is installed.

The default is the name of the local computer. Not required if using the default.

/DATABASE

Name of the AppManager repository you want to work with.

The default AppManager repository name is QDB. Not required if using the default.

/DEBUGGING

Flag to turn on debugging. If set to TRUE, the script displays descriptive information about any SQL errors that occur in a message box.

The default is FALSE. Not required if using the default.

/KSNAME

Name of the Knowledge Script you want to run on the selected computer. Include the category prefix for the Knowledge Script. For example, Winbasic_CpuLoaded.

Be sure the Knowledge Script properties have been set properly and saved, either under the existing Knowledge Script name or with a new Knowledge Script name.

This parameter is required.

/TARGET

Name of the computer where you want the Knowledge Script to run. You can only specify one computer name. Server groups and multiple computer names are not supported.

This parameter is required.