2.2.2 Packaging procedure
You can package a resource by a command.
- How to register the software by using a command
-
Create and register a file (packaging-information file) which specifies attribute information (package attribute) such as the name of the software to be registered, and the installation method during distribution.
To register Hitachi program products or register user programs and user data to be distributed to machines whose OS is the same as the OS of the registration source, use the rdsft command. To register another company's software, register OS patches, or register user programs and user data to be distributed to machines whose OS differs from the OS of the registration source, use the rdscm command. The rdscm command can also register user programs and user data to be distributed to machines whose OS is the same as the OS of the registration source.
Hitachi program products and another company's software can only be distributed to machines whose OS is the same as the OS of the registration source.
This section explains procedures for registering software using commands.
- Organization of this subsection
(1) Registering Hitachi program products
This subsection describes how to register Hitachi program products.
(a) Registration method
Use the rdsft command to register Hitachi program products.
To specify detailed attributes, create the packaging-information file before you register resources and specify that file name in the command option. For the method of creating the packaging-information file, see 2.2.3(1) Creating the packaging-information file. For some items, you can set default values in the settings files of the client services.
Table 2-1 lists the rdsft command options to be specified and the items to be specified in the packaging-information file when you register program products. If the same item is specified using more than one method, the order precedence is the rdsft command, the packaging-information file, and then the settings file.
- Legend:
-
Y: Specifiable.
--: Not specifiable or inapplicable.
- #1
-
Requires the password.
- #2
-
Mandatory.
- #3
-
For -m managing-host-name, specify the host name of the relay system that is directly connected to the managing server if program products are registered via at least two relay systems. This item does not need to be specified if program products are registered from the end workstation, the UNIX machine connected to the relay system that is directly connected to the managing server.
- #4
-
Waits for the response from the user.
- #5
-
Mandatory if -s is specified in the rdsft command.
If you want to register a Hitachi program product by using a special file that is not a system standard special file, you must define the special file in the special file definition file. For details on how to create the special file definition file, see 2.2.3(3) Setting the special file definition file.
(b) Note during registration
After execution of the register command (rdsft command), you cannot cancel the packaging. To make sure that the software is registered, execute the rdslst command after creation of the packaging-information file, and check the specified Hitachi program product.
The rdslst command, also allows you to confirm the Hitachi program products stored on a storage medium. For example, a CD-ROM might contain a Hitachi program product that is not licensed. Before registering a program product, use the rdslst command to check the stored Hitachi program products. Execute the rdslst command with the medium unmounted. Execute the packaging with the CD-ROM also unmounted.
(2) Registering another company's software
This subsection describes the formats of another company's software that can be distributed and the method for registering that software.
(a) Formats of another company's software that can be distributed
Table 2-2 describes the formats of another company's software that can be distributed by using JP1/IT Desktop Management 2.
OS |
Software format |
Software format example |
---|---|---|
HP-UX |
File formats that can be specified in the -s option of the swinstall command |
depot |
Solaris |
File formats that can be specified in the -d option of the pkgadd command |
Solaris package format |
AIX |
File formats that can be specified in the -d option of the geninstall command |
bff |
Linux |
File format that can be specified in the rpm command |
rpm |
If the OS command allows, you can specify a directory.
The following software of another company cannot be distributed:
-
Software that must be installed in the single-user mode, which is one of the OS operation modes
-
Software that requires the OS to be restarted during installation
(b) Registration method
To register another company's software, use the rdscm command with the -ISVSOFT option specified. Depending on the situation, you might need to perform the file creation tasks described below before registration:
- Creating a packaging-information file
-
You can use command options to specify major attributes such as package ID and cabinet ID. However, if you want to specify more detailed attributes, you need to create a packaging-information file. For details on how to do this, see 2.2.3(1) Creating the packaging-information file.
- Creating a response file
-
If you want to distribute another company's software that requires user responses during installation, you must specify the appropriate response file during packaging. A file that describes user responses is called a response file.
You can specify a response file in HP-UX and Solaris only. The following shows the command for creating the response file:
HP-UX: swask -c
Solaris: pkgask -r
For details on the response file, see the documentation for the OS.
- Creating an installation management file
-
To distribute the Solaris version of another company's software, you need to specify an installation management file during packaging. The installation management file describes information needed during installation. For example, you might be able to indicate forced distribution by using the file.
For details on how to create the installation management file, see the documentation for the OS.
Table 2-3 lists the items that you can specify by using command options or a packaging-information file when registering another company's software. For some of the items, the default values can be specified using the settings file for the client services. If the same item is specified using more than one method, the order of precedence is command, package-information file, and settings file.
- Legend:
-
Y: Specifiable.
--: Not specifiable or inapplicable.
- #1
-
Mandatory.
- #2
-
Requires a password.
- #3
-
If a package ID is not specified, it is automatically generated.
- #4
-
Specify the host name of the relay system that is directly connected to the managing server if program products are to be registered via at least two relay systems. This item does not need to be specified if program products are registered from the end workstation, the UNIX machine connected to the relay system that is directly connected to the managing server.
- #5
-
Waits for a response from the user.
- #6
-
This item can be specified for only the HP-UX or Solaris version of another company's software.
- #7
-
This item can be specified for only the Solaris version of another company's software.
- #8
-
This item can be specified for only the HP-UX version of another company's software.
(c) Automatic generation of package IDs
When you register another company's software without specifying the package ID, an OS command that acquires software information is executed to generate the package ID automatically. If you also omit specifying the program name and version, the command also automatically generates them.
The OS command used to acquire software information must be stored in a specific directory. Table 2-4 shows the command and the appropriate directory for each OS.
The package ID, program name, and the version are automatically generated from the software short name, software long name, and version information acquired by the OS command. Automatic generation uses the following rules to convert the acquired information:
- Package ID
-
-
The string WUA- is prefixed.
-
Periods (.) and underscores (_) are converted to hyphens (-).
-
Lower-case letters are converted to the corresponding upper-case letters.
-
If the package ID has more than 44 characters, it is truncated following the 42nd character and two hyphens (--) are appended.
-
- Program name
-
-
Periods (.) and underscores (_) are converted to hyphens (-).
-
Lower-case letters are converted to the corresponding upper-case letters.
-
If the program name has more than 50 characters, it is truncated following the 48th character and two hyphens (--) are appended.
-
- Version
-
-
Periods (.) are deleted.
-
If the version has fewer than 7 characters, zeros (0) are appended to make the length 7 characters.
-
If the version has more than 7 characters, it is truncated following the 7th character.
-
(3) Registering the user data and user programs
(a) Registration method
Use the rdsft command to register user data and user programs. Use the rdscm command to register shared packages. Before registration, create the following files as required.
- Creating the packaging-information file
-
options. To specify detailed attributes, create a packaging-information file. For details on how to create this file, see 2.2.3(1) Creating the packaging-information file.
- Creating the user resource path file
-
The directories and files for software where user data and user programs are to be registered are called the user resource paths. To register all software in different directories as a single unit of software, specify the user resource paths in a user resource path file. For details on how to create the user resource path file, see 2.2.3(2) Creating the user resource path file.
Table 2-5 lists the command options to be specified and the items to be specified in the packaging-information file when you register user data and user programs. For some items, you can set default values in the settings files of the client services. If the same item is specified using more than one method, the order precedence is the command, the packaging-information file, and then the settings file.
- Legend:
-
S: Specifiable.
--: Not specifiable, inapplicable, or a value used only at registration.
I: Inherited by the Windows machine.
NI: Not inherited by the Windows machine.
- #1
-
For HP-UX, a directory under /var/opt/NETMDMW/UPUPL/hd
- #2
-
Mandatory.
- #3
-
To register user data or user programs via two or more relay systems, specify the host name of the relay system that is directly connected to the managing server. This specification is unnecessary when registering user data or user programs from the end workstation, the UNIX machine connected to the relay system that is directly connected to the managing server.
- #4
-
Use the rdscm command to specify.
- #5
-
Assumed if you do not specify the packaging-information file name, user resource path, and user resource path file specifications are omitted. For HP-UX, it will be /var/opt/NETMDMW/UPUPL/AC000000.
- #6
-
In the distribution-destination system of Windows, installation is not executed at system stop.
- #7
-
The backups of the file and the directory to be overwritten are acquired.
(b) Shared package attributes that can be inherited by the distribution-destination system
When the distribution-destination system inherits shared packages, it can inherit the following file attributes.
-
File name
-
File update time and date
-
Name of the user who owns the file
-
Cabinet ID which owns the file
-
Access privilege of the user who owns the file (read, write, and execute)
-
Access privilege of the cabinet who owns the file (read, write, and execute)
-
Access privilege of the other users and cabinets (read, write, and execute)