pclassinfo

The pclassinfo command performs the following task:

  • Compare the service model class definitions on a specific cell or cells with the service model class definitions in the BMC Atrium CMDB and list the differences between them.
  • Export the service model class definitions from the BMC Atrium CMDB.

pclassinfo syntax

pclassinfo <common options> [-n <cellName1>[,<cellName2>[...]] |-a | -x]
[-o <OutputFile>] [-s Description]

pclassinfo command options

The following table lists the options for pclassinfo.

There are no required options for pclassinfo.

pclassinfo options

Options

Description

<common options>
-? -c -h -i -l -p -q -t -u
-v -z

See Common command options for Publishing Server CLIs.

-a

Specifies to retrieve the service model classes from ALL the cells and compare them with the BMC Atrium CMDB service model classes

-n cellName1[,cellName2[...]]

Specifies the specific cell or cells from which to retrieve the service model classes and compare them with the BMC Atrium CMDB service model classes

On Windows platforms, you must enclose the cell list in quotation marks (").
If a cell name is not specified, the default cell name (the unqualified version of the host computer name) is used. If the cell has a different name, the command fails.

-o OutputFile

If the -a or -n option is specified, prints the differences between the specified service model class definitions to the specified output file.
If the -x option is specified, prints the service model class definitions from the BMC Atrium CMDB to the specified output file

-s description

Describe request

-x

Exports service model class definitions from the BMC Atrium CMDB to standard output or if an output file (-o option) is specified to a file
Service model class definitions are exported in BAROC language format.

pclassinfo examples

This section contains several examples of the pclassinfo command including:

  • Exporting service model class definitions from the BMC Atrium CMDB to standard output
  • Exporting service model class definitions from the BMC Atrium CMDB to a file
  • Comparing cell service model class definitions with those in the BMC Atrium CMDB

Exporting service model class definitions from the BMC Atrium CMDB

To export the service model class definitions in the BMC Atrium CMDB to standard output, enter the following command:

pclassinfo -x

This command generates a listing of the service model class definitions defined in the BMC Atrium CMDB and outputs it to standard output.

To export the service model class definitions in the BMC Atrium CMDB to a specific file, type the following command:

pclassinfo -x -o <fileName>

The service model class definitions are written to a BAROC file with the specified name. You can load this file on a cell.

Comparing cell service model class definitions with those in the BMC Atrium CMDB

To compare the service model class definitions in the pncell whose name is the short version of its host computer name (the default cell name) with the definitions in the BMC Atrium CMDB, type the following command:

pclassinfo -n <pncell_host> 

If there are no differences between the service model class definitions on the cell and those defined in the BMC Atrium CMDB, the command returns an output similar to the following:

installationDirectory/pw/server\bin>pclassinfo
BMC Impact Service Model Class Retriever v9.5.00 (Build 241196772 - 20-May-2013)
Copyright 2005-2013 BMC Software, Inc. as an unpublished work. All rights reserved.
Class info is synchronized. 

If there are differences between the service model class definitions on the cell and those defined in the BMC Atrium CMDB, the command returns the differences, which appear similar to the following:

installationDirectory/pw/server\bin>pclassinfo
BMC Impact Service Model Class Retriever v9.5.00 (Build 241196772 - 20-May-2013)
Copyright 2005-2013 BMC Software, Inc. as an unpublished work. All rights reserved.
-- BEGIN DIFFS --
<PreviewItem><Im>arwad</Im><SlotAdd><Class>BMC_BaseElement</Class><Slot>VersionNumber</CmdbSlot></SlotAdd></PreviewItem>
<PreviewItem><Im>arwad</Im><ClassAdd><CmdbClass>BMC_Region</CmdbClass></ClassAdd></PreviewItem>
-- END DIFFS --
Class info is not synchronized

To compare the service model class definitions in a specific cell with those defined in the BMC Atrium CMDB on Windows platforms, type the following command:

pclassinfo -n <cellName>

This command returns the differences, if there are any, between the service model class definitions on the cell named with those defined in the BMC Atrium CMDB.

To compare the service model class definitions for all the cells registered with the with those defined in the BMC Atrium CMDB, type the following command:

pclassinfo -a

This command returns the differences, if any, found between the classes defined in the BMC Atrium CMDB and the service model class definitions on all the cells found by the BMC Impact Publishing Server.

pclassinfo return codes

For information about CLI return codes, see Return codes for Publishing Server CLIs.

Was this page helpful? Yes No Submitting... Thank you

Comments