11.2 About the Sample Command-line Scripts

AppManager includes several sample command-line scripts and a sample scripting host, netiqcmd, for running the scripts. These sample scripts only illustrate a few common activities. Depending on your level of programming skill and knowledge of AppManager, far more complex scripting is possible through NetIQOLE.

The following sample command-line scripts are available:

Script Name

Description

ackevent.vbs

Acknowledges an existing AppManager event.

AddChildJob.vbs

Adds a child job to an existing parent job.

AddToMonPolicy.vbs

Adds a Knowledge Script group to a monitoring policy.

CloseEvent.vbs

Closes an existing AppManager event.

CloseJob.vbs

Closes an existing AppManager job.

CreateJob.vbs

Creates a new AppManager job on a specified target computer.

CreateKSGroup

Creates a new Knowledge Script Group.

DeleteEvent.vbs

Deletes an existing AppManager event.

DeleteJob.vbs

Deletes an existing AppManager job.

DumpGraph.vbs

Dumps graph data from a data stream in comma‑delimited form to the computer screen or a file.

KSCheckin

Checks a Knowledge Script into the QDB.

KSCheckout

Checks a Knowledge Script out of the QDB.

RemoveFromMonPolicy

Removes a Knowledge Script Group from a monitoring policy.

RemoveKSGroup

Deletes a Knowledge Script Group.

StartJob.vbs

Starts an existing AppManager job.

StartKSGroup

Creates new jobs based on the members of the Knowledge Script Group.

StopJob.vbs

Stops an existing AppManager job.

Refer to the command-line reference Help for each sample script to determine the information each script requires to run. For example, the AckEvent.vbs script requires the event ID.

At a command prompt, type netiqcmd.exe and the script name. For example, to display usage information for the AckEvent.vbs script, type:

c:\Program Files\NetIQ\AppManager\scripts\netiqcmd.exe ackevent.vbs

The Help includes a brief description of the sample script, a usage example, and a list of script parameters.