Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/IT Desktop Management Configuration Guide


8.10 resetnid.vbs (resetting the host ID)

This section describes the resetnid.vbs command, which resets the unique ID (host ID) which is generated by the agent in order to distinguish devices from each other.

Functionality

A host ID is automatically created when an agent is installed.

If you install an agent by using the disk copy functionality, the host ID must be reset on the copy-source computer prior to the copy so that a new host ID will be created on the copy-destination computer. The host ID for the agent can be reset by executing the resetnid.vbs command on the copy-source computer. As the old ID is reset, a new host ID is created when the agent is installed, and the computer will be able to be identified with a unique ID.

Tip

If you install an agent via a disk copy without executing the resetnid.vbs command, the copy-destination computer is defined as an identical device to the copy-source computer. In such cases, because two or more computers are identical, execute the resetnid.vbs command on those computers and go to the Settings module, Discovery, and then Managed Nodes to delete the device information for the computers.

When the resetnid.vbs command is executed on a computer that was once identified by JP1/IT Desktop Management, the host IDs assigned to the computer before and after the command execution are both registered to JP1/IT Desktop Management. Accordingly, two instances of the device information are displayed per computer. However, you can update the view by deleting both device information instances in the Settings module by selecting Discovery, and then Managed Nodes. After this operation, only the latest device information will be displayed.

Tip

To reset the host ID on the computer on which the site server is installed, perform the procedure described below. If you do not perform this procedure, the operation logs managed on the site server cannot be searched.

  1. Execute the resetnid.vbs command.

  2. Restart the site server service (JP1_ITDM_Remote Site Service).

  3. Specify the -node option, and then execute the recreatelogdb command.

Important note

Do not execute the resetnid.vbs command on a device on which the network monitor is installed.

If you execute the resetnid.vbs on the device on which the network monitor is installed, 2 instances of the device information appear per computer. To resolve this problem, you need to perform the following: Temporarily disable the network monitor. After that, in the Settings module, select Discovery and then Managed Nodes, and then temporarily delete both device information stances.

Execute this command on a computer on which the agent is already installed.

Format

resetnid.vbs /nodeid [ /i]

Argument

/nodeid

Always specify this argument. If this argument is omitted, the command cannot be executed.

/i

Displays, on the user's computer, the dialog box for selecting whether to execute the command and the dialog box for displaying execution results.

Storage location

agent-installation-folder\bin\

Notes

When the resetnid.vbs command is executed, the time required is equal to the shortest time of the intervals set for the fields before a new host ID is created. The time intervals are defined in the agent configuration menu Basic Settings, under Agent Basic Settings.

Return value

The following table shows the return values of the resetnid.vbs command.

Return value

Description

0

The command finished normally.

10001

Command execution was canceled on the user's computer.

10011

The argument syntax is incorrect.

10051

You do not have permission to execute the command.

10101

Failed to reset the host ID.

10150

Failed to reset the host ID.

Example

The following example shows use of this command to reset the host ID.

resetnid.vbs /nodeid

Related Topics: