Imports objects from the specified .par file into the portal server. The command takes a .par file, and optional arguments for the display profile document to import the objects into the indicated display node in the directory server (or the root display profile indicated by the keyword global), and operations to be performed. If these things are not specified, they are taken from the .par file. The auto option can be used to indicate that you wish to simply perform the autoextract operations already contained in the .par file.
To add a new channel, you can use the par import command with or without the -o option. If a channel already exists, you must use the -o option with the par import command to completely replace (overwrite) the old channel. You can use this subcommand to import providers as well as channels.
par import -r|--runasdn uid -p|--password password [-o] [-d|--debug] [-v|--verbose] parfile [dn|global [op...]]
par import -r|--runasdn uid -p|--password password -a|--auto [-d|--debug] [-v|--verbose] parfile [dn|global]
Example 1
par import -r "uid=amAdmin,ou=people,o=sesta.com,o=isp" -p joshua --auto myfile.par "o=sesta.com,o=isp"
In this example, the command extracts the channel from myfile.par file, if that is the automatic operation defined in the myfile.par parfile.
Example 2
par import -r "uid=amAdmin,ou=people,o=sesta.com,o=isp" -p joshua myfile.par "o=sesta.com,o=isp" "entry=mychannel,channel=anothername,avail=topcontainer"
In this example, the command extracts the channel explicitly, installing it with a different name in the target dn, and making it available in container topcontainer.
Table 12-9, which describes what options are supported in alphabetical order, contains two columns: the first column lists the possible options for the par command; the second column gives a brief description.
Table 12-9 par Command Options
Table 12-10, which describes what arguments are supported, contains two columns: the first column lists the possible arguments for the par command; the second column gives a brief description.
Table 12-10 par Command Arguments
|
Argument |
Description |
|---|---|
|
dn |
Specifies the distinguished node in the directory server to access. Use the format "o=organizationName,o=organizationalUnit" |
|
global |
Specifies the global level node in LDAP to access the display profile document. |
|
exportfile |
These files each correspond to an entry (provider, channel, or provider/channel combination) in the .par file, and simply specify the data to be inserted into the specified .par file. It can be a small file if the information is too large to list on the command line. See Export Files for more information. |
|
from |
Specified on the command line, this is taken as equivalent to an export file containing the "from" line, followed by an equal to ("=") sign, and any other lines separated by a semicolon (";"). See from in Table 12-11 for more information on line properties. |
|
op |
Specifies the operation to perform. See Operations for more detail. |
|
parfile |
Specifies the par file to operate upon; that is, indicates the par file to import, export, or describe. |
These files simply specify data to be inserted into a .par file. The file consists of lines containing a keyword, followed by a colon and white space delimited fields. The line "from:" is required and it must be the first line of the file. Lines beginning with "#" are treated as comments.
Table 12-11, which describes the export file line properties, contains two columns: the first column lists the possible line keywords; the second column gives a brief description.
Table 12-11 Export File Line Properties
Each operation (op), in the export file or on the command line, must be specified as a comma separated list of keywords that can have values, most of which are optional. The operations are in a blank or space separated list. Each operation is in the following format.
dpnode=dn,entry=name,provider[=name],channel[=name],container=name[,av ail=name,selected]
dpnode
This specifies the distinguished name in the directory server (or the keyword global) for the display profile document that this operation is targeted at. May not apply if the context it is being specified in has already provided this. For example, if the import subcommand defines the distinguished name, the distinguished name in the file is ignored.
entry
This specifies the entry name in the .par file. This is not needed if the:
The par utility defaults to the first entry in the file if an entry is not specified.
provider
This indicates that a provider extraction is to take place. If the name is missing, it uses the name packaged with the provider in the .par file.
channel
This indicates that a channel extraction is to take place. If the name is missing, it uses the name provided with the channel in the .par file.
container
This applies only to channel extractions and indicates which container the channel is to be inserted into. If omitted, the channel is inserted into the "channels" element at the display profile document root.
avail
This applies only to channel extractions and indicates a container whose "avail" (or available) list is to receive a reference to the new channel. If omitted, no new channel reference is created.
selected
This applies only if "avail" was used. It indicates that the container whose "avail" list received a reference, also has a reference placed in its "selected" list.
If the op information is in both the par import command and in the .par file, the command information takes precedence.
This section contains supplemental information on the par file format. You do not require this information to run the par command.
The par file is a jar file with manifest entries for transporting channels, providers, and their associated files. It is intended allow flexibly when installing providers, channels, or both. The .par file contains 4 major types of files:
Table 12-12, which describes the headers the .par file must contain, contains two columns: the first column lists the required global headers; the second column gives a brief description.
The .par file must include a named entry for each parEntry XML file. Table 12-13, contains two columns: the first column lists the possible headers; the second column gives a brief description. The section for each named entry may contain the following headers:
Table 12-13 Named Entry Headers
If the .par file contains only one entry, entries need not be named in manipulating the file since the default entry is the entry used if none is named.