11.2 Creating the LDAP Objects Required for the Point of Service Terminals

Before you can boot the Point of Service terminals, you must use posAdmin to create the following objects in the LDAP directory:

With posAdmin, you can add, remove, and modify Point of Service terminal hardware assets such as Point of Service terminals, hard disks, network interface cards, and configuration files with the use of reference objects in the LDAP directory. Hardware reference objects are typically located in the global container in the LDAP directory.

NOTE:Each LDAP object has two types of attributes: must and may attributes. The must attributes are the minimum requirements for an object; the may attributes are optional.

The following sections review the procedures required to create and manage these objects.

11.2.1 Creating an scCashRegister Object

The first step to register new Point of Service hardware is to define the name and model type of the Point of Service terminal. The scCashRegister object stores information about Point of Service hardware. Typically, you should define a scCashRegister object for each type of terminal used on the Novell Linux Point of Service system; however, if a Point of Service terminal does not have an scCashRegister object for its specific hardware type, it uses the configuration defined in the default scCashRegister object.

NOTE:To create a default scCashRegister object, define the object’s scCashRegisterName attribute as Default.

The scCashRegister objects are stored in the Global container so they can be accessed by all Branch Servers.

Table 11-1 lists the scCashRegister attributes.

Table 11-1 Attributes for scCashRegister objects

Attribute

Type

Explanation

--cn

must

The common name of the Point of Service terminal.

--scCashRegisterName

must

The model name of the Point of Service terminal; for example, IBM.

If this field is defined as “default,” the current scCashRegister object is used as the default Point of Service configuration. If a Point of Service terminal does not have an scCashRegister object for its specific hardware type, it will use the configuration defined in the default scCashRegister object.

IMPORTANT:Define only one default scCashRegister object in the Global container. Also, scCashRegisterName values must be unique; do not create more than one scCashRegister object with the same model name.

--scPosImageDn

must

The distinguished name of the default client image defined for this Point of Service terminal type.

NOTE:A specific client image can be defined in the scWorkstation object. The setting in the scWorkstation object overrides the default image defined in the scCashRegister object. For information on this procedure, see Section 11.2.8, Assigning an Image to a Point of Service Terminal.

--scDiskJournal

may

A Boolean field that is set to TRUE if journaling should be enabled. Journaling is only added on diskful machines. The default is FALSE.

