Skip to main content

NightWatchman Enterprise

Step through populating hierarchies with the Import Wizard

The UNASSIGNED BUILDING group has a number of computers that need to be assigned to various buildings in the London node. The London node is empty – there are no buildings for this location.

Tip

In this tutorial, we are going to:

  1. Run an unattended import using the map machines to groups script to associate computers with buildings in the London group.

  2. Discover conflicts after the silent install.

  3. Run the import again in interactive mode to resolve these conflicts.

You are not able to resolve conflicts that arise because the Conflict Resolution dialog is not used in an unattended import. You need to run the import again but in interactive mode to determine what to do with the conflicts.

Clients
Before you start the Import Wizard

Before you start the Import Wizard, you need to populate the input file for the script you are going to use. We also recommend you do the following:

  1. Stop the NightWatchman ConsoleService.

  2. Create a backup of the Agility Framework Reporting database.

  3. Restart the NightWatchman central service.

To run the Import Wizard successfully, you must be a database administrator or have been added to the Import Wizard database on the Agility Framework database server.

Clients London

To enable the Import Wizard to do the work for us, we need to tell it how certain named computers map onto specific buildings. NightWatchman import script have an associated input file located in the same directory.

C:\Program Files\1E\NightWatchman Management Center\ConsoleService\ImportScript

For Map Machines, the import script is called Map_Machines_To_NWM_StagingTable.vbs. For the Import wizard to process this file successfully, we edit the associated input file where the format of each line is

Level1,Level2,Level3,Level4,Level5,NetBiosName,DomainName
  • Levels 1-5 are the levels of the group hierarchy that the computer (identified by its NetBiosName and DomainName) is placed.

For example, to import a computer called ACMERR13 on the ACME domain into the London node we update the file with:

EMEA,UK,England,London,12a Trafalgar Road,ACMERR13,ACME

where the hierarchy is EMEA, UK, England, London, 12a Trafalgar Road. As the 12a Trafalgar Road group does not yet exist in the hierarchy, it will be created during the import.

We define a new line for each computer we import to the hierarchy.

230733780.png
Starting a unattended import

To run the Import Wizard in unattended mode, open a command prompt and change directory to where the Import Wizard is located:

C:\Program Files\1E\NightWatchman Management Center\ConsoleService

Run:

ImportWizard.exe 
-IsSilent 
-provider_vbscriptfile="ImportScript\Map_Machines_To_NWM_StagingTable.vbs" 
-tierleveltype='"location"

(question) If you want to know more about import parameters, see Import Wizard command line parameters.

Note

The Import Wizard can be run in unattended mode, during which it will not display any user interface. This is particularly suited to running the Import Wizard as a scheduled task. However, note that any conflicts encountered during a silent import will not be resolved, and these machines will not be moved to the appropriate location/organization tier. Please check ImportWizard.exe.log for more information. To address the conflicts, we run the Import Wizard interactively (without the -isSilent switch).

Running an interactive import to resolve conflicts

To run the Import Wizard in interactive mode, change to the directory where it is located.

C:\Program Files\1E\NightWatchman Management Center\ConsoleService

Run:

ImportWizard.exe -provider_vbscriptfile="ImportScript\Map_Machines_To_NWM_StagingTable.vbs" -tierleveltype='"location"
230733785.png

(question) If you want to know more about import parameters, see Import Wizard command line parameters.

230733778.png
  1. On the Welcome screen, click Next.

  2. In the Data Import Script dialog, the Select the script: field is already populated with the location of your input file (derived from the command-line).

    Providing your import parameters
  3. Click Next to continue.

  4. In the Confirmation dialog, click Next to start the import, Back to return to the Data Import Script dialog or Cancel to abort the import.

    Confirming your actions
  5. On the Import Progress screen, the progress of your import is displayed.

    Progress of your import

    The statuses are:

    230733777.gif – Succeeded

    230733774.gif – Failed

    230733775.gif – In progress

    230733776.gif – Not started

    230733773.gif – To do

    You may be prompted to resolve conflicts. In this particular instance, ACMESMRT2 has been referenced twice.

    Resolving your import conflicts

    To resolve the conflict:

    1. Choose the correct location for ACMESMRT2 and click OK. The import resume with until all records have been successfully imported.

    2. Click Next to go to the final page of the Import Wizard.

    3. To exit the Import Wizard, click the Finish button.

    NightWatchman Console displays the resolved conflict.

    The Completion screen
  6. After the import, ACMESMRT2 is placed under 6 Peach Street

    After the import