You can use the cdb.c commands to manage components. See Chapter 3, cdb: CLI Commands for Managing Components, in N1 Grid Service Provisioning System 5.0 Command-Line Interface Reference Manual.
cdb.c.ci – Creates a new version of an existing component, or creates an initial version of a nonbrowsable component using XML format
cdb.c.co – Checks out a component in XML format
cdb.c.lv – Lists all versions of a component
cdb.c.sc – Applies one or more categories to a component
The following cdb.ic commands retrieve information about components that have already been installed on hosts:
cdb.ic.lbc – Lists all of the hosts on which a component is installed
cdb.ic.lbh – Lists all of the components that are installed on a specific host
cdb.ic.vs.lo – Shows the details of the specified generated variable settings
The following cdb.rsrc commands manage resources:
cdb.rsrc.ci – Checks in certain components and their source objects
cdb.rsrc.cib – Checks in all of the resources listed in a batch file
cdb.rsrc.co – Checks out the specified resource
cdb.rsrc.rci – Rechecks in a resource
cdb.rsrc.showopts – Shows the check-in options supported by a particular component type
The following cdb.vs commands manage variable settings for components:
cdb.vs.add – Adds new variable settings
cdb.vs.del – Deletes variable settings
cdb.vs.imp – Imports variable settings from one component to another
cdb.vs.la – Lists all variable settings that are associated with a specific component
cdb.vs.lo – Lists the details of specific variable settings
When you check in a component, you copy a particular resource from a data source, such as a directory on a gold server, to the component repository. The component repository is a hierarchical namespace. Within this namespace, components are identified by name and version number.
A component must also have a component type that identifies the format and, in many cases, the function of a component. The built-in component types that are available with the provisioning system are described in Chapter 3, Built-in Component Types.
When you use the cdb.rsrc.ci command to check in a component, use the following options:
-src – Specifies the source location of the resource
-dst – Specifies the place in which to store the component in the component repository
-type – Specifies the component type
More than one component can reference the same resource. Checking in a resource using the cdb.rsrc.ci command associates that resource with the specified component.