The following example adds a default scCashRegister object below the global container (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=global,o=mycorp,c=us --add --scCashRegister 
--cn crtype3 --scCashRegisterName 1234567 
--scPosImageDn cn=browser,cn=global,o=mycorp,c=us --default

11.2.2 Creating an scRAMDisk Object

The scRamDisk object stores configuration information for a Point of Service terminal RAM disk. If no hard disk is available, you must configure a RAM disk for the Point of Service terminal.

Table 11-2 lists the scRamDisk attributes.

Table 11-2 Attributes for scRamDisk objects

Attribute

Type

Explanation

--base

must

The base distinguished name of the Hardware Reference object. For example, cn=crtype3, cn=global,o=mycorp,c=us.

--cn

must

The common name of the device. For example, ram.

--scDevice

must

The RAM disk device.

IMPORTANT:The device /dev/ram0 cannot be used because it is used for the initial RAM disk. Therefore, we recommend using /dev/ram1.

The RAM device should not be confused with the hard disk device, which uses a partition table.

The following example adds an scRamDisk object below the Hardware Reference object, crtype3 (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=crtype3,cn=global,o=mycorp,c=us  
--add --scRamDisk --cn ram --scDevice /dev/ram1 

11.2.3 Creating an scHarddisk Object

The scHarddisk object stores configuration information for a Point of Service terminal hard disk.

Table 11-3 lists the scHarddisk attributes.

Table 11-3 Attributes for scHarddisk objects

Attribute

Type

Explanation

--base

must

The base distinguished name of the Hardware Reference object. For example, cn=crtype3, cn=global,o=mycorp,c=us.

--cn

must

The common name of the device. For example, hda.

--scDevice

must

The device of the hard disk. For example, /dev/hda.

--scHdSize

must

The size of the hard disk in megabytes.

--scPartitionsTable

must

A semicolon-separated (’;’) list of partition entries. Each entry has four parameters: the size in megabytes, the partition type ID (82 for swap, 83 for a Linux partition), the mount point, and the file system (swap or ext3).

The following example adds an scHarddisk object below the scCashRegister object, crtype3 (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=crtype3,cn=global,o=mycorp,c=us --add --scHarddisk 
--cn hda --scDevice /dev/hda2 --scHdSize 9000 
--scPartitionsTable ’1000 82 swap swap;4000 83 / ext3;’ 

11.2.4 Creating an scConfigFileTemplate Object

The scConfigFileTemplate is an optional object used when you run services, such as the X Window system, that require hardware-dependent configuration files. An scConfigFileTemplate object contains the configuration file data that a Point of Service terminal needs to run a given service.

When you define the scConfigFileTemplate object, you designate a source configuration file (--scConfigFileData). posAdmin extracts the configuration data from the source file and stores it in the scConfigFileTemplate object. When a Point of Service terminal registers with a Branch Server (or when you run posAdmin.pl --updateconfig or posldap2crconfig.pl --dumpall), the Branch Server retrieves the configuration data in the scConfigFileTemplate object to create a configuration file in /tftpboot/CR/MAC_address/ directories on the Branch Server.

Using TFTP, the configuration file is then distributed from the Branch Server to the appropriate Point of Services terminals at boot time.

NOTE:The scCashRegister or scPosImage object under which the scConfigFileTemplate object is created determines which Point of Service terminals receive the configuration file.

If the scConfigFileTemplate object is defined under an scCashRegister object, all terminals that correspond to the type defined in the scCashRegister object receive the configuration file defined in the scConfigFileTemplate object.

If the scConfigFileTemplate object is defined under an scPosImage object, all terminals that load the client image that corresponds to the scPosImage object receive the configuration file defined in the scConfigFileTemplate object.

Table 11-4 lists the scConfigFileTemplate attributes.

Table 11-4 Attributes for scConfigFileTemplate objects

Attribute

Type

Explanation

--cn

must

The common name of the configuration file.

--scMust

must

This flag is used to enable or disable the configuration file. Allowed values are TRUE to enable or FALSE to disable the configuration file.

--scConfigFile

must

Specifies the path where the configuration file is installed on the Point of Service terminal. For example, /etc/ntp.conf or /etc/X11/XF86Config.

--scBsize

must

Specifies the block size for the TFTP download.

--scConfigFileData

must

The source path of the configuration file. For example, /tmp/XF86Config.mydata.

The following example adds a scConfigFileTemplate object below the Hardware Reference object, crtype3 (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=crtype3,cn=global,o=mycorp,c=us 
--add --scConfigFileTemplate --cn XF86Config 
--scConfigFile /etc/X11/XF86Config --scBsize 1024 
--scConfigFileData /mydata/XF86Config.1234567

11.2.5 Creating an scConfigFileSyncTemplate Object

The scConfigFileSyncTemplate is an optional object used when you run services, such as the X Window system, that require hardware-dependent configuration files. This object points to the configuration file that a Point of Service terminal needs to run a given service. This object differs from scConfigFileTemplate objects because the configuration data is not stored in the object; rather, the object points to a configuration file outside the LDAP directory.

When a Point of Service terminal registers with a Branch Server (or when you run posAdmin.pl --updateconfig or posldap2crconfig.pl --dumpall), the Branch Server uses RSYNC to transfer the configuration file designated in the scConfigFileSyncTemplate object from the /opt/SLES/POS/rsync/config/ directory on the Administration Server to /tftpboot/CR/MAC_address/ directories on the Branch Server.

IMPORTANT:Any configuration files referenced in the scConfigFileSyncTemplate object must be located in the /opt/SLES/POS/rsync/config/ directory on the Administration Server.

Using TFTP, the configuration file is then distributed from the Branch Server to the appropriate Point of Service terminals at boot time.

NOTE:The scCashRegister or scPosImage object under which the scConfigFileSyncTemplate object is created determines which Point of Service terminals receive the configuration file.

If the scConfigFileSyncTemplate object is defined under an scCashRegister object, all terminals that correspond to the type defined in the scCashRegister object receive the configuration file designated in the scConfigFileSyncTemplate object.

If the scConfigFileSyncTemplate object is defined under an scPosImage object, all terminals that load the client image that corresponds to the scPosImage object receive the configuration file designated in the scConfigFileSyncTemplate object.

Table 11-5 lists the scConfigFileSyncTemplate attributes.

Table 11-5 Attributes for scConfigFileSyncTemplate objects

Attribute

Type

Explanation

--cn

must

The common name of the configuration file.

--scMust

must

This flag is used to enable or disable the configuration file. Allowed values are TRUE to enable or FALSE to disable the configuration file.

--scConfigFile

must

Specifies the path where the configuration file is installed on the Point of Service terminal; for example, /etc/ntp.conf or /etc/X11/XF86Config.

--scBsize

must

Specifies the block size for the TFTP download.

--scConfigFileLocalPath

must

The local source path of the configuration file; for example, /opt/SLES/POS/rsync/config/XF86Config.mydata.

The following example adds an scConfigFileSyncTemplate object below the hardware reference object, crtype3 (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=crtype3,cn=global,o=mycorp,c=us  
--add --scConfigFileSyncTemplate --cn XF86Config 
--scConfigFile /etc/X11/XF86Config --scMust TRUE --scBsize 1024 
--scConfigFileLocalPath /opt/SLES/POS/rsync/config/XF86Config.1234567

11.2.6 Creating scPosImage Objects

Images are managed in LDAP with scPosImage objects. Each scPosImage object stores information about an image stored on the Administration Server. Every client image that you want to distribute to Point of Service terminals must have a corresponding scPosImage object in the LDAP directory.

IMPORTANT:You must create the scPosImage objects and set the scPosImageVersion attribute to Active before you boot the Point of Service terminals. The Point of Service terminals require an scPosImage object with an active scPosImageVersion attribute before they can download the corresponding physical image from the Branch Server at boot time.

The scPosImage objects that correspond to the client images you want to distribute to Point of Service terminals are typically organized within Distribution Container objects under the Global container in the LDAP tree.

NOTE:Boot images do not have scPosImage objects; they are referenced in the scInitrdName attribute in the scDistributionContainer object.

After the installation and configuration of the Novell Linux Point of Service, an scPosImage object for the Minimal image is automatically added to the Default Distribution Container. This default LDAP entry is intended to serve as an example and should not be deleted. You must manually add an scPosImage object for each client image you want to distribute to Point of Service terminals.

IMPORTANT:The images that ship with Novell Linux Point of Service 9 are built on Novell Linux Desktop (NLD) which runs the Linux 2.6 kernel. Therefore, the reference objects for Novell Linux Point of Service 9 images must be created in the Default Distribution Container.

If you migrate from SLRS 8 to Novell Linux Point of Service 9, the migration script creates the SLRS 8 distribution container. This container references the SLRS 8 kernel and therefore must store all the scPosImage objects for SLRS 8 images. For more information, see Section 3.0, Migrating from SLRS 8 to Novell Linux Point of Service 9.

Table 11-6 lists the scPosImage attributes.

Table 11-6 Attributes for scPosImage objects

Attribute

Type

Explanation

--base

must

The base distinguished name of the scPosImage object; for example, cn=global,o=mycorp,c=us.

--cn

must

The common name of the client image; for example, myjava.

--scImageName

must

The name of the client image; for example, myjava.

--scPosImageVersion

must

The version number of the client image, followed by the flag passive or active; for example, 2.3.10; active. The version number and the flag are semicolon-separated (’;’). Possible combinations of this attribute are described in Table 11-7.

--scDhcpOptionsRemote

must

The boot option of the Point of Service terminal.The mandatory value is /boot/pxelinux.0.

--scDhcpOptionsLocal

reserved

This attribute is reserved for future extension of Novell Linux Point of Service and is not used at this time.

--scImageFile

must

The filename of the image, which the terminal will download from the Branch Server; for example, myjava.

--scBsize

must

Specifies the block size for the TFTP download of the client image; for example, 8192. Possible values are: 4096 (4 KB) for image sizes less than 128 MB, 8192 (8 KB) for image sizes less than 256MB, 16384 (16 KB) for image sizes less than 512 MB and 32768 (32 KB) for image sizes less than 1GB. You must select a TFTP block size of 32 KB for the full-featured Desktop image, because there is a limitation of the block counter for TFTP.

--scConfigFile

may

Specifies the path where the configuration file is installed on the Point of Service terminal; for example, /etc/ntp.conf or /etc/X11/XF86Config.

The following example adds a scPosImage object below the Global container for a modified Java client image (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--base cn=global,o=mycorp,c=us --add --scPosImage --cn myJava 
--scImageName myJava --scPosImageVersion "2.0.21;active" 
--scDhcpOptionsRemote /boot/pxelinux.0 --scDhcpOptionsLocal LOCALBOOT
--scImageFile myJava --scConfigFile /etc/X11/XF86Config

11.2.7 Activating Images

Each image can be available in several versions, as shown in Table 11-7. The scPosImageVersion attribute in each scPosImage object must be set to either active or passive. Active versions are downloaded by the Branch Server. If there are multiple active versions of a single image, the Branch Server selects the highest active version. Passive image versions are never downloaded to the Branch Server unless they are explicitly configured in the scWorkstation entry for the individual Point of Service terminal.

Table 11-7 Image version examples

Value

Explanation

1.1.2

The version number is set to 1.1.2, but this client image is disabled in LDAP and cannot be used for a new Point of Service terminal, even when the scCashRegister object that corresponds to the Point of Service terminal matches the scPosImageDn attribute entry.

1.1.2;passive

Same behavior as above.

1.1.2;active

This client image with version 1.1.2 is enabled.

1.1.2;active 1.1.3;active 1.1.5;active

All image versions are enabled. The latest image version is used for download to the Point of Service terminal.

1.1.2;passive 1.1.3;active 1.1.5;passive

Only image version 1.1.3 is enabled.

To activate a registered image, set its scPosImageVersion attribute to active. This is done with posAdmin using the modify and multivalue options as follows (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--modify --scPosImage --multival 
--scPosImageVersion '2.3.10;passive=>2.3.10;active' 
--DN cn=browser,cn=default,cn=global,o=mycorp,c=us

To activate the new image version on a Branch Server, run posldap2crconfig.pl with the --dumpall option and possyncimages.pl as follows:

posldap2crconfig --dumpall
possyncimages

11.2.8 Assigning an Image to a Point of Service Terminal

You can assign a specific image to a Point of Service terminal through its scWorkstation object.

For example, the following command assigns browser image 2.3.10 to the CR001 scWorkstation object in the boston1 container (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret 
--modify --scWorkstation 
--scPosImageDn cn=browser,cn=global,o=mycorp,c=us
--scPosImageVersion 2.3.10 
--DN  cn=CR001,ou=boston1,ou=boston,o=mycorp,c=us

When you explicitly assign an image in the scWorkstation entry, the active or passive flag set for the scPosImage object in the global container is ignored.

NOTE:The scWorkstation object is automatically created in the LDAP directory the first time you boot a Point of Service terminal. The posleases2ldap daemon automatically triggers posldap2crconfig.pl which then creates an scWorkstation object and hardware configuration files for each Point of Service terminal that registers on the Branch Server. For more information on this process, see The hwtype.MAC_address File in the Novell Linux Point of Service 9 Administration Guide.

11.2.9 Removing an Assigned Image

To remove the image assigned to a workstation, run the following command (type the command all on one line):

posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret
--remove --scWorkstation --scPosImageDn --scPosImageVersion  
--DN cn=CR001,ou=boston1,ou=boston,o=mycorp,c=us