11.1 Understanding Command-line Scripting

AppManager allows you to automate many common tasks using command-line scripts and calls to the NetIQOLE automation object. The NetIQOLE automation object uses the ODBC SQL Server driver to connect to the SQL Server where a QDB has been installed and can be used in conjunction with a scripting host to enable you to perform many AppManager activities without using the Operator Console interactively. Command-line scripts can be especially powerful because they give you the flexibility to create batch files that can:

  • Encapsulate multiple activities

  • Automate frequent tasks

  • Run unattended to perform tasks at off-peak hours

  • Carry out site-specific policies

For example, you may want to create batch files that start jobs or automatically acknowledge certain types of events.

To illustrate how you can use NetIQOLE in scripts, AppManager includes several sample scripts located in the c:\Program Files\NetIQ\AppManager\scripts folder on the computer where the Operator Console is installed.

NOTE:For more detailed information about using NetIQOLE object calls and the methods and properties available, see the NetIQ OLE Object Reference Guide for AppManager, available on the AppManager Documentation page.