PATROL KM packaging overview

Packaging of a PATROL KM is an important issue for distributing your KM product to your customers. This section discusses considerations for building a PATROL KM distribution package that enables your PATROL KM to install easily.

PATROL KM file naming conventions

BMC Software recommends that you use a consistent naming scheme for all PATROL KM files and PATROL KM objects. This avoids problems with duplicate filenames, promotes maintainability, and clearly identifies and associates your PATROL KM components. 

PATROL does not have separate directories for different PATROL KMs and their supporting files. Therefore, it is extremely important that each PATROL KM filename is unique and can be associated with the appropriate PATROL KM. 

A KM filename is formed by adding a three-character KM prefix to the root name and separating the two parts with an underscore () symbol. The file extension indicates the file type. A KM filename has the following format: 

_KMprefix_BaseName.filetype

  • KMprefix identifies the PATROL KM to which the file belongs; it is a three-character (all upper case) code to designate a specific registered KM.
    Since PATROL stores all KMs in the same directory, it is very important that KMs and their associated files have a unique identifier.
  • BaseName is made up of concatenated word(s) that describe the file and can differ in capitalization depending on the type of PATROL file. See the following table for more information.
  • filetype is a 1 to 3-character file extension that indicates the type of file.

For example, a file that contains the PSL code for a parameter named PacketErrs in the PATROL KM named NETWORK (NET) would be named NET_PacketErrs.psl.

Rules for capitalizing PATROL file base names

The following rules describe how to capitalize the base names of various PATROL file types:

Rules for capitalizing PATROL file base names

PATROL file type

Rule

Base name example

File name example

.psl file

Use mixed case, capitalizing the first character of each component word for readability.

NumProcs.psl

NET_NumProcs.psl

.lib file

Use mixed case, capitalizing the first character of each component word for readability.

DeletedFiles.lib

NET_DeletedFiles.lib

Application class file

Capitalize all the letters in the base name.

USERS.net

NET_USERS.km

KM list file

Capitalize all the letters in the KM name.

NETWORK.kml

NET_NETWORK.kml

PATROL KM product file components

You should package the following files with your PATROL KM: 

File components for packaging your PATROL KM 

Type of fileFile extensionRequired
Application class file.kmYes
PATROL KM file list.kmlYes (PATROL 3.2 and later)
KM User-defined Event catalog files.ctgYes (if they are required by the KM)
IconsWindows 
.bmp 
.bmk
Yes (if they are required by the KM)
UNIX 
.xpm 
.msk
Help filesWindows 
.hlp 
.cnt
Yes
UNIX 
.htm

PSL scripts and libraries not saved as part of the PATROL KM files. 
This includes any required directories, PATROL Agent configuration files, 
external scripts, procedures.

.psl 
.bin 
.lib
Yes (if they are required by the KM)

PATROL KM packaging considerations

Before you begin packaging your PATROL KM for distribution as a product, review the following considerations listed in the following table. 

PATROL KM packaging issues

Issue

Comments

How should I design this KM product to install into 
the PATROL environment?

For a PATROL Windows KM

A usual PATROL installation procedure allows for a Windows .zip file to be unpacked within PATROL home 
directory and subdirectories.

For a PATROL UNIX KM

A usual PATROL installation procedure allows for a UNIX .tar file to be unpacked within the PATROL home 
directory and subdirectories. The distribution files should contain all PATROL KM components named in the 
section PATROL KM product file components.

What must I consider in package design to build a clean 
uninstallation routine?

Your PATROL KM should include menu items that provide a mechanism for uninstallation. Typical features for the 
uninstallation procedure include the removal of the following items:

  • All files related to the KM
  • All database objects related to the KM, such as
    • DB user IDs
    • PATROL views and tables
    • Database procedures

How can I verify that my PATROL KM product will install 
and uninstall?

Your KM product should provide an installation verification procedure that generates a detailed report of the 
status of all installation steps. For example, a PATROL KM for Oracle on UNIX installation verification procedure 
might verify the following:

  • The Oracle directory and specific SQL scripts exist.
  • All UNIX files associated with the KM are appropriately protected.
  • The Oracle user account is created correctly.
  • PATROL views and tables in the Oracle database are created correctly.
  • Expected Oracle database procedures and packages exist.
  • Required Oracle executables (that is, SQL DBA and SQL Plus) can be successfully run from the account 
    under which the PATROL product is running.

What are some areas in my PATROL KM that should be 
double-checked before the final package is built?

You should do a final check of your PATROL KM to ensure that settings for your PATROL KM are the default values 
you want your customer to see. The quality assurance testing already performed on the product should have already 
uncovered these problems.

  • Default History Level set to "inherited"
  • Command Type set correctly; PSL, OS
  • Commands or Tasks default settings correct
  • Menu and recovery actions consistent settings
  • Border ranges correct
  • Range limits correct
  • Parameter Titles and Units named
  • No localized parameters
  • No PSL errors or warnings
  • Verify that no diagnostic debugging output appears to the user
  • Icon filenames fully pathed
  • Platform settings correct
    • check appType; disable the KM for invalid platforms
    • menu items with commands for invalid computer classes
    • parameters with correct computer class settings

PATROL KM packaging

Packaging a PATROL KM for use consists of placing all files that make up your PATROL KM into one or more compressed files that can be uncompressed and distributed to the correct directories in the users PATROL environment. Typically, the files that make up a PATROL KM are divided into agent and console resources, and two compressed files are created for the KM installation. One file is installed on agent machines, and one file is installed on console machines. Using two files conserves system resources by eliminating the distribution of unnecessary files on both the agent and console machines.

PATROL Agent resource files

The PATROL Agent side of a PATROL KM includes files and directories required for the managed PATROL Agent system and should contain files for these items:

  • PSL files
  • PSL libraries or binaries
  • KM files
  • PATROL Agent-side components

PATROL Console resource files

The PATROL Console side of a PATROL KM includes the PATROL Agent side components plus user interface elements and should contain files for the following items:

  • PSL files
  • PSL libraries or binaries
  • KM files
  • Icon and icon mask files
  • Help files
Was this page helpful? Yes No Submitting... Thank you

Comments