Copying polls across domains

Use the get_policies.pl program to copy your poll policies from one network domain to another, or between a file and a domain.

Before you begin

If you provide a domain name with either the -to or -from options, you must be connected to the NCIM and NCMONITOR databases. The connections are created based on the settings in the DbLogins.DOMAIN.cfg file, or the DbLogins.cfg file if no domain-specific file is found.

The domain provided on the command-line interface (CLI) must have an entry in the domainMgr NCIM table.

Procedure

  1. Change to the NCHOME/precision/scripts/perl/scripts directory and locate the get_policies.pl program.
  2. Run the get_policies.pl program to copy poll policies.
    The following table describes the possible actions and what to enter on the CLI.
    Action Entry on the CLI
    Copy all poll policies directly from one domain to another ncp_perl get_policies.pl -from domain=SOURCE -to domain=DESTINATION -ncim_password NCIM_password -ncmonitor_password NCMONITOR_password
    Copy only selected poll policies from one domain to another ncp_perl get_policies.pl -from domain=SOURCE -to domain=DESTINATION -policy "policy_name1" -policy "policy_name2"
    Copy all the poll policies from a domain to an XML file ncp_perl get_policies.pl -from domain=DOMAIN_name -to file=filename.xml -password NCIM_password
    Copy all the poll policies from an XML file to a domain ncp_perl get_policies.pl -from file=filename.xml -to domain=DOMAIN_name
    Copy only selected poll policies from a domain to a file ncp_perl get_policies.pl -from domain=DOMAIN_name -to file=filename.xml -policy "policy_name1" -policy "policy_name2"