IBM Tivoli Monitoring, Version 6.3

tacmd bulkImportPcy

Description

Use the tacmd bulkImportPcy command to import all the available policy objects to the Tivoli Enterprise Monitoring Server. You can filter for a specified system type, a list of specified system types, a specified object name, or a listfile containing object names. You must log in by using the login command before running the bulkimportpcy command.

CLI syntax

tacmd bulkImportPcy  [-p|--path POLICYFILEPATH ]
                      [-t|--type| --types TYPE ]
                      [-n|--names POLICYNAMES ]
                      [-l|--listfile POLICYFILENAME ]
                      [-d|--distribution]
                      [-f|--force]

where:
-p|--path
Specifies the path name from where the files are to be imported. The XML files for import should be made available in the POLICYFILEPATH\Bulk\POLICY\Productcode\ directory. The following example would import files from C:\temp\Bulk\POLICY\NT\ :
tacmd bulkimportpcy -p C:\temp -t NT 
-t|--type| --types
One or more system types. Specify a two-digit character code of the system type name to import objects. Specify 'Others' to import objects that do not pertain to any of the two-digit product codes.
-n|--names
One or more object names. Specify a list of object names to import.
-l|--listfile
Specifies the file name that contains the list of object names to import.
-f|--force
Imports the objects without confirmation.
-d|--distribution
Imports the distribution list of the policies along with other details.

CLI example

For Windows systems, this command imports all policies in the subdirectories under the path C:\temp\Bulk\Policy\ directory into the Tivoli Enterprise Monitoring Server that the user is logged on to. The command executes without prompting for confirmation because the "-f" option was provided.
   tacmd bulkImportPcy –p C:\temp -f
For UNIX systems, this command imports all the policy objects that are available from the respective product code subdirectories under the path /tmp/Bulk/POLICY/.
    tacmd bulkimportpcy -p /tmp
Note: POLICY in the directory path is case sensitive in case of UNIX.
This example imports the policy NT_Disk_Busy with its distribution. Note: the above example will import the distribution only if the policy was previously exported by specifying the –d option.
   tacmd bulkImportPcy –n NT_Disk_Busy –d –f

Return values

See Table 1.

Related commands

Return to Table 1.



Feedback