pinit
The pinit command copies the service model data of the publish environment to the specified cells. Initializing a cell does not remove status values from component instances.
If publish from BMC Atrium CMDB is enabled, then the cells are automatically initialized with the data of the Atrium Publish environment to which they are assigned, and default management data is also created on the cells. Normally, the BMC Impact Publishing Server initializes new cells automatically. You might need to use the pinit command to restore a cell's service model when it is not in sync with the impact service model of BMC Atrium CMDB.
If publish from BMC Atrium CMDB is disabled, then you must publish the management data manually before the components and impact relationships by using the pposter CLI command.
For more information for a Direct Publish environment, see Initializing-a-cell-from-a-Direct-Publish-environment.
pinit syntax
pinit command options
The following table lists the command options for pinit.
no options are required for {{pinit}}.
pinit options
Option | Description |
---|---|
<common options> -c -h -? -i -q -l -p -t -v -z | |
-a | Initializes HomeCell or the cells defined by CellAliases |
-f | Forces the cell initialization without prompting you to confirm the initialization action |
-ncellName1[,cellName2[...]] | For a BMC Atrium CMDB publish environment: specifies the cells to initialize or reinitialize with the impact service model. |
-sDescription | Describes request |
-eEnvID | Sets environment identifier to EnvID. The default value is PROD. |
When you execute a pinit command for a specific environment, only the data for that environment is reinitialized. Therefore, if the same cell contains different environments (for example, Atrium Publish and CellPublish), then only part of the data of the cell is reinitialized.
pinit examples
This section provides examples of using the pinit command to initialize or reinitialize a cell with service model data.
Initializing a cell with the production service model data from the BMC Atrium CMDB
To initialize or reinitialize a cell whose name is ShortHostName with the BMC Atrium CMDB production service model, type the following command. (The ShortHostName is the unqualified version of the host computer name.)
Initializing a specific cell with the BMC Atrium CMDB production service model
To initialize a specific cell named jana with the BMC Atrium CMDB production service model, enter the following command:
Initializing all BMC Atrium Core Console-registered cells with the BMC Atrium CMDB production service model
To initialize all the cells registered with the with the BMC Atrium CMDB production service model, enter the following command.
If one or more of the specified cells cannot be initialized, for example, if a cell is not running, none of them is initialized and the request fails.
Initializing a cell's data for a Direct Publish environment
To initialize the cell name austin in the Direct Publish environment Sales, enter the following command:
This command removes all data of the service model in the Direct Publish environment Sales. In the cell, this corresponds to data that has the slot publish_env_id set to DirectPublish.Sales.
pinit return codes
For information about CLI return codes, see Return codes for Publishing Server CLIs.