Restoring a Monitoring Policy Template Using the Command Line

You can restore a monitoring policy template from the .xml file that contains the template configuration settings. This .xml file was created at the time you saved the template as a script by using the Template Creation wizard.

You can restore templates in the following scenarios:

  • You recently created the script using the Template Creation wizard, and now you want to run the script to create the template.
  • You accidentally deleted a template, and you want to retrieve the template.

Before You Begin

You must have saved the template configuration as a script during the template creation. For instructions, see Creating a Monitoring Policy Template.


  1. Log onto the computer where you saved the script.
  2. At the command line, go to the Installation_Directory_Path/Base directory and run the following command to log on to the CommServe:

    qlogin -cs commserve_host_name -u user_name

  3. To run the script (.xml file), type the following command:

    qoperation execute -af Path_to_XML_File

  4. To log off the CommServe, type the following command: