Beruflich Dokumente
Kultur Dokumente
Home
Date:
07-Feb-2014 10:07
URL:
https://docs.bmc.com/docs/display/pia9500/Home
Home
Table of Contents
1 What's new __________________________________________________________________________ 11
2 Where to start ________________________________________________________________________ 12
3 Release notes and notices _______________________________________________________________ 13
3.1 Related topic _____________________________________________________________________ 15
3.2 Known and corrected issues _________________________________________________________ 15
3.3 9.5.00 enhancements ______________________________________________________________ 16
3.3.1 BMC ProactiveNet Performance Management 9.5 support _____________________________ 16
3.3.2 Platform support _____________________________________________________________ 16
3.3.3 JRE Support ________________________________________________________________ 17
3.3.4 Downloading the installation files ________________________________________________ 17
3.4 Support information _______________________________________________________________ 21
3.4.1 Contacting Customer Support __________________________________________________ 21
3.4.2 Support status _______________________________________________________________ 22
4 Key concepts ________________________________________________________________________ 23
4.1 Business Service Management (BSM) ___________________________________________________ 23
4.1.1
Page 2 of 415
Home
Page 3 of 415
Home
Page 4 of 415
Home
7.1.2
7.2 Configuring a DCOM interface to the BMC PATROL Agent _________________________________ 162
7.2.1
Tasks to configure a DCOM interface to the BMC PATROL Agent _______________________ 162
9.1.2 Methods for stopping the BMC PATROL Agent _____________________________________ 176
9.1.3 Starting the BMC PATROL Agent on UNIX _________________________________________ 178
9.1.4 Stopping the BMC PATROL Agent on UNIX ________________________________________ 179
9.1.5 Starting the BMC PATROL Agent on Windows ______________________________________ 180
9.1.6 Stopping the BMC PATROL Agent on Windows _____________________________________ 184
9.1.7 Starting the BMC PATROL Agent on OpenVMS _____________________________________ 184
9.1.8 Stopping the BMC PATROL Agent on OpenVMS ____________________________________ 186
9.2 Establishing accounts and ports ______________________________________________________ 187
9.2.1 Where to go from here _______________________________________________________ 187
9.2.2 Accounts __________________________________________________________________ 187
9.2.3 Ports _____________________________________________________________________ 192
9.3 Support for compression and streaming _______________________________________________ 192
9.3.1 Compression _______________________________________________________________ 192
9.3.2 Streaming _________________________________________________________________ 193
9.4 Support for Integration Service ______________________________________________________ 193
9.4.1 Automatic registration with Integration Service _____________________________________ 193
9.4.2 Automatic registration with Integration Service configuration _________________________ 194
Page 5 of 415
Home
Page 6 of 415
Home
9.10.4 Gathering PATROL data from PATROL MIB tables ___________________________________ 265
9.11 Managing UNIX Environment variables ________________________________________________ 265
9.11.1 Storing environment variables in a script file _______________________________________ 265
9.11.2 Purpose of storing environment variables _________________________________________ 266
9.11.3 Operation of stored environment variables ________________________________________ 266
9.11.4 Supported file name and format for PATROL ______________________________________ 266
9.11.5 Example Bourne or Korn script to define and export variables __________________________ 267
9.11.6 Set environment before running PATROL utilities ___________________________________ 268
9.11.7 Exception for PATROL installation ______________________________________________ 268
9.12 Support for regular expressions ______________________________________________________ 268
9.12.1 Regular expressions _________________________________________________________ 269
9.12.2 Components that support regular expressions _____________________________________ 269
9.12.3 Benefits of regular expressions _________________________________________________ 269
9.12.4 File name metacharacters and wildcards _________________________________________ 269
9.12.5 Using character classes _______________________________________________________ 270
9.12.6 Using quantifiers (*, ?, +) ______________________________________________________ 271
9.12.7 Using anchors ______________________________________________________________ 271
9.13 BMC PATROL SNMP MIB ___________________________________________________________ 272
9.13.1 MIB scalar variables __________________________________________________________ 272
9.13.2 Traps for PATROL Agent ______________________________________________________ 273
9.13.3 objectsTable _______________________________________________________________ 275
9.13.4 variablesTable ______________________________________________________________ 277
9.13.5 applicationsTable ___________________________________________________________ 279
9.13.6 applInstTable ______________________________________________________________ 282
9.13.7 parametersTable ____________________________________________________________ 285
9.13.8 piV1mTable ________________________________________________________________ 289
10 Administering _______________________________________________________________________ 292
10.1 Basic set-up of the PATROL Agent in a Windows cluster ___________________________________ 292
10.1.1 Defining the PATROL cluster-specific environment variables __________________________ 292
10.1.2 Creating and registering a new service for the PATROL Agent _________________________ 293
10.1.3 Using the PATROL Cluster Configuration Wizard ___________________________________ 294
10.1.4 Manually configuring the PATROL Agent for clustering _______________________________ 294
10.1.5 Defining the PATROL Agent as a member of the group _______________________________ 295
10.2 Basic set-up of the PATROL Agent in a UNIX cluster ______________________________________ 297
10.2.1 Configuring PATROL Agent to operate in a cluster __________________________________ 298
10.2.2 Defining the PATROL cluster-specific environment variables for UNIX ___________________ 299
10.2.3 Defining the PATROL Agent as a member of the package _____________________________ 299
10.3 Managing console connections ______________________________________________________ 300
10.3.1 Agent-Console relationship ___________________________________________________ 300
10.3.2 Controlling access to the agent ________________________________________________ 306
10.4 Support for secure store and secure key store ___________________________________________ 318
10.4.1 Secure store _______________________________________________________________ 318
10.4.2 Secure key store ____________________________________________________________ 320
Page 7 of 415
Home
Page 8 of 415
Home
Page 9 of 415
Home
This space contains information about the BMC PATROL Agent 9.5.00 release, which is part of the following
releases:
BMC Performance Manager for Servers 3.4.00
BMC ProactiveNet Performance Management Suite 9.5
The BMC PATROL Agent product monitors a system according to the instructions provided by loaded PATROL
Knowledge Modules (KMs). You can display the information gathered by the PATROL Agent on a PATROL
console.
Page 10 of 415
Home
1 What's new
Announcement, January, 31, 2014
For a summary of all announcements, see Release notes and notices.
For complete information about what's new or changed, see 9.5.00 enhancements.
Page 11 of 415
Home
2 Where to start
If you are new to BMC PATROL Agent, read the following information for an overview of BMC PATROL Agent and
its integrations and implementation:
Components of PATROL
Architecture
How to configure BMC PATROL Agent
In the following list, click links related to your role to learn more about how to proceed with this product:
To
See
Key concepts
Planning
Integrating
Using
Administering
Troubleshooting
Page 12 of 415
Home
Tip
To stay informed of changes to this space, place a watch on this page.
Date
Title
Summary
9.5.00 enhancements
BMC PATROL Agent 9.5.00 provides you with the following updates:
Fully compatible with BMC Proactivenet Performance Management suite.
Support to Reliable data collection
Added platform support
Added support to JRE 1.7_40
You can create a custom PDF of this release notes and notices branch.
Click here to see the steps.
Page 13 of 415
Home
2. Either:
a. Choose an export setting and click Start Export (The recommended setting for most
exports is the space-specific BMC Standard (with child pages)). You will be prompted to
download your completed PDF when the export process is finished.
b. Choose Customize Settings and continue to follow these steps if you want to perform
advanced PDF customization.
3. Select a template (for example, BMC Standard).
Templates with the designation (with child pages) exports the current topic and all child
topics in that branch. If you are on the Home page, you will export all topics in that space.
For best results, export using a BMC Standard template. Others are not optimized for
docs.bmc.com content.
Page 14 of 415
Home
Description
Corrected
in
QM001789284
9.5.00
QM001791722
9.5.00
QM001792359
On Oracle SOLARIS 5.8 snmpmagt itself is picking the garbage IP if gethostbyname fails and may try to connect to
garbage IP.
9.5.00
QM001793466
BMC PATROL Agent patch 9.0.10.01 TB contains unclear instructions relating to PATROL_CACHE
9.5.00
QM001794502
9.5.00
QM001795558
PatrolAgent 3.9 has a limitation that it truncates the instance SID of any instance to a maximum of 128 characters.
9.5.00
Page 15 of 415
Home
Defect ID
Description
Corrected
in
QM001798866
Working with the Patrol event integration into BPPM using the new event cell communications. I am trying to assign
slot information to the pes_userdefined slot, EVENTSPRING %{USERDEFINED} variable, and it's not working.
9.5.00
QM001801905
9.5.00
QM001801906
Patrol Agent on Linux was terminated abruptly after adding "Austin" VC for monitoring with 109092 events in the
9.5.00
buffer file.
QM001803094
9.5.00
QM001805307
Patrol Agent crashes due to memory access violation error in pconfig cache
9.5.00
QM001809078
9.5.00
QM001809079
9.5.00
QM001809080
Installer displays "Installation Successful" even when jre folder is not installed/landed.
9.5.00
QM001809713
pconfig PURGE not working on Linux IA64 with Patrol Agent 9.5.00 drop 7.
9.5.00
QM001809717
"Either /AgentSetup/integration/integrationServices variable is missing or set to empty value." displayed on Linux IA64
with Patrol Agent 9.5.00 drop 7.
9.5.00
QM001809718
Patrol Agent connects to the IS variable which is removed/Purged from Pconfig DB with 9.5.00 drop 7 on Linux IA64.
9.5.00
QM001809720
"/AgentSetup/integration/integrationServices" without ANY VALUE is added in Pconfig DB with 9.5.00 drop 7 on Linux
IA64.
9.5.00
QM001812620
9.5.00
Version
Variants
11 SP3
Comments
Page 16 of 415
Home
Operating system
Version
Variants
Comments
5.x
6.5
x86, x86-64
6.5
Version
Comments
Windows Server
Not compatible
10
SUSE Linux Enterprise Server Service pack 2 and later are compatible
Solaris
10
Solaris
Not compatible
Note
Before downloading BMC PATROL for Microsoft Windows Servers, ensure that the directory is
only one level below the directory structure on Windows computers. The EPD package creates a
directory in the temporary directory when you extract the files, and the directory that contains the
installation image should not be in a directory deeper than two levels into the directory structure.
Page 17 of 415
Home
2. Download the following files depending on the product that you want to install, and the platform on which
you intend to use it:
Product
File name
Purpose
ins_WINDOWS_9500.zip
PATROL_for_ServersWindows_4700.zip
ins_ALL_9500.tar
PATROL_for_ServersAIX_SOLARIS_91200.tar
Oracle Solaris
PATROL_for_ServersHP_LINUX_91200.tar
3. Extract the required files from the downloaded archives to temporary folders.
The following table lists the files that you must extract to install BMC PATROL for Microsoft Windows
Servers:
Extract file
Files
Purpose
PATROL_for_ServersWindows_4700.zip
psx_ALL_4700.zip
psx_ALL_4700.tar
Page 18 of 415
Home
Extract file
Files
Purpose
PATROL_for_ServersAIX_SOLARIS_91200.tar
For Windows:
puk_AIX_SOLARISWINDOWSS390_91200.zip
PATROL_for_ServersHP_LINUX_91200.tar
For UNIX:
puk_AIX_SOLARISWINDOWSS390_91200.tar
For Windows:
puk_HPLINUXWINDOWSS390_91200.zip
Page 19 of 415
Home
Extract file
Files
Purpose
For UNIX:
puk_HPLINUXWINDOWSS390_91200.tar
Note
You must install the product on the PATROL Console Server if the client is a BMC PATROL Central
Operator Microsoft Windows Edition.
You must install the product on the BMC PATROL Central Operator Web Edition if the client is
Web Central Operator Console.
4. Extract the installation utility to a temporary directory. This will create the bmc_products directory in the
temporary directory.
Page 20 of 415
Home
5. From the extracted files in step 3, unzip the following files to extract the contents into the bmc_products
directory.
For BMC PATROL for Microsoft Windows Servers:
a. Windows: psx_ALL_4700.zip
b. UNIX: psx_ALL_4700.tar
For BMC PATROL for UNIX and Linux:
a. For AIX and Solaris operating systems on UNIX
Windows: puk_AIX_SOLARISWINDOWSS390_91200.zip
UNIX: puk_AIX_SOLARISWINDOWSS390_91200.tar
b. For HP-UX and Linux operating systems on UNIX
Windows: puk_HPLINUXWINDOWSS390_91200.zip
UNIX: puk_HPLINUXWINDOWSS390_91200.tar
Note
You can extract the installation utility files first and then the product files. By doing this, the
bmc_products directory is created and the files are extracted to this directory.
6. Before installing the product component, use the Release notes and notices section of each product to
review the installation requirements and prerequisites.
Page 21 of 415
Home
Page 22 of 415
Home
4 Key concepts
PATROL is a systems, applications, and event management tool. It provides an environment where you can
monitor the status of every vital resource in the distributed environment you are managing.
The pages in this section provide a high-level overview of the product.
Business Service Management (BSM)
Components of PATROL
Business value
Architecture
Support for clusters and failovers
BMC PATROL Agent and SNMP concepts
List of BMC PATROL Agent variables
Supporting power management
Installed files, directories, and system changes
Glossary
BSM Initiatives describe the most common strategic initiatives that organizations are undertaking to
address their IT management challenges.
For each BSM Initiative, a set of value paths have been defined that capture the most common ways to get
started on an initiative with the highest impact and shortest time to value based on BMC customer
experiences.
A value path prescribes the steps, or required capabilities, that an organization will need to realize value
around a key project within each initiative.
Page 23 of 415
Home
Required capabilities map to BMC products or service offerings to address the required capabilities for
each value path.
Purpose
PATROL
Like other PATROL Consoles, PATROL Central Operator Microsoft Windows Edition provides a window into
Central
Operator
your PATROL environment. PATROL Central Operator Microsoft Windows Edition works with only the
PATROL 7.x architecture; it does not work with the PATROL 3 architecture.
Microsoft
Windows
Edition
PATROL
Central
Operator
Web Edition
PATROL Central Operator Web Edition is a web-based application that provides a window into your
PATROL environment. PATROL Central Operator Web Edition works with only the PATROL 7.x architecture;
it does not work with the PATROL 3 architecture.
PATROL
Console Server
The PATROL Console Server is used by PATROL 7.x Consoles to communicate with PATROL Agents on
managed systems. A primary feature of PATROL monitoring is that you can create views and organize objects
according to a specific business need. The PATROL Console Server provides persistency support for those
views. In addition, persistent views are maintained in a common format so you can use the same view with
multiple 7.x Consoles.
Dependencies
PATROL
Console
Server
PATROL
Agent
PATROL
Console
Server
PATROL
Agent
PATROL
Agent
PATROL
Knowledge
Modules
(KMs)
Page 24 of 415
Home
Component
Purpose
PATROL
The graphical work space from which you issue commands and manage the distributed environment
Operator
Console
monitored by PATROL. The PATROL Console displays all of the monitored computers and applications. With
the PATROL Operator Console, you can perform the following tasks:
Define which applications you want PATROL to monitor
Monitor and manage computers and applications through the PATROL Agent and PATROL KMs
Monitor the PATROL Agent's use of resources
Run predefined or user-defined commands and tasks against monitored computers
Run state change action commands on the PATROL Console computer when a state change occurs on
a monitored computer
Log on to any managed computer (only for UNIX and OpenVMS)
Start and stop PATROL Agents remotely
View parameter data
Retrieve historical data stored by the PATROL Agent
PATROL
Developer
Console
With the PATROL Developer Console, you can do everything you can do with the PATROL Operator Console,
along with the following tasks:
Build new KMs and customize existing KMs
Customize menu commands and application parameters
Modify Agent knowledge in memory
Transfer knowledge to an Agent
Edit or replace KM files
Send an additional KM file to an Agent computer
Start the PATROL Agent configuration utility
Commit changes to Agents
PATROL Event
Manager (PEM
Console)
With the PEM Console, you can perform the following tasks:
PATROL
Integration
Products
Provides an interface between PATROL Agent and third-party enterprise management systems such as HP
OpenView Network Node Manager.
View events
Manage events/use events to control your environment
Trigger events
Generate event statistics
Acknowledge events
Delete events
Close events
Dependencies
PATROL
Agent
PATROL
Knowledge
Module
PATROL
Agent
PATROL
Knowledge
Module
PATROL
Agent
PATROL
KM
PATROL
Agent
PATROL
KM
Page 25 of 415
Home
Component
Purpose
PATROL Agent
The core piece of the PATROL architecture that monitors and manages host computers. The PATROL Agent
consists of Perform Agent executables (BDS_SDService.exe, which is registered as a service on Windows
platforms, and bgscollect.exe ) and the PATROL Agent executable (patrolagent.exe ), which is registered as a
Dependencies
PATROL
KM
service. On the OpenVMS platform, the Agent does not use the Perform Agent executables. The PATROL
Agent performs the following tasks:
Runs commands to collect system or application information; the information is collected according to
applications and parameters defined in KMs
Stores information locally for retrieval by the PATROL Console
Loads specified KMs at start-up, runs menu commands, and updates InfoBoxes on the PATROL Console
Acts as a service provider for event management
PATROL KM
A set of files from which a PATROL Agent receives information about all of the resources, such as databases
and file systems, running on a monitored computer. PATROL KMs provide information to the PATROL Agent
about the following tasks:
PATROL
Agent
Identity of objects
Parameters
Actions to take when an object changes a state
How to monitor the application
Agent Query
You can view information about monitored objects through Agent Query. Using this function, you can work
with objects outside the PATROL Console window. Instead of viewing objects as icons, you view their names
in a tabular format. Results of queries are displayed in the Query results window. You can save queries, then
load and reissue them when needed.
PATROL Script
Language (
PSL)
Included as part of the PATROL Developer Console is the PATROL Script Language (PSL) that you can use to
write parameters, commands, tasks, recovery actions, and discovery procedures for the PATROL Agents. PSL
is a fourth-generation language that is both compiled and interpreted, which is similar to programming
languages such as C++, C, and Perl. PSL is the native language of PATROL KMs.
PSL Compiler
You can use the PSL Compiler to check the syntax of PSL and to build a PSL library.
PATROL
Agent
PATROL
KM
PATROL
Console
PATROL
Agent
PATROL
Agent
PATROL
Developer
Console
PSL Debugger
Page 26 of 415
Home
Component
Purpose
PATROL
The PATROL Command-Line Interface (CLI) is a program for retrieving object and event information from a
Command-Line
Interface
PATROL Agent. CLI is designed to connect to a PATROL Agent in instances when a GUI interface is unavailable
or when the user is logged onto a host using a terminal emulator (without a TCP/IP stack). CLI has both
Dependencies
PATROL
Agent
PATROL
KM
PATROL
Console
interactive and non-interactive modes. You can start CLI from a command line and manually submit
commands to the CLI. You can also call the CLI within a script and have it run commands that you provide on
the command line or in additional CLI script files.
Guide.
Configure commands (standard or user created) for execution by the agent when an event is triggered
When the event is triggered, the agent checks the event catalog to determine whether a Notification
command is defined. If it is, the agent executes the command.
Schedule commands (standard or user created) for execution by the agent when an event is escalated
When the event is escalated, the agent checks the event catalog to determine whether an Escalation
command is defined. If it is, the agent runs the command.
Page 27 of 415
Home
Page 28 of 415
Home
Note
Not all PATROL Integration products share the same functionality.
Page 29 of 415
Home
PATROL API c
For PSL d
For
Command
Line
Event Editor
N/A
Event Editor
N/A
N/A
N/A
PemnGetEvent
event_catalog _get()
PatrolCli
Class()
PemnGetEvent
event get
PatrolCli
ClassList()
event class
PemnEvent
event_archive()
PatrolCli
Archive()
remote_file_transfer()
event dump
PemnDefine
N/A
N/A
EventClass()
PemnSetEvent
ClassCmd()
Display events, event Diary, and
PemnAddDiary()
event_query()
PatrolCli
PemnReceive()
event_range_query()
event listen
PatrolCli
event query
PemnReceive()
PemnEvent
RangeQuery()
PemnEvent
Query()
event_range_query()
event_query()
remote_event_query()
PatrolCli
event query
PemnEvent
Manage()
PemnEvent
RangeManage()
event_range_manage()
PatrolCli
event class
PatrolCli
event delete
PatrolCli
event
acknowledge
Event Repository
window
Event Repository
window
PemnGetReport()
event_report()
event_check()
PatrolCli
event report
Schedule events
N/A
N/A
PemnEvent
Schedule()
event_schedule()
N/A
Sort events
N/A
N/A
N/A
N/A
PemnSend()
event_trigger()
event_trigger2()
remote_event_trigger()
PatrolCli
event send
Refer to the PATROL Event Manager Console for UNIX User Guide
Page 30 of 415
Home
4.4 Architecture
This section describes the relationship between the BMC PATROL Agent and other PATROL and
non-PATROL components in a BMC PATROL 3.x and 7.x environment.
BMC PATROL 3.x architecture
BMC PATROL 7.x architecture
Page 31 of 415
Home
Page 32 of 415
Home
Page 33 of 415
Home
Control script
In a UNIX environment, a control script governs the movement of a package from one host to another. It literally
controls the failover process.
Cluster
A cluster is a collection of two or more host computers that can connect and control common disk storage. Each
cluster is controlled by a cluster management system (which can range from a control script on UNIX to a
third-party application on Windows) that operates within the cluster.
Cluster node
Each host computer that shares physical disks or other storage devices and that are registered with the cluster
management software (or control script) are referred to as cluster nodes.
Cluster application
A cluster application consists of all the necessary file structures that support the application. Cluster applications
can run on any number of hosts that are logically grouped to form a cluster. They are commonly referred to as
packages on UNIX systems and groups on Window systems.
Failover
Failover support is the ability to move a running cluster application from one cluster node to another with
minimal data loss. The cause of the failover can range from scheduled maintenance to hardware or software
failure.
Page 34 of 415
Home
Group
A group is a logical grouping of application files and resources in a Windows environment. It consists of all
necessary file structures required to run a cluster application and make it available to the end user. In the DNS
server or other host name/IP Address resolution table, you must assign a virtual IP Address to the group. The
cluster management software identifies the group by its virtual IP Address.
Package
A package is a logical grouping of application files and resources in a UNIX environment. It consists of all
necessary file structures required to run a cluster application and make it available to the end user. In the DNS
server or other host name/IP Address resolution table, you must assign a virtual IP Address to the package. The
control script identifies the package by its virtual IP Address.
Virtual IP address
Each cluster application (also referred to as a package on UNIX and a group on Windows) is assigned at least one
IP address. This IP Address is used by the end-user front-end application for locating the application on the
network. It is a virtual IP Address that is not associated with a physical location, but is associated with an
application. The address is referred to as either "virtual" or "soft" because of its ability to be active on any host
currently supporting the cluster application.
Page 35 of 415
Home
Recording application history in the same history database for all hosts in cluster
The PATROL Agent's failover tolerance prevents irregularities and gaps from occurring in the agent's history files
for the cluster application. It saves you from having to manually reconcile two history files because an application
failed on one host and another host took over, creating a separate set of history files.
The PATROL Agent uses three environment variables to provide failover support, including the following:
PATROL_CONFIG_port contains the fully qualified path to the configuration file stored on a drive shared
to the cluster
PATROL_HISTORY_port contains the fully qualified path to the history file stored on a drive shared to
the cluster
PATROL_VIRTUALNAME_port contains the virtual sever name that is used by the PATROL Agent instead
of the hostname to store the PATROL configuration and historical data
PATROL_LOG_port contains Location of the PATROL Agent error log file
Description
PATROL_HISTORY
PATROL_HISTORY_porta
If this variable is empty or doesn't exist, the agent writes the history files to PATROL_HOME
\log\history\<host>\<portNumber>.
PATROL_VIRTUALNAME
PATROL_VIRTUALNAME_
porta
If this variable is empty or doesn't exist, the agent uses the host name to identify history data within the history files.
Page 36 of 415
Home
Environment variable
Description
PATROL_CONFIG
PATROL_CONFIG_porta
If this variable is empty or doesn't exist, the agent stores the configuration file in PATROL_HOME\config.
To manage multiple PATROL Agents running on separate ports, append the port number to the variable name.
This situation occurs when individual PATROL Agents are bound to individual applications such as Oracle,
Exchange, Sybase, and so on. Each agent uses a separate port number.
Exists?
Description
Virtual Name
Yes
If PATROL_VIRTUALNAME_8888 exists, the agent writes history using the virtual name as the host name. Using the virtual
name provides continuous history for an application regardless of which host the application is running on.
The agent also uses the virtual host name to identify the configuration file changes and the history database. Configuration
file changes are written to <PATROL_HOME>\config\config_<virtualName>_<port>.cfg. The history database is written to
the sub-directory structure history\<virtualName>\<port>, which is located in the directory pointed to by
PATROL_HISTORY_<port>.
No
The agent writes history using the actual host name. If the application fails over, the agent writes history using the new
agent's name. Using the actual hostname creates gaps in the results of any dump_hist commands because the command
does not recognize that the same application ran on different hosts.
Configuration
File
History
Database
Yes
If PATROL_CONFIG_8888 exists, then the agent reads configuration information from the location specified by this
variable.
No
Yes
If PATROL_HISTORY_8888 exists, then the agent writes history to the location specified by this variable
No
Environment variables
PATROL_HISTORY=K:\doc\work\histdir
PATROL_VIRTUALNAME=AliasHostName
PATROL_CONFIG=K:\doc\work\config
Page 37 of 415
Home
Directory structure
For the values provided in the "Environment Variables" section of this example, the PATROL Agent stores
configuration information and records the history data in the following directory structure:
K:\doc\work\histdir\AliasHostName\8888\annotate.dat
K:\doc\work\histdir\AliasHostName\8888\param.hist
K:\doc\work\config\config_AliasHostName-8888
If these variables do not exist or they are empty, the PATROL Agent stores configuration information and records
the history data in the following directory structure:
<PATROL_HOME>\log\history\HostName\8888\annotate.dat
<PATROL_HOME>\log\history\HostName\8888\param.hist
<PATROL_HOME>\config\config_HostName-8888
Page 38 of 415
Home
The PATROL SMUX based SNMP subagent is not compatible with SNMP Master Agents that are not built upon
SMUX technology.
Note
The PATROL Agent does not support SNMP v2 and v3 traps.
Page 39 of 415
Home
The following table describes the role that each component plays in the PATROL SNMP architecture.
Note
Port 161 is an industry standard, while port 8161 is a PATROL standard. By running on port 8161, you can
avoid possible conflicts with operating system vendors who are already using port 161 for an SNMP
Agent.
Page 40 of 415
Home
Component
SNMP role
PATROL Agent
The PATROL SNMP Master Agent provides SNMP information to SNMP managers in the form of responses to SNMP
queries.
An SNMP subagent responds to SNMP queries by going into internal data structures and sending information back.
It can also generate or send PATROL traps directly to the SNMP Manager.
The PATROL SNMP Manager receives traps and issues queries to an SNMP Agent. The manager controls the agent
by making SNMP requests of the agent and by setting variables in the agent's MIB.
Note
The /snmp/agent_auto_start configuration variable does not work for UNIX.
Requirement
Configuration data
Default configuration
setting
Page 41 of 415
Home
PATROL SNMP
Subagent
Running
/snmp/agent_auto_start
Yes
Port 199
199--SMUX port
Active
Port number
8161--SNMP listening
port
Agent
PATROL SNMP Master
Agent
Supports SNMP
/snmp/support
Yes
/snmp/piVm_list
Sends traps
/AgentSetup/pemSNMP Support
Yes
/AgentSetup/pemPFSnmp Nseverity
/snmp/agent_r_community
/snmp/agent_w_community
Localized languages
The PATROL Agent will send out localized SNMP traps based on the agent's locale. For example, if the
/AgentSetup/pemIssueNativeLangTraps variable is set to Yes, the PATROL Agent issues SNMP traps using native
language as determined by the agent's locale. Otherwise, the agent issues SNMP traps according to the language
saved in the event catalog.
However, there is a dependency on the localization of the event description under the agent's locale. For
example, the event descriptions are not necessarily localized for all languages.
Example
ID 102071: Fri MON DD HH:MM:SS CCYY: PATROL SNMP Subagent connection failed - Make sure
SNMP Master Agent is running.
Page 42 of 415
Home
2. The SNMPStart parameter is defined within each platform.km file. The "out of box" default setting for this
parameter is the active state. If active, SNMPStart checks to see if the PATROL SNMP Master Agent
(snmpmagt) is running; if it is not, the parameter starts the master agent. SNMPStart then starts the PATROL
SNMP Subagent and establishes a connection between the two.
When the PATROL SNMP Master Agent and the PATROL SNMP Subagent successfully connect, PATROL
writes a message to the PATROL error log (.errs).
Example
ID 10209d: Fri MON DD HH:MM:SS CCYY: SNMP subagent is now connected.
Note
The /snmp/agent_auto_start configuration variable does not work for UNIX.
Page 43 of 415
Home
Documentation
in the PATROL_HOME\lib\
snmpmagt.cfg file.
/snmp/agent_auto_start
/snmp/trapMibTable
/snmp/PiV1m_list
/snmp/ignoreIPAddress
requests.
Script Language Reference Manual Volume 2 PSL Functions for detailed information about all PSL functions for
SNMP.
snmp_trap_send()
snmp_trap_raise_std_trap("<text>")
The piVm_list must be defined to make this function
work correctly.
Page 44 of 415
Home
snmp_agent_config()
snmp_agent_start()
snmp_agent_stop()
snmp_trap_register_im()
snmp_trap_register_im()
snmp_trap_register_im()
Comparison of methods
The following table compares the differences between the SNMP trap sending methods:
Comparing methods for sending traps
SNMP trap features
PEM traps
PSL traps
Yes
No
No
Yes
Page 45 of 415
Home
PEM traps
PSL traps
No
Yes
No
Yes
No
No
%PSL print(snmp_agent_config());
Page 46 of 415
Home
If the SNMP subagent is active, this command returns the following message: "SNMP Support is Active."
If it returns a message saying "SNMP Support is not Active", use the following command to start it:
print(snmp_agent_start());
If "OK" is returned, all is well. If ERR is returned, the master agent communication is not working. The most
likely reason for this is that the SNMP Master Agent is not running. For NT, use Task Manager to search for
the snmpmagt.exe process. For UNIX platforms, use ps -ef | grep snmpmagt. If the SNMP Master Agent is
not started, start it.
The following section provides details for starting the SNMP Master Agent.
3. Once you have established that the SNMP subagent is running, test the SNMP communications. If you can
not communicate, check the PATROL_HOME/lib/snmpmagt.cfg file for a valid MANAGER and
COMMUNITY name. This file allows you to define which MANAGERS receive which SNMP traps.
You can also define COMMUNITY, which allows you to configure the agent to only accept requests from
certain MANAGERS with specified community strings.
Note
You can define COMMUNITYs by placing " (quotes) around the strings in the following section.
COMMUNITY "<your_public_name>"
ALLOW ALL OPERATIONS
USE NO ENCRYPTION
Next, stop and restart the SNMP Master Agent process (snmpmagt.exe). On Windows, use the Task
Manager to End Task. On UNIX platforms, login as root and kill the SNMP Master Agent process
(snmpmagt).
Then use a PATROL Developer console, select the PATROL Agent host icon, and use the following menu
command to start the SNMP Master Agent:
Windows systems: MB3 > KM Commands > SNMP Reconfigure.
UNIX systems: MB3 > Start SNMP Master Agent
This stops and restarts the SNMP Master Agent. Allow a couple of minutes and then verify that the
SNMP Master Agent is running:
Windows systems: Use Task manager to look for snmpmagt.exe.
Page 47 of 415
Home
COMMUNITY public
ALLOW ALL OPERATIONS
USE NO ENCRYPTION
Within the PATROL Master Agent configuration, the default community is "public"; however, you must change the
community in order to restrict SNMP access to the PATROL Agent SNMP.
The following formats are acceptable for entering COMMUNITY string in PATROL_HOME/lib/snmpmagt.cfg:
A series of ASCII characters (both numeric and non-numeric characters are allowed) beginning with a
non-numeric character with no double quotes. For example:
"public" is entered as: COMMUNITY public.
A series of ASCII characters (both numeric and non-numeric characters are allowed) beginning with either
a numeric or non-numeric character surrounded by quotes. For example:
"public" would be entered as: COMMUNITY "public"
"0public" would be entered as: COMMUNITY "0public"
Page 48 of 415
Home
A series of hex digits representing ASCII representation of characters preceded by 0x. For example:
"public" would be entered as: COMMUNITY 0x7075626C6963.
The following error message is generated when the COMMUNITY that is entered violates the rules described
above:
<$PATROL_HOME>/lib/snmpmagt.cfg, line 1 near "@": syntax error ./snmpmagt: error processing configuration
To maintain consistency when changing the COMMUNITY in the snmpmagt.cfg file, also update the following
agent configuration variables:
/snmp/agent_r_community "<your_public_name>"
/snmp/agent_w_community "<your_private_name>"
/snmp/default_r_community "<your_public_name>"
/snmp/default_w_community "<your_private_name>"
Page 49 of 415
Home
Page 50 of 415
Home
The syntax for the TRANSPORT clause in the agent configuration file looks like this:
TRANSPORT <name> SNMP
[OVER UDP SOCKET] [AT <addr>]
TRANSPORT <name> SMUX [OVER TCP SOCKET] [AT <addr>]
addr ::= <ip-kind> | <rfc1449addr> | <full-ip> ip-kind ::= <hostid> | <hostid> <portid>
| <portid>
hostid ::= <hostname> | <ip>
portid ::= PORT | : ] <#>
full-ip ::= <ip>:<#> ip ::= <#>.<#>.<#>.<#>
rfc1449addr ::= <ip>/<#>
Note that there are many ways to enter an IP address.
The following example configures a master agent to accept SMUX connections at both the standard port and at a
non-standard port. It also configures the agent to accept SNMP traffic only at a non-standard port.
TRANSPORT extraordinary SNMP
OVER UDP SOCKET
AT PORT 11161
TRANSPORT ordinary SMUX
OVER TCP SOCKET
AT PORT 199
TRANSPORT special SMUX
OVER TCP SOCKET
AT PORT 11199
The maximum number of concurrent SNMP and SMUX transports will be limited by your target system's limits on
the number of open sockets or file descriptors per process.
Page 51 of 415
Home
Page 52 of 415
Home
The optional AS ENTITY clause provides any naming semantics associated with this community. An entity
definition associates spatial/temporal properties with a label. The spatial/temporal entity is defined using the
following grammar:
<entityDefinition> ::= ENTITY <EntityName> DESCRIPTION <String> WITH TIME DOMAIN <oid>]
<entityName> ::= <name>
The following example shows how a system might be configured to provide read-only and read-write access
both to its standard resources and a special subsystem:
ENTITY SpecialSubsystem
DESCRIPTION "The ultra-enhanced subsystem"
COMMUNITY public
ALLOW GET OPERATIONS
COMMUNITY public1
ALLOW GET OPERATIONS
AS ENTITY SpecialSubsystem
COMMUNITY "YingXio'ng"
ALLOW ALL OPERATIONS
COMMUNITY "Jia-oTo-ng"
ALLOW ALL OPERATIONS
AS ENTITY SpecialSubsystem
MEMBERS bigboss.megalith.com, 192.146.153.65
Thus, to access information from the "ultra-enhanced subsystem", a manager would have to use either
community "public1" or "Jia-oTo-ng". Using community "public" or "YingXio'ng" would access the default
spatial-temporal entity. Furthermore, use of the community "Jia-oTo-ng" is restricted to operations with a source
address from system "bigboss.megalith.com" or 192.146.153.65; operations with any other source address would
not be accepted with this community.
Note the close relationship between the community-to-entity mapping and the subagent-to-entity association
described in the section on controlling subagent communications, and how to use it to extend SNMP naming by
community string.
To avoid unintended access, be sure the ENTITY, COMMUNITY and ALLOW/DENY SUB_AGENT specifications are
complete; that is, taken together, the definitions in the configuration file must cover all aspects of the
configuration.
Page 53 of 415
Home
Page 54 of 415
Home
Configuration variables
Environment variables
Agent setup
In the PATROL Agent Configuration Utility, the variables listed in the following table are located in /AgentSetup.
/AgentSetup/ variables
Variable
Description
Format
Additional
information
_name_
Cannot be changed
_trailing_comma_
Cannot be changed
_type_
Cannot be changed
accessControlList
Determines which users can access the agent from which hosts in
which connection mode
User/host/mode
Controlling access
to the agent
accessDenyList
User/host/mode
Denying access to
the agent
aclGrpCacheExpirationTime
Numeric
Not applicable
<application>.filterList
Choosing an
inclusive or
exclusive filter
<application>.filterType
Determines the type of filter for a corresponding filter list You must
create this variable.
<appl>.OSdefaultAccount
Specifies an account under which the agent runs all parameter and
recovery actions for the application
Page 55 of 415
Home
Variable
Description
Format
Additional
information
<appl.instName>.OSdefault
Account
Specifies an account under which the agent runs all parameter and
recovery actions for the application instance
<appl.instName>.OSdefault
Determines whether commands issued from the console run under the
AccountAppliesToCmds
Using the
application-specific
account for
commands
auditLog
UNIX display
environment.
BindToAddress
Numeric
Connecting to
systems having
multiple network
cards
Blackout
Text string
comSecurityLevel
Alphabetic range
Setting PATROL
Agent
configuration
variables
comUserAllowed
Controls who can access the PATROL Agent DCOM server based upon
group names and user names
Text string
Setting PATROL
Agent
configuration
variables
defaultAccount
Specifies the user account under which the PATROL Agent runs all
parameters, recovery actions, and application discovery procedures
when an account is not explicitly specified It must be in administrative
group.
defaultAccountShell
Allows you to specify which shell the PATROL Agent uses for the
process spawned by the PATROL Agent default account.
defaultDisplay
disableApplicationPopUp
Numeric
Not applicable
disabledKMs
Prevents KMs from being loaded for all operating systems and computer
types specified
Text string
(comma-separated
list)
Disabling
applications based
on application
name
disabledKMsArch
Prevents KMs from being loaded for a particular operating system and
computer type
Text string
(comma-separated
list)
Disabling
applications based
on architecture
Page 56 of 415
Home
Variable
Description
Format
Additional
information
EnableSysOutputAclCheck
Boolean (0/1)
Disable=0
Enabling system
output window
Enable=1
display
Text string
External override
indicating a file
name
file names
ExternalOverride
Determines how often the PATROL Agent checks the external file for
parameter override changes
Integer, seconds
External override
file poll cycle
fixHistFlag
Text string
(comma-separated
list)
Overview of the
fixHistFlag
configuration
variable
historyRetentionPeriod
Numeric (days)
IPAddresses
Lists all the possible IP addresses through which the agent can
communicate
Numeric (IP
Address)
Recognize
additional IP
addresses
loadOnlyPreloadedKMs
Disabling
applications based
on exclusion
maxAgentMessageLimit
Numeric
Limiting size by
restricting the
number of
messages
maxEventSize
Sets the maximum acceptable event size in bytes; the default value is
48000
Numeric
Not applicable
maxProcessLimit
Numeric
patrolID
Identifier or alias name for the PATROL Agent that you can specify in the
/AgentSetup branch of the PATROL Agent namespace The specified
identifier appears in the RTserver and PATROL Console. Default value is
none.
pconfigRequires
Authentication
Controlling pconfig
access to the agent
pemCacheSize
Sets the size of the cache used by the agent for event management
Numeric
Applicable only in
the PATROL 7.x
architecture
Page 57 of 415
Home
Variable
Description
Format
Additional
information
pemCommands_default
Account
pemCommands_policy
Specifies which account PEM commands will run under: Agent default,
Alphabetic
User, or PEM
pemEvMemRetention
Sets the number of events the PEM engine keeps in memory for each
object
Numeric
Extracting event
data from the PEM
log
pemIssueV30traps
SNMP traps
pemIssueV31traps
SNMP traps
pemLogName
pemLogSize
Numeric
pemPFSnmpPattern
Establishes the pattern you want to filter for in the description of the
event
Text string
pemPFSnmpStatusMask
Alphabetic range
pemPFSnmpTypeMask
Alphabetic range
pemPFSnmpEidRange
Numeric
pemPFSnmpEndTime
MMDDhhmm[yy]
Specify a time
period to send
traps based on
PATROL Events
pemPFSnmpNSeverity
Numeric (range
0-5)
pemPFSnmpNode
Text string
Page 58 of 415
Home
Variable
Description
Format
Additional
information
This variable is
reserved for future
use.
pemPFSnmpOrigin
Text string
Specify application
that issued the trap
pemPFSnmpStartTime
MMDDhhmm[yy]
Specify a time
period to send
traps based on
PATROL Events
pemSnmpSupport
SNMP support
based on PATROL
Event Manager
PerfGetDebugFile
Text string
Specifying the
debug file
PerfGetMaxTimes
Numeric
Retries
PerfGetTimeout
Determines how long the agent waits for a response from the persistent
data collection program
Numeric
(milliseconds)
Timeout
PerfMaxRestartCount
Limits the number of patrolperf instances the PATROL Agent can spawn.
Numeric (number
of processes)
Limiting the
number of
patrolperf
instances
PortConnectType
Numeric
Connecting to
systems having
multiple network
cards
preloadedKMs
Specifies which KMs are preloaded for all operating systems and
computer types
Text string
(comma-separated,
item list)
Preloading
applications based
on application
name
preloadedKMsArch
Specifies which KMs are preloaded for particular operating system and
computer types
Text string
(comma-separated,
item list)
Preloading
applications based
on architecture
prmHistCacheFlushTimer
Sets the period of time (interval at which) that the cache is flushed to
the history database
Numeric
prmHistCacheSize
Numeric
PslDebug
Numeric
Page 59 of 415
Home
Variable
Description
requiresconfigauthentication
Format
Additional
information
Securing PATROL
Agent from the
pconfig clients
rtServers
Text string
RTServers
configuration
variable
sessionsInitMayFail
snmpConfigAccess
Boolean (0/1)
Debugging PSL
functions for SNMP
staticApplication
Text string
(comma-separated,
item list)
Designating
applications as
static
suppressConsoleInfoMsg
Mask
Controls whether PEM messages are logged in the agent error log and
are displayed in the PEM Console or excluded from the log and not
displayed in the PEM Console
Alpha character
(ACDOP)
suppressSystemOutput
MsgMask
Controlling system
output window
display
timeZone
Allows you to define time zones that do not exist in the PATROL Agent
time zone table
TimeZone/Offset
Value
Agent tuning
In the PATROL Agent Configuration Utility, these variables are located in /AgentSetup/AgentTuning.
/AgentSetup/AgentTuning variables
Variable
Description
Format
agentPriority
Sets the operating system scheduling priority (referred to as the nice value in
UNIX) for the PATROL Agent process
Numeric
applCheckCycle
Numeric
Application discovery
rate
getProcsCycle
Numeric
iseriesProcCacheActiveJobs
Specifies whether the PATROL Agent will maintain a list of all jobs or only the
active jobs in the process cache
Boolean
Not applicable
To maintain a list of the active jobs in the process cache, set the value to YES.
Page 60 of 415
Home
Variable
Description
Format
procCacheInternal
Specifies whether the PATROL Agent will collect the process related information
from /proc directory on the UNIX platform or using the PS command.
Numeric
Not applicable
Sets the operating system scheduling priority (referred to as the nice value in
UNIX) for the process that refreshes the process cache
Numeric
procCacheSchedPriority
Sets the internal scheduling priority for the process that refreshes the process
cache
Numeric
pslInstructionMax
Numeric
pslInstructionPeriod
Sets period of time in seconds that a PSL process can run the maximum number
Numeric
runqDelta
Sets gap (in seconds) between processes in the PATROL Agent's run queue
Numeric
Interval between
internal processes
runqDeltaIncrement
Sets the increment (in seconds) used when checking for a gap in the PATROL
Agent's run queue
Numeric
Increment checking of
internal process
interval
runqMaxDelta
Numeric
Maximum delay of an
internal process
runqSchedPolicy
Numeric
PATROL Agent's
scheduling policy
userPriority
Sets operating system scheduling priority (the nice value) for processes created
by PATROL Agent
Numeric
COS
In the PATROL Agent Configuration Utility, these variables are located in /AgentSetup/cos.
/AgentSetup/cos variables
Variable
Description
Format
For
information,
see page
_name_
COS name
Text string
(cos)
Cannot be
changed
_type_
COS type
Text string
(DATA_
REPOSITORY)
Cannot be
changed
connectTimeout
Numeric
Not
applicable
Page 61 of 415
Home
Variable
Description
Format
For
information,
see page
flowControlBufferThreshold
Limit at which the process will start sending messages out anyway
Numeric
Not
applicable
flowControlWindowMinSize
Numeric
Not
applicable
Numeric
Not
applicable
Numeric
Not
applicable
3.6 agent only
keepAlivePeriod
Numeric
Not
applicable
These messages ensure that the connection to the rtserver is still valid.
maxNumRetries
Numeric
Not
applicable
messageCacheMaxMessages
Mumeric
Not
applicable
Seconds
Not
applicable
Numeric
Not
applicable
Default is 10
messageCacheTimerInterval
Maximum amount of time a cached message will stay on the agent. This does not
mean a message has to be on the agent this long. As soon as any message enters the
cache, this timer is activated. If the timer gets a chance to go off, then every single
console's cache will be flushed when it does
Default is 10
retryPeriod
SNMP
In the PATROL Agent Configuration Utility, these variables are located in /snmp.
Note
The agent_auto_start configuration variable does not work for UNIX.
/SNMP variables
Page 62 of 415
Home
Variable
Description
Format
For
information,
see page
_name_
SNMP name
Cannot be
changed
_type_
SNMP type
Cannot be
changed
accessControlList
*/hostname
When
configuration
changes take
effect
agent_auto_start
Start the
PATROL
SNMP
subagent
automatically
agent_r_community
Text string
Specify the
read
community
name
agent_w_community
Text string
Specify the
write
community
name
default_retries
Numeric
Retries
default_port
Sets the default port number which the PATROL Agent uses to
open sessions with SNMP agents
Numeric
Port
default_r_community
Sets the default community name for SNMP get and getnext
operations in PSL
Text string
Read
functions
default_timeout
Numeric (milliseconds)
Timeout
default_w_community
Text string
Write
functions
ignoreIPAddress
Ignoring
return
IPAddresses
master_agent_port
Numeric
This variable
is reserved
for future
use.
masterAgentConfigDir
Text string
Name of
configuration
file
masterAgentConfigName
Text string
Page 63 of 415
Home
Variable
Description
Format
For
information,
see page
Name of
configuration file
configuration
file
masterAgentDir
Text string
Name of
directory
masterAgentName
Text string
Name of
executable
masterAgentParamDir
Text string
Name of
nonvolatile
information
file directory
masterAgentParamName
Text string
Name of
lnonvolatile
information
file
masterAgentStartLine
Text string
Starting the
PATROL
SNMP Master
Agent
masterAgentWorkingDir
Text string
Specify the
working
directory
mibFileName
Contains the MIB file that the PATROL Agent loads for PSL
SNMP management functions
Text string
piV1m_list
Text string
(host/port1/access,host2/port2/access)
Destination
of SNMP
PEM-based
traps
support
Set default
community
name for PSL
SNMP
functions
sysContact
Text string
Specify the
MIB-II
information
sysLocation
Text string
Specify the
MIB-II
information
sysName
Text string
Specify the
MIB-II
information
Page 64 of 415
Home
Variable
Description
Format
For
information,
see page
trap_port
Numeric
Name of
configuration
file directory
trapConfTable
Send traps
through
configuration file
PATROL
SNMP Master
Agent
trapMibTable
Sample
contents of
PATROL
Agent error
log file
XPC
In the PATROL Agent Configuration Utility, these variables are located in /AgentSetup/XPC.
/AgentSetup/XPC variables
Variable
Description
Format
<xpcserver>.xpc_defaultAccount
Text string
<xpcserver>.xpc_defaultAccount
Note
This variable is available only for Microsoft Windows platforms.
Integration
In the PATROL Agent Configuration Utility, these variables are located in /AgentSetup/integration.
/AgentSetup/integration variables
Variable
Description
Format
integrationMaxNumRetries
Specifies the maximum number of times to retry connecting to the Integration Service
Numeric
Default value -1
integrationRetryPeriod
Number of seconds between connection attempts when attempting to connect to the Integration Service
Numeric
Page 65 of 415
Home
Variable
Description
Format
integrationConnectTimeout
Number of seconds to wait before giving up on a connection request with the Integration Service
Numeric
Contains the user-defined string for the PATROL Agent that is published (displayed) to Integration service.
Text
string
Contains integration service string (tcp:host:port) to which PATROL Agent will bind.
Default value none
Note
If you need to change the values for these variables, you must create configuration variables and assign
new values.
Page 66 of 415
Home
Default
Description
BMC_PATROL_DEBUG_
PEMAPI
none
BMC_ROOT
/opt/bmc
ALL
COMSPEC
c:\command.com
DUMP_CORE_ON_XT
_ERROR
C\P
ETC_HOSTS_SCRIPT
NULL
GETHOSTENT_WORK
AROUND
NULL
HOME
$HOME
PATROL_ADMIN
patrol
Set to user that is to own log files that the PATROL Agent writes
A,
ALL
PATROL_ARCHIVE
$PATROL_HOME/../ archives
ALL
PATROL_BIN
$PATROL_HOME/bin
B,
ALL
PATROL_CACHE
$HOME/patrol
C,
U,
W
PATROL_CFG
$HOME/patrol/config
ALL
PATROL_CONFIG
$PATROL_HOME/config
A,
ALL
none
Page 67 of 415
Home
Environment variable
Default
Description
C\P
PATROL_CONFIG_
A,
PORT
ALL
PATROL_DEBUG
none
Variable that sets the debug level when the -debug option is used and a level is
ALL
not supplied
PATROL_DESKTOP
$HOME/patrol/desktop
C,
U,
W
PATROL_GLOBAL _LIB
$PATROL_HOME/lib
B,
ALL
PATROL_HEARTBEAT_
INTERVAL
4000 (milliseconds)
Sets the timeout retry interval, in milliseconds, after which the PATROL Agent
determines that the session connection has been lost.
ALL
PATROL_HELP
$PATROL_GLOBAL_LIB/
app-defaults/help
C,
U,
W
PATROL_HISTORY
$PATROL_LOG/history
A,
ALL
PATROL_HISTORY_
PORT
none
A,
ALL
PATROL_HOME
$PATROL_HOME/ platform
B,
ALL
PATROL_KM
$PATROL_GLOBAL_LIB/
knowledge
Global KM directory
B,
ALL
PATROL_LOCAL_CHART
$PATROL_CACHE/chart
PATROL_LOCAL_KM
$PATROL_CACHE/ knowledge
Local KM directory
PATROL_LOCAL_PSL
_APPS
$PATROL_CACHE/psl
PATROL_LOG
$PATROL_HOME/log
PATROL_LOG_PORT
$PATROL_HOME/log
PATROL_MACHINE
_TYPE
'platform'
Override for the PATROL Machine Type response. Useful on SVR4 machines
that need a different icon.
PATROL_MAXLOG
limits the number of error log backup files that can be generated. The default
value is five backup files. The maximum value that can be set is 50, and
minimum is 1.
PATROL_MAX_FILE
_DESCRIPTORS
1024
B,
ALL
PATROL_MIBFILE
none
MIB file name for SNMP support (used only if not set in agent's configuration).
PATROL_PORT
3181
PATROL_PSL_APPS
$PATROL_GLOBAL_LIB/ psl
A, U
Page 68 of 415
Home
Environment variable
Default
Description
C\P
B,
ALL
PATROL_QRY
$HOME/query
Local directory where query results are stored from Agent Query
C,
U,
W
PATROL_REMOTE
$PATROL_HOME/remote
A,
ALL
PATROL_ROOT
/OPT/BMC/PATROL7
C7,
CS,
ALL
PATROL_SOUNDS
$PATROL_GLOBAL_LIB/
C,
sounds
U,
W
PATROL_TMP
$PATROL_CACHE/tmp
PATROL_ VIRTUALNAME
none
C,
U,
W
none
RTHOME
RTHOME is set when you install an RTserver and has the following default
value: installationdirectory\common\smartsockets\etc\ss
A,
CS
RTSERVERS
SPEAKER
$PATROL_HOME/bin/ player
TMP
$TMP
TMP_PATROL
$PATROL_HOME/log
On NFS mounted file systems, this variable must be set to a LOCAL file system
to ensure that the PEM lock file will be properly created.
A,
U,
W
XBMLANGPATH
$PATROL_GLOBAL_LIB/images
Images subdirectory
C, U
XKEYSYMDB
$PATROL_GLOBAL_LIB/
app-defaults/XkeysymDB
C, U
YPCAT_HOSTS_SCRIPT
NULL
Page 69 of 415
Home
The agent connects to the first RTserver in the list. If the connection breaks, the agent connects to the next
RTserver in the list.
You must set the RTSERVERS environment variable in either of the following situations:
You want to view PATROL Agent data from a PATROL 7.x console.
There is no RTserver installed on a computer in the same subnet.
The RTserver is not using the default port number of 2059.
The PATROL Console Server, PATROL Agent, and PATROL 7.x consoles can detect RTservers within their own
subnets, but they cannot detect RTservers outside of their own subnets. If you have installed one of those
components in a subnet that has no RTserver, the only way it can communicate with an RTserver is if you define
the RTSERVERS environment variable.
The format of the RTSERVERS environment variable is as follows:
tcp: computer_name: port_number
where computer_name is the name of a computer running an RTserver (a member of the RTserver cloud), and
port_number is the port number that it is using to broadcast.
Page 70 of 415
Home
Description
The OnNow/ACPI function takes a snap shot of the system's state and all its applications by writing everything in memory to the hard drive.
Applications that support power options shut down their processes or die gracefully. Applications that do not support power options simply
fail.
The OnNow/ACPI function reads the information written to the disk and restores the state of OnNow-supported applications. It also
attempts to restore the state of applications that do not support power management. These applications may not be recoverable because
their processes are looping or suspended or startup information is unavailable because its owning data structures (such as files or databases)
were corrupted during the shutdown.
Page 71 of 415
Home
File type
Comments
All Platforms
.htm
HTML file
.jar
.kdb
Contains a store of keys used to decrypt data, and a set of CA certificates and User
Certificates
.km
KM file
.kml
KM List file
.lib
Library file
.log
Log file
.psl
.txt
Text file
Windows
.bat
Batch file
.bmp
Bitmap image
Contains icons for application classes used with PATROL Console for Windows.
.bmk
Contains mask information for icons for application classes used with PATROL Console for
Windows
.chm
Stored on PATROL Console Server (which might be a UNIX computer), but used on PATROL
Central Operator - Windows Edition
.cmd
.cnt
.dll
Application extension
.exe
Application
Page 72 of 415
Home
.gid
.hlp
.sys
.tlb
.vbe
.vbs
UNIX
.bin
Binary file
.sh
Shell script
Executable
File extensions, or lack thereof, do not prevent UNIX files from executing instructions
Comments
Windows
BMC base installation directory\Patrol3
None
None
None
None
None
None
None
Page 73 of 415
Home
Comments
None
None
None
None
None
None
None
None
None
None
Contains COM API sample "C" and Visual Basic source code and Makefiles for
building COM client software
None
None
Contains default configuration files, icons, images, KMs, catalog files and libraries
None
Contains the National Language Support (NLS) subdirectories and its related support
files for conversion between code sets
Page 74 of 415
Home
Comments
Contains the run time error and message log files, lock files, and so on.
NOV
PEM_seneca_3181.log
PEM_seneca_3181.log.lock
PatrolAgent-seneca-3181.errs
Contains sample "C" code and Makefiles for building PEM client software
None
Used internally by the PATROL Agent process for remote transfer of psl associated
files
gent.plc
PATROL Agent security policy file, defines log file locations, and so on.
Contains the required security componet files necessary for the PATROL Agent
process operation
UNIX
BMC base installation directory/Patrol3
PatrolAgent
agent_configure.sh
Shell script for configuring root SETIUID properties when root privildege is not
provided during installation
ctrl_scripts.sh
patrolrc.sh
Bourne, Korn and equivalent shells file containing PATROL enviroment settings
post_check.sh
pre_check.sh
Page 75 of 415
Home
Comments
set_default_account.main
Shell script that contains the main logic for setting the default PATROL Agent
account
set_default_account.sh
Shell script that contains the UI logic for setting the default PATROL Agent account
set_default_port.sh
Shell script used to assigned the default port number that the PATROL Agent process
will use
target
Shell script that defines the system architecture specific portion of the executable
path (example Solaris28-sun4)
Contains the system architecture specific binary files and some other associated files
Contains the X application default files when the PATROL Console installation exists
PatrolAgent
None
PatrolCli
None
dump_events
None
dump_hist
None
fix_hist
None
libhandlers.a
None
libmls.a
None
libpemapi.a
None
libupwp3.a
None
libxhandlers.a
None
ltconvert
None
ntharg
None
pconfig
None
ppv
None
psl
None
setda
None
snmpmagt
None
target->../../target
Page 76 of 415
Home
Comments
Used internally by the PATROL Agent process for remote transfer of psl associated
directory/Patrol3/Solaris28-sun4/remote
files
Contains default configuration files, icons, images, KMs, catalog files and libraries
config.default
patrol.mib
snmpmagt.cfg
StdEvents.ctg
all_defaults
None
Contains the National Language Support (NLS) subdirectories and its related support
files for conversion between code sets
1.cat
2.cat
3.cat
4.cat
5.cat
7.cat
Contains the run time error and message log files, lock files, and so on.
NOV
PEM_seneca_3181.log
PEM_seneca_3181.log.lock
PatrolAgent-seneca-3181.errs
_KM_seneca-3181
None
config_seneca-3181
None
seneca_3181.kdb
None
Page 77 of 415
Home
Comments
Contains sample "C" code and Makefiles for building PEM client software
S50PatrolAgent.sh
S54snmpmagt.sh
directory/Patrol3/scripts.d/S50PatrolAgent.sh
K54snmpmagt.sh->BMC base installation
directory/Patrol3/scripts.d/S54snmpmagt.sh
BMC base installation directory/Patrol3/security
gent.plc
PATROL Agent security policy file, defines log file locations, and so on.
Contains the required security componet files necessary for the PATROL Agent
process operation
Started or spawned by
Persistence
patrolagent.exe
Persistent
snmpmagt.exe
Persistent
PatrolAgent
Manually
Persistent
anmpmagt
Manually
Persistent
Windows
UNIX
Page 78 of 415
Home
Registry key
Value
Comment
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Program Files/BMC
Key
Manager\Environment\PATROL_HOME
Software/Patrol3
added
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Program Files/BMC
Key
Manager\Environment\PATROL_TEMP
Software/Patrol3/tmp
added
Number [parm90:0,1,2,3,4]
Key
added
Encrypted password
Key
added
Key
added
Key
file
added
Key
added
4.10 Glossary
This glossary contains terms that are relevant to BMC PATROL Agent. Because the content comes from the
Common Glossary, it might include definitions specific to other BMC products and solutions.
A-E
F-J
K-O
P-T
U-Z
4.10.1 A - E
access control list (ACL)
BMC PATROL
A list that is set up by using a PATROL Agent configuration variable and that restricts PATROL Console access to a
PATROL Agent. A PATROL Console can be assigned access rights to perform console, agent configuration, or
event manager activities. The console server uses ACLs to restrict access to objects in the COS namespace.
Page 79 of 415
Home
agent namespace
See PATROL agent namespace.
Agent Query
In BMC PATROL, a PATROL Console feature that constructs SQL-like statements for querying PATROL Agents
connected to the console. Agent Query produces a tabular report that contains information about requested
objects and can be used to perform object management activities, such as disconnecting and reconnecting
computers. Queries can be saved, reissued, added, or changed. PATROL offers built-in queries in the Quick Query
command on the Tools menu from the PATROL Console main menu bar. See also Quick Query.
ALL_COMPUTERS class
In BCM PATROL, the highest-level computer class. Attributes assigned to this class are inherited by all computer
classes known to PATROL. See also class and computer class.
application class
In BMC PATROL, the object class to which an application instance belongs. An application class is also the
representation of the class as a container (UNIX) or folder (Windows) on the PATROL Console. You can use the
developer functionality of a PATROL Console to add or change application classes. See also class.
application discovery
In BMC PATROL, a PATROL Agent procedure carried out at preset intervals on each monitored computer to
discover application instances. When an instance is discovered, an icon appears on the PATROL interface. The
application class includes rules for discovering processes and files by using simple process and file matching or
PSL commands. Application definition information is checked against the information in the PATROL Agent
process cache, which is periodically updated. Each time the PATROL Agent process cache is refreshed,
application discovery is triggered.
Page 80 of 415
Home
See also application check cycle, application discovery rules, PATROL Agent process cache, prediscovery, simple
discovery, and PSL discovery.
application filter
In BMC PATROL, a feature used from the PATROL Console to hide all instances of selected application classes for
a particular computer. The PATROL Agent continues to monitor the application instances by running parameter
commands and recovery actions.
application instance
BMC Performance Manager
An instance of a particular type of application or system resource. The instance processes or attributes can be
specified in the configuration for collection and monitoring.
application state
BMC Performance Manager
The condition of an application class or an application instance. The most common application states are OK,
warning, and alarm. An application class or instance icon can also show additional conditions. See also computer
state and parameter state.
attribute
BMC Atrium Orchestrator
A name/value pair associated with an XML element.
Page 81 of 415
Home
built-in command
In BMC PATROL, an internal command available from the PATROL Agent that monitors and manages functions
such as resetting the state of an object, refreshing parameters, and echoing text. The command is identified by
the naming convention %command_name. See also built-in macro variable.
chart
In BMC PATROL, a plot of parameter data values made by the PATROL Console Charting Server. See also
multigraph container and PATROL Console Charting Server.
charting server
See PATROL Console Charting Server.
Page 82 of 415
Home
class
BMC Atrium Core
Metadata in BMC Atrium CMDB that defines a type of object, usually a configuration item (CI) or relationship.
Either of these types of class can store data as a regular class, categorization class, abstract class, or abstract class
with data replication. You can also apply the final class and singleton class options to it.
command-line argument
In BMC PATROL, an option for starting a PATROL Agent or a PATROL console at the OS command line. PATROL
Agent arguments include names of Knowledge Modules (KMs) to load and port numbers for agent-console
connection. PATROL console arguments include connection mode (developer or operator), user ID to start the
PATROL console, names of KMs to load, and names of files to use.
command type
In BMC PATROL, the designation assigned to a command according to its manner of execution. This attribute
must be defined for a parameter command, a parameter recovery action, a menu command, an InfoBox
command, a setup command, or a state change action. The PATROL Agent provides two command types: OS and
PSL. PATROL Knowledge Modules (KMs) provide additional command types. The developer functionality of a
PATROL console can be used to add or change command types.
Page 83 of 415
Home
commit
In BMC PATROL, the process of saving to PATROL Agent computers the changes that have been made to a
Knowledge Module (KM) by using a PATROL console. A BMC PATROL user can disable a PATROL console's ability
to commit KM changes.
computer class
In BMC PATROL, the basic object class to which computer instances of the same type belong. Examples include
Solaris, OSF1, HP, and RS6000. PATROL provides computer classes for all supported computers and operating
systems; a PATROL Console with developer functionality can add or change computer classes.
computer instance
In BMC PATROL, a computer that is running in an environment managed by PATROL and that is represented by
an icon on the PATROL interface. A computer instance contains the information and attributes of the computer
class that it belongs to. See also instance.
computer state
In BMC Performance Manager, the condition of a computer. The main computer states are OK, warning, and
alarm. A computer icon can show additional conditions that include no output messages pending, output
messages pending, void because a connection cannot be established, and void because a connection was
previously established but now is broken. See also state.
configuration file
BMC Atrium Orchestrator
File containing configuration information used to communicate with a CDP.
Page 84 of 415
Home
connection mode
In BMC PATROL, the mode in which the PATROL Console is connected to the PATROL Agent. The mode can be
developer or operator and is a property of the Add Host dialog box (PATROL 3.x and earlier), an Add Managed
System wizard, or other connecting method. The connection mode is a global (console-wide) property that can
be overridden for a computer instance. See also PATROL Console.
console module
In BMC PATROL, a program that extends the functionality of PATROL Central and PATROL Web Central. Console
modules can collect data, subscribe to events, access Knowledge Module functions, authenticate users, and
perform security-related functions. Console modules were formerly referred to as add-ons or snap-ins.
console server
In BMC PATROL, a server through which PATROL Central and PATROL Web Central communicate with managed
systems. A console server handles requests, events, data, communications, views, customizations, and security.
container
BMC Performance Manager
A custom object that you can create to hold any other objects that you select such as computers, applications,
and parameters in a distributed environment. In Windows, a container is referred to as a folder. You can drag
and drop an object into and out of a container icon. However, objects from one computer cannot be dropped
inside another computer. Once a container is defined, the object hierarchy applies at each level of the container.
That is, a container icon found within a container icon assumes the variable settings of the container in which it is
displayed. See also object hierarchy and PATROL Console Charting Server.
custom view
In BMC PATROL, a grid-like view that can be created in PATROL Central or PATROL Web Central to show
user-selected information.
deactivate a parameter
In BMC PATROL, to stop running a parameter for selected computer or application instances. In PATROL
Consoles for Microsoft Windows environments, deactivating a parameter stops parameter commands and
recovery actions and deletes the parameter icon from the application instance window without deleting the
parameter definition in the KM tree. A deactivated parameter can be reactivated at any time. See also snooze an
alarm and suspend a parameter.
Page 85 of 415
Home
desktop file
In PATROL 3.x and earlier, a file that stores your desktop layout, the computers that you monitor, the KMs that
you loaded, and your PATROL Console user accounts for monitored objects. You can create multiple desktop
files for any number of PATROL Consoles. By default, desktop files always have a .dt extension. In PATROL 7.x,
desktop files are replaced by management profile. See also desktop template file.
desktop tree
In BMC PATROL for Microsoft Windows, one of the views of folders. The desktop tree displays the object
hierarchy. See also KM tree.
developer mode
In BMC PATROL, an operational mode of the PATROL Console that can be used to monitor and manage
computer instances and application instances and to customize, create, and delete locally loaded Knowledge
Modules and commit these changes to selected PATROL Agent computers. See also PATROL Console.
disable a KM
In BMC Performance Manager, to temporarily or permanently block an application or KM from loading and to
block the PATROL Agent from using that KM. When a KM is disabled (added to the disabled list) in the agent
configuration file, the KM files are not deleted from the PATROL Agent computers, but the PATROL Agent stops
using the KM to collect parameter data and run recovery actions. The default is that no KMs are disabled. Most
KMs are composed of individual application files with a .km extension. See also preloaded KM, static KM, and
unload a KM.
discovery
The act of scanning your environment for configuration data.
Page 86 of 415
Home
event
BMC Atrium Discovery
A change or action that affects the discovery process, such as a software instance that was created or updated. In
BMC Atrium Discovery, the Rules Engine (ECA Engine) executes rules in response to events.
Page 87 of 415
Home
event catalog
In BMC PATROL, a collection of event classes associated with a particular application. PATROL provides a
Standard Event Catalog that contains predefined Standard Event Classes for all computer classes and application
classes. You can add, customize, and delete an application event catalog only from a PATROL Console in the
developer mode. See also event class and Standard Event Catalog.
event class
BMC ProactiveNet Performance Management
A category of events that you can create as a child of the base event class according to how you want the events
to be handled by an event manager and what actions you want to be taken when the event occurs. Event classes
may be inherited from parent objects, depending on the specific product. The event class defines the type of an
event.
Page 88 of 415
Home
event manager
In BMC Performance Manager, a graphical user interface for monitoring and managing events. The event
manager can be used with or without the PATROL Console. See also PATROL Event Manager (PEM).
event type
In BMC PATROL, the PATROL-provided category for an event according to a filtering mechanism in an event
manager. Event types include information, state change, error, warning, alarm, and response.
Event Diary
In BMC PATROL, the part of a PATROL event manager (PEM) where you can store or change comments about any
event in the event log. You can enter commands at any time from the PATROL Event Manager Details window.
expert advice
In BMC PATROL, comments about or instructions for dealing with PATROL events as reported by the agent.
Expert advice is defined in the Event Properties dialog box in a PATROL Console in the developer mode. PATROL
Consoles in an operator mode view expert advice in the PATROL Event Manager.
4.10.2 F - J
filter
BMC Remedy AR System
A workflow component that tests every server transaction for certain conditions and responds to the conditions
by taking specific actions. Filters are generally used to check and enforce business rules and processes. They run
only on the AR System server.
Page 89 of 415
Home
global channel
In BMC PATROL, a single dedicated connection through which PATROL monitors and manages a specific
program or operating system. The PATROL Agent maintains this connection to minimize the consumption of
program or operating system resources.
global level
In BMC Performance Manager, the PATROL hierarchy the level at which object properties and attributes are
defined for all instances of an object or class. An object at the local level inherits characteristics (properties) and
attributes from the global level. See also local level.
heartbeat
In BMC Performance Manager, a periodic message sent between communicating objects to inform each object
that the other is still active and accessible.
history repository
In BMC PATROL, a binary file in which parameter values (except those that are displayed as text) are stored by the
PATROL Agent and accessed by the PATROL Console for a specified number of days (the default is one day).
When the number of storage days is reached, those values are removed in a cyclical fashion.
InfoBox
In BMC PATROL, a dialog box that contains a static list of fields and displays current information about an object,
such as the version number of an RDBMS and whether the object is online or offline. Commands are run when
the InfoBox is opened. Information can be manually updated if the InfoBox remains open for a period of time.
PATROL provides a number of commands for obtaining and displaying object information in an InfoBox. Only a
PATROL Console in the developer mode can be used to add or change commands.
information event
In BMC PATROL, any event that is not a state change or an error. Typical information events occur when a
parameter is activated or deactivated, a parameter is suspended or resumed, or application discovery is run. The
BMC PATROL Agent 9.5
Page 90 of 415
Home
default setting for PATROL is to prevent this type of event from being stored in the event repository. To store and
display this type of event, you must modify the persistent filter setting in the PATROL Agent configuration file.
instance
In BMC Performance Manager, an incarnation of a particular class. An instance has all the attributes of the class to
which it belongs. For example, CIs and relationships are instances of their respective classes. Also, see application
discovery, application instance, and computer instance.
4.10.3 K - O
KM
See Knowledge Module
KM configuration file
In BMC Performance Manager, a file in which the characteristics of a KM are defined through KM menu
commands during KM installation and setup (if setup is required). See also Knowledge Module (KM) and PATROL
Agent configuration file.
KM list
In BMC Performance Manager, a list of KMs used by a PATROL Agent or PATROL Console. See also Knowledge
Module (KM).
KM Migrator
See PATROL KM Migrator and Knowledge Module (KM).
KM package
See Knowledge Module package.
KM tree
In BMC Performance Manager, one of two views of folders available in Windows. A feature of PATROL for
Microsoft Windows only. The KM tree displays computer classes, application classes, and their customized
instances in the knowledge hierarchy and also displays the Standard Event Catalog. A PATROL Console in
operator mode can only view the KM tree; only a PATROL Console in the developer mode can change KM
properties and attributes. See also Desktop tree and Knowledge Module (KM).
Page 91 of 415
Home
knowledge hierarchy
In BMC Performance Manager, the rules by which objects inherit or are assigned attributes. (In PATROL Consoles
for Microsoft Windows environments, classes of objects are represented in the Computer Classes and Application
Classes sets of folders on the KM tree.) Properties and attributes of a customized instance override those defined
for the class to which the instance belongs.
load applications
See load KMs.
load KMs
In BMC Performance Manager, to place KM files into memory for execution. After configuration and during
startup, the PATROL Agent loads the KM files that are listed in its configuration file and that reside on the PATROL
Agent computer. When a PATROL Console connects to the PATROL Agent, the KM versions that the agent
executes depend on whether the console has developer or operator functionality. See also Knowledge Module
(KM) and version arbitration.
local history
In BMC Performance Manager, the history (stored parameter values) for an object or instance. See also global
level and local level.
Page 92 of 415
Home
local level
In BMC Performance Manager, the PATROL hierarchy level of a computer instance or an application instance. An
object (instance) at the local level inherits properties and attributes that are defined globally. When properties and
attributes are customized locally for an individual instance, they override inherited attributes. See also global level
.
managed object
In BMC Performance Manager, any object that PATROL manages. See also object.
managed system
In BMC Performance Manager, a system, usually a computer on which a PATROL Agent is running, that is added
(connected) to a PATROL Console to be monitored and managed by PATROL and that is represented by an icon
on the PATROL interface.
management profile
In BMC Performance Manager, a user profile for PATROL Central and PATROL Web Central that is stored by the
console server. A management profile is similar to a session file and contains information about custom views,
your current view of the PATROL environment, information about systems that you are currently managing,
Knowledge Module information, and console layout information for PATROL Central. Management profiles
replace desktop files and session files that were used in PATROL 3.x and earlier.
master agent
See PATROL SNMP Master Agent.
message retries
In BMC Performance Manager, the number of times that the PATROL Console will resend a message to the
PATROL Agent. A feature of UDP only. The greater the number of message retries, the more time the PATROL
Console will give the PATROL Agent to respond before deciding that the agent connection is down and timing
out. The number of message retries multiplied by message time-out (in seconds) is the approximate time allowed
for a connection verification. See also heartbeat, message time-out, and reconnect polling.
message time-out
In BMC Performance Manager, the time interval (in seconds) that the PATROL Console will give the PATROL
Agent to respond to a connection verification before deciding that the Agent connection is down. A feature of
Page 93 of 415
Home
UDP only. The number of message retries multiplied by message time-out is the approximate time allowed for a
connection verification. See also heartbeat, message retries, and reconnect polling.
message window
In BMC Performance Manager, a window that displays command output and error messages from the PATROL
Console graphical user interface. See also response window, system output window, and task output window.
multigraph container
In BMC Performance Manager, a custom object into which you can drop parameter objects to be plotted as
charts. See also PATROL Console Charting Server.
object
BMC ProactiveNet Performance Management
An item that can be inserted into a dashboard. For example, a chart, link, or Active-X control.
A generic term for anything that is displayed in the user interface.
See also class.
object class
BMC ProactiveNet Performance Management
A data structure that defines a type of object. An object class can be a BAROC-language data structure in the
Knowledge Base of a cell or a Common Data Model (CDM) data structure in the BMC Configuration Management
Database. A class is made up of data fields, called attributes (slots) that define its properties. See also event class
and object.
Page 94 of 415
Home
object hierarchy
In BMC Performance Manager, the structure of object levels in PATROL. On the PATROL interface, computers
contain application folders (containers) representing a loaded KM, application folders contain one or more
application instances, and application instances contain parameters.
Object icon
BMC Capacity Optimization
Charts representations of specifications for:
Domains
Computers
Application instances
Alert sets
Alerts
Alert metrics and conditions
Filters
Mail, script, and SNMP trap actions
object window
In BMC Performance Manager, an open object container (folder) that may contain application class icons,
application instance icons, parameter icons, custom containers (folders), and shortcuts. The object window is
displayed when you double-click the object icon. See also application instance, computer instance, object, and
object icon.
operator mode
In BMC Performance Manager, an operational mode of the PATROL Console that can be used to monitor and
manage computer instances and application instances but not to customize or create KMs, commands, and
parameters. See PATROL Console.
Page 95 of 415
Home
override a parameter
In BMC Performance Manager, to disable or change the behavior of a local PATROL application parameter. The
changes to the parameter are local to the managed system running the parameter and are stored in the agent
configuration database. You must be granted specific permissions by a PATROL Administrator through the
PATROL User Roles file in order to override parameters. See also PATROL roles.
4.10.4 P - T
PATROL Agent run queue
In BMC Performance Manager, a time-ordered schedule of actions, such as application discovery and parameter
execution, to be carried out by the PATROL Agent. See also PSL run queue.
parameter
BMC Performance Manager
The monitoring element of PATROL. Parameters are run by the PATROL Agent; they periodically use data
collection commands to obtain data on a system resource and then parse, process, and store that data on the
computer that is running the PATROL Agent. Parameters can display data in various formats, such as numeric,
text, stoplight, and Boolean. Parameter data can be accessed from a PATROL Console, PATROL Integration
products, or an SNMP console. Parameters have thresholds and can trigger warnings and alarms. If the value
returned by the parameter triggers a warning or an alarm, the PATROL Agent notifies the PATROL Console and
runs any recovery actions associated with the parameter. See also parameter history repository and parameter
state.
parameter cache
In BMC Performance Manager, the memory location where current parameter data is kept. In the PATROL Agent's
configuration file, you can set the size of the cache, the maximum number of data points that can be stored, and
the interval (in seconds) for emptying the cache.
parameter override
See override a parameter
Page 96 of 415
Home
parameter state
In BMC Performance Manager, the condition of a parameter. The most common parameter states are OK,
warning, and alarm. A parameter icon can show additional conditions that include no history, offline, and
suspended. A parameter can also be deactivated; when a parameter is deactivated, no icon is displayed. See also
state.
PATROL Agent
In BMC Performance Manager, the core component of PATROL architecture. The agent is used to monitor and
manage host computers and can communicate with the PATROL Console, a standalone event manager, PATROL
Integration products, and SNMP consoles. From the command line, the PATROL Agent is configured by the
pconfig utility; from a graphical user interface, it is configured by the xpconfig utility for UNIX or the wpconfig
utility for Windows. See also PATROL SNMP Master Agent.
Page 97 of 415
Home
PATROL Console
In BMC Performance Manager, the graphical user interface from which you launch commands and manage the
environment monitored by PATROL. The PATROL Console displays all of the monitored computer instances and
application instances as icons. It also interacts with the PATROL Agent and runs commands and tasks on each
monitored computer. The dialog is event-driven so that messages reach the PATROL Console only when a
specific event causes a state change on the monitored computer.
A PATROL Console with developer functionality can monitor and manage computer instances, application
instances, and parameters; customize, create, and delete locally loaded Knowledge Modules and commit these
changes to selected PATROL Agent computers; add, modify, or delete event classes and commands in the
Standard Event Catalog; and define expert advice. A PATROL Console with operator functionality can monitor
and manage computer instances, application instances, and parameters and can view expert advice but not
customize or create KMs, commands, and parameters. See also developer mode and operator mode.
Page 98 of 415
Home
PATROL KM Migrator
In BMC Performance Manager, a PATROL utility used to propagate KM user customizations to newly released
versions of PATROL Knowledge Modules.
PATROL KMDS
See PATROL Knowledge Module Deployment Server (PATROL KMDS).
PATROL roles
In PATROL 3.x and earlier, a set of permissions that grant or remove the ability of a PATROL Console or PATROL
Agent to perform certain functions. PATROL roles are defined in the PATROL User Roles file, which is read when
the console starts.
Page 99 of 415
Home
patroldev
In PATROL 3.x and earlier, a domain group that can be set up by a Windows system administrator to restrict user
access to a PATROL Developer Console . When a user tries to start a PATROL Console with developer
functionality, PATROL checks whether the user is in the patroldev group. If the user is not in the group, a PATROL
Console with operator functionality is started instead. See also ptrldev.
pconfig
In BMC Performance Manager, the command line utility for setting PATROL Agent configuration variables. See
also PATROL Agent configuration file, PATROL Agent configuration variable, wpconfig, and xpconfig.
PEM
See PATROL Event Manager (PEM)#PEM
Quick Query
In PATROL 3.x and earlier, a command on the Tools menu from the PATROL Console main menu bar that
contains built-in predefined commands that you can use to query the agent for frequently needed information.
For example, you can query the agent regularly about all computer instances, application instances, and
parameters that are in a warning or alarm state. See also Agent Query.
reconnect polling
In BMC Performance Manager, the time interval (in seconds) at which the PATROL Console will try to reconnect
to a PATROL Agent that has dropped the previous connection. The longer the interval, the lower the network
traffic. See also heartbeat, message retries, message time-out.
recovery action
In BMC Performance Manager, a procedure that attempts to fix a problem that caused a warning or alarm
condition. A recovery action is defined within a parameter by a user or by PATROL and triggered when the
returned parameter value falls within a defined alarm range.
Home
refresh parameter
In BMC Performance Manager, an action that forces the PATROL Agent to run one or more parameters
immediately, regardless of their polling cycle. Refreshing does not reset the polling cycle but gathers a new data
point between polling cycles.
reporting filter
In BMC PATROL, the filter used by the PATROL Agent when transmitting events to consoles (event cache) from
the event repository (located at the agent) for statistical reports.
response window
In BMC PATROL, an input and output display for many KM menu commands that provides a customizable layout
of the information (for example, the sort method for outputting system process IDs). See also system output
window and task output window.
run queue
See PATROL Agent run queue#runqueue
self-polling parameter
In BMC PATROL, a standard parameter that starts a process that runs indefinitely. The started process periodically
polls the resource that it is monitoring and emits a value that is captured by the PATROL Agent and published as
the parameter value. Self-polling avoids the overhead of frequently starting external processes to collect a
monitored value. A self-polling parameter differs from most other parameters that run scripts for a short time and
then terminate until the next poll time.
session file
In PATROL 3.x and earlier, any of the files that are saved when changes are made and saved during the current
PATROL Console session. A session file includes the session-1.km file, which contains changes to KMs loaded on
your console, and the session-1.prefs file, which contains user preferences. Session files are replaced by
management profiles in PATROL 7.x.
setup command
In BMC PATROL, a command that is initiated by the PATROL Console and run by the PATROL Agent when the
PATROL Console connects or reconnects to the agent. For example, a setup command can initialize an
application log file to prepare it for monitoring. PATROL provides some setup commands for computer classes.
Only a PATROL Console with developer functionality can add or change setup commands.
shortcut
In BMC PATROL, an alias or copy of an object icon in the PATROL hierarchy.
Home
simple discovery
In BMC Performance Manager, a type of application discovery that uses simple pattern matching for identifying
and monitoring files and processes.
snooze an alarm
In BMC PATROL, to temporarily suspend an alarm so that a parameter does not exhibit an alarm state. During the
user-set snooze period, the parameter continues to run commands and recovery actions, and the parameter icon
appears to be in an OK state. See also deactivate a parameter and suspend a parameter.
startup command
See setup command#setupcommand
state
BMC Server Automation
A group of classifications for BMC Server Automation Deploy Jobs. A Deploy Job can be in any of the following
states: Succeeded, Incomplete, Running, Failed, or Reset.
static KM
In BMC Performance Manager, a KM that is not loaded by the PATROL Agent before a PATROL Console with a
loaded KM of the same name connects to the Agent. Once loaded by the agent, a static KM is never unloaded but
continues to run as long as the agent runs, even if all PATROL Consoles with a registered interest disconnect from
the PATROL Agent. If the PATROL Agent stops, static KMs will not be reloaded. See also disable a KM and
preloaded KM.
Home
suspend a parameter
In BMC PATROL, to stop running a parameter for selected computers or application instances. Suspending a
parameter stops parameter commands and recovery actions but does not delete the parameter icon from the
application instance window and does not delete the parameter definition from the KM tree in PATROL Consoles
for Microsoft Windows environments. A suspended parameter can be resumed at any time. You can suspend a
parameter from its pop-up menu. See also deactivate a parameter and snooze an alarm.
task
BMC Remedy ITSM Suite, BMC Service Request Management
A unit of work that needs to be completed as a step in implementing a change request, an incident request, or a
problem investigation. In the BMC Remedy Incident Management and BMC Remedy Change Management
applications, you can also group a number of activities for requests with a number of actions that need to be
completed before the request can be resolved. Your administrator creates task templates and task group
templates that you can reuse for the same types of requests. Tasks can be automatic or manual. See also ad hoc
task and automatic task.
Home
4.10.5 U - Z
unload a KM
In BMC PATROL, to delete a KM from a PATROL Console session in order to stop monitoring the KM-defined
objects on all computers. The KM files are not deleted from the directories on the PATROL Console or the
PATROL Agent computers. The PATROL Agent continues to run the KM, collect parameter data, and run recovery
actions until no connected console has the KM loaded. If a KM has been flagged as static, it will not be unloaded.
See also preloaded KM, and static KM.
user preferences
In BMC PATROL, the PATROL Console settings that designate the account that you want to use to connect to
monitored host computers, prevent a console with developer functionality from downloading its version of a KM
to a PATROL Agent upon connection, disable the commit process for a console with developer functionality,
determine certain window and icon display characteristics, specify the event cache size, and indicate whether
startup and shutdown commands are enabled. A PATROL Console with either developer or operator functionality
can change user preferences.
version arbitration
In BMC PATROL, the KM version comparison that PATROL makes when a PATROL Console connects to a PATROL
Agent. By default, KM versions from PATROL Consoles with developer functionality are loaded rather than
PATROL Agent KM versions, and PATROL Agent KM versions are loaded rather than KM versions from PATROL
Consoles with operator functionality.
view filter
In BMC PATROL, a filter that can be created in an event manager and that screens events forwarded from
PATROL Agents. Views can be created, stored, and reapplied to host computers.
wpconfig
In BMC PATROL for Microsoft Windows only, the GUI utility for setting PATROL Agent configuration variables.
The wpconfig utility can be accessed from a computer pop-up menu on a computer running a PATROL Agent or
a computer running a PATROL Console with developer functionality. See also PATROL Agent configuration file
and PATROL Agent configuration variable.
Home
xpconfig
In BMC PATROL for UNIX only, the GUI utility for setting PATROL Agent configuration variables. You can access
the xpconfig utility from an xterm session command line on a computer running a PATROL Agent or from a
pop-up menu or an xterm session command line on a PATROL Console with developer functionality. See also
PATROL Agent configuration file and PATROL Agent configuration variable.
Home
5 Planning
The topics in this section explain how to manage the performance of the BMC PATROL Agent.
Warning
The variables discussed in this section can significantly affect the performance of the PATROL Agent.
Before changing any tuning variables in a production environment, contact your PATROL customer
support representative.
Home
Note
The PATROL Agent uses minimal space in the registry.
<PATROL_HOME> in UNIX and PATROL_HOME in Windows. The following figure shows the PATROL_HOME
directory structure:
PATROL_HOME directories and files
Home
Note
This brief discussion of PATROL's directory structure is not exhaustive. The directories depicted in the
figure and the files listed in the Files used by PATROL Agent page are the primary directories and files in a
PATROL installation. In your PATROL implementation, additional files and directories may exist
depending upon which platform you run on and which components you install.
UNIX path
Windows path
Home
$<PATROL_HOME>/bin
Binary directory
<PATROL_HOME>\bin
Agent configuration file
(default)
$<PATROL_HOME>/lib/config.default
<PATROL_HOME>\lib\config.default
Event catalog
$<PATROL_HOME>/lib/knowledge/StdEvents.ctg
<PATROL_HOME>\lib\knowledge\StdEvents.ctg
Message catalogs
$<PATROL_HOME>/lib/nls/C/1
<PATROL_HOME>\lib\nls\C\1
PSL and OS scripts
(shipped)
$<PATROL_HOME>/lib/psl
<PATROL_HOME>\lib\psl
scripts
$<PATROL_HOME>/lib/knowledge
<PATROL_HOME>\lib\knowledge
Commit lock
$<PATROL_HOME>/lib/commit.lock
<PATROL_HOME>\lib\commit.lock
Agent configuration files
(customized)
$<PATROL_HOME>/config/ config_<hostName>-<portNumber>
<PATROL_HOME>\config\config_<hostName>-<portNumber>
History file and indices
$<PATROL_HOME>/log/history/<hostName>/<portNumber>/annotate.dat,
dir, param.hist
<PATROL_HOME>\log\history\<hostName>\<portNumbe>\annotate.dat, dir,
param.hist
PEM event log
$<PATROL_HOME>/log/PEM_<hostName>_<portNumber>.log, archive
<PATROL_HOME>\log\PEM_<hostName>_<portNumber>.log, archive
PEM event lock
$<PATROL_HOME>/log/PEM_<hostName>_<portNumber>.log-lock
<PATROL_HOME>\log\PEM_<hostName>_<portNumber>.log-lock
Error log for the Agent
$<PATROL_HOME>/log/PatrolAgent-<hostName>-<portNumber>.errs.~iter~
<PATROL_HOME>\log\PatrolAgent-<hostName>-<portNumber>.errs.~iter~
Home
Note
The profile directory is only used for PATROL Agents running on Windows.
Home
5.4.1 Overview
With version 3.9.00, BMC PATROL Agent supports the Internet Protocol version 6 (IPv6) along with IPv4. BMC
PATROL Agent communicates with its Client or Server services through the Internet protocol. The following table
shows the combination of the communication that happens between IPv6, IPv4, and DUAL configuration
environments.
PATROL Agent > Client/Server services
IPv4
IPv6
DUAL
IPv4
Yes
No
Yes
IPv6
No
Yes
Yes
DUAL
Yes
Yes
Yes
Home
Example
[PEM]
clientsetting
port =
ippreference = IPv6,IPv4
end
Example
Home
[PCONFIG]
clientsetting
port =
ippreference = IPv6,IPv4
end
UserName/HostName/Mode
In the HostName, you can specify an IPv6 address as the host name from which users are authorized to connect
to the BMC PATROL Agent. For more information about defining access control lists using IPv6 address, see
HostName.
Enhancement
gethostinfo()
sopen()
remote_open()
Establishes a communication session with a BMC PATROL Agent running in an IPv6 environment from BMC PATROL Agent running
in a DUAL or IPv6 environment
Note: From version 3.9.00 of BMC PATROL Agent, this function does not support the UDP protocol. Default protocol for this
function is TCP. The underlying communication protocol is TCP even if you specify UDP
For more information about the PSL functions, see the PATROL Script Language (PSL) Reference Manual Volume
2 PSL Functions.
Home
one or more other processes. Then, based on the agent's internal schedule, it returns to finish the suspended
process.
The PSL instruction limits work within this mode of operation to ensure that instruction-intensive processes do
not monopolize the agent.
PSL instruction limits operation
Exceeding the limit
Internal delay
Increasing the limit
Maximum number of instructions
Time period for instruction execution
Home
Note
When monitoring applications with many instances, you may need to increase the default settings.
Numeric, instructions
Default value
0, none
Dependencies
/AgentSetup/AgentTuning/pslInstructionPeriod specifies the time period within which the instructions must be run
Recommendation
None
Numeric, seconds
Default value
Minimum and
maximum
0, none
Dependencies
/AgentSetup/AgentTuning/pslInstructionMax specifies the maximum number of PSL instructions the agent can run in the time
period designated by this variable
Recommendation
None
Home
Note
It is possible to have both prediscovery and discovery PSL scripts running at the same time.
Numeric, seconds
Default value
300
Minimum and
maximum
20, none
Dependencies
/AgentSetup/AgentTuning/procCacheSched Priority
/AgentSetup/AgentTuning/procCachePriority
Home
If either of these variables has a low priority, the cache refresh may be slightly delayed because other processes take priority in
the OS or the agent. For example, the cache may be refreshed at intervals of 310 seconds, 305 seconds, and 300 seconds
depending upon pending and running processes.
Recommendation
None
Numeric, seconds
Default value
40
10, none
Dependencies
None
Recommendation
None
UNIX, OS\2
The lower the value, the higher the priority (faster execution). To raise the priority of the agent to high, you must
enter a negative number. However, raising the priority to high is not advisable because it uses significantly more
system resources and can cause other applications to crash.
11 to 20 low priority
0 to 10 normal priority
-1 to -15 high priority
Home
Example
In the operating system processing queue, a process with a scheduling priority of 2 runs before a process of
8, which runs before a process of 13.
These systems have a default process priority. The PATROL priority is added to the default priority to determine
the agent's process priority on the OS.
Example
A UNIX box's default process priority is 10. The PATROL Agent installed on the box has an agent priority of 5.
Therefore, the priority of the agent process on the OS is 15.
Windows
This configuration variable affects the priority of the agent process on the Windows platform. The agent's default
priority is normal. To change the agent process's priority, you must use the Windows Task Manager.
Windows priorities in order of highest to lowest are:
Realtime
High
Normal
Low
In addition, Windows 2000 offers priorities of AboveNormal and BelowNormal.
To set the priority for the PATROL Agent, specify ranges for the /AgentSetup/AgentTuning/agentPriority variable
as follows:
11 to 20 low priority
0 to 10 normal priority
-1 to -15 high priority
OpenVMS
The higher the value, the higher the priority (faster execution). The current process's priority is the default priority.
Example
Home
In the OpenVMS operating system processing queue, a process with a scheduling priority of 14 runs before a
process of 8, which runs before a process of 3.
On Alpha
Priorities range from 0 to 63, where 63 is the highest.
0 -15 are normal priorities
16 -63 are real-time priorities
On VAX
Priorities range from 0 to 31, where 31 is the highest.
0 -15 are normal priorities
16 -31 are real-time priorities
Default value
10
Minimum and
maximum
0, 19
Override
None
Dependencies
None
Recommendation
The agent process is given a medium priority so that it does not interfere with the processes of the application that it is
monitoring.
Default value
0, 20
Home
Override
None
Dependencies
None
Recommendation
None
Default value
10
0, 20
Override
None
Dependencies
None
Recommendation
None
Default value
0, 20
Dependencies
None
Recommendation
Set this process high (0, 1, or 2). The PATROL process cache must be refreshed before other internal agent processes run.
Home
Default Vvalue
Minimum and
1, 15
maximum
Dependencies
None
Recommendation
If the value is set to 1 or 2, the scheduling algorithm forces a spacing of runqDelta seconds between execution times of jobs in
the Main Run Queue. The runqMaxDelta represents the maximum number of seconds that a job will be delayed from its "ideal"
execution time.
If the value is set to 4, the agent attempts to find the "optimal" execution time by scheduling execution at a time that is furthest
from its neighbors. The agent recalculates the runq slot after each execution. The calculation consumes a lot of resources.
If the value is set to 8, the agent schedules consecutive jobs at least runqDelta apart and runqMaxDelta does not apply. This
option literally forces an interval of runqDelta between execution times. It affects scheduling of all jobs in the agent's Main run
Queue and can allow for an indefinite delay in scheduling.
This force interval option (8) must be used only after other measures such as changing poll times of various parameters have
failed to reduce agent load.
Numeric, seconds
Default value
1, none
Dependencies
None
Recommendation
None
Home
Numeric, seconds
Default value
Override
None
Dependencies
None
Recommendation
None
Numeric, seconds
Default value
40
10, none
Override
None
Dependencies
None
Recommendation
None
Home
Default value
1024
Dependencies
None
Recommendation
None
Numeric, processes
Default value
50
Dependencies
None
Recommendation
None
Numeric, processes
Default value
25
None
Dependencies
None
Recommendation
None
Home
Default value
32
Not applicable
Dependencies
None
Recommendation
None
Note
These parameters only apply to the PATROL Agent running on Windows systems.
Numeric, milliseconds
Default value
10000
Not applicable
Dependencies
None
Home
Recommendation
None
Default value
Not applicable
Dependencies
None
Recommendation
None
Default value
Not applicable
Dependencies
None
Recommendation
None
Home
and Managing with PATROL (Volume 2) or PATROL Console for UNIX User Guide.
Note
Although the following table uses Windows cluster terminology, the agent behavior applies to both
Windows and UNIX clusters.
Events
Description
Illustration
Request
A user requests that the cluster application be started. A request can occur at anytime, including startup.
Start up
The cluster management application runs the application on host A1. It starts the group which starts the
cluster application and starts the PATROL Agent defined within the group. The agent reads the
configuration file stored on a shared drive and starts up based on the file information.
Run
The cluster application performs services and writes data to the shared disk drive. The agent monitors
the application and writes history to the file specified by PATROL_HISTORY_<port>.
Home
SNo
Events
Description
Illustration
Service
The cluster application is unable to access resources that it requires to run. The reason for this
Service interruption
Interrupted
interruption can range from the failure of hardware or software to a forced failover by a system
administrator.
and shutdown of a
cluster application
Shutdown
The cluster management software shuts down the cluster application and the PATROL Agent monitoring
it on host A1.
Service interruption
and shutdown of a
cluster application
Failover
The cluster management software starts the group on B2, which starts the cluster application and the
Failover and
PATROL Agent.
resumption of a
cluster application
Note
Local KM customizations stored on A1 are not available for the PATROL Agent on B2.
7
Resume
The cluster application performs services and writes data to the shared disk drive. The agent on host B2
monitors the application now running on B2 and writes history to the file specified by
Failover and
resumption of a
PATROL_HISTORY_<port>.
cluster application
Home
Environment variables
Windows:
PATROL_VIRTUALNAME_8888=PATROL_Disk
PATROL_HISTORY_8888=K:\history
PATROL_CONFIG_8888=K:\config
UNIX:
PATROL_VIRTUALNAME_8888=PATROL_Disk
PATROL_HISTORY_8888=/history
PATROL_CONFIG_8888=/config
Home
Environment variables
Windows:
PATROL_VIRTUALNAME_8888=PATROL_Disk
PATROL_HISTORY_8888=K:\history
PATROL_CONFIG_8888=K:\config
UNIX:
PATROL_VIRTUALNAME_8888=PATROL_Disk
BMC PATROL Agent 9.5
Home
PATROL_HISTORY_8888=/history
PATROL_CONFIG_8888=/config
Failover and resumption of a cluster application
Environment variables
Windows:
PATROL_VIRTUALNAME_8888=PATROL_Disk
PATROL_HISTORY_8888=K:\history
PATROL_CONFIG_8888=K:\config
BMC PATROL Agent 9.5
Home
UNIX:
PATROL_VIRTUALNAME_8888=PATROL_Disk
PATROL_HISTORY_8888=/history
PATROL_CONFIG_8888=/config
Requirements
Operating
All components
systems
Home
Resource
Requirements
Core x86
and x86-64
Microsoft
Windows
Server 2008
R2, SP1,
x86-64,
Itanium 2
Microsoft
Windows
Server 2008
R2 Core,
64-bit
Microsoft
Windows 7,
x86, x86-64
Microsoft
Windows 8,
x86, x86-64
Microsoft
Windows
8.1, x86,
x86-64
Microsoft
Windows
Server 2012,
x86-64
Microsoft
Windows
Server 2012
R2, x86-64
All components
work with the
following UNIX
operating systems:
Install the C++ runtime patch (PHSS_24627) on the HP-UX 11i platforms.
HP-UX 11.11i
(B11.11),
64-bit,
PA-RISC
HP-UX 11i 2
(B11.23),
64-bit,
Itanium 2,
PA-RISC
HP-UX 11i 3
(B11.31),
64-bit,
Itanium 2,
PA-RISC
Home
Resource
Requirements
BMC recommends that you use technology level TL02 to get WPAR resource utilization data on the AIX 6.1
operating systems.
IBM POWER4, POWER5, POWER6, and POWER7 are supported systems.
Oracle
Solaris 9,
32-bit,
64-bit,
SPARC
Oracle
Solaris 10,
x86, x86-64,
64-bit,
SPARC
Oracle
Solaris 11,
x86, x86-64,
64-bit,
SPARC
The current release of the BMC PATROL KM for UNIX product supports Solaris 10 through update 10.
The supported patch level of Solaris 9 for the current release of the BMC PATROL KM for UNIX product is
111722-04.
Oracle Solaris is supported till version 11.1.
Red Hat
Enterprise
Linux 5.x,
x86, x86-64,
Itanium, IBM
The zSeries system is not supported in Simplified Chinese, Traditional Chinese, Korean, Japanese, French,
and German languages.
x86 refers to Intel PII, PIII, P4, and Xeon 32-bit processor systems.
x86-64 refers to Opteron (AMD 64) and Intel EM64T systems that support 64-bit libraries and executable.
32-bit run-time environments are required on x86-64 operating system.
Red Hat Enterprise Linux 5.x is supported up to version 5.10.
Red Hat Enterprise Linux 6.x is supported up to version 6.5.
zSeries,
64-bit
Red Hat
Enterprise
Linux 6.x,
x86, x86-64,
Itanium, IBM
zSeries,
64-bit
SUSE Linux
Enterprise
Server 10,
x86, x86-64,
Home
Resource
Requirements
Intel
Itanium, IBM
zSeries
SUSE Linux
Enterprise
Server 11,
x86, x86-64,
Intel
Itanium, IBM
zSeries
Oracle
x86 refers to Intel PII, PIII, P4, and Xeon 32-bit processor systems.
Enterprise
Linux 5, x86
x86-64 refers to Opteron (AMD 64) and Intel EM64T systems that support 64-bit libraries and executable.
32-bit runtime environments are required on x86-64 operating system.
Oracle
Enterprise
Linux 5.x,
x86-64
Oracle
Enterprise
Linux 6.x,
x86, x86-64
Monitoring of CentOS 5.x and 6.x is supported only by the BMC PATROL Script Language (PSL) data collection
method. Therefore, BMC recommends not installing BMC PATROL Perform Data Collector while installing BMC
PATROL solution for UNIX and Linux on CentOS. Clear the Perform Data Collector check box in the Product
Selection list on the Select Products and Components to Install page. If you install BMC PATROL Perform Data
Collector, you must manually switch to the PSL method. To switch to the PSL method, in the PATROL console,
right-click UNIX_OS and select Knowledge Module Admin => Toggle PSL/DCM Collection.
Debian 6.0.7
(squeeze) 64-bit
Monitoring of Debian 6.0.7 is supported only by the BMC PATROL Script Language (PSL) data collection method.
Therefore, BMC recommends not installing BMC PATROL Perform Data Collector while installing BMC PATROL
solution for UNIX and Linux on Debian. Clear the Perform Data Collector check box in the Product Selection list
on the Select Products and Components to Install page. If you install BMC PATROL Perform Data Collector, you
must manually switch to the PSL method. To switch to the PSL method, in the PATROL console, rightclick
UNIX_OS and select Knowledge Module Admin => Toggle PSL/DCM Collection.
Before you install PATROL for UNIX and Linux on a 64-bit Linux operating system, you must check
and install the compat-libstdc++-33-3.2.3-61.rpm package or the latest version of the
compat-libstdc++-*.rpm package that contains the library version, libstdc++.so.5.
BMC PATROL for UNIX and Linux supports monitoring of ESX servers as remote hosts. VMware
does not recommend installing any software on the service console. Therefore, BMC
recommends that you use the remote monitoring functionality of PATROL KM for UNIX version
9.12.00.
Home
On 64-bit Linux platform, the following message is displayed after the installation process is
complete. Ignore this message.
ignored: cfg_sec_prms: error while loading shared libraries: libaudit.so.0:
cannot open shared object file: No such file or directory
Before you install PATROL for UNIX and Linux on a 64-bit Debian operating system, you must
check and install the following components: libstdc++5, libaio1, libsdl-mixer1.2, libsdl-net1.2,
libsdl-ttf2.0-0, xaw3dg, libmikmod2, and oss-compat. To install, run the following command:
sudo apt-get -f install libstdc++5 libaio1 libsdl-mixer1.2 libsdl-net1.2
libsdl-ttf2.0-0 xaw3dg libmikmod2 oss-compat
Home
6 Installing
This topic explains how you can install the BMC PATROL Agent. You can install in one of the following ways:
Install PATROL Agent in Windows environment
Install PATROL Agent in UNIX environment
This topic provides the additional information that you need to install BMC PATROL Agent in PATROL
environment or using a Distribution Server. For additional information about the Installation Utility, see the
6.1.1 Requirements
Install PATROL for Microsoft Windows Servers on each computer by using the dedicated PATROL OS account
under which you installed the PATROL Console or PATROL Agent.
If you do not already have a dedicated PATROL account, you can use this topic to learn how to set up such an
account for Microsoft Windows and UNIX platforms.
Home
Warning
Do not use a domain or local Administrator account as the PATROL default account. Such account
usage causes files that are created by PATROL to be owned by the Administrator, which could result in
security or file access problems.
Home
Stand-alone workgroup servers must use a local user account as a PATROL Agent default account.
Servers that are trusted members of a domain can use either a local or a domain account.
Domain controllers must use a PATROL Agent default account that is also a domain account.
Note
If you are not using the PATROL Agent default account as a Console connection account, you will need
to have the Log on locally account rights for the connection account. PATROL Agent first tries to log on
locally; if this fails, it tries to connect to the console by using the network login rights.
KM functions performed
The PATROL Agent uses the PATROL Agent default account to perform the following KM functions:
Collect information from performance counters
Collect information from the Windows event log
Self-tune for peak performance and non-intrusive use of the processor
Access system-level information
Make debug-level output available from the PATROL KM applications
Access the command interpreter for operating-system-level commands
Create and remove processes in the process table for collecting performance data
Agent Dependency
Debug programs
Increase quotas
Log on as a service
Allows the PATROL Agent to be started as a service so that it will start on system boot
Home
Agent Dependency
Administrative rights
BMC recommends that you make the PATROL Agent default account a member of the local Administrators group
of the computer where the agent will reside. On a domain controller, BMC recommends that you make the
account a member of the domain Administrators group.
However, you can choose to remove the PATROL Agent default account from the local or domain Administrators
group. You could also remove the advanced user rights described in the following table. However, if you do so,
the PATROL Agent cannot perform all of its tasks. The following table shows the PATROL for Microsoft Windows
Servers tasks that the Agent cannot perform when the following restrictions are placed on the PATROL Agent
default account:
The account is in a domain user group or local user group, but is not in the domain or local administrators
group.
The account does not have all of the advanced user rights noted in the following table.
Removing rights and admin group membership from the PATROL Agent
KM
Effect
PATROL KM
for Microsoft
Cluster
Server
To be fully functional, the agent outside of the cluster can be in the admin group and
contain all of its rights, while the agents within the cluster are removed from the
administrators group and do not have the seven advanced user rights. The monitoring user
account does not have the Logon As Batch Job user right.
PATROL KM
for Windows
Operating
System
The PATROL Agent default account must be in the local or domain Admins group.
Granting a specific user right is not a valid workaround.
Add the Debug Programs right to the PATROL Agent default account. Membership in the
Administrators group not needed.
Add the Debug Programs right to the PATROL Agent default account.
Add the user right, Backup files and directories to the PATROL Agent default account. For
the security event log, you must also add the user right Manage auditing and security log.
The PATROL Agent default account must be in the local or domain Admins group.
Assign read/write permissions on the temp directory to the PATROL Agent Default
account.
Add the user right, Manage auditing and security log to the PATROL Agent default account.
Home
KM
Effect
The PATROL Agent default account must be in the local or domain Admins group.
PATROL KM
Add the PATROL Agent default account to the Account Operators, Print Operators, or
for Microsoft
Windows
Domain
Services
Add the PATROL Agent default account to the Account Operators, Print Operators, or
Grant the advanced user right log on locally to the PATROL Agent default account.
PATROL KM
for Microsoft
Windows
Active
Directory
Add the PATROL Agent default account to the DHCP Users group.
Grant the PATROL Agent default account the following permission on the DSA Working
Directory and its sub directories: List Folder Contents/Read Data.
The KM reads the registry to obtain the DSA Working Directory. It needs access to the
following registry keys and subkeys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS
Grant the PATROL Agent default account sufficient Active Directory permissions to create
a container object and child container objects in the configuration naming context of the
forest in which the domain controller resides.
Grant the PATROL Agent defaultAccount permission to Create Container Objects in the
Configuration NC and to give Full Control to the created container object and its children.
Grant the PATROL Agent default account sufficient Active Directory permissions to create
a container object and child container objects in the domain naming context of the
domain in which the domain controller resides.
Grant the PATROL Agent defaultAccount permission to Create Container Objects in each
Domain NC and to give Full Control to the created container object and its children.
Warning
Do not use a built-in Windows domain or local Administrator account as the PATROL default account.
Such account usage causes files created by PATROL to be owned by the Administrator, which could
result in security or file access issues.
Home
The installation utility prompts you to select the roles performed by the computer on which you are installing
BMC Software products (the target computer). Before beginning the installation process, review the following
definitions of the roles that are presented in the installation utility and decide which of these roles is performed
by each computer in your environment.
Home
Note
By default, the Default installation type configures the PATROL Agent to connect through port 3181. If
you want to connect the agent from a different port, you must use the Custom installation type.
Note
1.
Home
You can download the complete PATROL for UNIX and Linux product solution or individual
product components from the product EPD website.
If you are installing into a UNIX environment without a browser, perform the following steps to launch the
installation utility:
a. From a command line, change to the directory where the installation utility is located and enter the
following command to start the installation Web server:
./setup.sh -serveronly
A message box is displayed that shows the URL that you can use to connect to the installation Web
server.
b. On another computer with a browser, start the browser.
c. Connect to the installation Web server from the browser to start the installation utility by using the
URL that is displayed in the message box on the computer on which you are installing the product.
Note
On UNIX systems, you cannot eject removable media while the media is being accessed. To
swap CDs, you might need to exit the installation utility, then, from a command line,
change directory to root directory and restart the utility by specifying the absolute path; for
example, /mnt/cdrom/setup.sh.
2. In the Welcome to the Installation Utility window, click Next to begin your installation.
3. Review the license agreement, select Accept, and click Next to continue.
4. In the Select Installation Option window, select Install products on this computer now and click Next to
continue.
5. In the Specify Installation Directory window, accept the default directory and click Next to continue.
By default, PATROL KM for UNIX will be installed into the /opt/bmc directory.
6. In the Select Type of Installation window, select Default and click Next to continue.
7. In the Select System Roles window, select any or all of the following roles to indicate the components that
you want to install and click Next.
If you are installing to a computer that hosts or will host a PATROL Console for UNIX, select Console
Systems.
If you are installing to a computer that hosts or will host a PATROL Agent or PATROL KMs, select
Managed Systems.
If you are installing to a computer that hosts or will host the PATROL Central Operator - Web Edition
(PATROL 7. x architecture) Web server, the PATROL Console Servers, or the RTservers, select
Common Services.
For more information, see Installation account.
8.
BMC PATROL Agent 9.5
Home
8. From the Select Products and Components to Install window, select the items that you want to install (see
following figure)and click Next.
For information about each of the product components you can install see PATROL for UNIX and Linux
Components . Each computer that you want to monitor must have a PATROL Agent installed on it to
collect data. Computers might have one or more PATROL KMs installed on them, depending on what you
want to monitor on the computer.
PATROL for UNIX and Linux Select Product and Components to Install Screen (Default)
9. In the Temporary space for installing external components screen, enter or browse to a directory (for
example, C:\temp for Windows or /tmp for UNIX) on your computer that can serve as a storage location
where the product files can be copied temporarily before being installed on your computer and click Next.
If the directory that you enter does not exist, the installation utility attempts to create it. The installation
utility creates then begins to copy the files required for the product installation from the current CD image.
This process might take a few moments.
Note
Make sure that the temporary directory that you specify has adequate disk space to make a copy
of all the components required by the product that you are installing. After the installation is
complete, the installation utility removes the copied files and the temporary directory.
The Additional CDs Needed screen is displayed and lists in sequence the CDs required to complete the
installation.
10. Insert the CD that is indicated on the Additional CDs Needed screen, then enter the drive letter or mount
volume in the space provided. If you copied the CD to your computer, enter the directory where the image
is located and click Next.
11. When the next Additional CDs Needed screen is displayed, follow the directive to place the original
product CD back in the CD-ROM drive and click Next.
12. {UNIX installations only] If the Provide the System Root Account Properties window is displayed, enter the
ID and password for the root account and click Next.
Note
If you want to continue without specifying the root password, then select Next. You will
need to complete the root configuration at a later time before the products you selected
will run correctly.
If you need to run configuration scripts, you will need to complete the root configuration
or use a sudo account and password in instead of root authorization. See the Installation
Utility Reference Manual for details.
Home
13. In the PATROL Default Account Properties window, enter the user name and password that you want to
use for your PATROL default account and click Next. You should have created this account manually
before you began to install PATROL. (For more information about the PATROL account, see Accounts ).
14. In the Kernel Data Collector Properties UNIX - General window, select DefaultLink and click Next.
15. In the Review Selections and Install window, review the selections carefully to ensure that they are correct:
If you want to change your selections, click Back and make those changes.
If the selections are correct, click Start Install to start installing.
A status window opens that contains current messages, current milestones, and percentage
complete.
16. When the status window reports that the installation is 100% complete, click Next to view the results
window. (Next does not appear until the installation is 100% complete.)
17. (Optional) In the results window, click View Log to review the details of the installation.
18. Click Finish to close the installation utility.
Note
You can download the complete PATROL for UNIX and Linux product solution or individual
product components from the product EPD website.
If you are installing into a UNIX environment without a browser, perform the following steps to launch the
installation utility:
a. From a command line, change to the directory where the installation utility is located and enter the
following command to start the installation Web server:
./setup.sh -serveronly
A message box is displayed that shows the URL to use to connect to the installation Web server.
b. On another computer with a browser, start the browser.
c. Connect to the installation Web server from the browser to start the installation utility by using the
URL that is displayed in the message box on the computer on which you are installing the product.
2. In the Welcome to the Installation Utility window, click Next to begin your installation.
3. In the Review License Agreement window, review the license agreement, select Accept, and click Next to
continue.
4. In the Select Installation Option window, select Install products on this computer now and click Next to
continue.
5.
BMC PATROL Agent 9.5
Home
5. In the Specify Installation Directory window, enter the path up to, but not including, your current
installation directory and click Next.
For example, to install PATROL KM for UNIX into the directory /opt/bmc*/PATROL3-4*, enter PATROL3-4
in the PATROL 3. x Product Directory field.
If your installation directory is at the root level (such as /opt/bmc*)*, do not enter anything into the
PATROL 3. x Product Directory field.
You will specify the PATROL product directory in step 12.
6. From the Select Type of Installation Window, select Custom and click Next.
7. In the Select System Roles window, select any or all of the following roles to indicate the components that
you want to install and click Next.
If you are installing to a computer that hosts or will host a PATROL Console, select Console System.
If you are installing to a computer that hosts or will host a PATROL Agent or PATROL KM, select
Managed System.
If you are installing to a computer that hosts or will host the PATROL Central Operator - Web Edition
(PATROL 7. x architecture) Web server, the PATROL Console Servers, or the RTservers, select
Common Services.
For more information, see Installation account.
8. From the Select Products and Components to Install screen, select the items that you want to install (see
following figure) and click Next.
For information about each of the product components you can install see PATROL for UNIX and Linux
Components . Each computer that you want to monitor must have a PATROL Agent installed on it to
collect data. Computers can have one or more PATROL KMs installed on them, depending on what you
want to monitor on the computer.
Note
If you are installing PATROL KM for UNIX from a Windows server, the PATROL Agent is not listed
as a selectable item in the Select Products and Components to Install screen, as shown in The
following figure . The PATROL Agent is not listed because the PATROL Agent that is a component
of PATROL KM for UNIX is a UNIX agent. If you want to install the PATROL Agent on a Windows
server, you must install the Windows agent from the PATROL for Microsoft Windows Servers
product.
PATROL for UNIX and Linux Select Product and Components to Install screen when installing on UNIX
(Custom)
Home
PATROL for UNIX and Linux Select Product and Components to Install screen when installing on Windows
(Custom)
9. In the Temporary space for installing external components screen, enter or browse to a directory (for
example, C:\temp for Windows or /tmp for UNIX) on your computer that can serve as a storage location
where the product files can be copied temporarily before being installed on your computer and click Next.
If the directory that you enter does not exist, the installation utility attempts to create it. The installation
utility then begins to copy the files required for the product installation from the current CD image. This
process might take a few moments.
Note
Ensure that the temporary directory that you specify has adequate disk space to make a copy of
all the components required by the product that you are installing. After the installation is
complete, the installation utility removes the copied files and the temporary directory.
The Additional CDs Needed screen is displayed and lists in sequence the CDs required to complete the
installation.
10. Insert the CD that is indicated on the Additional CDs Needed screen, then enter the drive letter or mount
volume in the space provided and click Next. If you copied the CD to your computer, enter the directory
where the image is located and click Next.
Note
On UNIX systems, you cannot eject removable media while the media is being accessed. To swap
CDs, you might need to exit the installation utility and then, from a command line, cd to / and
restart the utility by specifying the absolute path; for example, /mnt/cdrom/setup.sh.
BMC PATROL Agent 9.5
Home
11. When the next Additional CDs Needed screen is displayed, follow the instruction to place the original
product CD back in the CD-ROM drive and click Next.
12. In the Provide the PATROL 3. x Product Directory window, enter in the PATROL 3. x Product Directory field
the directory in which you want to install PATROL KM for UNIX.
This directory is appended to the base directory path that is shown in the BMC Products Installation
Directory field. The installation directory was entered in step 5.
13. (UNIX installations only) If the Provide the System Root Account Properties window is displayed, enter the
ID and password for the root account and click Next.
Note
If you want to continue without specifying the root password then select Next. You will need to
complete the root configuration at a later time before the products you selected will run
correctly.
14. If the PATROL Default Account Properties window appears, enter the user name and password that you
want to use for your PATROL default account and click Next. You should have created this account
manually before you began to install PATROL. (For more information about the PATROL Account, see
Accounts ).
Note
The Confirm BMC Product Startup Information window described in step 15 might not be
displayed if you are not installing into a managed system.
15. If the Complete the Confirm BMC Startup Information window appears, perform the following steps:
a. In the Specify the Current Agent Port Number field, enter the port number that you want the
PATROL Agent to use. The default is 3181.
Note
If your previous installation used a different port number, change the default to the current
port number for the PATROL Agent.
b. In the Restart the PATROL agent automatically? field, select the appropriate option:
If you want the installation utility to restart the PATROL Agent after the installation is complete, select Yes.
If you want to restart the PATROL Agent manually after the installation is complete, select No.
Home
1. In the Kernel Data Collector Properties UNIX - General window, select DefaultLink and click Next.
2. In the Review Selections and Start Install window, review the selections carefully to ensure that they are
correct:
If you want to change your selections, click Back and make those changes.
If the selections are correct, click Start Install to start installing.
A status window opens that contains current messages, current milestones, and percentage
complete.
3. When the status window reports that the installation is 100% complete, click Next to view the results
window. (Next does not appear until the installation is 100% complete.)
4. (Optional) In the results window, click View Log to review the details of the installation.
5. Click Exit to close the installation utility.
Note
By default, the Default installation type configures the PATROL Agent to connect through port 3181. If
you want to connect the agent from a different port, you must use the Custom installation type.
a.
BMC PATROL Agent 9.5
Home
a. From a command line, change to the directory where the installation utility is located and enter the
following command to change to installation mode:
change user/install
b. Enter the following command to start the installation Web server
setup.exe -serveronly
A message box is displayed that shows the URL to use to connect to the installation Web server.
c. On another computer with a browser, start the browser.
d. Connect to the installation Web server from the browser to start the installation utility by using the
URL that is displayed in the message box on the computer on which you are installing the product.
2. In the Welcome to the Installation Utility window, click Next to begin your installation.
3. Review the license agreement, select Accept, and click Next to continue.
4. In the Select Installation Option window, select I want to install products on this computer now and click
Next to continue.
5. In the Select Type of Installation window, select Default and click Next to continue.
6. In the Specify Installation Directory window, accept the default directory and click Next to continue.
7. In the Select System Roles window, select any or all of the following roles to indicate the components that
you want to install and click Next:
If you are installing to a computer that hosts or will host only a PATROL Console for Windows, select
Console Systems.
If you are installing to a computer that hosts or will host a PATROL Agent, select Managed Systems.
If you are installing to a computer that hosts or will host the PATROL Central Operator - Web
Edition, or the PATROL Console Server select Common Services.
8. From the Select Products and Components to Install window, select components that you want to install
or accept the defaults and click Next.
9. In the PATROL Default Account Properties window, enter the user name and password that you want to
use for your PATROL default account and click Next. This window is displayed only when you are installing
a product that requires a PATROL logon.
You should have created this account manually before you began to install PATROL. (For more
information, see Installation account.)
10. In the Review Selections and Install window, review your selections and, to make changes, click Back or, to
start installing, click Start Install.
A status window opens that contains current messages, current milestones, and percentage complete.
11. When the status window reports that the installation is 100% complete, click Next to view the results
window. (Next does not appear until the installation is 100% complete.)
12. (Optional) In the results window, click View Log to review the details of the installation.
13. Click Finish to close the installation utility.
Home
9.
BMC PATROL Agent 9.5
Home
9. In the Provide the PATROL 3. x Product Directory window, enter in the PATROL 3. x Product Directory field
the directory in which you want to install PATROL for Windows Servers as appropriate for your installation.
This directory is appended to the base directory path that is shown in the BMC Products Installation
Directory field entered in step 6.
10. If the PATROL Default Account Properties window appears, enter the user name and password that you
want to use for your PATROL default account and click Next. This window is displayed only when you are
installing a product that requires a PATROL logon.
You should have created this account manually before you started the installation process. (For more
information, see Installation account.)
11. In the Complete the Confirm BMC Product Startup Information window, perform the following steps (this
window does not appear if you are not installing into a managed system):
a. In the Specify the Current Agent Port Number field, enter the port number that you want the
PATROL Agent to use. The default is 3181.
Note
If your previous installation used a different port number, change the default to the current
port number for the PATROL Agent.
b. In the Restart the PATROL agent automatically? field, click Yes or No.
12. In the Review Selections and Start Install window, review the selections and, to make changes, click Back
or, to start installing, click Start Install.
13. When the status window reports that the installation is 100% complete, click Next to view the results
window. (Next does not appear until the installation is 100% complete.)
14. (Optional) In the results window, click View Log to review the details of the installation.
15. Click Exit to close the installation utility.
Home
Note
The agent configuration variable has no character size limit.
Home
Home
Home
Home
Sending defaults
You can send a complete set of variables to the PATROL Agent to use as the defaults. This causes all variables to
be saved in the configuration database as override (non-default) variables. The original defaults for the agent
(read from the config.default file) are still in the configuration database but are overridden by the defaults you
send.
PATROL Console for Microsoft Windows User Guide Monitoring and Managing with PATROL, Volume 2
PATROL Console for UNIX User Guide
Variables
/AgentSetup/<name>
/AgentSetup/<type>
/AgentSetup/AgentTuning/<name>
/AgentSetup/AgentTuning/<type>
SNMP name
/snmp/<name>
SNMP type
/snmp/<type>
Home
Home
/AgentSetup/ExternalOverridePolltime
/AgentSetup/maxNumberKmLogFiles
/AgentSetup/maxEventSize
/AgentSetup/XPC_DEBUG/numBackupLogs
/AgentSetup/XPC_DEBUG/debugLogFileSize
/AgentSetup/XPC_DEBUG/XPCServerNames
/AgentSetup/pconfigRequiresAuthentication
/snmp/trapMibTable
/snmp/trapConfTable
/snmp/masterAgentStartLine
/snmp/masterAgentWorkingDir
OSdefaultAccount
OSdefaultAccountAppliesToCmds
xpemPFSnmpEndTime
List of variables that require the PATROL Agent to be restarted
/AgentSetup/preloadedKMsArch
/AgentSetup/defaultAccount
/AgentSetup/accessControlList
/AgentSetup/accessDenyList
/AgentSetup/sessionsInitMayFail
/AgentSetup/defaultDisplay
/AgentSetup/pemEvMemRetention
/AgentSetup/pemLogName
/AgentSetup/PslDebug
/AgentSetup/SnmpConfigAccess
/AgentSetup/MatchShortHostName
/AgentSetup/msvcrtMinVer
/AgentSetup/VmsPtdBufferSize
/AgentSetup/VmsPtdInitAlloc
/AgentSetup/VmsPtdIncrAlloc
/AgentSetup/hostLookupCacheSize
/AgentSetup/EnableSysOutputAclCheck
/AgentSetup/maxOutboundRemoteSessions
Warning
Do not use the PATROL console to edit the /AgentSetup/defaultAccount and OSdefaultAccount
variables. For more information about default account variables, see Modifying the default account
variable.
Home
Home
UNIX (native)
UNIX
Windows
wpconfig See Using wpconfig (Windows) to configure the BMC PATROL Agent
pconfig See Using pconfig to configure the BMC PATROL Agent
Warning
Avoid applying changes to more agents than you need when using pconfig, xpconfig, or wpconfig
variables.
Append the specified values with the values for this variable in the agent
APPEND
DELETE
Merge the specified values with the values for this variable in the agent
MERGE
REPLACE
Home
Note
The DCOM interface is only available on Windows.
Home
2. Assign values to the BMC PATROL Agent Setup variables described in the following table.
BMC PATROL Agent COM variables
Variable
Values
Description
comSecurityLevel
W (default), N,
R, F
Controls the level of information provided by the BMC PATROL Agent to the DCOM client.
W DCOM client can receive and change data on the agent
N No DCOM interface allowed
R DCOM client can receive data from the agent.
F DCOM client can receive, change, and use PslExecute() to run OS commands.
comUserAllowed
Empty String
(default),
Group Names,
User Names
Controls who can access the BMC PATROL Agent DCOM server. Listed users, members of groups,
and the user who started the agent may access the agent DCOM server. Separate multiple values with
the "|" character (no spaces).
This variable, supported only by Windows NT 4.0 and later, takes precedence over any security set by
the Microsoft DCOM Configuration Utility (see Configuring DCOM on BMC PATROL Agents). If you
set comUserAllowed to the empty string, security is determined by the DCOM Configuration Utility.
Note: When entering a user name that is a member of an NT domain, separate the domain name and
the user name with two backslashes.
3. If you changed the comUserAllowed variable, restart the BMC PATROL Agent.
2.
BMC PATROL Agent 9.5
Home
2. Locate the PATROL Agent on the list of applications. Perform either of the following step depending on
how your agent is configured.
a. If the agent runs as a service, select BMC PATROL Agent Service COM Server from the list.
b. If the agent runs as a console application, select BMC PATROL Agent Console COM Server from the
list.
3. Refer to the DCOM Configuration Tool documentation for information about additional configuration
options offered by the tool.
4. Click OK when you have finished configuring DCOM for the PATROL Agent.
5. Repeat this procedure for each PATROL Agent you to which you need a DCOM interface.
Note
Run PCCFG.EXE in the same directory where IPA.TLB resides.
The PATROL Client Configuration dialog box displays the currently selected Extended Security Library file.
PATROL Client configuration dialog box - ESI Library Tab
Home
3. Click Browse, and navigate to directory containing the COM Type Library file.
4. Select the COM Type Library file, and click Open.
5. Click Register to update your computer registry.
6. Click Close.
Home
8 Integrating
This section discusses how the BMC PATROL Agent supports the integration of PATROL Agent with BMC
ProactiveNet Event Manager and contains the following sections:
Integration with BMC ProactiveNet Event Manager
Configuring BMC ProactiveNet Event Manager Integration
Event Buffering
Event tracing
Variables for configuring BMC ProactiveNet Event Manager integration
Applying the configuration to the PATROL Agent
Note
BMC recommends that you send PATROL Agent events to a remote cell for processing, and then
propogate only select events to the BMC ProactiveNet Server cell.
This integration can be configured using the PATROL Agent pconfig interface for event Filtering and Enrichment.
The Enrichment and Filtering rules together form a Event Format. You can thus define Custom Formats.
In case of PATROL Agent looses a connection the connection with PATROL Agent will keep buffering Event in its
cache, and will push those Events to BMC ProactiveNet Event Manager once the connection comes up again.
Note
Integration with BMC ProactiveNet Event Manager is available only on PATROL Agents where the BMC
ProactiveNet Event Manager client library is available.
Home
Note
The Secondary host is a computer running the BMC ProactiveNet Event Manager, that is used in a
failover scenario.
/EventSetup/Configuration/Key = <Key>
For example,
/EventSetup/Configuration/Key = mc
/EventSetup/Configuration/Format = <Format>
Home
For example,
/EventSetup/Configuration/Format = Biip3
Note
PATROL does not populate a value for the Format variable or forward any events by default.
Active variable
The active variable can be set at three levels in the pconfig tree hierarchy. These are the Catalog, Event Class, and
the KM Class. The variable value set at a lower level in the hierarchy always overrides the values set at a higher
level in the hierarchy.
Note
All the event formats available are set to active by default and will be sent to the BMC ProactiveNet Event
Manager, since the active parameter is set.
For example,
8.2.5 Slots
The class slot is used to specify the BMC ProactiveNet Event Manager event class that will be used to trigger the
event. If no value is specified, the generic BMC ProactiveNet Event Manager event CLASS "EVENT" will be used.
Slots can be configured at various level in the hierarchy. The values configured at a lower level in the hierarchy
take precedence over the values configured at a higher level.
Home
For example,
Note
In the examples given above, the global level will use the default description that is specified. The
lower levels in the hierarchy will allow you to specify event descriptions that overrides the
descriptions set at higher levels in the hierarchy
/AgentSetup/bemBufferKeepWait
The duration for which the events are cached in the buffer can be set to a value in the range of 15 minutes to
1440 minutes (24 hours). The default cache is set to 60 minutes.
2.
BMC Software Confidential
Home
Note
Restart PATROL Agent to enable the event trace.
Description
%{AGENT_VERSION}
%{ALARM_MIN}
%{ALARM_MAX}
%{APPCLASS}
%{APPINSTANCE}
%{AVE10}
%{DATE}
%{EVENT_CATALOG}
%{EVENT_CLASS}
%{EVENT_ID}
%{EVENT_SEVERITY}
%{EVENT_STATUS}
Event Manager's Event Status for the alert (For example, ESCALATED)
%{EVENT_TYPE}
Event Manager's Event Type for the alert (For example, ALARM)
%{HOSTNAME}
Hostname
Home
Variable
Description
%{ICON_NAME}
%{IPADDRESS}
IP Address
%{IPADDRESS4}
%{IPADDRESS6}
%{LAST10}
Last Ten Parameter Values (For example, 1.00 2.00 3.00 4.00 5.00 and so on.)
%{LAST10TP}
%{LAST10TS}
Last Ten Parameter Time stamps (For example, 957359389 957359395 957359399 and so on.)
%{OS_TYPE}
%{PARAMETER_NAME}
%{PARAMETER_STATUS}
%{PARAMETER_VALUE}
%{PARENT_INSTANCE}
%{TCP_PORT}
%{TIME}
%{TIMEZONE}
%{UDP_PORT}
%{USERDEFINED}
Home
9 Using
This section describes the tasks that you can perform using BMC PATROL Agent.
Starting and stopping the BMC PATROL Agent
Establishing accounts and ports
Support for compression and streaming
Support for Integration Service
Using pconfig to configure the BMC PATROL Agent
Using xpconfig (UNIX) to configure the BMC PATROL Agent
Using wpconfig (Windows) to configure the BMC PATROL Agent
BMC PATROL Agent security
SNMP configuration and implementation using PEM
SNMP configuration and implementation using PSL
Managing UNIX Environment variables
Support for regular expressions
BMC PATROL SNMP MIB
Home
The platform determines which method you will use to start the PATROL Agent. The agent supports startup
scripts for most platforms.
Default port number
Startup process
Command line arguments for starting the PATROL Agent
Startup process
During startup, the PATROL Agent performs the following processes:
Opens and reads history database
Opens and reads PATROL event logs
Opens PATROL error log
Loads KMs with preloaded statuses
Starts the PATROL SNMP Master Agent (if the variable is set)
You must introduce sleep logic to ensure that all the agent processes are running prior to starting other
application and system processes.
Function
-help
-i
Disables heartbeat
Home
-id <name>
The -id option enables you to override the agent service name that is registered with the RTserver. By
default, PATROL Agents register with the RTserver as hostname_portno. For example, starting a PATROL
Agent on host nebula with the following command:
PatrolAgent -p 4321 -rtserver tcp:nebula:4321 registers the agent with the service name NEBULA_4321.
Use this feature if you have several hosts with the same name in different domains that are all running
PATROL Agents and using the same RTserver. If each host tried to register with the same RTserver using the
default service name, only one host could register. The -id option enables you to register an agent with the
RTserver under a different name than the default.
-install
Loads initial KM; to load multiple KMs, you must specify -km for each KM you want to load. For example:
./PatrolAgent -p 1234 -km UNIX3.kml -km BASE3.kml
Specifying the .kml extension ensures that a .kml file with the same name as a .km file is loaded.
-O <LMP>
-profiling [<logfile>]
Activates PSL profiling Data is only written to the file at agent termination. For more information about PSL
profiling, see the PATROL Script Language Reference Manual.
-integrationservice
<protocol>:<host>:<portNumber>,
<protocol2>:<host2>:<portNumber2>
Tells the agent which Integration Service(s) to connect to, for example: PatrolAgent -integrationservice
tcp:houperfms318:3183.
You can provide multiple Integration Service(s) by providing a comma-separated list.
The agent connects to the first Integration Service in the list. If the connection breaks, the agent connects to
the next Integration Service in the list.
You can also use the integrationService configuration variable or the INTEGRATIONSERVICES environment
Home
-rtserver
Tells the agent which RTserver(s) to connect to, for example: PatrolAgent -rtserver tcp:nebula:2059.
<protocol>:<host>:<portNo>,
<protocol2>:<host2>:<portNo2>
The agent connects to the first RTserver in the list. If the connection breaks, the Agent connects to the next
RTserver in the list.
You can also use the RTServers configuration variable or the RTSERVERS environment variable for this
purpose.
You must define an RTserver if you want to view agent data from PATROL Central Operator - Microsoft
Windows Edition or PATROL Central Operator - Web Edition (PATROL 7.x Consoles). If you do not start the
agent with the -rtserver option, the RTServers configuration variable set, or the RTSERVERS environment
variable set, PATROL 7.x Consoles and the PATROL Console Server cannot communicate with the PATROL
Agent.
-share-sys-output
Shows the same system output window for all consoles that connect to the agent
-v
Reports the OS version number of the computer that the patrolagent.exe is built
Shows the version number of the PatrolAgent executable
Note
This argument accepts both the upper and lower case v'.
-RegServer
-UnregServer
Unregisters COM server and exits (the PATROL installation automatically registers COM server)
Default value
None
Not applicable
Dependencies
None
Recommendation
Home
RTserver precedence
The PATROL Agent can be told to which RTserver to connect using three different methods: command line
argument, configuration variable, and environment variable. If you use more than one method to specify RTserver
connections, then the PATROL Agent uses the RTserver connection methods in the following order:
1. Command line argument
2. Configuration variable
3. Environment variable
When a value is undefined, the next value is tried. When a value is defined but has no valid RTserver in the list
(example unparseable syntax or unresolvable hostname), the next value is not tried. The PATROL Agent will start
without using COS/RTserver. The PATROL Agent will also start without using COS/RTserver if none of the values
are defined.
Home
A variety of PATROL utilities, particularly the pconfig +KILL option discussed in Using pconfig to configure
the BMC PATROL Agent
The PATROL Developer Console (click the host icon, and select Developer > Kill Agent)
Improper shutdown
Ending the agent improperly can cause problems including corruption of history files and event log files.
Following are common methods of improperly stopping the PATROL Agent:
The computer crashes.
The computer is shutdown properly, but the PATROL Agent is still running.
The PATROL Agent process is interrupted using the 'kill -9' command which forces the agent to stop
without giving it a chance to close its files.
Note
BMC recommends that you add logic to stop the PATROL Agent as part of your system shutdown
scripts.
For information about repairing corrupt history databases, see Fixing a corrupted history database.
Note
Access Control List settings can prevent your account from accessing the configuration utility.
Home
Syntax
The basic syntax of the stop command for the pconfig utility is as follows:
Options
The following table lists the options available for +KILL.
Option
Description
-host <hostName>
-debug
-lp
Specify local port in a fire wall that separates utility and agent
-port <portNumber>
+tcp
+verbose
Home
from PATROL Console. A message notifies you that the PATROL Agent is bound to the TCP port you specified.
The port number is optional. If no port number is indicated, use the default port number, 3181.
For a complete list of command line arguments, see Command line arguments for starting the PATROL Agent.
Note
The two types of shutdown scripts in the stopping tasks are offered as examples. They are not
necessarily robust or complete solutions for every environment.
Note
The short sleep command gives the agent time to close its files and child processes before the operating
system starts to remove resources as part of its normal shutdown procedure. Experiment with your sleep
interval. It will vary based on hardware, processes running external to PATROL, number of applications,
instances, and parameters running, and other environmental factors.
Stopping the PATROL Agent for UNIX with a configuration utility script
This section explains how to use a script to call the PATROL configuration utility, pconfig, which will stop the
PATROL Agent on a UNIX host.
Home
You can use the PATROL utility, pconfig, to stop the agent. Create a shell script that resembles the following
example:
Note
The short sleep command gives the agent time to close up its files and shutdown its child processes
before the operating system starts to remove resources as part of its normal shutdown procedure.
Experiment with your sleep interval. It will vary based on hardware, processes running external to
PATROL, number of applications, instances, and parameters running, and other environmental factors.
Home
Note
For Windows 2003 and Windows XP, the right to increase Quotas is represented as the right to Adjust
memory quotas for a process. For Windows 2003, the right to log on locally is represented as the right to
Allow log on locally.
If the user account does not have the correct rights, a notification dialog is displayed. To modify an account's
rights, open the Windows User Manager, modify the rights for the user account accordingly, and run the
Configuration utility again.
Note
Home
If you have already overridden the /AgentSetup/defaultAccount (creating an agent configuration change
file), this task does not have any effect. It changes the value of /AgentSetup/defaultAccount in the
config.default file, which is overridden by the value stored in agent configuration change file.
1. Click Start > Programs > BMC PATROL > Agent Configure.
The PATROL Agent Configuration dialog box is displayed.
PATROL Agent configuration dialog box
Starting the PATROL Agent for Windows with the services applet
This section explains how to use the Windows services utility to start the PATROL Agent on a Windows host.
1.
BMC PATROL Agent 9.5
Home
1. For Windows 2000 or later, select Start > Settings > Control Panel > Administrative Tools.
2. Double-click the Services icon. The Services dialog box is displayed.
3. For Windows 2000 or later, select the BMC Patrol Agent service, then select Action > Properties, enter any
command line arguments in the Start parameters field, click Start.
The PATROL Agent service starts.
From version 9.5.00 onwards, the Display name for PatrolAgent Windows service name is "BMC PATROL
Agent".
Home
Stopping the PATROL Agent for Windows with the services applet
This section explains how to use the Windows Services utility to stop the PATROL Agent on a Windows host.
1. For Windows 2000 or later, click Start > Settings > Control Panel > Administrative Tools.
2. Double-click the Services icon.The Services dialog box is displayed.
3. For Windows 2000 or later, select the Patrol Agent service, then click Action > Stop.
The PATROL Agent service is stopped. When the computer restarts, the Patrol Agent service starts up again.
Syntax of PATROL$STARTUP.COM
The syntax of the PATROL$STARTUP.COM command is as follows:
@PATROL$HOME:[parm90:MANAGE]PATROL$STARTUP.COM <portNo>
Home
where <portNo> indicates the TCP/IP communications port to use when connecting to the PATROL environment.
If no port number is indicated, the default port number 3181 is used.
If the logical name PATROL$HOME has not been defined, use the appropriate path to run the command; the
PATROL$STARTUP.COM DCL command procedure then makes all the required logical name definitions.
Home
2. Insert the following lines into the system-specific startup procedure SYS$MANAGER:SYSTARTUP_VMS.COM
after the commands used to start the TCP/IP package:
SUBMIT/NOPRINT/USER=PATROL
PATROLDISK4:[parm90:PATROL.MANAGE]PATROL$STARTUP/
PARAMETERS=3181
Home
9.2.2 Accounts
BMC PATROL Agent must use a valid account to run parameters, recovery actions, and application discovery. By
default, it uses the account used to install PATROL. However, you can change the account that the agent runs
under. You can also designate the agent to use particular accounts for applications and instances.
In environments where trusted connections are supported, you can assign an account to be used by a trusted
connection that does not have an account on a particular host.
Home
Default value
Not applicable
Dependencies
None
Recommendation
None
Default value
None
None
Dependencies
None
Recommendation
Value must contain a complete path, such as "/bin/sh" or the PATROL Agent will not work properly.
This variable is not available in the config.default file. You must create this variable manually by using wpconfig
(Windows), xpconfig (UNIX), PATROL Configuration Manager, or a PSL pconfig script such as the following:
If the variable is set to NULL, the agent defaults to the shell given in the password file of the default account. If
the value does not contain a complete path, the PATROL Agent will not work properly.
Home
Default value
Not applicable
Dependencies
None
Recommendation
None
TimeZone/OffsetValue
TimeZone= the name of the time zone
OffsetValue = the offset value, in minutes, for the specified time zone. Begin the OffsetValue with a + or - sign.
Default value
NULL
None
Dependencies
None
Recommendation
None
If you define the timeZone variable as TZ1/+200,TZ2/-100, the PATROL Agent recognizes TZ1 and TZ2 as time
zone strings and will use their corresponding offset values for date conversion calculation. By default, the value
of the variable is NULL.
Default value
Home
Not applicable
Dependencies
None
Recommendation
None
Default value
None
None
Dependencies
None
Recommendation
None
Note
This variable is available only for Microsoft Windows platforms.
Boolean, yes or no
Default value
Not applicable
Dependencies
None
Recommendation
None
Home
Note
This variable is applicable only to installations using supported external authentication services, currently
Kerberos 5.
Default value
Patrol
If the agent fails to get the client's account, and this variable is not set or set to a non-valid account, the agent rolls back to
"username/encryptedPassword" scheme used on non-trusted connections
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
None
Default value
None
Not applicable
Dependencies
Recommendation
None
The /AgentSetup/pemCommands_policy variable specifies under which account all PEM commands will run.
Values
Default value
Not applicable
Home
Dependencies
Recommendation
None
9.2.3 Ports
The agent allows you to specify the default port on UNIX and specify the port used to communicate through a
firewall in a secure environment. PATROL also allows you to establish ports for sending and receiving SNMP trap
information.
9.3.1 Compression
The compression feature in BMC PATROL Agent provides the best compression ratio and helps efficiently reduce
the usage of network bandwidth. The pconfig, PatrolCli, and PEMAPI application interfaces are compatible with
this feature.
To disable compression, you can use the BMC_PATROL_DISABLE_COMPRESSION operating system environment
variable. You can add this variable on the clients such as the pconfig and PatrolCli client applications, and the
server such as BMC PATROL Agent, and set it to a value of 1.
You can disable the compression by setting the BMC_PATROL_DISABLE_COMPRESSION operating system
environment variable on any one component before starting the component. If you set the operating system
environment variable on the computer running BMC PATROL Agent and then start the agent, the product
disables compression for all the clients that communicate with this agent.
Home
If you want to disable compression for a specific client only, you can set the
BMC_PATROL_DISABLE_COMPRESSION operating system environment variable on that client only. By doing so,
you do not affect the other clients.
9.3.2 Streaming
The streaming functionality provides the BMC PATROL Agent client applications (subscription applications) with
real-time data. BMC PATROL Agent collects the generated data and actively passes the data to its subscribers.
Note
The streaming and compression functionalities are supported only by version 8.0 of BMC ProactiveNet
Analytics (PATROL Adapter).
Note
Home
BMC PATROL Agent does not support User Datagram Protocol (UDP) protocol communication with the
Integration Service.
/AgentSetup/integration/integrationMaxNumRetries
/AgentSetup/integration/integrationRetryPeriod
/AgentSetup/integration/integrationConnectTimeout
/AgentSetup/integration/publishHostName
For more information about these variables, see Integration.
Home
Security configuration
There are different security settings depending on the security level of your PATROL Agent.
Security level 0 to 2
For PATROL Agents running at security levels ranging from 0 to 2, the out-of-the-box setting at the PATROL
Agent skips the validation of the Integration Service. You can use the 'security_mode' attribute that has been
added to the PATROL Agent's Integration Service policy. The 'security_mode' attribute can have the following
values:
NO_AUTH This is the default value, and it indicates that the PATROL Agent will not validate the
Integration Service.
KNOWN_HOST This value indicates that the PATROL Agent needs to validate the Integration Service. For
this, the public key of the Integration Service must be available in the secure key store of the PATROL
Agent. If this is not available, the connection with the Integration Service will be rejected.
Note
The Integration Service specific client policy is at the following location:
For UNIX:
/etc/patrol.d/security_policy_v3.0/proxy.plc
For Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\BMC Software\Patrol\SecurityPolicy_v3.0\PROXY
Security level 3
The Integration Service's export certificate is made available to the agent by adding it to the KDB pointed to by
the agent's client policy.
As part of the security handshake, the PATROL Agent will validate the Integration Service's certificate with the
certificate authority.
Home
Security level 4
For security level 4, both the PATROL Agent and the Integration Service need to have their own certificates and
each other's export certificates in their respective client and server policies.
The PATROL Agent needs to have the Integration Service's export certificate into the KDB associated with its
client policy.
In addition, the PATROL Agent's export certificate needs to be added into the KDB associated with Integration
Service's server policy.
As part of the security handshake, both the PATROL Agent and the Integration Service will validate each other's
export certificate with the certificate authority.
Importing the Integration Service public key into the PATROL Agent
In order to validate the Integration Service, the PATROL Agent must have the Integration Service's public key. You
can get the Integration Service's public key (.cfg file) by using the Integration Service UI's ExportKey functionality.
The .cfg file contains the Integration Service's public key in the following format:
"/SecureStore/KeyStore/known_hosts/ <IntegrationService_Name>/Kpub" = {REPLACE
="<CONTEXT>/<Public Key>"}
When you apply this configuration to the PATROL Agent, the PATROL Agent will add the key and value Public Key
to its secure keystore for the specified hostname and context. For multiple Integration Services, the public keys
for each Integration Service must be imported into the PATROL Agent.
If the security policy mode is defined as KNOWN_HOST, the PATROL Agent will send the encrypted messages
(encrypted using the public key of the Integration Service) to the staging adapter.
Default value
None
Not applicable
Dependencies
None
Recommendation
Home
Home
Reading configuration
pconfig +get|-get|+g|-g [+Defaults|-Defaults|+D|-D] [options] [-save filename|-s
filename]
Writing configuration
pconfig [options] filename(s)|-- pconfig [options] +PURGE|-PURGE|+P|-P [filename(s)|--]
pconfig [options] +RELOAD|-RELOAD|+R|-R [filename(s)|--]
[options] Available
-host|-ho hostname -port|-p portnumber -debug|-d level -lp portnumber +tcp|-tcp
-timeout seconds +verbose|-verbose|+v|-v -user|-U username -password|-W password
<domain>\\<username>/*/*
The pconfig utility will not accept the Windows domain notation without the backslashes.
Home
Command string to
use
Additional information
pconfig +get
[options] - save
The resultant file contains the change information. That is, this file can be used to
re-create the source configuration when applied with the config.default file. The
filename
default is stdout.
[options]
Note - If the file already exists, the save option appends the new information to the
end of the file. When using the host option, you can specify multiple host names.
information about multiple hosts is saved to the same file.
pconfig -help
pconfig +KILL
This command can be used to stop any agent that is accessible on the network.
pconfig.
Stop the PATROL Agent.
[options]
[options]
available for
+KILL:
-host <hostname>
-debug
-lp
-port <portnumber>
+tcp
+verbose
-user <secure
username>
-password
<plain-text-secure
password>
Home
Task to perform
Command string to
use
Additional information
pconfig [options]
This option does not remove or modify any changes applied to the configuration; it
reapplies the underlying default configuration file and combines it with the changes.
+Reload [+PURGE]
filename
The result is a configuration database built from the new default configuration and
from the changes that had been applied previously.
[options]
available for
You can specify the files to use to create the new configuration. You can use more
+Reload
than one file name separated by a space, or you can use -- for stdin.
-host <hostname>
-debug
-lp
-port <portnumber>
+tcp
+verbose
-user <secure
username>
-password
<plain-text-secure
password>
-timeout
Remove the existing
configuration from the
destination agent and create
another one from the
config.default file.
pconfig [options]
None
+PURGE [+Reload]
filename
[options]
available for
+PURGE
-host <hostname>
-debug
-lp
-port <portnumber>
+tcp
+verbose
-user <secure
username>
-password
<plain-text-secure
password>
-timeout
pconfig +RESTART
None
[options]
[options]
available for
+RESTART
-host <hostname>
-debug
-lp
-port <portnumber>
+tcp
+verbose
Home
Task to perform
Command string to
use
Additional information
-user <secure
username>
-password
<plain-text-secure
password>
Display the version information
of pconfig.
-version
Option to
Additional information
use a
Get Help on the
options for pconfig.
-help
You can use the -help option with another option to get a description of that option.
+ verbose
+v
None
-debug
The default is 0.
-d
+Defaults
None
Specify the
filename1
You must separate the names of change files with a blank space. This option cannot be used with the +get
configuration change
files to be used.
[filename2...]
-host name
You can specify either the host name for the agent from which you want to get a configuration or the host
of the agents.
-ho
name for the agents you want to configure. The default is the name of the local host. You can specify
multiple hosts by using a comma-separated list with no intervening spaces. For more information, see
-lp num
You can specify either the local port for the agent from which you want to get a configuration or the local
port for the agents you want to configure. The default local port number is 0.
-port num
You can specify either the port for the agent from which you want to get a configuration or the port for the
-p
agents you want to configure. The default port number for version 3.4 or later is 3181. The default port
number for version 3.3 or earlier was 1987.
--
Home
Task to perform
Option to
Additional information
use a
Display the version
information of
pconfig.
-version
Authenticate pconfig
commands to the
agent.
-user
-U
If you set the /AgentSetup/pconfigRequiresAuthentication variable to yes, then you are required to provide
a valid account to run pconfig commands. These options allow you to do that at the command line. When
you use stdin, the first line must be the password.
-password
-W
Specify the number of
seconds before a
connection timeout
occurs.
-timeout
This option is useful when transferring a configuration file which contains over 2,000 variables.
The following command purges the configurations in the agents on port 3107 for hosts called nile, ohio, and
monongahela. It then builds new configuration files from the config.default and the hud.cfg files.
Home
The following tasks explain how to use the pconfig command line utility to modify the PATROL Agent
configuration variables on UNIX and Windows.
Home
Note
If you set the /AgentSetup/pconfigRequiresAuthentication variable to yes, you will not be able to use
xpconfig.
Home
Command
Description
File
Open
Save
Save As
Saves the change file for the PATROL Agent to a name you specify.
Exit
Add
Displays the Add Variable dialog box to insert a new variable into the configuration.
Modify
Displays the Modify Variable dialog box to modify an existing variable in the configuration.
Reset to
Default
Delete
Displays the Delete Variable dialog box to delete an existing variable from the configuration.
Select All
Deselect All
Delete All
Add
Delete
Select All
Deselect All
Edit
Host
Home
Options
Delete All
View
Use this command to view the contents of a change file. You can search for entries while viewing the file.
Reload
Reloads the config.default file and the change file for a PATROL Agent.
Purge
Removes the existing configuration from a PATROL Agent and builds a new configuration from the config.default file and
the change file for the PATROL Agent.
Reinitialize
Displays the Reinitialize Agent dialog box to restart the PATROL Agent.
Agent
Stop Agent
Displays the Kill Agent dialog box to stop the PATROL Agent.
Send
Defaults
Use this procedure to send a complete set of variables to the PATROL Agents to use as the defaults.
Home
To start the xpconfig configuration utility and access the xpconfig primary window from an xterm session, use the
xpconfig command at the command line.
Options for starting the xpconfig Configuration Utility from the command line
Use the following table to find the xpconfig configuration utility option for the task you want to perform.
Options for starting the xpconfig from the command line
Task you want to perform
Option
to use
Additional information
-host
<name>
When the program exits, it saves the current host list to use next time; however, the command
line arguments override these settings.
-port
<num>
The default port number for version 3.4 or later is 3181. The default port number for versions
3.3 or earlier was 1987.
-version
Home
Home
Stopping an operation
While it is not recommended, if you feel you have received enough information to consider an operation
complete, you can click Stop to halt the operation.
Clicking Stop does not abort the operation. The operation is considered complete with whatever information is
retrieved when you clicked Stop.
To abandon any changes not yet applied and return to the xpconfig primary window
Click Cancel.
To stop viewing the change file and return to the xpconfig primary window
Select File > Exit.
To select a change file when you do not know the file path
1. Click Filter to list only the configuration files.
2. Scroll the Directories list and double-click the appropriate directory name.
3. Scroll the Files list and double-click the appropriate file name.
4. Click OK.
Home
3. Click Yes.
The agent restarts and the system displays a series of messages about the restart of the agent.
4.
BMC PATROL Agent 9.5
Home
4. If you have a PATROL Console running, in the console's main window, reconnect the BMC PATROL Agent
by using MB3 to click the icon for the computer running the BMC PATROL Agent and selecting Update
Connection.
If you are using PATROL Central Operator Microsoft Windows Edition, use the Connect to Managed
System command to update the connection.
9.6.6 Reloading the config.default file and change file for the BMC PATROL
Agent
Use this procedure to reload the config.default file and the change file for the BMC PATROL Agent from the
xpconfig configuration utility. This procedure is helpful if the config.default has been modified.
To reload the config.default file and change file for the BMC PATROL Agent
1. In the primary window of the utility, click the host where you want to reload the config.default file and the
change file for the BMC PATROL Agent.
The host is highlighted.
2. Select Options > Reload.
The Reload Configuration dialog box is displayed.
Reload configuration dialog box
3. Click Yes.
The agent reloads and shows the changes made to the config.default file and the change file. Changes that
require the agent to reinitialize are not displayed.
Home
Go to
Home
Task to perform
Go to
Send a complete set of variables to the PATROL Agents to use as the defaults.
Purge (remove) the existing configuration from a PATROL Agent and create another one from the
PATROL Agent
Home
Home
Home
3. Type the text to search for (the search function is case-sensitive), and click OK.
4. Exit the View view only dialog box by selecting File > Exit.
The system displays the primary window.
Home
Warning
Take care to only apply configuration changes that you intend to change. Pay special attention to any
asterisks that are displayed next to variables listed in the Variables Box of the Primary Window. An
asterisk means that the variable has changed. Review all modified variables before clicking the Apply
Configuration button. If you do not want to apply the change associated with a variable that is marked
by an asterisk, you must delete the variable from the Variables Box before clicking the Apply
Configuration button.
Note
Modifying some variables require reinitializing the agent. Verify whether any variable that you have
modified has this requirement. Restart the agent if this is true for one or more variables.
Home
4. Click Yes.
The configuration file is purged and the system displays a series of messages that show the progress of the
operation.
Go to
Home
Task to perform
Go to
Go to
Home
2. Click etc/host or ypcat host, depending on which list of hosts you want to select from.
The system displays the appropriate host list.
3. Perform one of the following actions:
Select a host from the list.
Type a host name in the Enter hostname box.
4. Perform one of the following actions:
To add the name to the host list and remain in the Add Hosts dialog box to select another name,
click Apply.
The host is added to the host list.
Home
To add the name to the host list and close the Add Hosts dialog box, click OK.
The host is added to the host list and the system displays the primary window.
2. In the Variable box, type the variable name in the form /path/variable_name. If the variable does not exist,
it will be created.
3. In the Value box, type the variable's value. If the value is a list, separate the items by commas since the
append, merge, and replace operations require commas to distinguish the values.
4. Perform one of the following actions:
To add the new variable to the change file and leave the Add Variable dialog box open to add
another variable, click Apply.
The variable is added to the change file.
To add the new variable, close the dialog box, return to the primary window, and click OK.
The variable is added to the change file and the system displays the primary window.
Home
Home
Home
The variable name and value (or default value, if it is a default variable) are shown in the two fields at the
top of the dialog box. You cannot edit these fields. Any change entries for the variable are listed in the
middle of the Edit Variable dialog box.
Methods for modifying a long text entry in the Edit Variable dialog box
If the value you want to enter is particularly long or in a separate file, you can either type it or import it:
To type a value, click Change to see the Change applied directly dialog box. You can type long values into
this box and see more of the text as you type.
To import text, select File > Load. The Text File dialog box is displayed.
You can restore the Change field to the value of the selected change entry by clicking Undo.
1. Select a configuration file.
2. When you have edited this text, select File > Exit. You will get a dialog box asking whether you want to save
your changes.
3. Click Apply to add your modification to the change entry.
4.
BMC Software Confidential
Home
Home
You have started the xpconfig configuration utility, opened a change file, and accessed the Edit Variable
dialog box by clicking the variable for which you want to delete the change entry.
5.
Home
To apply the change and remain in this dialog box, click Apply.
The name is changed.
To abandon any changes not applied yet, click Cancel.
The change is canceled, and the system displays the primary window.
Note
If you set the /AgentSetup/pconfigRequiresAuthentication variable to yes, you will not be able to use
wpconfig.
Home
Command
Description
File
New
Open
Opens an existing PATROL Agent configuration by loading the config.default file and the change file you specify.
Save
Save As
Saves the change file for the PATROL Agent to a name you specify.
Exit
Undo
Cut
Copy
Paste
Select All
Add Variable
Displays the Add Variable dialog box to insert a new variable into the configuration.
Modify Variable
Displays the Modify Variable dialog box to modify an existing variable in the configuration.
Delete Variable
Displays the Delete Variable dialog box to delete an existing variable from the configuration.
Reset to Default
Toolbar
Status Bar
Get Configuration
Displays the Get Configuration dialog box to open an existing PATROL Agent configuration.
Apply
Configuration
Displays the Apply Configuration dialog box to send the currently opened configuration to a PATROL Agent.
View Changes
Displays the View Changes window to show the changes made to the configuration.
Reload Agent
Reloads the config.default file and the change file for a PATROL Agent.
Purge Agent
Removes the existing configuration from a PATROL Agent and builds a new configuration from the config.default
file and the change file for the PATROL Agent.
Reinitialize Agent
Displays the Reinitialize Agent dialog box to restart the PATROL Agent.
Kill Agent
Displays the Kill Agent dialog box to stop the PATROL Agent.
Edit
View
Tools
Home
Options
Help
Command Security
Provides the option to include username and password for the PATROL Agent, if you have set the value of the
/AgentSetup/pconfigRequiresAuthentication variable.
Include Default
Variables
Specifies whether to include the default variables and their values when saving and applying configuration changes.
The default value for this option is off so that default variables are not included.
Purge Before
Applying
Specifies whether or not to purge a remote agent configuration before applying a new configuration. The default
value for this option is off so that the remote agent is not purged.
About wpconfig
Displays the About box containing the version number of wpconfig and other information about PATROL.
Show PATROL
Displays the Notice box containing the recommendation for PATROL Configuration Manager.
Config Mgr
warning
wpconfig toolbar
Home
Note
In Step 2, the -v option can be used to display the version number of wpconfig.
Home
Home
Home
You have read Using wpconfig (Windows) to configure the BMC PATROL Agent, and Overview of wpconfig
functions.
You have started the wpconfig configuration utility.
2. Specify the type of change entry you want and the value for the change.
3. Click OK in the Change Entry dialog box.
4.
BMC PATROL Agent 9.5
Home
Note
You can also use the pconfig and xpconfig utilities to modify this account. See Overview of the xpconfig
configuration utility and Overview of the pconfig command line configuration utility.
Home
3. Specify the user name and password for the default user account. You must type the password twice for
verification.
4. Click OK in the Set Default Account dialog box.
5. Click OK in the Modify Variable dialog box.
The change entry is added to the variable and a red icon is displayed next to the name of the variable that
has been changed.
Home
Deleting the variable means that it is not included when applying a configuration to a remote agent or when
saving to disk. Deleting does not remove the variable from a remote agent's configuration. To delete a variable
from a remote agent's configuration, modify the variable to include the "DELETE" change command in the
variable's change entry list.
Note
You cannot delete default variables from the configuration. If you attempt to delete a default variable, a
warning message says that the variable cannot be deleted, and the variable is left unchanged.
Home
Home
2. Specify the host name of the remote agent and the port and protocol to use when establishing the
connection.
3. Click OK.
The configuration for the PATROL Agent is updated.
Home
Method of
maintaining
Task reference
Allows you to install one of five security level policies which secure the dataflow between the
security
Security levels
The default account for commands run by the agent is specified by the defaultAccount
variable in the agent configuration file. The agent cannot run application discovery and
parameters properly without a valid user name.
permissions on UNIX
The Access Control List (ACL) is defined by an agent configuration variable. The ACL specifies
which user names can be used with which computers when connecting with an agent.
and permissions
If the $PATROL_ADMIN environment variable is set, it specifies the user that owns all of the
newly created log and configuration files.
If the $PATROL_ADMIN environment variable is not set, the user PATROL owns all of the files
by default.
PATROL Access
Control
Home
Owner
Permissions
PATROL_HOME/log
PATROL_HOME\log
AgentSetup/defaultAccount
PATROL_HOME/bin
PATROL_HOME\bin
root
PATROL_HOME/config
PATROL_HOME\config
AgentSetup/defaultAccount
Owner
Permissions
config/config_<host>-<port>_.dat
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
config/config_<host>-<port>_.idx
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
log/PatrolAgent_<host>-<port>_.errs
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
log/history/<host>/<port>/dir
AgentSetup/defaultAccount
log/history/<host>/<port>/annotate.dat
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
log/history/<host>/<port>/param.hist
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
log/PEM_<host>-<port>.log
AgentSetup/defaultAccount
UNIX = 0644
Windows = Change
Home
change the ownership of PATROL_HOME/log and PATROL_HOME/config directories and any files within those
directories to the new user.
Note
The /AgentSetup/defaultAccount and OSdefaultAccount variables can also be modified through
configuration utilities. See Modifying the default account variable.
PATROL_ADMIN=user;export PATROL_ADMIN
If you are using the csh, modify the following line in PATROL_HOME/../.patrolrc:
2. Change the ownership of PATROL_HOME/log and PATROL_HOME/config directories and any files within
those directories by using the following command:
Home
Home
Default value
Not applicable
Dependencies
None
Recommendation
Name of executable
The /snmp/masterAgentName configuration variable specifies the name of the PATROL SNMP Master Agent
executable file. This variable is used to build the start line.
Note
/snmp/masterAgentName does not work for UNIX.
Default value
snmpmagt
Not applicable
Dependencies
None
Recommendation
None
Name of directory
The /snmp/masterAgentDir configuration variable specifies the name of the directory that contains the PATROL
SNMP Master Agent executable file. This variable is used to build the start line.
Note
/snmp/masterAgentDir does not work for UNIX.
Home
Default value
bin
Not applicable
Dependencies
None
Recommendation
None
Default value
snmpmagt.cfg
Not applicable
Dependencies
None
Recommendation
None
Default value
lib
Not applicable
Dependencies
None
Recommendation
None
Default value
NOV
Not applicable
Home
Dependencies
None
Recommendation
Default value
log
Not applicable
Dependencies
None
Recommendation
None
Default value
PATROL_HOME/bin
Not applicable
Dependencies
None
Recommendation
None
Home
Note
/snmp/agent_auto_start does not work for UNIX. If this variable is set to No or if the attempt to start the
subagent fails, the PATROL platform KM's SNMPStart parameter starts the Master Agent and establishes a
connection between the subagent and the master agent.
Boolean, yes or no
of data
Default value
Yes
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
Because the PATROL SNMP Master Agent is started by the SNMPStart parameter of the appropriate OS KM, when the agent
starts, the master agent may not be running and the PATROL SNMP Subagent's attempt to connect will fail. The two conditions
in which the master agent might be running are:
Another PATROL Agent running on a different port started the PATROL SNMP Master Agent
Your environment uses a third-party SNMP Master Agent that runs independently of PATROL
ID 102071: Sat May 27 16:26:52 CCYY : Patrol SNMP subagent connection failed - Make sure SNMP Master
Agent is running.
Home
Note
This variable only affects the PATROL SNMP Master Agent. You must create the variable; it is not created
during the installation of the PATROL Agent.
Boolean, yes or no
Default value
Yes
Not applicable
Dependencies
None
Recommendation
None
Default value
Public
Not applicable
Dependencies
None
Recommendation
None
Default value
Private
Not applicable
Dependencies
None
Recommendation
None
Home
Default value
162
Not applicable
Dependencies
None
Recommendation
None
Boolean, yes or no
of data
Default value
No
Minimum and
maximum
Not applicable
Dependencies
This variable and the snmp/trapMibTable variable are not mutually exclusive. If both variables are set to yes, every time an
activity satisfies the send-trap criteria, the PATROL Agent will send two traps, one to the SNMP managers listed in the
snmpmagt.cfg file and one to the SNMP managers listed in /snmp/piV1m_list.
If an SNMP Manager is in the snmpmagt.cfg file and the /snmp/piV1m_list agent configuration variable, the manager will receive
the same trap twice.
Recommendation
None
Boolean, yes or no
Default value
Yes
Not applicable
Dependencies
See the "Dependencies" section of Send traps through PATROL SNMP Master Agent.
Recommendation
None
Home
Default value
None
Dependencies
None
Recommendation
Setting this variable can affect the performance of the PATROL Agent.
Note
This variable is not available in the config.default file. You must create this variable manually by using the
wpconfig (Windows) or xpconfig (UNIX) utility.
Once this variable is set, you must reinitialize the agent to apply the variable.
Home
Event class
Meaning
Default trap
setting
Often
used
for
traps
Diag
Diagnosis event.
NO_TRAP
Disconnect
No
EventArchive
No
RemPsl
No
Result
No
PslSet
No
R3FilterData
No
RegApp
New KM class is now registered and running in the agent (example When a new console connects
requesting the KMs that it is interested in viewing).
No
RemProcess
No
StartStop
Event published when agent starts (status '1') or stops (status '0').
No
Unload
No
UnregAllApp
UpdAppState
Yes
UpdInstState
Yes
UpdParState
Yes
UpdMachineState
New or updated state for the entire agent (due to some change in the state of an application).
Yes
WorstApp
This application now has the worst state of all applications in the agent.
No
No
Worst application class name is provided in this event when the agent's state has changed.
No
Worst application instance name is provided in this event when the agent's state has changed.
No
No
No
No
Successful connection to the agent by a user. that is, a normal console connection or one involving the
No
NO_TRAP
No
No
Alarm is cancelled because the condition about the parameters violating its thresholds has disappeared.
SEND_TRAP
Yes
NO_TRAP
Yes
In other words, the parameter's value is no longer a bad value that causes an alarm, and the parameter is
going back to the OK state. A class 9 event is also generated if a value moves from outside the border
range (OK state) into the OK state of the border range.
10
Home
11
Parameter value has exceeded the alarm range thresholds. This will raise a warning or alarm state for this
parameter.
SEND_TRAP
Yes
12
All recovery actions have ran and failed to resolve the problem. The parameter will stay in its current
state. Agent will not run any more recovery actions for this parameter.
NO_TRAP
No
13
No
14 or 15
No
16
Parameter description has been modified (that is, KM editing) and the parameter state is reset to OK.
No
17 or 18
No
19
No
20
Parameter had bad output. For example, PSL set on "value" did not provide an integer to a graph or gauge
No
parameter.
21
No
22 or 23
No
24
No
25
No
26 or 27
28
Username/password were invalid to connect to the agent (example through the API or PSL remote
functions).
No
29
No
38
No
39
No
40
PSL response-related event. Created when a PSL response function is launched by the agent.
No
41, 42, or 43
Information event. Placeholder for user-defined events. Not generated internally by the agent.
No
NO_TRAP
No
Home
Note
This list of trap destinations does not affect the recipients of SNMP traps sent by PSL snmp_trap_send().
The /snmp/piV1m_list configuration variable specifies which SNMP managers receive traps from the PATROL
Agent.
Format and type
An entry for a manager consists of host name, port number, and read community name. Items in an entry are separated by a
of data
Default value
Minimum and
maximum
Not applicable
Dependencies
/snmp/trapMibTable uses this list to send traps directly to SNMP Managers listed in this variable
Recommendation
Example
"/snmp/piV1m_list" = { REPLACE="nasa/162/public,198.207.223.112/162/public" }
Boolean, yes or no
Default value
Yes
Not applicable
Home
Dependencies
None
Recommendation
None
Default value
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
None
Default value
Not applicable
Dependencies
None
Recommendation
None
Home
Default value
Not applicable
Dependencies
None
Recommendation
None
x a single ID x
x/y any value between and including x, y
-/y any positive value equal or less than y
x/- any positive value equal or greater than x
x and y are positive cardinal value smaller than xFFFFFFFF.
-/- any positive cardinal values smaller than xFFFFFFFF
Default value
Not applicable
Dependencies
None
Recommendation
None
Default value
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
Use newline separator, \n, for search criteria; for example, setting the variable to XYZ\nabc\n will cause any event class
containing "XYZ" or "abc" to generate a trap
Home
Default value
Not applicable
Dependencies
None
Recommendation
None
Start time
The /AgentSetup/pemPFSnmpStartTime configuration variable specifies the start of the monitoring period.
Format and type of data
MMddhhmm [yy]
MM month
dd day
hh hour
mm minutes
yy years (optional)
Default value
Not applicable
Dependencies
Recommendation
None
End time
The /AgentSetup/pemPFSnmpEndTime configuration variable specifies the end of the monitoring period.
Format and type of data
MMddhhmm [yy]
MM month
dd day
hh hour
mm minutes
yy years (optional)
Home
Default value
Not applicable
Dependencies
Recommendation
None
Text string containing one or more types separated by commas. Types of PATROL events include:
I INFORMATION
S CHANGE_STATUS
E ERROR
W WARNING
A ALARM
R RESPONSE
Default value
Not applicable
Dependencies
None
Recommendation
None
Text string containing one or more statuses separated by commas. Statuses include the following options:
O OPEN
A ACKNOWLEDGED
C CLOSED
E ESCALATED
D DELETED
Default value
Not applicable
Dependencies
None
Recommendation
None
Home
Note
If both variables are set to yes for a single event, the agent issues two SNMP traps: one in V3.0 format
and one in V3.1 format.
3.1 format
The /AgentSetup/pemIssueV31traps configuration variable detemines whether PATROL uses version 3.1 formats
to send SNMP traps.
Format and type of data
Boolean, yes or no
Default value
Yes
Not applicable
Dependencies
None
Recommendation
None
3.1 example
Following is the SNMP trap for PEM Standard Event 11 in 3.1 format:
From: 127.11.502.22 (1.6.3.4.1.4.1201.1.1.7) Enterprise Specific (5) Uptime: 0 day(s) 0:13:16 (79686)
1.6.3.4.1.4.1201.1.1.7.1.0 85 string Alarm #2 of global parameter 'parm' triggered on 'PSLCOM.PSLCOM'. 3
<= 3.00 <= 3
1.6.3.4.1.4.1201.1.1.7.2.0 23 string /PSLCOM/PSLCOM/parm
1.6.3.4.1.4.1201.1.1.7.3.0 0 string
3.0 format
The /AgentSetup/pemIssueV30traps configuration variable detemines whether PATROL uses version 3.0 formats
to send SNMP traps.
Format and type of data
Boolean, yes or no
Default value
No
Not applicable
Dependencies
None
Home
Recommendation
None
3.0 example
Following is the SNMP trap for PEM Standard Event 11 in 3.0 format:
From: 127.11.502.22 (1.6.3.4.1.4.1201.1.1.7) Enterprise Specific (11) Uptime: 0 day(s) 0:18:08 (108876)
1.6.3.4.1.4.1201.1.1.7.1.0 29 string /PSLCOM/PSLCOM/parm ALARM
Note
In the PATROL Agent, you can disable SNMP trap sending based on PATROL Events without affecting
other SNMP functionality. For example, you can still use the PSL SNMP get, set, get-next, or walk on
other host MIBs even if traps are disabled.
Home
snmp_trap_listen()
snmp_trap_receive()
Close a trap socket and ignore all unprocessed and arriving traps
snmp_trap_ignore()
snmp_open()
snmp_close()
List SNMP sessions that are currently open, return default parameters for
a specific snmp session, or alter the default settings for an SNMP session
snmp_config()
snmp_get(),
snmp_get_next(), or
snmp_walk()
You can also use snmp_h_* functions. The snmp_h_* functions accept
host name instead of session and automatically open and close the
session.
snmp_set()
You can also use snmp_h_* functions. The snmp_h_* functions accept
host name instead of session and automatically open and close the
session.
Note
The snmp_h_* functions use the default port, but can be configured to use a different port.
Home
Note
BMC recommends using a PSL Notification command in the event catalog rather than a recovery action,
because it can be done generically for all parameters rather than adding a recovery action to each one.
This section tells you how you can use PSL to control how the PATROL SNMP Master Agent and the PATROL
Agent interact with SNMP.
Manual Volume 2 PSL Functions for detailed information about all PSL functions for SNMP.
Read functions
The /snmp/default_r_community agent configuration variable sets the default read community name for the
built-in PSL SNMP function, snmp_open( ), if a community name is not provided as an argument.
Format and type of data
Default value
Public
Not applicable
Dependencies
None
Recommendation
None
Home
Write functions
The /snmp/default_w_community agent configuration variable sets the default community name for built-in PSL
SNMP functions such as snmp_set( ).
Format and type of data
Default value
Private
Not applicable
Dependencies
None
Recommendation
None
Timeout
The /snmp/default_timeout agent configuration variable determines how long the agent waits for a response to a
built-in PSL SNMP function before it reports that the function did not return a value.
Format and type of data
Numeric, milliseconds
Default value
500
Not applicable
Dependencies
None
Recommendation
None
Retries
The /snmp/default_retries agent configuration variable limits the number of times that the agent attempts to run
a built-in PSL SNMP function before it reports that the function failed.
Format and type of data
Numeric, attempts
Default value
Not applicable
Dependencies
None
Recommendation
None
Home
Port
The /snmp/default_port agent configuration variable sets the port number used by the built-in PSL SNMP
function, snmp_open(), if a port number is not provided as an argument.
Format and type of data
Default value
161
Not applicable
Dependencies
None
Recommendation
None
Purpose
snmp_agent_config()
snmp_agent_start()
snmp_agent_stop()
snmp_close()
snmp_config()
_snmp_debug()
snmp_get()
snmp_get_next()
Perform an SNMP "get next" action on a MIB object, using an open session.
snm_h_set()
snmp_h_get_next()
Perform an SNMP "get next" action on a MIB object using a brief session.
snmp_h_set()
snmp_open()
Open a new session to be used for get, set, and get next operations.
snmp_set()
snmp_trap_ignore()
Home
Purpose
snmp_trap_listen()
snmp_raise_std_trap()
snmp_trap_receive()
Read the traps that were accumulated from incoming traps to the agent.
snmp_trap_register_im()
Change or read the list of SNMP managers registered to receive PATROL traps.
snmp_trap_send()
snmp_walk()
snmp_trap_send()
Send the trap patrolTrapV1Raised, with patrolTrapText.0 in a packet, to all entities registered in
snmp_trap_raise_std_trap("text")
the prV1mTable
Dump all in/out packets on stdout when the agent is in no-daemon mode
snmp_dump_packet (1)
Get error information that may not be reported to the console window, such as timeouts
snmp_report_error (2)
Description
A function fails to parse a parameter, which could be caused, for example, by a bad address or trap definition.
Home
Error message
Description
E_PSL_BAD_FUNCTION_PARAMETER
E_PSL_SNMP_ERROR
A function tries to send or receive an invalid packet to or from another SNMP entity.
E_PSL_SNMP_NOT_SUPPORTED
NULL
When an error occurs, the user does not see any of the error messages in the above table. A user sees nothing
since all SNMP PSL functions return the NULL string after encountering an error. A user can determine which
error occurred most recently by displaying or printing the value of the PATROL PSL error variable. This variable
holds an integer that corresponds to one of the error messages above.
The PATROL Script Language Reference Manual Volume 1 PSL Essentials provides more information about
working with error messages.
"ruleState"
Meaning
OK
OK
WARN
OK
ALARM
OK
OK
WARN
Not possible
WARN
WARN
ALARM
WARN
Home
"status"
"ruleState"
Meaning
OK
ALARM
Not possible
WARN
ALARM
Not possible
ALARM
ALARM
Any state
OFFLINE
Note
The SNMP get operation returns only the current value and statistics of a parameter. The get operation
does not return the history of a parameter.
Home
Warning
To guarantee that the PATROL Agent and PATROL Console source the user-defined scripts (userrc.sh
and .userrc) during startup, source the appropriate startup scripts (./patrol.sh and ./.patrolrc) before
starting the agent and console.
Note
You must create the appropriate script file for your environment. The installation process does not
create it.
Home
Variable format
variableName1=value1
variableName2=value2
export variableName1
export variableName2
C shell
File name
.userrc
Variable format
setenv variableName1=value1
setenv variableName2=value2
HOME=X:
PATROL_HOME=$HOME/patrol
PATROL_CFG=$PATROL_HOME/config
PATROL_CACHE=$HOME/patrol
export
export
export
export
HOME
PATROL_HOME
PATROL_CFG
PATROL_CACHE
Home
C shell
source .patrolrc
Note
This exception applies only to Bourne\Korn shell.
Contents
If the three conditions are met, the installation program either creates a new userrc.sh file and writes the
following lines in it or appends them to an existing file.
PATROL_PORT=3181
export PATROL_PORT
Home
Note
PATROL supports a subset of regular expressions defined by the REGEXP standard (REGEX
API). Do not confuse PATROL supported subsets with the regular expressions used by UNIX
commands such as grep.
Description
Example
Possible results
Home
Atom
.
user.
user1, users
b*
host.*
5?
user.?
z+
z, zzz, zzzzzz
admin.+
administrator, admin1
[parm90:a,b][parm90:2-5]
a2,a3, b4
.*[parm90:3,5,7]
Quantifiers
*
Character classes
[]
Anchor
$
terminate\.$
^[parm90:eE]rror
\<
\<l
\>
x\>
Escape a wildcard character so that the expression uses its literal value in
comparisons
license\..*
license.nt_server,
license.bsmith, licence.
()
(ERRMSG.?)*^ w.?
generated
Examples
The following examples display a number of ways to employ character classes to create a variety of patterns:
Pattern
Description
1[0-9]
Home
Pattern
Description
[1-3][0-9]
[2,4,6][a,b,z] a
Matches any 2-digit alphanumeric character beginning with 2, 4, or 6 and ending in a, b, or z, such as 2z, 4a, 6b, 6z
[a-zA-Z]
[eE] mail
Do not enter the comma (,) when specifying the character class.
Examples
The following examples display a number of ways to employ quantifiers to create a variety of patterns:
Pattern
Description
e*
Matches any string of zero or more "e"s such as an empty string, e, eee
1+
admin.*
Matches any string that begins with "admin" and contains zero or more characters such as administrator, admin_1, admin-bsmith,
admin.
NT.+
Matches any string that begins with "NT" and contains at least one or more characters such as administrator, NT_CPU, NTkm_version,
NT_, but not NT.
admin.?
Matches any string that begins with "admin" and contains zero or one more character such as admin, admin1, admin2, adminZ
e.*Houston
Matches any string that begins with an e and ends with Houston such as email_administrator-Houston, ebiz-Houston, ecommerce
security advisor in Houston
.?Smith
Matches any string that begins with zero or one occurrences of any character and ends with "Smith" such as BSmith, 1Smith, _Smith,
Smith
Examples
The following examples display a number of ways to employ anchors to create a variety of patterns. The anchor
examples use character classes and quantifiers to make them more meaningful.
Home
Pattern
Description
^[abcABC]
Matches any line that begins with "a", "b", or "c" such as a Abort?; Bad disk please insert a valid disk; clusters verified = 231
$\.
\<[sS]
Matches any word that begins with an upper or lower case letter "s" such as system, Security, storage
_server\>
Matches any word that ends in "_server" such as oracle8_server, sql-test_server, nt_server
objectsCwd
The objectsCwd variable is the parent node for the objectsTable. Only the subnodes of objectsCwd will show in
the objectsTable, and only leaves of objects Cwd will show in the variablesTable.
objectsCwd OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-write
STATUS mandatory
DESCRIPTION "The current node used as a root for the subtree to be examined"
DEFVAL {"/"} (start from the global root)
: := { patrolObjects 2 }
Home
agentExecuteCommand
The agentExecuteCommand variable implements a kind of RPC where the PATROL Agent is a (PSL) server for an
SNMP manager. Setting this variable will execute its value as a PSL script in a specially created PSL process.
agentExecuteCommand OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-write
STATUS mandatory
DESCRIPTION "Executes the PSL command sent in the same message"
: := { patrolAgent 3 }
Home
ENTERPRISEpatrolTraps
OBJECTS{variableValue}
DESCRIPTION "A patrolTrapV1StateChanged is sent when the PATROL Agent changes the state of the discovered
application instances. This trap is sent to the SNMP V1 entity according to piV1mTable."
: := 11
patrolTrapText OBJECT-TYPE
SYNTAXOCTET STRING (SIZE (0..127))
ACCESSread-only
STATUSmandatory
DESCRIPTION "String passed by PSL to inform the agent about the trap reason"
: := { patrolTraps 9 }
patrolTrapOrigin OBJECT-TYPE
SYNTAXOCTET STRING (SIZE (0..127))
ACCESSread-only
STATUSoptional
DESCRIPTION "Name of the object that originated the trap"
: := { patrolTraps 10}
patrolTrapExtra OBJECT-TYPE
SYNTAXOCTET STRING (SIZE (0..127))
ACCESSread-only
STATUSoptional
DESCRIPTION "Extra information, usually parameter value"
: := {patrolTraps 11 }
patrol.mib definitions
bmcOBJECT IDENTIFIER : := {enterprises 1031}
patrolMIBOBJECT IDENTIFIER : := {bmc 1}
Agent subtree
The agent subtree is the main subtree for patrol.mib. All manager objects on the agent side will be in this subtree.
patrolAgentOBJECT IDENTIFIER : := {patrolMIB 1}
Home
Groups in patrol.mib
patrolObjectsOBJECT IDENTIFIER : := {patrolAgent 1}
patrolTrapsOBJECT IDENTIFIER : := {patrolAgent 2}
9.13.3 objectsTable
Each row in the table describes one PATROL Agent object (node in objects variables tree).
Columns for objectsTable
Objects for objectsTable
Home
Home
objectDescr OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-write
STATUSmandatory
DESCRIPTION "Textual description of the mandatory object"
: := {objectsEntry 3}
objectRowStatus: OBJECT-TYPE
SYNTAXPRowStatus
ACCESSread-write
STATUSmandatory
DESCRIPTION "Row status for the creation of a new row as defined in SNMP V2"
: := {objectsEntry 4}
9.13.4 variablesTable
Each row describes one PATROL Agent object variable (leaf in objects variables tree).
Columns for variablesTable
Objects for variablesTable
Home
SYNTAXSEQUENCE OF VariablesEntry
ACCESSnot accessible
STATUSdeprecated
DESCRIPTION "This table is used to get/set PATROL Agent object variables. PATROL Agent object variables are
leaves (and not nodes) of the information tree."
: := {patrolObjects 5}
variablesEntry OBJECT-TYPE
SYNTAXVariablesEntry
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "A variablesEntry contains the value and DESCRIPTION (in future) for a given PSL Agent's object."
INDEX {IMPLIED variableName}
: := {variablesTable 1}
variablesEntry : := SEQUENCE {
variableName
variableType
variableValue
variableDescr
variableRowStatus
variableName OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "A variable name without the path"
: := {variablesEntry 2}
variableType OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "A string describing the variable type. It can be used by a sophisticated SNMP manager to display
gauges, graphs, or multimedia measurements."
: := {variablesEntry 3}
variableValue OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-write
Home
STATUSmandatory
DESCRIPTION "Current value of the variable"
: := {variablesEntry 4}
variableDesr OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-write
STATUSmandatory
DESCRIPTION "The variable's help text"
: := {variablesEntry 5}
variableRowStatus OBJECT-TYPE
SYNTAXPRowStatus
ACCESSread-write
STATUSmandatory
DESCRIPTION "Row status for the creation of a new row as defined in SNMP V2"
: := {variablesEntry 6}
9.13.5 applicationsTable
Each row describes one PATROL Agent application.
Columns for applicationsTable
Objects for applicationsTable
Home
applicationOidINTEGER
(SIZE (0..65535))
Home
SYNTAX States
ACCESSread-only
STATUSmandatory
DESCRIPTION "Application state"
: := {applicationsEntry 2}
applWorstInst OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "The application's worst instance"
: := {applicationsEntry 3}
applMasterVersion OBJECT-TYPE
SYNTAXINTEGER
ACCESSread-only
STATUSmandatory
DESCRIPTION "The application version number"
: := {applicationsEntry 4}
applMinorRevision OBJECT-TYPE
SYNTAXINTEGER
ACCESSread-only
STATUSmandatory
DESCRIPTION "The minor revision number of the application"
: := {applicationsEntry 5}
applicationRowStatus OBJECT-TYPE
SYNTAXPRowStatus
ACCESSread-only
STATUSmandatory
DESCRIPTION "Row status for the creation of a new row as defined in SNMP V2"
: := {applicationsEntry 6}
applicationOid OBJECT-TYPE
SYNTAXINTEGER
ACCESSnot accessible
STATUSmandatory
Home
9.13.6 applInstTable
Each row describes one PATROL Agent application instance.
Columns for applInstTable
Objects for applInstTable
Home
applInstEntry OBJECT-TYPE
SYNTAXApplInstEntry
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "An applInstEntry contains the value and description for a given PSL Agent's applInst."
INDEX {applicationOid, applInstOid}
: := {applInstTable 1}
applInstEntry : := SEQUENCE {
applInstName
applInstRuleState
applInstStatus
applInstWorstParam
applInstCreateIcon
applInstRowStatus
applInstOid
applInstPInstOid
applInstPApplOid
applInstName OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "Application instance name"
: := {applInstEntry 1}
applInstRuleState OBJECT-TYPE
SYNTAXStates
ACCESSread-only
STATUSmandatory
DESCRIPTION "Application instance state"
: := {applInstEntry 2}
applInstStatus OBJECT-TYPE
SYNTAXStates
ACCESS read-only
STATUSmandatory
DESCRIPTION "The application instance status is the worst of rule state and its worst parameter's status."
: := {applInstEntry 3}
Home
applInstWorstParam OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "Application instance's worst parameter"
: := {applInstEntry 4}
applInstCreateIcon OBJECT-TYPE
SYNTAXPBoolean
ACCESSread-only
STATUSmandatory
DESCRIPTION "True means to create icons for application instances. False means that it is not necessary to create
icons for the instances."
: := {applInstEntry 5}
applInstRowStatus OBJECT-TYPE
SYNTAXPRowStatus
ACCESSread-only
STATUSmandatory
DESCRIPTION "Row status for the creation of a new row as defined in SNMP V2"
: := {applInstEntry 6}
applInstOid OBJECT-TYPE
SYNTAXINTEGER
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "Application instance object id"
: := {applInstEntry 7}
applInstPOid OBJECT-TYPE
SYNTAXINTEGER
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "Application instance's parent object id"
: := {applInstEntry 8}
applInstPApplOid OBJECT-TYPE
Home
SYNTAXINTEGER
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "Application instance's parent application id"
: := {applInstEntry 9}
9.13.7 parametersTable
Each row describes one PATROL Agent parameter.
Columns for parametersTable
Objects for parametersTable
Home
parameterActiveStatPBoolean
Boolean value of the parameter explaining whether the parameter was created as active
parameterRunningStatPBoolean
Boolean value indicating the parameter is either running or suspended for the current instance
Home
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "Parameter name"
: := {parametersEntry 1}
parameterState OBJECT-TYPE
SYNTAXStates
ACCESSread-only
STATUSmandatory
DESCRIPTION "Parameter state"
: := {parametersEntry 2}
parameterCurrentTime OBJECT-TYPE
SYNTAXTimeTicks
ACCESSread-only
STATUSmandatory
DESCRIPTION "Time stamp when the current value was produced"
: := {parametersEntry 3}
parameterCurrentValue OBJECT-TYPE
SYNTAXDisplayString
ACCESSread-only
STATUSmandatory
DESCRIPTION "Parameter's current value"
: := {parametersEntry 4}
parameterPollingInt OBJECT-TYPE
SYNTAXINTEGER
ACCESSread-only
STATUSmandatory
DESCRIPTION "Parameter polling interval"
: := {parametersEntry 5}
parameterRetries OBJECT-TYPE
SYNTAXINTEGER
ACCESSread-only
STATUSmandatory
Home
Home
parameterObjId OBJECT-TYPE
SYNTAXINTEGER
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "Parameter object id"
: := {parametersEntry 12}
parameterActiveStat OBJECT-TYPE
SYNTAXPBoolean
ACCESSread-write
STATUSmandatory
DESCRIPTION "Boolean value of the parameter explaining whether the parameter was created as active"
: := {parametersEntry 14}
parameterRunningStat OBJECT-TYPE
SYNTAXPBoolean
ACCESSread-write
STATUSmandatory
DESCRIPTION "Boolean value indicating the parameter is either running or suspended for the current instance"
: := {parametersEntry 15}
9.13.8 piV1mTable
To register an SNMP manager with the PATROL Agent, add the manager to a row in the piV1mTable.
Columns for piV1mTable
Objects for piV1mTable
Home
Home
: := {piV1mEntry 2}
piV1mCommunity OBJECT-TYPE
SYNTAXOCTET STRING
ACCESSnot accessible
STATUSmandatory
DESCRIPTION "Community string for the interested SNMP manager"
DEFVAL {public}
: := {piV1mEntry 3}
piV1mRowStatus OBJECT-TYPE
SYNTAXPRowStatus
ACCESSread-write
STATUSmandatory
DESCRIPTION "Row status for the creation of a new row as defined in SNMP V2"
: := {piV1mEntry 4}
Home
10 Administering
This section provides information about managing and maintaining the BMC PATROL Agent after it is configured.
Basic set-up of the PATROL Agent in a Windows cluster
Basic set-up of the PATROL Agent in a UNIX cluster
Managing console connections
Support for secure store and secure key store
Support for blackouts
Loading and monitoring applications
BMC PATROL Agent parameter history
BMC PATROL events
Managing parameter overrides
Changing variables in a file manually
Fixing a corrupted cache
3.
BMC PATROL Agent 9.5
Home
3. Enter the following variable names and values (replace port with the specific port number) in the
appropriate fields:
PATROL_VIRTUALNAME_port=virtualServerName
PATROL_HISTORY_port=Drive:\historyDirectory
PATROL_CONFIG_port=Drive:\configDirectory
4. Click Set.
5. Repeat steps 3 and 4 for the remaining variables.
For more information about specific variables, see PATROL cluster-specific environment variables for history and
configuration.
10.1.2 Creating and registering a new service for the PATROL Agent
This section explains how to create a PATROL Agent executable and register it as a service so you can dedicate it
to monitoring a cluster group. This task involves copying and renaming the agent's executable and then
registering the service in the Windows Services Applet
Perform the following tasks on each node in the cluster:
1. Copy the PatrolAgent.exe in <PATROL_HOME>\bin directory.
2. Rename the executable. Use a name that indicates that the agent is an executable dedicated to monitoring
an application.
3. Paste the executable into the <PATROL_HOME>\bin directory.
Note
Name the executable the same on every node in the cluster.
PatrolAgent -application_name.exe
4. Install the executable at the command line, navigate to the <PATROL_HOME>\bin directory, and enter the
following command:
PatrolAgent -application_name -install
The system acknowledges that the service installed successfully.
Tue MON DD HH:MM:SS CCYY PatrolAgent -<application_name> PID 318 Success 1000:
The PatrolAgent Service was successfully installed.
The PatrolAgent COM Server registered sucessfully
Note
Home
The PatrolAgent COM Server can only be registered once. Additional attempts to register it will
fail; however, the multiple agent processes will run.
5. From the Windows Taskbar, select Start > Settings > Control Panel.
6. Double-click the Services icon and select <application_name> service from the box.
7. Click Startup.
8. In the Startup Type pane, select the Manual option, and click OK.
The service displays Manual in the Startup column.
Warning
This explanation is for setting the cluster related environment variables for a cluster agent.
For additional information about the PATROL Cluster Configuration Wizard, see the PATROL for Microsoft
Home
Note
Home
This task description uses Windows Cluster Management Software as an example. The steps describing
how to set up the software are intended as a general outline of the process and are not intended as
step-by-step instructions.
Perform the following task on only the master node of the cluster. The cluster software provides two methods for
binding a service to a cluster: GUI or command line. Regardless of the method, you must provide the information
listed in the following table:
Cluster administration properties
Arguments
Description
cluster.exe
clusterName
RES
"PatrolAgent for
MyApplication"
/ADDEP
/Prop:RestartAction
Determines what the cluster does (shut down, wait, and so on) if the PATROL Agent service fails and is unable to
restart.
/Priv: ServiceName
Identify the service name of the PATROL Agent service bound to the cluster application.
/Priv: StartupParameters
/ON
Note
For each command, you must reenter the name of the cluster executable, name of the cluster, resource
option, and service name.
Home
Home
Note
You must have at least one agent executable installed on the node's local drive to monitor the node's
operating system. If you select to install the cluster application on the local disk, you'll also have one to
monitor the cluster application.
Home
For more information about specific variables, see PATROL cluster-specific environment variables for history and
configuration.
Note
The following code is a subset of the control script and does not represent a complete script. It is
provided to give you an idea of the type and extent of changes you must make in HP's MC ServiceGuard
or other UNIX cluster management software.
Home
function customer_defined_run_cmds
{
# Add customer defined halt commands.
# PATROL halt command (substitute correct path
# and port).
PID=$ (ps -ef|awk '$NF=="3939" \{ print $2\}')
if\[[ -n $PID ]]
then
kill -TERM $PID
fi
# End of Patrol Start command.
test_return 52
}
Home
Default value
20
Not applicable
Dependencies
Not applicable
Recommendation
None
This variable is not available in the config.default file. You must create this variable manually by using wpconfig
(Windows), xpconfig (UNIX), PATROL Configuration Manager, or a PSL pconfig script as follows:
Specify the connection modes for which the agent blocks informational messages. Possible modes include:
C configuration
D developer
O operator
P PEM
Default value
P (PEM)
Not applicable
Dependencies
None
Home
Recommendation
To view all messages and record them in the log file, set this variable equal to an empty string (" ").
Default Value
Not applicable
Override
Dependencies
None
Recommendation
Default value
No
None
Dependencies
None
Recommendation
None
Boolean, yes or no
Default value
No
Home
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
Note
This variable does not apply for PATROL Central Operator Microsoft Windows Edition or PATROL
Central Operator Web Edition.
Note
You must create the BindToAddress and PortConnectType variables. They are not created during the
installation of the PATROL Agent. For more information about these variables, see List of BMC PATROL
Agent variables.
Note
Before defining the BindToAddress pconfig variable, back up your agent Configuration Change File (
user-defined_filename.cfg), which contains any customizations that you made to agent configuration
variables. Backing up this file ensures that you can restore the agent to its previous state if your
BindToAddress definition produces unexpected or undesirable result.
Numeric, IP address
Home
Default value
None
Accepts two types of IP addresses to bind with, one of which must be an IPv4 address and other must be an IPv6 address.
You can specify more than one address separated by commas. PATROL Agent considers the valid values from only first two
entries and ignores the further entries. If you provide first two values as IPv4 address, then only first valid value is considered,
that means PATROL Agent gets one IPv4 address to bind with. Same is applicable for the IPv6 address.
Default is none and PATROL Agent listens to both the IPv4 and IPv6 addresses.
Minimum and
Not applicable
maximum
Dependencies
AgentSetup/PortConnectType determines the communication protocol used when establishing a connection through the port
specified by this variable
Recommendation
If you type in the wrong IP address (make a typographical error), the agent does not start.
Incorrect IP address
If the IP address is incorrect, the PATROL Agent starts. However, the PATROL Agent cannot listen on any default
IP address. It writes error messages, similar to the following ones, to the PATROL Agent Error Log.
Example 1:
Tue Apr 19 20:24:37 2011: ID 102011: E: TCP listener failed err = -14/10049
Tue Apr 19 20:24:37 2011: PatrolAgent-W-EINTERNAL: Sess Init failed: err = -14/10049
Example 2:
Tue Apr 19 19:36:55 2011 PatrolAgent-W-EINTERNAL: Sess Init failed: err = -14/99
(/local-build/Patrol/3.9.00/src/agent/mainloop.c 443)
Tue Apr 19 19:36:55 2011: ID 102011: E: TCP listener failed err = -14/99
Tue Apr 19 19:36:55 2011: PatrolAgent-W-EINTERNAL: Sess Init failed: err = -14/99
The valid communication protocols for establishing a connection include TCP, UDP, and BOTH.
For PATROL Agent version 3.9.00 and later, TCP is used as the underlying communication protocol whether you specify TCP,
UDP, or BOTH.
Default value
BOTH
Minimum and
maximum
Not applicable
Dependencies
AgentSetup/BindToAddress sets the IP address for which PortConnectType determines the communication protocol
Home
Recommendation
None
Numeric, IP address
Default value
None
Not applicable
Dependencies
None
Recommendation
None
Warning
The host where the PATROL console is running must support "nslookup" and "ping" features by both
host name and IP address.
Home
Reconnecting
If an agent shuts down and the DHCP lease expires, the agent may lose its current IP address and be reassigned
another one by the DHCP server. To reconnect, manually restart the agent and update the connection from the
PATROL console (use MB3 to select Update Connection).
Note
The actual log ons are subject to account and password validation. Even with the most lenient access
control list (all users from all hosts in any type of mode), you cannot log on with an unknown account.
With PATROL Agent version 3.9.00, ACL supports Internet Protocol version 6 (IPv6). For more information, see
HostName and UserName attribute conventions.
Home
For each access control list (ACL), the format is a comma-separated list of entries. Each entry has the following format:
of data
UserName/HostName/Mode
UserName is the name of a local account that the connecting console may request to use. It defaults to *. For more information,
see HostName and UserName attribute conventions.
HostName is a computer (console) that is authorized to connect to this agent. It defaults to *. For more information, see
HostName and UserName attribute conventions.
Mode is a list of application and application modes that are authorized to access the agent:
CConfigure (pconfig, wpconfig, xpconfig)
DDeveloper (console)
OOperator (console)
PPEM (event manager console)
RAllow operator overrides
SSystem Output Window Display For detailed information about these modes, see the following table.
Note: If the Mode value is missing from an individual ACL entry, it defaults to O (Operator).
Default value
*/*/CDOPSR
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
Home
Mode
Description
The C (configure) mode controls the context of commands that are run on the PATROL Agent.
The following commands are run using the console connection account:
Commands run from System Output window
KM menu commands
Agent configuration commands
OS commands and tasks
PSL commands and tasks
Note:
If a command is run from the system command line, the command runs using the credentials of the user logged-on to the system.
D and
O
The D (developer) and O (operator) connection modes control the connection type between the agent and console:
D allows a developer connection to the agent
O allows an operator connection to the agent
Note: The user must have rights to log on locally to the agent system to connect with the console.
The P (PEM) connection mode controls access to the agent using the PEMAPI.
The P mode does not control the availability of the PATROL Event Manager. It controls the following types of access to the PATROL Agent:
Access from applications that use PEMAPI functions to connect to the PATROL Agent
Connection to the PATROL Agent using the remote PSL functions
The R (allow operator overrides) mode allows operator overrides on agents and consoles only if the following variable is set to true in
patrol.conf: allowoverrideparameter.
This mode is available only for version 3.4.20 and 3.5.00 or later agents and consoles.
The S (System Output Window Display) mode allows display of the interactive operating system prompt if the following variable is set to 1:
/AgentSetup/EnableSysOutputAclCheck
Note
The default account must have C mode access to the PATROL Agent.
Home
/AgentSetup/<appl>.OSdefaultAccount" = {REPLACE="<user>"}
/AgentSetup/<appl.inst>.OSdefaultAccount" = {REPLACE="<user>" }
/AgentSetup/<appl>.OSdefaultAccountAppliesToCmds" = {REPLACE="no"}
/AgentSetup/accessDenyList uses the same format and syntax as the /AgentSetup/accessControlList variable, but
it takes precedence over the /AgentSetup/accessDenyList variable. For information about the format and syntax,
see Defining Access Control Lists.
/AgentSetup/accessControlList variable can allow a user to view the system output window. If
EnableSysOutputAclCheck is set to 1 and a user account has S mode permissions set in accessControlList, then
the user is allowed to display the System Output window.
Format and type of data
Boolean (1,0)
Default value
None
Dependencies
None
Recommendation
None
Note
Use the same naming convention in the ACL host name that you used when setting up connections to
agents. If you used short names in the connections, use short names in the ACL entries. If you used fully
qualified names in the connections, use fully qualified names in the ACL entries. The ability of PATROL to
associate a short name with a fully qualified name depends upon how your DNS server is set up. Using
the same naming convention ensures that your ACL entries work properly regardless of how your DNS
server is set up.
UserName
The name of a local account that the connecting console may request to use. Following valid values are included:
* any username (assuming the OS user account exists)
BMC PATROL Agent 9.5
Home
HostName
A computer (console) that is authorized to connect to this agent. You can specify a hostname by using the fully
qualified name, the short name, or a partial name (pattern) created with a wildcard specification in which the first
character is a '*', with other characters as follows:
* any host name (assuming the host exists)
hostname an IPv4 or IPv6 address, range of addresses, or actual name (Relative Distinguished or Fully
Qualified Domain) of the host indicating that this entry is for that host only
*partial_hostname a wildcard specification, in which the first character is an asterisk followed by other
characters
:groupname (Windows only) a computer-group name (applicable only for IPv4)
To define a range of IP Addresses for the hostname value, define any string in the form of and IP Address
and specify what bits must be allowed, such as A.B.C.D|e in which e is a number between 0 and 32 that
specifies which bits are set in a 32-bit number.
IPv4 examples
*/172.19.0.0|16/CDOP
All hosts with IP Addresses matching the first 16 bits (172.19) are connected.
*/172.19.20.30|24/CDOP
All hosts with IP Addresses from 172.19.20.0 - 172.19.20.255 are connected.
*/172|8/CDOP
All hosts whose IP Addresses start with 172 are connected.
*/172.19.|16/CDOP
All hosts whose IP Addresses start with 172.19. are connected.
*/:A/CDOP
All hosts in group A are connected.
If the HostName value is not provided for an ACL entry, it defaults to *.
IPv6 examples
*/2001:500:100:1100:20d:56ff:fefd:733d/DO
All the users from the host having IP Address as 2001:500:100:1100:20d:56ff:fefd:733d are connected.
*/2001:500:100:1100|54/CDOP
All the hosts in the subnet represented by the subnet ID, 1100 are connected.
*/2001:500:100|49/CDOP
All the hosts in the subnet represented by the subnet ID 0000 are connected.
Home
Mode
Account used
Developer console
Connection account
O
Operator console
PATROL Central
Operator - Microsoft
Windows Edition
PATROL Central
Operator - Web Edition
When started from the command line, these utilities use the system log-on account. When started from
within a developer console, these utilities use the system log-on account.
When this function is run by a parameter, recovery action, or application discovery, it uses the default
account. When this function is run by a Menu command or an Infobox command, it uses the connection
xpconfig
wpconfig
pconfig
pconfig( )
account.
PATROL Event Manager (PEM)
Required access
Be careful not to restrict the agent, which uses the default account (/AgentSetup/defaultAccount), or the
configuration utilities (xpconfig, wpconfig, and pconfig) from performing configuration changes on the agent.
To be able to configure an agent and run KM scripts that contain the pconfig( ) function, the default account must
have configuration access from the host on which the agent is running.
Home
Warning
If you delete the agent configuration change file rather than move it, you will lose all customizations
made to the file.
"/AgentSetup/accessControlList" = {REPLACE="safeuser/*.acme.com/O"}
"/AgentSetup/accessControlList" = {REPLACE="*/secure.acme.com/DO"}
"/AgentSetup/accessControlList" = {REPLACE="Admin_3/*.acme.com/C"}
Home
Warning
At least one account, the account that is used to log on to the console, must have developer and
configuration access mode.
To perform development and configuration actions, the following two conditions must be met:
The account's ACL entry must include both Developer ("D") and Configure ("C") access.
The user must log on to the operating system and the developer console using the same account.
To permit a user (patrol_adm_4) to perform configuration and development tasks from any computer, enter:
Access for Agent configuration utility started from the command line
When either pconfig, wpconfig, or xpconfig is started from the command line, the operating system logon
account is used to identify the session. Similarly, when xpconfig or wpconfig is started from a console or the
agent's system output window on a console, the same rule applies.
Note
You cannot start the wpconfig utility from the system output window on PATROL Console for Windows.
To start wpconfig, use MB3 to select Development > Agent Configuration.
Home
Default value
No
Not applicable
Dependencies
None
Recommendation
If you want to be able to use wpconfig or xpconfig, set this variable to no.
Note
When the requiresconfigauthentication variable is set to true, you can only use the wpconfig or xpconfig
utility version 3.5.90 or later.
To use the wpconfig utility version 3.5.90, install PATROL Console for Microsoft Windows 3.5.90. To use
the xpconfig utility version 3.5.90, install PATROL Console for UNIX 3.5.90. For more information about
these PATROL consoles, see the BMC Performance Manager Console 7.8.00 Release Notes.
Home
Windows
The PATROL Event Manager Console is built into the PATROL Developer Console for Windows. The PEM Console
does not establish a separate connection with the agent and is not affected by ACL entries that contain the PEM
access mode (P).
When the PATROL Event Manager Console uses the PATROL console's connection to the agent, it does not
register as a PEM application and is therefore not affected by the PEM mode in an ACL entry.
Windows
The PATROL Event Manager Console application cannot be started from the command line. The application is
built into the PATROL Console for Windows.
Home
Example
BMC_PATROL_DEBUG_PEMAPI=ALL,FILE=C:\PEMAPI\PEM_DEBUG.log
The following files are compiled with Microsoft Visual Studio 2005:
.dll file
.lib file
pemapi80.dll
pshps80.dll
pemapi80.lib
handlers80.lib
acmmls32_v280.dll
acmmls3280.dll
acmmls32_v280.lib
pemapiDll80.lib
Error messages
When the agent denies a connection based upon the access control list, it writes an application-specific error
message.
PATROL console
When based upon the access control list, the agent denies a connection attempt from the PATROL console
(operator or developer), the agent sends the following message to the console's System Output window:
Home
Default value
None
None
Dependencies
None
Recommendation
None
Note
You must manually create this variable in your patrol.conf file.
Default value
No
Not applicable
Dependencies
Not applicable
Recommendation
None
Home
BMC_ROOT\common\security\SKS\sks-<hostName>-<port>.db file.
BMC PATROL Agent now enables you to configure secure store settings using pconfig. You can modify secure
store data by using pconfig and store secured information.
BMC PATROL Agent adds a new branch, /SecureStore, to enable communication with the secure store data.
The /SecureStore branch dispatches the SET/REPLACE requests on that branch to the secure store, after which
the pconfig interface enables you to set data in the secure store.
You can add the /SecureStore branch by using pconfig, wpconfig (Windows), xpconfig (UNIX), PATROL
Configuration Manager, or a PSL pconfig script by using the following format:
BMC PATROL Agent enables you to configure the key database and the secure store settings in plain text and in
encrypted format, as follows:
The plain text interface uses the following format:
/SecureStore/MY_KM/my/secret/var =
{REPLACE = "MY_KM1;MY_KM2;MY_KM3/mysecretdata"}
Note
If the secret data string contains the / character, the product does not behave as expected.
Example
Home
Use the following rule to set a plain text password for the Aggregator KM:
"/SecureStore/PDS_PATROL_DataStore_config/PDS_AGGREGATOR/Nodes/<hostName>:<portNumber>" = {REPLACE =
"PDS_DATABASE;PDS_DATASTORE;PDS_AGGREGATOR/<PATROLUserPassword>"}
The encrypted data interface leverages the pwd_encrypt executable file and enables you to encrypt the /
context/data information.
The encrypted data interface uses the following format:
/SecureStore/MY_KM/my/secret/var = {REPLACE =
"EDC10278901F8CB04CF927C82828595B62D25EC355D0AF38589CE4235A246F8C63F24575073E4ECD"}
Example
Use the following rule to set an encrypted password for the Aggregator KM:
"/SecureStore/PDS_PATROL_DataStore_config/PDS_AGGREGATOR/Nodes/<hostname>:<portNumber>" =
{REPLACE =
"10F39746131EF76F8616B07A2FB541F44273F33A94EF0E6FFE31E5834D23C2CB905419DE2966D9DAD9E29368ED303EF3916D9CD3D27
You can use the sec_encrypt_p3x or pwd_encrypt executable files to convert /context/datain the Data
Encryption Standard (DES) format as follows:
Using the sec_encrypt_p3x executable file:
Example
Home
Example
When you set the secure store pconfig settings by using a version earlier than 3.8.00 of BMC PATROL Agent, the
settings are stored in the pconfig database. For this reason, BMC recommends that you use encrypted data
setting to ensure that an earlier version of BMC PATROL Agent does not expose unencrypted sensitive data on
the interface.
Note
If the current version of BMC PATROL Agent finds a /SecureStore pconfig branch in the BMC PATROL
Agent pconfig database, it removes the old pconfig branch when the agent starts.
BMC PATROL Agent fetches the data stored in the secure key store database through the sec_store_get()
PSL function only. This function is called from the context that you specified in the value for the pconfig variable.
For more information about sec_store_get(), see the PATROL Script Language (PSL) Reference Manual.
Windows
PATROL_HOME\config\secure_config_<host>-<port
Home
Platform
OpenVMS
PATROL$HOME:[config]secure_config_<host>-<port>
PATROL_HOME/config/secure_config_<host>-<port>
The secure key files are compatible with standard PATROL Security utilities, such as sslcmd or plc_password. For
more information about these utilities, see PATROL Security User Guide.
Default password
After installing the PATROL Agent, the key store is encrypted with the default password of password.
Windows
From the BMC_ROOT\common\security\bin_v3.0\OS directory, run the following command, using the PATROL
Agent hostname and port for <host> and <port>:
OpenVMS
From the Patrol3.manage directory, run @patrol$login to set the PATROL logicals. Then from the
BMC$ROOT:[parm90:COMMON.SECURITY.BIN_V3_0.OS] directory, run the following command, using the
PATROL Agent hostname and port for <host> and <port>:
Home
common/security/bin_v3.0/OS directory, run the following command, using the PATROL Agent host name and
port for <host> and <port>:
Note
For added security, BMC recommends that you remove any old configuration databases or, alternatively,
use pconfig to change the passwords of all sensitive data.
Goal
Command
Result
pconfig -dbsave no
The allowsecuredatahandling privilege may be granted by creating the allowsecuredatahandling variable in the
Note
If a variable appears in both the standard configuration database and the encrypted secure store, the
secure value is used.
Home
Note
Knowledge modules that use the secure key store will not work correctly, when there are mutliple
agents run as different users on a node. The first agent that sets a value in the secure key store will own
it, and all others agent (run as different users) will not be able to set values in the secure key store.
Home
PATROL objects
PATROL object
options
Description
Application class
Blackout is applied to the specified application class, and all the instances and the parameters contained in the
application class instances.
Application class
instance
Blackout is applied to the specified application class instance and all its parameters.
Parameter
/APP_NAME[/INST_NAME][/PARAM_NAME]
You can specify the application class ([/APP_NAME]) in an exact form, and in a generic form by using the
__<ANYAPPL>__ wildcard string, as illustrated below:
For exact: /AgentSetup/Blackout/FILESYSTEM
For generic: /AgentSetup/Blackout/__<ANYAPPL>__
__<ANYAPPL>__ applies the blackout to all the application classes, instances, and parameters contained in that
application class.
Note
If you have set the blackout for a specific PATROL object for the same or overlapping duration of time,
the product applies the combined blackout to that PATROL object. For example, if you have set the
TYPE_COLLECTION blackout on an application class by using __<ANYAPPL>__ and have set the
TYPE_EVENT blackout on a parameter contained in that application class, the resultant blackout type for
that parameter is TYPE_COLLECTION | TYPE_EVENT.
You can specify the application class instance ([/INST_NAME]) in an exact form, and in a generic form by using
the __<ANYINST>__ wildcard string, as illustrated below:
For exact:/FILESYSTEM/dev-pts/FSCapacity
For generic:/FILESYSTEM/__<ANYINST>__/FSCapacity
For example,
Home
TYPE represents the type of blackout. Specify the name of the type of blackout based on the PATROL
object activities that you want to suppress during blackout, as described in the following table.
Types of blackout
Type name
Type
value
Description
TYPE_COLLECTION
Suppresses data collection for parameters of an application class or an application class instance
When the TYPE_COLLECTION blackout starts for a PATROL object, PATROL Agent sets the state of the
PATROL object and any object contained in that object, to OK. The product sends the state message for that
object to all the PATROL consoles.
For example, if you have set the TYPE_COLLECTION blackout at the application level, PATROL Agent sets the
state of application class, its instances, and the parameters to OK.
TYPE_ALARM
TYPE_EVENT
TYPE_RECOVERY
TYPE_SNMPTRAP
16
Suppresses Simple Network Management Protocol (SNMP) traps generated by the standard event classes
Note: SNMP traps generated by using the snmp_trap_send() PSL function are not suppressed.
TYPE_INFO
32
TYPE_ALL
63
When an event is generated for a PATROL object, the event description displays the type values described
in the above table for various types of blackout.
Home
Note
Do not enter the type value while specifying the type of blackout. Ensure that you use the
type name while setting a blackout.
You can define multiple types by separating the types by using a | as in case of
TYPE_EVENT|TYPE_RECOVERY|TYPE_COLLECTION, TYPE_RECOVERY|TYPE_SNMPTRAP, and so on.
Example
"/AgentSetup/Blackout/PROCPRES/__ANYINST__/PROCPPCount" = {REPLACE =
"[TYPE_ALARM | TYPE_EVENT; START ONCE AT 12:54; 1; \"Combination of Multiple
Types of Blackout\"]"}
START_INFOrepresents the condition when you want the blackout to start for the specified object. Specify
START_INFO in the following format:
The following table describes the values that you can specify for START_INFO.
START_INFO options
START_INFO
options
Description
ONCE
DAILY
DOW
DOM
LIST OF
DAYS
Applies the blackout on the list of days that you specified as a range by using -' or as comma-separated values
This is applicable for the DOW and DOM options.
Note: The following happens when you specify a range:
For DOW, if you do not specify the start day in the range, the product assumes Monday as the start day; similarly, if
you do not specify the end day in the range, the product assumes Sunday as the end day.
For DOM, if you do not specify the start date in the range, the product assumes 1st as the start date; similarly, if you
do not specify the end date in the range, the product assumes the last date of the month as the end date.
Home
START_INFO
options
Description
TIME
Applies the blackout at the time that you specified in the Hour:Min format (24-hour format), when you want the blackout to
start
Note
DURATION represents the duration for which you want the blackout to be applied. Specify the duration in
minutes.
If you set the duration to 0 (zero), the blackout is set for an infinite duration.
INFO_MSG represents the information message that you want the product to render on the consoles, for
the BlackoutStart and BlackoutStop events.
For the examples that illustrate the usage of the blackout functionality, see Examples.
Note
The .cfg file may contain multiple configuration variables. Ensure that the last variable does not have a
trailing comma.
The following tasks explain how to use the pconfig command-line utility to configure the BMC PATROL Agent
configuration branch, /AgentSetup/Blackout, on UNIX and Windows.
Home
Examples
The following examples illustrate the blackout configuration and settings:
Example
Home
For blackouts with overlapping time periods, BMC PATROL Agent may display multiple information messages for
the PATROL object being blacked out.
Home
whether the time specified in the associated blackout configuration for an object has lapsed, or needs to be
applied now or in future. If an invalid value is specified in the blackout setting, BMC PATROL Agent nullifies and
removes the entire blackout setting.
When BMC PATROL Agent is up and running, and you modify /AgentSetup/Blackout
BMC PATROL Agent maintains a real-time watch on the entire blackout branch for any modifications. For each
valid PATROL object defined in the blackout branch, the product checks the blackout configuration to determine
the nature of updates and perform corresponding activities.
If an object is removed, BMC PATROL Agent stops the blackout activity that is currently in progress or
scheduled for the object. If the blackout for the object was in progress, the product publishes the
BlackoutStop event.
If an object is added, BMC PATROL Agent validates the blackout configuration for the object and schedules
the blackout activities for the object.
If a blackout rule is modified, BMC PATROL Agent determines the modifications made to the blackout
configuration. Any modifications to blackout configuration rules of an object for which blackout is in
progress, stops the current blackout. A new blackout for the object is set in accordance with the updated
blackout configuration rule. For an object for which blackout is scheduled for future, the modifications are
applied immediately.
BlackoutStart event
When blackout for a PATROL object starts, BMC PATROL Agent generates a BlackoutStart event. The
BlackoutStart event contains the blackout type and duration, and the information message.
BlackoutStop event
When the blackout of an object is complete, BMC PATROL Agent sends a BlackoutStop event. The BlackoutStop
event description contains the type of blackout and the information message.
Note
The BMC PATROL Agent version 3.8.00 installation package includes patch version 2.8.00.02 of PATROL
KM for Event Management.
Install this patch if you want to use BMC PATROL KM for Event Management.
Home
This patch includes the modified standard event catalog that contains information related to the
BlackoutStart and BlackoutStop event classes.
Additional events
For the TYPE_EVENT blackout type, if the state of the PATROL object is not OK, BMC PATROL Agent generates an
additional update status event, soon after the blackout is completed.
Note
Home
KM version arbitration does not apply to PATROL Central Operator, Microsoft Windows Edition or
PATROL Central Operator, Web Edition.
Version arbitration
The process through which the PATROL Console and PATROL Agent determine which version of a KM to load is
called version arbitration. The following table shows what version of a KM is loaded by the PATROL Agent under
different conditions.
Note
KM version arbitration does not apply to PATROL Central Operator Microsoft Windows Edition or
PATROL Central Operator Web Edition.
KM installed in
/knowledge directory of
KM preloaded
on the
KM in the
disabled List for
Knowledge Module
PATROL
Agent
the PATROL
Agent
Yes
No
No
Yes
No
Yes
Yes
Yes
No
No
No
No
No
N/A
Yes
Yes
No
No
Result
Home
PATROL Developer
Console
No
Yes
Yes
Yes
No
No
N/A
No
No
N/A
Yes
For more information about KM version arbitration, refer to the PATROL Console for Microsoft Windows User
Guide, Customizing PATROL, Volume 3 or the PATROL Console for UNIX User Guide.
Statuses
The following table lists the application loading statuses for the KMs or KM lists and the agent configuration
variables used to assign each status. The Disabled and Static statuses cannot be applied to KM lists ( .kml).
KM statuses in the PATROL Agent
Status
Description
Agent Configuration
Variable
Preloaded
The KM loads at startup and runs until the PATROL Agent stops.
preloadedKMs
preloadedKMsArch
Disabled
disabledKMs
disabledKMsArch
loadOnlyPreloadedKMs
Static
The KM does not load until a PATROL Console with the same KM connects to the PATROL Agent; when the
console disconnects the KM remains loaded until the agent stops.
staticApplications
This status ensures that the agent's history is continuous and complete. It provides constant monitoring
without having to maintain a constant connection with a console.
Dynamic
The KM loads when a PATROL Console with the same KM connects to the PATROL Agent and unloads when
the console disconnects (default).
None
If a KM is not listed in one of the other variables, its loading status defaults to this value.
Home
Assigning status
Assigning status to an application consists of entering the application's KM file name, without the .km extension,
in the appropriate agent configuration variable list.
To Use wpconfig to preload a KM from the PATROL Console for Microsoft Windows
1. Access the PATROL Agent's pop-up menu and select Development > Agent Configuration.
The console starts the wpconfig utility and displays the wpconfig window.
2. In the left pane, click the AgentSetup folder.
The variables in the AgentSetup folder are displayed in the right pane.
3. Scroll down the variable list and double-click the preloadedKMs variable.
The Modify Variable dialog box is displayed.
4. In the Change Entries field, double-click the highlighted REPLACE line.
The Change Entry dialog box is displayed.
5. In the Type field, leave REPLACE.
6. In the Value field, use the comma-separated format without spaces to type the names of the .kml files that
you want to preload.
7. Click OK.
The Change Entry dialog box closes.
8. In the Modify Variable dialog box, click OK to close the box.
9.
BMC PATROL Agent 9.5
Home
Home
Example
"/AgentSetup/preloadedKMs" = {REPLACE="ORACLE,SYBASE,INFORMIX"}
of data
Default value
None
By default, the PATROL Agent does not load any of the application KMs; however, the ALL_COMPUTERS.km and the KM for the
current computer type are always preloaded and always static.
Minimum and
Not applicable
maximum
Dependencies
None
Recommendation
Example
"/AgentSetup/preloadedKMsArch" = {REPLACE="/NT.*,KERNEL/"}
This variable consists of two fields enclosed in forward slashes (//). Separate multiple entries with a comma (,).
Home
Default value
None
Not applicable
Dependencies
None
Recommendation
None
To use wpconfig to remove a KM from the preload List in the PATROL Console for
Microsoft Windows
1. Access the PATROL Agent's pop-up menu and select Development > Agent Configuration.
The console starts the wpconfig utility and displays the wpconfig window.
2. In the left pane, click the AgentSetup folder.
The variables in the AgentSetup folder are displayed in the right pane.
3. Scroll down the variable list, and double-click the preloadedKMs variable.
The Modify Variable dialog box is displayed.
4. In the Change Entries field, double-click the highlighted REPLACE line.
The Change Entry dialog box is displayed.
5. In the Type field, leave REPLACE.
6. In the Value field, delete the .kml file names that you want to remove from the preload list.
7. Click OK to close the Change Entry dialog box.
8. Click OK to close the Modify Variable dialog box.
9. From the Tools menu, select Apply Configuration.
The Apply Configuration dialog box is displayed, listing the PATROL Agent host name to which you are
connected.
10. Click OK to apply your updated configuration to the PATROL Agent.
11. Save your changes to the configuration change file by clicking the Save button.
12. Close the wpconfig window.
Home
To use xpconfig to remove a KM from the preload list in the PATROL Console for
UNIX
1. Access the PATROL Agent's pop-up menu and select Development > Agent Configuration.
The console starts the xpconfig utility and displays the xpconfig window.
2. From the Host column in the left pane of the xpconfig window, click a PATROL Agent computer name to
highlight it.
3. Click the Get Configuration button.
The configuration variables for the selected computer are displayed in the Variables column in the right
pane.
4. In the Filter field, type the following string:
/AgentSetup/pre*
The filter displays all the variables that begin with that character string.
5. Double-click the preloadedKMs variable.
The Edit Variable dialog box is displayed.
6. Click the Change button.
An Edit window is displayed.
7. Delete the .kml file names that you want to remove from the preload list.
8. Select File > Exit to close the Edit window and save your changes.
9. In the Edit Variable dialog box, click OK to close the box.
10. Click Apply Configuration, and close the xpconfig window.
The xpconfig utility sends the updated configuration to the selected PATROL Agent.
item_1,item_2,item_n, KMs
Default value
The field contains an empty string " ". However, by default the PATROL Agent marks the ALL_COMPUTERS and common
machine-type KMs as static.
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
If you want an application to remain in agent memory once it is loaded, regardless of whether a console is connected, add it
to this variable.
Home
Note
Disabling an application even prevents the PATROL Developer Console from downloading the KM into
the memory of the Agent.
Example
If you want to disable everything that begins with NT and VMS, use NT.* and VMS.*, not NT*. and VMS*.
"/AgentSetup/disabledKMs" = {REPLACE="NT.*,VMS.*,bad_APPL"}
item_1,item_2,item_n, KMs
Default value
None
Minimum \ maximum
Not applicable
Dependencies
None
Recommendation
The ALL_COMPUTERS.km and the KM for the current machine type cannot be disabled.
The file names must be on the same line.
Home
Example
"/AgentSetup/disabledKMsArch" = {REPLACE=/NT.*,KERNEL/}
This variable uses the same format as the /AgentSetup/preloadedKMsArch variable. For format information, see the format
section of Preloading applications based on architecture.
Default value
None
Minimum and
Not applicable
maximum
Dependencies
None
Recommendation
None
Default value
Yes
Not applicable
Dependencies
Recommendation
None
Types
The PATROL Agent Configuration Variables disabledKMs and disabledKMsArch support three types of filters:
Positive is inclusive; the filter selects only those entities that match an item in the list
Negative is exclusive; the filter rejects those items that match an item in the list
Implicit is associative; the filter selects or rejects items because the group or subset that the items
belong to is selected or rejected; it consists of the opposite of the explicit. For example, if in the
disabledKMs variable you explicitly enter !NT/NT_CPU, which translates to "do not disable NT_CPU on NT
systems," you implicitly state disable NT_CPU on all other systems, such as HP, AIX, and OpenVMS.
Precedence
The agent processes the filters in the following order:
BMC PATROL Agent 9.5
Home
1. Positive
2. Negative
3. Implicit
When the agent finds a match based on a filter's specification, the match takes precedence over filters with lower
precedence, except in the case of wildcard matches.
Note
Exact matches of a lower filter order can override wildcard matches of a higher filter order.
Entry order
The entry order of the clauses, separated by commas, does not affect the precedence of the filters.
Example
The disabledKMsArch variable contains the following values:
/NT/NT_.*/, /NT/!NT_MEMORY,NT_CACHE/
Based upon this entry, all NT KMs are disabled except NT_MEMORY and NT_CACHE because the exact
match in the negative filter clause takes precedence over the wildcard match in the positive filter.
Example
The disabledKMsArch variable contains the following values:
/NT/NT_FILESYSTEM,.*/, /NT/!NT_CPU,NT_CACHE,NT_FILESYSTEM/,/!AIX/NT_FTP/
The NT_FILESYSTEM application would be disabled (not loaded) because the positive filter has precedence.
Home
/NT/.*/,/VMS/.*, /NT/!NT_CPU,NT_MEMORY/,/!VMS/VMS_QUEUE.*,VMS_PROCESS.*/}}
Filters
The Windows Agent builds three filters as follows:
Positive filter (/NT/.*/,/AIX/.*,/VMS/.*) disables (does not load) all KMs on all Windows and OpenVMS
systems
Negative filter (/NT/!NT_CPU,NT_MEMORY/) does not disable (loads) CPU and memory applications on
Windows systems
Implicit Positive filter (/!VMS/VMS_QUEUE.*, VMS_PROCESS.*/) explicitly enables (loads) the VMS queue
and process applications on OpenVMS systems, which implies that these applications are disabled (not
loaded) on Windows systems
Results
For all monitored systems, the PATROL Agent loads the CPU and memory applications on all Windows systems.
The Agent also loads all queue and process applications on all OpenVMS systems. When the Agent loads these
applications depends upon each application's status (preload, static, and dynamic).
Running dump_km_list
Type the following command at the PATROL Console system output window and press Enter:
%DUMP KM_LIST
Note
This command is case-sensitive.
Home
Warning
An operator console and a developer console are connected to the same Agent. The operator console
then loads KM that is not loaded on the developer console. When you run the dump km_list utility on
either of the consoles, the KM, which was loaded on the operator console but is not loaded on the
developer console, is displayed in the list as version 0.0.
The scenario described above does not apply to PATROL Central Operator, Microsoft Windows Edition or
PATROL Central Operator, Web Edition.
Home
Example
To exclude three instances of an Oracle database, you must create a filter type variable,
"/AgentSetup/ORACLE.filterType" ={REPLACE="exclude"}, and a corresponding filter list variable,
"/AgentSetup/ORACLE.filterList" ={REPLACE="ORACLE_A,ORACLE_B,ORACLE_C"}.
Values
Default value
Exclude
Minimum \
maximum
Not applicable
Dependencies
/AgentSetup/application_name.filterList specifies items (application instances) that are monitored (include) or not (exclude).
Each .filterList needs a .filterType.
Recommendation
Create a configuration variable of this type with a different application name for each application. Valid application names are
described in the KM reference manuals.
Example
"/AgentSetup/FILESYSTEM.filterList" ={REPLACE="root,us.,ora."}
Default value
None
Minimum and
maximum
Not applicable
Dependencies
/AgentSetup/application_name.filterType determines whether the items listed by this variable are monitored (included) or
not (excluded).
Recommendation
Create a configuration variable of this type with a different application name for each application. Each .filterList needs a
.filterType.
Valid application names are described in the KM reference manuals.
Home
Description
Port number
Host name
Class
Instance
Parameter
Home
History text file: contains annotations that a user has added to a data point
History data file: contains data points
The history database stores information in a binary format. To view the information, you must use the PATROL
Console or run the dump_hist utility.
Index file
PATROL_HOME/log/history/<hostName> / <port_num>/dir
PATROL_HOME\log\history\<hostName> \ <port_num>\dir
PATROL_HOME/log/history/<hostName> / <port_num>/param.hist
PATROL_HOME\log\history\<hostName> \ <port_num>\param.hist
PATROL_HOME/log/history/<hostName> / <port_num>/annotate.dat
PATROL_HOME\log\history\<hostName> \ <port_num>\annotate.dat
Home
the history cache based on either how much information you want to store (number of data points), or how long
you want to store information in memory.
These two storage methods are not mutually exclusive which is mentioned as follows:
If you select to store history based on the number of data points, the agent writes all the data points for a
parameter to the history database when that parameter collects the specified number of data points.
If you select to store history based on a time interval, when the interval expires, the agent writes all data
points for all parameters to the history database.
If you activate both methods of storage, the agent writes information to the history database more
frequently than if only one method is activated. The agent writes once when the time interval expires and
once when a parameter collects the specified number of data points.
Note
This history is not the same as events, which are kept in the event log repository file. PATROL Agent
stops writing information to the history text file, param.hist, when the size of param.hist grows to 4 GB.
Numeric, seconds
Default value
5, none
Dependencies
None
Recommendation
None
Home
Default value
16
0, none
Dependencies
None
Recommendation
None
Setting the number of days that history is retained in the history database
The /AgentSetup/historyRetentionPeriod configuration variable determines the number of days that collected
parameter values are retained in the history database. After this retention period has expired, PATROL deletes the
retained information.
Format and type
Numeric, days
of data
Default value
Minimum and
maximum
0, none
Dependencies
Recommendation
None
To retain historical data, set this value to coincide with weekly (7) or monthly (30) backups. At the end of each period, shut down
the agent, save the history database files to a location outside of the PATROL directory structure, and then restart the agent.
From Console
For information about how to set the history retention period at the computer instance, application class,
application instance, or parameter level, see PATROL Console for Microsoft Windows User Guide Monitoring
and Managing with PATROL, Volume 2 or PATROL Console for UNIX User Guide.
Home
Example
HOST_12/NT_CACHE.NT_CACHE/CACcachCopyReadHitsPercent Fri May 05 09:22:56 CCYY
98.5958 Fri May 05 09:23:56 CCYY 98.324 Fri May 05 09:24:56 CCYY 100 Fri May 05
09:25:57 CCYY 99.4318 Fri May 05 09:26:57 CCYY 100 Fri May 05 09:27:57 CCYY 100 Fri
May 05 09:28:57 CCYY 90.1566 Fri May 05 09:29:57 CCYY 96.1365 Fri May 05 09:30:57
CCYY 92.2062
Definition
Windows directory
PATROL_HOME
PATROL_HOME
PATROL_HOME/log
PATROL_HOME\log
PATROL_HOME/log/history
Top directory of parameter history databases contains top directories of each PATROL Agent
PATROL_HOME\log\history
PATROL_HOME
/log/history/<hostName>
A PATROL Agent's top directory of parameter history created by the PATROL Agent using the official host
name on which it is running
PATROL_HOME
\log\history\<hostName>
PATROL_HOME
/log/history/<hostName>/<port_num>
The directory where a single PATROL Agent stores files when multiple PATROL Agents are running on the
same host created by the PATROL Agent using its port number
PATROL_HOME
\log\history\<hostName>\<port_num>
Home
Index file
PATROL_HOME/log/history/<hostName>/<port_num>/dir
PATROL_HOME\log\history\<hostName>\<port_num>\dir
PATROL_HOME/log/history/<hostName>/<port_num>/param.hist
PATROL_HOME\log\history\<hostName>\<port_num>\param.hist
PATROL_HOME/log/history/<hostName>/<port_num>/annotate.dat
PATROL_HOME\log\history\<hostName>\<port_num>\annotate.dat
PATROL_HOME
Running dump_hist
Note
Running dump_hist while the PATROL Agent is also running can cause unpredictable results.
Home
Type the following command at the command line prompt and press Enter:
dump_hist -options
[-p port]
[-host hostname]
[-class regexp] or [-class_noreg literal string]
[-inst regexp] or [-inst_noreg literal string]
[-format OPTIONS format]
[-param regexp] or [-param_noreg literal string]
[-s mmddhhmm[yyyy]]
[-e mmddhhmm[yyyy]]
[-timestamp]
[-annotate]
[-nostat]
[-v]
Definition
-p
This option specifies which PATROL Agent's history database is used. Combined with the -host option, -p specifies a unique
PATROL Agent. The value of this option must be the port number to which the specified PATROL Agent is listening. The default
value is 3181.
-host
This option specifies which PATROL Agent's history database is used. By default, the name of the host on which dump_hist is
started is used.
-class or
-class_noreg
This option specifies which application classes to dump. You can use -class to filter out parameters whose application classes do
not match the given regular expression. The _noreg extension indicates that the argument will be interpreted literally.
-inst or
-inst_noreg
This option specifies which application instances to dump. You can use -inst to filter out parameters whose application instances
do not match the given regular expression. The _noreg extension indicates that the argument will be interpreted literally.
-format
"options"
Home
Option
Definition
-param or
This option specifies which parameters to dump. You can use -param to filter out parameters whose names do not match the given
-param_noreg
regular expression. The _noreg extension indicates that the argument will be interpreted literally.
-s
These options specify the time span for which you want to view history. Only parameter points that occur after the start date and
-e
time (-s mmddhhmm[yyyy]) and before the end date and time (-e mmddhhmm[yyyy]) are provided.
See the example For a specific time period.
-timestamp
This option prints time stamps as integers instead of converting them into a local time string.
See the example To print time as an integer rather than a local time string.
-annotate
This option prints annotation text for a data point that is annotated.
-nostat
This option suppresses the display of summary statistics. Only the raw history data is printed, which simplifies parsing.
-v
If multiple options are specified, they are interpreted as "and" conditions. For example, if you specify both -class
and -param, then for the parameter to be dumped, its application class must match the regular expression given
by the -class option, and its application instance must match the regular expression given by the -inst option.
Format options
The -format option controls the layout of ASCII texts files created by the dump_hist command. This option can
be used to decide what information is in the file. It can also make these files easier to read or import into popular
desktop applications such as spreadsheet and word processing programs. Using a PATROL KM for history loading,
it can facilitate uploading these files into databases such as Oracle, Sybase, and Microsoft SQL Server. (See the
PATROL Knowledge Module for History Loader User Guide for more information.)
Options for -format of dump_hist
Option
Definition
%H
Host name
%A
Application name
%I
Instance name
%P
Parameter name
%y
Year (yyyy)
%m
Month (mm)
%d
Day (dd)
%g
%h
Hour
%M
Minutes (MM)
%s
Seconds (ss)
Home
Option
Definition
%v
The syntax of -format requires placing the options in the above table between quotes and using characters such
as commas (,), pipes (|), and dashes (-) to separate these values. Consider the following example:
This command produces a .dat file in the PATROL_HOME/remote directory on UNIX and PATROL_HOME\remote
directory on Windows, and each line of the file uses the same character separators.
Following is a sample line from a file generated by this example:
,,smile,USERS,USERS,USRNoSession,CCYY-10-16 20:51:53,22
dump_hist
smile|USRNoSession|22|10/16/CCYY|202153
Home
To write to a file
This command redirects the output of dump_hist to a file called dump_hist.out. Each line of this file uses a pipe
symbol to separate the values and displays the host name, parameter name, parameter value, date, and time.
Note
CCYY represent the century and year. When using this format option, enter the actual year.
Note
On Microsoft Windows operating systems, the history index file has a file size limit of 2 GB.
Home
Once such a problem is discovered, you might want to perform one of the following actions:
Shut down the PATROL Agent and run the fix_hist utility, and remove any history you no longer need by
selecting Options > Clear History from the parameter list screen.
Shut down the PATROL Agent and move the annotate.dat, dir, and param.hist files.
Be sure to move or delete all three files. When the agent is restarted, it creates new versions of these files.
The -force_history_cleanup<days> option is available in versions 3.5.30 and later of fix_hist (available for PATROL
for UNIX 9.0.00 and later and PATROL for Microsoft Windows Servers 3.0.01 and later). The
-force_history_cleanup option deletes anything older than the number of days specified. This option is used to
trim the history files.
The syntax for the option is as follows:
Warning
BMC recommends archiving history files before you use this feature. The number of days that the
parameter history is retained is relative to the time at which the fix_hist -force_history_cleanup
command is issued. You cannot delete selective parts of the history file or manually add data to the
history files.
Output
While reading the annotation database, the fix_hist utility creates a file. When the utility encounters an error that
it cannot repair, it saves the data that it has already read and discards the data that is unreachable due to a
corrupted pointer or other error.
The fix history utility backs up the history database files that it attempts to repair by appending "~#~" to each file,
for example param.hist.~3~. The utility then writes the recovered information to the history database files, for
example param.hist.
Home
incomplete state
nobackup does not back up the history database before attempting repair, packing, or both
nopackann does not pack annotations when processing the history database
Default value
None
Minimum and
maximum
Not applicable
Dependencies
None
Recommendation
None
For more information about changing configuration variables, see Using wpconfig (Windows) to configure the
BMC PATROL Agent and Overview of the xpconfig configuration utility.
With PATROL Agent version 3.5.30 or later, the /AgentSetup/fixHistFlag Agent configuration variable is used to fix
the history files when the agent starts up.
The /AgentSetup/fixHistFlag variable can have one of the following values:
Values for the /AgentSetup/fixHistFlag variable
Option
Description
always
dirtybit
Attempts to repair, pack, or both when the history database indicates that the database may have been left in an
unknown or incomplete state; run fix_hist only when the history was not closed properly during the previous agent
was shut down
no_repair_hist
no_pack_hist_index
nopackann
nobackup
repair_cycle=<number>
force_history_cleanup=<days>
Specifies the number of days you want to retain the parameter history
Note
If the /AgentSetup/fixHistFlag variable is not defined, the default of never is used.
Home
Definition
Windows directory
PATROL_HOME
PATROL_HOME
PATROL_HOME\log
PATROL_HOME\log
PATROL_HOME/log/history
Top directory of the parameter history databases contains top directories of each PATROL Agent
PATROL_HOME\log\history
PATROL_HOME
/log/history/<hostName>
A PATROL Agent's top directory of the parameter history database. Created by the PATROL Agent using the
official host name on which it is running
PATROL_HOME
\log\history\<hostName>
PATROL_HOME
/log/history/<hostName>/<port_num>
The directory where a single PATROL Agent stores files when multiple PATROL Agents are running on the
same host created by the PATROL Agent using its port number
PATROL_HOME
\log\history\<hostName>\<port_num>
Index file
PATROL_HOME/log/history/<hostName>/<port_num>/dir
PATROL_HOME\log\history\<hostName>\<port_num>\dir
PATROL_HOME/log/history/<hostName>/<port_num>/param.hist
PATROL_HOME\log\history\<hostName>\<port_num>\param.hist
PATROL_HOME/log/history/<hostName>/<port_num>/annotate.dat
PATROL_HOME\log\history\<hostName>\<port_num>\annotate.dat
Home
Relocating files
Moving these files will not prevent you from viewing them. The dump_hist utility can be used to view the old
history data.
Running fix_hist
Running the fix_hist command could require shutting down the agent for a considerable amount of time. The
length of the down time is directly related to the size of dir, annotate.dat, and param.hist. If these files are very
large or any down time for the agent is undesirable, consider clearing unneeded history or moving the files
instead of running fix_hist. Some options for the fix_hist command may reduce its run time. See Options for
fix_hist utility.
Warning
The fix_hist utility requires disk space while it is running. If you have limited disk space on your
computer, it is possible to run out of space. Running out of disk space can cause all PATROL files to be
inaccessible or it can cause other applications to crash.
To run fix_hist
1. Stop the PATROL Agent.
2. For Windows, set the variable called %PATROL_HOME%. For UNIX, run one of the following scripts from the
PATROL installation directory:
. ./patrolrc.sh (for Korn and Bourne shell)
source.patrolrc (for C shell)
3.
BMC PATROL Agent 9.5
Home
[-p port]
[-host hostname]
[-no_repair_hist]
[-no_pack_hist_index]
[-no_pack_ann]
[-no_backup]
[-repair_cycle number]
[-v]
Definition
-force
This option tells fix_hist or the PATROL Agent process to ignore an invalid lock and start anyway. An invalid lock occurs
when fix_hist or PATROL Agent incorrectly detects a conflicting process is running for the same host and port.
-force_history_cleanup
<days>
This option specifies the last number of days for which you want to keep the parameter history.
-host
This option specifies which PATROL Agent's history database is used. By default, the name of the host on which fix_hist is
started is used.
-no_repair_hist
This option stops this command from repairing the history. This option is useful if you only want to pack the data and
index files.
-no_pack_hist_index
This option specifies that the history index file is to be left unpacked.
Home
Option
Definition
-no_pack_ann
-no_backup
This option prevents the history files from being backed up before the command starts.
-p
This option specifies which PATROL Agent's history database is used. Combined with the -host option, -p specifies a
unique PATROL Agent. The value of this option must be the port number to which the specified PATROL Agent is listening.
The default value is 3181.
-repair_cycle
This option specifies the maximum number of times to scan the history data while repairing it.
-v
fix_hist -p 5000
Home
PATROL events
PATROL event log
Setting up the event log file and size
Managing the PATROL event cache
Extracting event data from the PEM log
PATROL event archive
Text filtering events
Setting event rules
Defining event descriptions
Standard events published by the PATROL Agent
Events stored
In the Standard Event Catalog, which is accessible through the console, you can determine whether an event is
stored in the PEM log by setting the event's Life Expectancy. Storage options include delete if closed, delete if
information, do not store, and store.
Description
event ID
status
type
Home
Information type
Description
node
origin
event description
event diary
Comments about what triggered this event or what type of actions were taken in response to this event
Users add these comments and the event manager time-stamps each entry.
PATROL_HOME/log/PEM_<host>_<port>.log
PATROL_HOME\log\PEM_<host>_<port>.log
PEM_<hostname>_<port>.log
Default value
PEM_<hostname>-<portnum>.log
Not applicable
Dependencies
None
Home
Recommendation
If you change the name, use a name that indicates the log's purpose and origin.
Numeric, bytes
Default value
1024000
Minimum and
maximum
If you set the PEM log file size to 0 (zero), the events are not saved to disk and any previous PEM log file remains
unmodified.
If you set the size higher than 0 but less than 20480, (minimum), the agent sets it to 1024000 (default).
Dependencies
None
Recommendation
A larger file size stores more events in the event history but consumes more system resources. Carefully consider the size
of the file.
Numeric, bytes
of data
Default value
500
Minimum and
maximum
10, 20480
Dependencies
/AgentSetup/pemEvMemRetention determines whether this variable has any effect. If the value of pemEvMemRetention is
greater than zero, the PATROL Agent ignores the value of this variable.
Recommendation
A larger cache size improves the performance of the agent but consumes more memory.
To determine the value to use, estimate 200 bytes per event.
Home
Operation
An event is triggered. The agent gets the object of the incoming event and reads the number of events stored for
that object. If the number of events is less than pemEvMemRetention, the agent saves the incoming event in the
cache. If the number is greater than or equal to the variable, the agent transfers the oldest event to the log and
saves the new event in the cache. When the cache fills up, the agent increases the cache size by half of its current
size. The agent bases the cache's initial size on pemCacheSize.
Note
The dump_events utility does not access the PEM cache and thus does not extract the most recent
events.
Example
15 OPEN STATE_CHANGE Wed Mar 30 09:39:41 1994 palmtree CPU.CPU State Change:OK ALARM
Current state is inherited from an alert on global parameter 'CPUCpuUtil'. 16 OPEN
STATE_CHANGE Wed Mar 30 09:39:41 1994 palmtree SYSTEM.SYSTEM State Change:OK ALARM
Current state is inherited from an alert on global parameter 'SYSCpuUtil'. 17 OPEN
STATE_CHANGE Wed Mar 30 09:39:41 1994 palmtree NETWORK.NETWORK State Change:OK warn
Current state is inherited from an alert on global parameter 'NETSGetAttr'. 18 OPEN
Home
When you use dump_events, keep in mind the following limitations and guidelines:
Only one copy of dump_events is allowed to be run at a time on a single system. Otherwise the behavior is
unpredictable.
dump_events must run on the same host as the PATROL Agent because both use the same lock file (
circular-file-name.lock ) in the /$<PATROL_HOME>/log directory for UNIX and
PEM_<hostname>_<port>.log <PATROL_HOME>\log directory for Windows.
dump_events is installed with the agent; the PATROL environment must be set up prior to running it.
The following table shows the directories used by the dump_events utility:
The dump_events utility directory structure
UNIX
Description
Windows
PATROL_HOME/log
The default location of the lock file, which must be non-NFS mounted.
PATROL_HOME\log
HOME/patrol
HOMEDRIVE\HOMEPATH\patrol
Home
Environment
variable
PATROL_HOME
Running dump_events
To run dump_events, type the following command at the command line prompt and press Enter:
dump_events -<options>
[-s <circular-file-full-name>]
[-d <ASCII-file-full-name>]
[-t <lock-file-dir-name>]
[-m] <printf-fmt-string>
[-f]
[-v]
Definition
-s
This option provides the full name of the event log file (circular file) if different than the default.
The default is PATROL_HOME/log/PEM_<host>_3181.log for UNIX and PATROL_HOME\log\PEM_<host>_3181.log for Windows. If you do
not provide a directory, the default directory is used.
-d
This option provides the full name of the ASCII dump file if different than the default. The default is HOME/patrol/PEM_<host>_3181.txt. If
you do not provide a directory, the default directory is used.
-t
This option provides the directory name of the circular file lock. The default is PATROL_HOME/log for UNIX and PATROL_HOME\log for
Windows. If you do not provide a directory, the default directory is used.
-f
This option enables the event-dumping and can be used if a previous dump_events program was stopped.
-m
Home
Option
Definition
This option provides a user-defined format for event dump. By default, the event manager uses the print format string equivalent to '%1$s
%2$s %3$s %4$s %5$s %6$s %7$s %8$s\n'.
The arguments have the following order:
1.
2.
3.
4.
5.
6.
7.
8.
Event ID (%1$s)
Status (%2$s)
Type (%3$s)
Time (%4$s)
Node (%5$s)
Origin (%6$s)
Desc (%7$s)
Diary (%8$s)
-v
Home
Substring matching
Substring matching allows you to filter all events containing a particular string such as "alarm", "warn", or
"Cpubusy".
Example
To search for all events containing the word "State", set the event filter to the following PSL example:
"State", # PatternFilter - sub-string matching
Any ALARM event containing "State" in the description will be returned regardless of where "State" is located
in the description.
Example
Home
To search for events starting with "State" in the description, set the event filter to the following PSL example:
"/^State/", # PatternFilter - Regular expression matching
To search for events ending with "State" in the description, set the event filter to the following PSL example:
"/State$/", # PatternFilter - Regular expression matching
To search for events that include only "State" in the description, set the event filter to the following PSL
example:
"/^State$/", # PatternFilter - Regular expression matching
To search for events that do not start with "State" in the description, set the event filter to the following PSL
example:
"^/^State/", # PatternFilter - Negate Regular expression matching
/EventRules/sourceCatalog/sourceClass/objectPath
SUPPRESS
REPLACE=(replacementCatalog, replacementClass)
SUBSTITUTE=replacementEventDescriptionText
SUBSTITUTE=numericMessageID
Not applicable
Dependencies
None
Recommendation
None
Note
Only ONE rule can exist for a given KM context, event catalog and event class. This is inherently
enforced by the fact that only one such pconfig variable can exist.
If many rules exist that match the objectPath of an event, the following order is applied:
Home
Suppress an event
To suppress an event means that you want to suppress event source catalog, source class anytime the event
origin matches objectPath.
Example
Key: /EventRules/STD/UpdInstState/NT_CPU/NT_CPU
Value: SUPPRESS
Any UpdInstState Event published in the context of the application instance NT_CPU/NT_CPU will be
suppressed.
Home
Note
If you suppress any of the above mentioned events, neither will any event get generated nor will any
event actions run. Only range evaluations will take place and recovery events will get generated.
Example:
Event class "RemPsl" launch remote PSL execution events will not get displayed
Event class "Result" return result of remote PSL execution will not be shown
Event class "BlackoutStart" event will not get generated.
Event class "BlackoutStop" event will not get generated
Replace an event
The event replacement rule allows you to replace standard events with more meaningful events for each KM. To
replace an event means that you want to replace event source catalog, source class with event replacement
catalog, replacement class anytime the event origin matches objectPath.
Example
Key: /EventRules/STD/11/NT_CPU
Value: REPLACE=(MY_CAT,MyClass)
Any instance of Standard Event 11 published in the context of application NT_CPU will be replaced by an
instance from event class MyClass and catalog MY_CAT. Because the context of the rule is NT_CPU, the rule
will apply to any event with the following origin:
NT_CPU,
NT_CPU.CPU_0,
NT_CPU.CPU_0.CPUprcrUserTimePercent
NT_CPU...CPUprcrUserTimePercent
Home
Example
Key: /EventRules/STD/28/NT_CPU/NT_CPU/CpuPercent
Value: SUBSTITUTE=User %s cannot be authenticated
When event "28" is to be published in the context of computer "NT_CPU/NT_CPU/CpuPercent', the
original description "Login denied for user '%s' -- invalid username/password or wrong ACL." will be
substituted with "User %s cannot be authenticated".
A user defined configuration branch "/MyConfig/config1/agenthost-01_test" = { REPLACE = "This is
message from nested Macro."}, can be used in the event replacement rule as follows:
Key: /EventRules/STD/11/NT_CPU/CPU_0/CPUprcrUserTimePercent
Value: SUBSTITUTE= Nested with user defined config
branch:%{//pcfg/MyConfig/config1/%{/hostname}_test}
When event "11" is to be published in the context of computer
"/NT_CPU/CPU_0/CPUprcrPrivTimePercent", the original description "Alarm #2 of global parameter
'CPUprcrUserTimePercent' triggered on 'NT_CPU.CPU_0'. 95 <= 98.00 <= 100" will be substituted
with "Nested with user defined config branch:This is message from nested Macro".
If you have defined CustomId1 using the Event Management KM:
Key:/AS/EVENTSPRING/NT_MEMORY/NT_MEMORY/MEMmemPagesInputPerSec/customId1
Value:This is message from customid1 defined using EM KM.
This configuration variable can be used in the event replacement rule as follows:
Key:/EventRules/STD/11/NT_MEMORY/NT_MEMORY/MEMmemPagesInputPerSec
Home
Example
Using Event Macros:
Key:/EventRules/STD/9/NT_LOGICAL_DISKS/D:/LDldDiskSpaceUsed
Value:SUBSTITUTE= Alarm cancelled on Instance:%{INSTANCE_NAME}, on Paramater:
%{PARAMETER_NAME}
When event "9" is to be published in the context of "/NT_LOGICAL_DISKS/D:/LDldDiskSpaceUsed", the
original description "Alert on 'NT_LOGICAL_DISKS.D:.LDldDiskSpaceUsed' from global parameter
'LDldDiskSpaceUsed' cancelled; exception no longer exists." is substituted with "Alarm cancelled on
Instance:Data (D:), on Paramater: LDldDiskSpaceUsed".
As in the event replacement rule, it is expected that the substitute description defines the same number of
arguments as in the original description.
Home
Agent macros are expanded to the actual agent value at event publishing time. You specify the formal arguments
and agent macros for an event in the event class.
Example
In the custom event catalog "MY_KM", event class "MyClass" defines a description template as: "On host
%{HOSTNAME}%, at time %{TIME}%, alert on '%s' from %s parameter '%s' cancelled; exception no longer
exists.". In this example, 3 formal string arguments are "alert on '%s' from %s parameter '%s' cancelled;
exception no longer exists." and the two agent macros are "%{HOSTNAME}%" and "%{TIME}%".
You must specify the 3 actual arguments for publishing time as:
event_trigger("MY_KM","MyClass", ## class "MYclass" from the "MY_KM"
event catalog "ALARM","3", ## ALARM and numerical severity of 3 "arg1", "arg2", "arg3"); ## actual argument
to the event
The resulting event description will be "On host maxpc, at time 18:48:30, alert on '%s' from %s parameter '%s'
cancelled; exception no longer exists." Note that the event trigger does not pass an actual argument to
expand the agent macros. The agent does it automatically.
List of macros
You can use the following Agent macros to modify your event descriptions:
List of agent macros
Agent macro
Description
%{AGENT_VERSION}%
%{ALARM_MAX}%
%{ALARM_MIN}%
%{APPCLASS}%
%{APPINSTANCE}%
%{AVE10}%
%{DATE}%
%{EVENT_CATALOG}%
%{EVENT_CLASS}%
%{EVENT_ID}%
%{EVENT_SEVERITY}%
Home
Agent macro
Description
%{EVENT_STATUS}%
%{EVENT_TYPE}%
%{HOSTNAME}%
Computer name
%{ICON_NAME}%
%{IPADDRESS}%
%{INSTANCE_NAME}%
%{LAST10}%
Last 10 Parameter Values (example, 1.00 2.00 3.00 4.00 and so on.)
%{LAST10TP}%
%{LAST10TS}%
%{LOOKUP:/<prefix>/<varname>}
%{OS_TYPE}%
%{PARAMETER_NAME}%
%{PARAMETER_STATUS}%
%{PARAMETER_VALUE}%
%{PARENT_INSTANCE}%
%{TCP_PORT}%
%{TIME}%
%{TIMEZONE}%
%{UDP_PORT}%
%{USERDEFINED}%
Description
%{CUSTOM_ID1}%
%{CUSTOM_ID2}%
%{NOTIFY_EVENT_ID}%
%{NOTIFY_EVENT_STATUS}%
%{NOTIFY_EVENT_TYPE}%
Home
Note
The LOOKUP macro will not work for event catalogs.
Event class
10
11
12
39
UpdAppState
UpdInstState
UpdMachineState
UpdParState
WorstApp
Home
WorstApp
Description
No trap
Default storage
Severity
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf will disable publishing of these events. By default it is set to no.
Home
Description
Default SNMP
UpdMachineState
Update status of
Current state of
host: %s %s.
'%s' is %s.
application '%s'.
No trap
setting
Default
storage
Severity
Low (2)
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf does not affect the events. By default it is set to no.
UpdInstState
Description
No trap
Default storage
Severity
Home
Parameter
UpdInstState
Low (2) if it is another state change
Very low (1) if no state change occurred in the instance
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf will disable publishing of this event. By default it is set to no.
Example
Border range is [0,100]; out of range state: OK; trigger alarm: "immediately on alarm".
Alarm#1 range is [80,90]; alert state: WARN; trigger alarm: "immediately on alarm".
Alarm#2 range is [90,100]; alert state: ALARM; trigger alarm: "immediately on alarm".
The "normal range" is [0,80].
The table below shows which event is generated when a parameter value changes from one range to another.
Parameter
Normal
Alarm #1
Alarm #2
Out-of-Range
Normal
NA
11
11
39
Alarm #1
NA
11
39
Alarm #2
11
NA
39
Out-of-Range
11
11
NA
The following sequence of values will validate all state transitions. Note that the out-of-range state or alert state
must not affect the state transitions. Setting out-of-range state and alert states to (OK, OK, OK) or (WARN, WARN,
WARN) will produce the same state transitions.
1. 15 (Normal)
2. 85 (Normal > Alarm#1)
3. 95 (Alarm#1 > Alarm#2)
4. 195 (Alarm#2 > Out-of-Range)
5. 15 (Out-of-range > Normal)
6. 195 (Normal > Out-of-range)
7. 95 (Out-of-range > Alarm#2)
8. 85 (Alarm#2 - Alarm#1)
9. 15 (Alarm#1 -> Normal)
10. 95 (Normal > Alarm#2)
11. 15 (Alarm#2 > Normal)
12.
BMC PATROL Agent 9.5
Home
Description
Default SNMP
11
39
on '%s'. %f %s %d
Trap
Trap
No trap
High (4)
Medium (3)
setting
Default
storage
Severity
Medium (3)
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf does not affect the events. By default it is set to no.
UpdParState
Description
No trap
Default storage
Severity
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf does not affect the event. By default it is set to no.
Home
12
Description
Default SNMP
setting
No trap
Default storage
Severity
Medium (3)
Configuration
Setting AR_ALLOWSENDPARAMONLY to yes in patrol.conf does not affect the events. By default it is set to no.
Home
Operator overrides
An operator override is stored in an external database. This method works best for small sites. For more
information see the PATROL Console for UNIX User Guide or PATROL Console for Microsoft Windows User Guide
PSL overrides
The PSL function set_alarm_ranges() changes the alarm ranges of a parameter. This method is useful for
intelligent KMs that determine their own alarm ranges during run-time. However, this method is CPU intensive
and can cause problems if parameters are changed, so it is not recommended for regular use. For more
information see the PATROL Script Language Reference Manual Volume 2 PSL Functions.
Developer overrides
A developer override is a change to a parameter for a specific application on a specific host. It is stored in a
special section of the KM file and can be created by only a developer console. This method is not recommended
for large enterprises. For more information see the PATROL Console for UNIX User Guide or PATROL Console for
Home
allowpsloverride can have a value of true or false, which allows or disables the PSL overrides.
allowoperatoroverride can have a value of true or false, which allows or disables operator overrides. This
setting takes precedence over any setting on the console.
The following is an example of the agentrights section of the patrol.conf file that allows all three types of
overrides:
[AGENT]}
define agentrights allrights
allowexternaloverride=true
allowpsloverride=true
allowoperatoroverride=true
end
agent *, allrights
Note
You must manually define allowexternaloverride parameter in the patrol.conf file, it is not included in the
file by default.
Note
You cannot disable developer overrides.
Home
Note
If a parameter has been deactivated by external file, it must be reactivated by external file. It cannot be
reactivated by PSL command.
Home
Tip
Using multiple methods of overriding parameters is not recommended.
Home
definitions contained in the file. The following procedure outlines the steps you must perform to store your
override definitions in a single file. More details about each step are documented in the rest of this section.
1. Define the /AgentSetup/ExternalOverride variable as follows:
/AgentSetup/ExternalOverride = <myfile>, where myfile is the name of the override file you want
to use. This file is not required to have an extension.
2. Create myfile with the override definitions you want to use. The file name must be the same file name you
define in /AgentSetup/ExternalOverride.
The following example file, myfile, defines overrides for the LDldDiskTimePercent parameter of the
NT_LOGICAL_DISKS application class and the PAWorkRateExecsMin parameter of the PATROL_NT
application class.
myfile
[/NT_LOGICAL_DISKS//LDldDiskTimePercent]
ACTIVE=1
BORDER_ACTIVE=0
ALARM1_ACTIVE=0
ALARM2_ACTIVE=0
[/PATROL_NT/PATROL_NT/PAWorkRateExecsMin]
ACTIVE=1
BORDER_ACTIVE=0
ALARM1_ACTIVE=0
ALARM2_ACTIVE=0
Anytime you create or update this file, the PATROL Agent applies the new overrides to the parameters.
For more information about creating the content of override files, see External override file format.
2.
BMC PATROL Agent 9.5
Home
/AgentSetup/ExternalOverride variable is defined as the relative path to the override file directory, the
PATROL Agent reads all files in the directory and applies the overrides as defined in each file.
NT_LOGICAL_DISKS
[/NT_LOGICAL_DISKS//LDldDiskTimePercent]
ACTIVE=1
BORDER_ACTIVE=0
ALARM1_ACTIVE=0
ALARM2_ACTIVE=0
PATROL_NT
[/PATROL_NT/PATROL_NT/PAWorkRateExecsMin]
ACTIVE=1
BORDER_ACTIVE=0
ALARM1_ACTIVE=0
ALARM2_ACTIVE=0
For details about creating the content of override files, see External override file format.
4. Create the @timestamp file.
The PATROL Agent checks for a file called @timestamp (without a file extension) every n seconds in the
path defined by /AgentSetup/ExternalOverride. The n seconds is based on the value specified for
/AgentSetup/ExternalOverridePolltime.
The agent does not read the file, it only checks its time stamp. You must create the @timestamp file
manually.
If the @timestamp file has a different time stamp as before or does not exist, the PATROL Agent reads all
files in the directory which have changed.
Home
The PATROL Agent does not write to external override files and it reads them with the PATROL_ADMIN user.
Therefore, the external override files can be read-only and owned by the PATROL_ADMIN user.
Note
You must manually create external override files.
Text string indicating a file name. The string can contain macro variables.
Default value
Not applicable
Dependencies
Recommendations
Use macro variables to specify different names for different situations and name the external override files accordingly.
Home
In the following example, the value for %{hostname} exists by default since it is a built-in value populated by the
PATROL Agent. However, %{timeofday} does not exist by default, so you must set the variable using either of the
following commands:
set("/timeofday", "day"); or set("/timeofday", "night");
Example
To use different files during the day and night, you must use a macro variable and use it in the configuration
variable.
/AgentSetup/ExternalOverride = "%{hostname}_%{timeofday}
If /timeofday is set to "day", the PATROL Agent uses the file PATROL_HOME/lib/admin/myhost_day
If /timeofday is set to "night", the PATROL Agent uses the file PATROL_HOME/lib/admin/myhost_night
Integer, seconds
0 external file polling is disabled
60+ the polling cycle in seconds
Default value
0 or 60+, no maximum
Dependencies
Recommendations
None
To manually check whether the file has changed, use the %OVERRIDE CHECK command.
Sections
The name of each section identifies the parameter to be overriden. To override a parameter for a specific
application instance, use the following format for the section name:
BMC PATROL Agent 9.5
Home
[/APPLICATION/INSTANCE_SID/PARAMETER]
To override a parameter for all instances of an application class, leave the INSTANCE_SID blank:
[/APPLICATION/ /PARAMETER]
Attributes
The attribute and value pairs for each section identify the new values to be used. The following table lists the
available attribute and value pairs.
Attribute and value pairs
Attribute
Description
ACTIVE
INTERVAL
Integer. This integer attribute defines the number of seconds for the polling interval. This attribute does not apply to
consumer parameters.
BORDER_ACTIVE
ALARM1_ACTIVE
Boolean. These attributes define whether the alarm ranges are active or not for the border, alarm1, and alarm2 ranges.
ALARM2_ACTIVE
BORDER_MINIMUM
Integer. These attributes define the minimum values for the border, alarm1, and alarm2 ranges.
ALARM1_MINIMUM
ALARM2_MINIMUM
BORDER_MAXIMUM
ALARM1_MAXIMUM
Integer. These attributes define the maximum values for the border, alarm1, and alarm2 ranges.
ALARM2_MAXIMUM
BORDER_STATE
Constant. These attributes define the state for the border, alarm1, and alarm2 ranges. Possible values are OK, WARN,
ALARM1_STATE
ALARM2_STATE
BORDER_ALARM_WHEN
ALARM1_ALARM_WHEN
ALARM2_ALARM_WHEN
Constant. These attributes define when the alarms occur for the border, alarm1, and alarm2 ranges. Possible values
are ALARM_INSTANT, ALARM_AFTER_N, and ALARM_AFTER_RECOVERY.
BORDER_ALARM_WHEN_N
ALARM1_ALARM_WHEN_N
ALARM2_ALARM_WHEN_N
Integer. These attributes define the number of consecutive times the parameter must have a value within the range
before the alarm occurs. This attribute is only ALARM_AFTER_N is used.
BORDER_DO_RECOVERY
ALARM1_DO_RECOVERY
ALARM2_DO_RECOVERY
Boolean. These attributes define whether the recovery action is run or not.
Home
Home
To clear all overrides from an external override file, you must delete the contents of the file and leave the blank
file in place until the next polling cycle.
Additional functions
The PATROL Agent also includes the following commands that you can use with external override files:
%OVERRIDE DUMP
%OVERRIDE REAPPLY
%OVERRIDE CHECK
%OVERRIDE DUMP
This command outputs the following information:
The information in the external file
The polling interval
The name of the current external override file
%OVERRIDE REAPPLY
This command reapplies all of the settings in the external override file. This command is only useful when PSL
function overrides are also used. When this command is run, all overrides in the external override file are applied,
replacing any corresponding overrides created by the PSL function.
%OVERRIDE CHECK
This command checks if the external file has changed.
Home
PATROL_CONFIG
"VARIABLE"={
APPEND ="VALUE[,VALUE...]",
DELETE[="VALUE[,VALUE...]",
MERGE ="VALUE[,VALUE...]",
REPLACE="VALUE[,VALUE...]"
}
...
"/AgentSetup/preloadedKMs"={
APPEND = "UNIX_2.1.km,ORACLE6.km",
DELETE = "SYBASE.km",
MERGE = "INGRES.km,ORACLE7.km"
},
"AgentSetup/__type__"={
REPLACE = "DATA_REPOSITORY"
}
Home
Home
Environment
variable
PATROL_HOME
Warning
The utility requires disk space while it is running. If you have limited disk space on your computer, it is
possible to run out of space. Running out of disk space can cause all PATROL files to be inaccessible or it
can cause other applications to crash.
To run fix_cache
1. Stop the PATROL Agent.
2. Ensure that the environment variable is set. See, Before running the fix_cache utility.
3. At the command line,
run fix_cache and monitor the output.
4. Issue the following command to get the return code of the process:
$ echo $?
See Return values for fix_cache utility for more information about return values.
5. Repeat step 3 and step 4 until no more errors are reported or until you determine that the cache cannot be
fixed.
Home
[-port port]
[-host hostname]
[-queue_size]
[-rebuild_cache]
[-v]
Definition
-host
This option specifies which PATROL Agent's cache is used. If -host option is not specified, then the name of the host, where the
fix_cache utility is started, is used.
The hostname should be same as the one specified at "$PATROL_HOME/log/streamcache/<HOSTNAME>/".
-queue_size
This option specifies the queue size used by the utility. If no value is specified or the value is invalid, then value 100 is set as default.
-rebuild_cache
This option rebuilds the cache from the buffer. No value is needed for this option.
-port
This option specifies which PATROL Agent's cache is used. Combined with the -host option, -port specifies a unique PATROL
Agent. The value of this option must be the port number to which the specified PATROL Agent is listening. The default value is
3181.
-v
fix_cache -rebuild_cache
Home
Home
11 Troubleshooting
The pages in this section provide information about the BMC PATROL Agent log files.
BMC PATROL Agent logs
BMC PATROL Agent for failovers
Utilities and Scripts to Capture PatrolAgent and Patrol Adapter Issues
Description
Home
Information
type
Description
Time and
date
Error
message ID
Message
type
An error message is assigned one of the following types; they are listed in order of least severe to most:
I = Informational
W = Warning
E = Error
Error
message
PATROL_HOME/log/PatrolAgent-<hostName>-<port>#.errs
PATROL_HOME\log\PatrolAgent-<hostName>-<port>#.errs
Home
Apr 20 01:06:22 2011: Run Time $TARGET = Solaris210-sun4-64 Wed Apr 20 01:06:22 2011:
ID 10218a: I: Internationalized PatrolAgent, Locale = C (C). Wed Apr 20 01:06:22 2011:
ID 102192: I: Max. # of open file descriptors = 1024 Wed Apr 20 01:06:22 2011: ID
1021b1: I: CPU time [parm90:seconds]: Current limit = unlimited, Hard limit = unlimited
Wed Apr 20 01:06:22 2011: ID 1021b2: I: Maximum file size [parm90:bytes]: Current limit
= unlimited, Hard limit = unlimited Wed Apr 20 01:06:22 2011: ID 1021b3: I: Maximum
data size [parm90:bytes]: Current limit = unlimited, Hard limit = unlimited Wed Apr 20
01:06:22 2011: ID 1021b4: I: Maximum stack size [parm90:bytes]: Current limit = 8Mb,
Hard limit = unlimited Wed Apr 20 01:06:22 2011: ID 1021b5: I: Maximum core file size
[parm90:bytes]: Current limit = unlimited, Hard limit = unlimited Wed Apr 20 01:06:22
2011: ID 1021b6: I: Maximum number of open files [parm90:descriptors]: Current limit =
1024, Hard limit = 65536 Wed Apr 20 01:06:22 2011: ID 1021b9: I: Maximum available
mapped address space [parm90:bytes]: Current limit = unlimited, Hard limit = unlimited
Wed Apr 20 01:06:22 2011: ID 1021ba: I: Maximum available memory [parm90:bytes]:
Current limit = unlimited, Hard limit = unlimited Wed Apr 20 01:06:22 2011: ID 1020ff:
I: Environment: ML_ROOT=/opt/patqa1/3900QA12/Patrol3/Solaris210-sun4-64/lib/nls Wed Apr
20 01:06:22 2011: ID 1020ff: I: Environment:
XBMLANGPATH=/opt/patqa1/3900QA12/Patrol3/Solaris210-sun4-64/lib/images/%B.xbm Wed Apr
20 01:06:22 2011: ID 1020ff: I: Environment:
PATROL_BIN=/opt/patqa1/3900QA12/Patrol3/Solaris210-sun4-64/bin Wed Apr 20 01:06:22
2011: ID 1020ff: I: Environment: PATROL_HEARTBEAT_INTERVAL=4000 Wed Apr 20 01:06:22
2011: ID 1020ff: I: Environment: PATROL_SKS_DBNAME=default Wed Apr 20 01:06:22 2011: ID
1020ff: I: Environment: HHHOME=/opt/patqa1/3900QA12/Patrol3/lib/app-defaults/help Wed
Apr 20 01:06:22 2011: ID 1020ff: I: Environment: HOME=/opt/patqa1 Wed Apr 20 01:06:22
2011: ID 1020ff: I: Environment: HZ=100 Wed Apr 20 01:06:22 2011: ID 1020ff: I:
Environment: LOGNAME=patqa1 Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment:
MAIL=/var/mail/patqa1 Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment:
OLDPWD=/opt/patqa1/3900QA12/Patrol3/log Wed Apr 20 01:06:22 2011: ID 1020ff: I:
Environment:
PATH=/opt/patqa1/3900QA12/Patrol3/Solaris210-sun4-64/bin:/usr/xpg4/bin:/opt/patqa1/3900QA12/Pat
Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment: PATROL_ADMIN=patqa1 Wed Apr 20
01:06:22 2011: ID 1020ff: I: Environment:
PATROL_HOME=/opt/patqa1/3900QA12/Patrol3/Solaris210-sun4-64 Wed Apr 20 01:06:22 2011:
ID 1020ff: I: Environment: PWD=/opt/patqa1/3900QA12/Patrol3 Wed Apr 20 01:06:22 2011:
ID 1020ff: I: Environment: SHELL=/bin/bash Wed Apr 20 01:06:22 2011: ID 1020ff: I:
Environment: SHLVL=2 Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment:
TARGET=Solaris210-sun4-64 Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment:
TERM=xterm Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment: TZ=Asia/Calcutta Wed
Apr 20 01:06:22 2011: ID 1020ff: I: Environment: UNAME=SunOS Wed Apr 20 01:06:22 2011:
ID 1020ff: I: Environment:
XKEYSYMDB=/opt/patqa1/3900QA12/Patrol3/lib/app-defaults/XKeysymDB Wed Apr 20 01:06:22
Home
XUSERFILESEARCHPATH=/opt/patqa1/3900QA12/Patrol3/lib/app-defaults/%N:/opt/patqa1/3900QA12/Patro
Wed Apr 20 01:06:22 2011: ID 1020ff: I: Environment: _=./PatrolAgent Wed Apr 20
01:06:22 2011: ID 10218c: I: Enabling COS support subsystem using RT Server Locator:
tcp:172.19.220.162:2059. Wed Apr 20 01:06:22 2011: ID 10209d: I: SNMP Sub-Agent is now
connected. Wed Apr 20 01:06:22 2011: ID 102010: I: Binding PatrolAgent to TCP port 3181
Wed Apr 20 01:06:22 2011: ID 1021d3: I: PatrolAgent default account is 'patqa1' Wed Apr
20 01:06:22 2011: ID 102082: I: PatrolAgent-Info: Loaded `ALL_COMPUTERS' application
locally from agent knowledge directory. Wed Apr 20 01:06:22 2011: ID 102082: I:
PatrolAgent-Info: Loaded `SOLARIS' application locally from agent knowledge directory.
Wed Apr 20 01:06:22 2011: ID 1020a9: I: Using default method of collecting process
cache: internal function call. Wed Apr 20 01:06:22 2011: ID 1020ab: I: PatrolAgent's
runqSchedPolicy is now set to 1. Wed Apr 20 01:06:22 2011: PatrolAgent-E-EUSER: Bad PSL
script for SOLARIS Command, command type 'PSL', class 'COMMAND'. Wed Apr 20 01:06:22
2011: Enabling Integration Service support subsystem. Wed Apr 20 01:06:22 2011: ID
10205a: I: Binding PatrolAgent to port 3181 ... Wed Apr 20 01:06:23 2011: ID 1021cc: I:
Connection established to rtserver tcp:172.19.220.162:2059.
Numeric, messages
of data
Default value
100000
Minimum and
maximum
0, none
Dependencies
None
Recommendation
Under normal circumstances, the default value for the number of messages must not be reached. Most of the PATROL Agent
messages are a single line long. Only a few messages exceed this size.
The global symbol numAgentMsgs tracks how many messages have been written to the log.
You can limit the number of messages that are written to the agent error log using the agent configuration
variable, maxAgentMessageLimit. When the number of messages in agent error log reaches the limit, the agent
stops data collection for all the the KM's.
When the limit is reached, the following block is written to the agent error log:
Mon Aug 14 11:45:22 2000 Maximum number of messages (12) logged. >>>NO MORE MESSAGES WILL BE LOGGED<<<
Home
PatrolAgent-hostname-port.errs
PatrolAgent-hostname-port.errs.~1~
PatrolAgent-hostname-port.errs.~2~
PatrolAgent-hostname-port.errs.~3~
PatrolAgent-hostname-port.errs.~4~
PatrolAgent-hostname-port.errs.~5~
Operation
During startup, the PATROL Agent checks to see if a log file or any archived log files exists, and performs the
following actions:
1. If a fifth archive log exists, the agent deletes that log.
2. If archives one through four exist, the agent increments the extension of each by one.
3. If an error log file exists, the agent archives it by adding the extension ~1~.
4. The agent opens a new error log file.
Tip
This information is critical for locating the source of PAWorkRateExecsMin alarms.
Home
information/event
Spawned
Commands
Note: The agent does not create a log entry for implicitly created commands. This means that the PATROL Agent will not log
the commands that are created by a process that it creates.
Example: Using PSL popen() to create a process, and then sending a command down the channel for this process to run. The
agent logs the creation of the popen() process.
Commands Ran
Each command (that is, script) that is run as a result of a Menu Command or an InfoBox Command.
The entry in the log file records the console ID of the peer and the local account name used for the connection.
Connect/Disconnect
Details
Each connection/disconnection.
The entry in the log file records the console ID of the peer, the console type, and the local account name used for this
connection.
Commit Actions
Configuration
Actions
Each explicit pconfig, wpconfig, or xpconfig action that affects the state of the PATROL Agent.
The entry in the log file records the events that change variables, kill the agent, and PSL pconfig() operations.
Default value
None
Not applicable
Dependencies
None
Recommendation
None
Home
The following figure demonstrates what the variable would look like when added through wpconfig or xpconfig:
Adding /AgentSetup/auditLog in wpconfig\xpconfig
Description
Active
Determines whether the audit logging feature is turned on or off, and where the information is being logged. The recognized values
include the following:
0 turns off audit logging and is the default setting (No, and False are also valid values)
1 logs information to a file (Yes, On, and True are also valid values)
2 log information is sent to the Applications log by default. If you are using Windows 2000 or later, see Creating a custom node
in the windows event log.
3 logs information to both a file and Windows Event Log
Delimiter
Determines the delimiter character that separates the fields in the log file. The default character is the pipe-symbol ' |'.
FileAging
FileCount
Determines how many old log files are retained. The default value is 5.
Each time a new log file is created, the previous files are renamed in the same manner as done with the agent regular log file.
Home
Key
Description
FileName
Determines the pathname and filenaming convention for the audit log file. The name can contain the following macros:
%H refers to the current agent-host
%P refer to the port-number being used
If path is not a fully qualified pathname, the PATROL Agent treats it as being relative to the <PATROL_HOME>/log directory. All
subdirectories in the pathname must already exist. PATROL Agent creates the log file but not the directories leading up to the file.
If the file cannot be opened, the agent writes an error message to the agent's log file.
The default path and file name is:
NT PATROL_HOME\log\PatrolAgent-%H-%P.audit
UNIX PATROL_HOME/log/PatrolAgent-%H-%P.audit
Time|Host|EntryType|User|Entry-specific-data
Each field is separated by the delimiter character (the default is a pipe, |) specified in /AgentSetup/auditLog
configuration variable.
Audit log file format
Field
Description
Home
Time
Host
EntryType
User
Entryspecific
data
The Entry Type is determined by the type of action being recorded. The left column lists the action; the right describes the entry.
Audit
Command
The console ID running the command; if the command originates from the system-output window, it displays the actual
command
Commit
Config
Connect
Disconnect
Run
Home
Home
Note
BMC recommends that you make local customizations with an operator console with modified
patrol.conf entry. These customizations are stored in the agent Configuration File. For information about
modifying patrol.conf, see PATROL Console for Microsoft Windows User Guide Customizing PATROL,
Volume 3.
Home
If one of the checks listed above fails, the pat-diag-adpater script will automatically capture the PatrolAgent logs,
netstat, configuration, history , and events data.
Home
Home
Home
Home
13 PDFs
This topic describes and links to PDFs and other documents that support this product release. If the ready-made
PDFs of this space do not satisfy your requirements, you can export a custom PDF.
Tip
When you export a custom PDF, you can select the topics to include. For information about how you
can export a custom PDF from this space, see Exporting to PDF and other formats.
Date
File size
Version 9.5.00
2.38 MB
Home
Index
Home