HP OpenView System Administration Handbook [Electronic resources] : Network Node Manager, Customer Views, Service Information Portal, HP OpenView Operations نسخه متنی

This is a Digital Library

With over 100,000 free electronic resource in Persian, Arabic and English

HP OpenView System Administration Handbook [Electronic resources] : Network Node Manager, Customer Views, Service Information Portal, HP OpenView Operations - نسخه متنی

Tammy Zitello

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


17.10 UTILITIES AND CONTRIBUTED TOOLS


There are many tools and utilities provided with the OpenView platform that will help the OV administrator perform analysis and troubleshooting tasks.

17.10.1 Utility Programs


The utility programs are located in the directory /opt/OV/bin/OpC/utils. The programs in the utils directory are listed in Table 17-1 with a brief description of each for reference. Usage examples of some of the utilities immediately follow the table.

Table 17-1. OVO Utilities

Program Name

Usage Options

Description

ecsmgr

ECS correlation engine manager. ecsmgr can be used to alter the correlation engine's configuration.

inst_usr.sh

Check and install ITO user on UNIX systems.

opc_time_diff

[file1] [file2] threshold or t [file1] [file2]

Prints filename exceeding threshold time difference (in min). Option -t prints the time difference in minutes; File2 should be the newer one.

opcecsact

<ACK|CORRIND|SHOW CORR> <message_id> [,message_id]

Handles the action for ECS SNMP traps. The first parameter defines the action: CORRIND: Attaches an annotation to indicate that the event has correlated child events.

SHOWCORR: Retrives the correlation tree of child events for a given parent event.

The second parameter must be a message ID or a list of message IDs.

opcerr error

opcerr -h | <errcode>

Gets details and instructions for an ITO

[<errcode>...]

message.

opcgetcorrevts

opcgetcorrevts <msgid>

See also the man page opcgetcorrevts(1M).

vdumpevents(1M)

opcnls

Check for a valid agent codeset.

opcnode

-add_node | -del_node

| -chg_commtype | -list_nodes

| -add_group | -del_group

| -list_ass_nodes | -list_groups |

-assign_templ|-deassign_templ

| -list_ass_templs | -list_templs |

-assign_node | -deassign_node

Attributes:

node_name=<node_name>

node_label=<node_label>

group_name=<nodegrp_name>

group_label=<group_label>

net_type=<network_type>

mach_type=<machine_type>

comm_type=<comm_type>

node_list='<list>'

templ_type=<templ_type>


Maintains nodes, node groups and template assignments.

See also the man page opcnode (1M).

opcpat

[ -h ] [ -i ] [ -q ] [ -fp <patternfile> ] [ -fv <valuefile> ] [ -o <outfile> ]

Test program for ITO pattern matching.

See also the man page opcpat(1).

opcseldist

Controls the distribution of selected files in the actions|cmds|monitors directories on the management server to selected managed nodes. An example of using the selective distribution command for only allowing distribution of the required Smart Plug-in binaries that is actually required on each node.

opcsvcdcode

opcsvnls

opcsvnls [-c] [-l] [-t] [-o <codeset>]

-c : get codeset for locale

-l : get language for locale -o <cset>: get locale for codeset -v <cset>:check if <codeset> is a valid ITO codeset -k <cset1> <cset2>:check compatiblity -d : dump internal tables

Determines language of ITO management server.

opctempl

opctempl { -get <templ_name> <templ_type> <file> } |{ -add <file> } | { -modify ~<file> }

Maintains templates in files.

See also the man page opctempl (1M). Restrictions:

This command can only be issued by the root user. To enable other users to execute this command, the system administrator must change the file's attributes and copy it to a location which is included in the variable.

ovtrap2opc

ovtrap2opc <trapd_conf_file> <template_name> <application>

Converts trapd.conf file and uploads it

into database. See also the man page ovtrap2opc (1M). See also opccfgupld(1M) and trapd.conf (4)

submit.sh

submit.sh

Generates test message for OVO.

See also HP OpenView IT/Operations: ITO Administrator's Guide to Online Information and man opc(5).

17.10.1.1 Utility Programs Usage Examples

  • opcerr OpC10-001
    Gets details and instructions for an ITO error message.

  • opcnode -add_node node_name=fancy.ben.kape.com \ net_type=NETWORK_IP mach_type=MACH_HP11_PA_RISC \ group_name=hp_ux
    Adds the HP-UX 11.0 node fancy.ben.kape.com with network type IP and assigns it to the node group hp_ux.

  • opcnode -assign_template -templ_name="HP-UX 10.x/11.x"\ templ_type=TEMPLATE_GROUP node_name=fancy.ben.kape.com \ net_type=NETWORK_IP
    Assigns a template group to a node.

  • opcnode -chg_commtype node_list="fancy.ben.kape.com server.ben.kape.com" \ comm_type=COMM_DCE_TCP
    Changes the node communication type.

  • opcnode -list_ass_nodes group_name=hp_uxLists all nodes, which are assigned to the node group hp_ux.

  • ovtrap2opc /etc/opt/OV/share/conf/C/trapd.conf "SNMP Traps" snmptraps.


17.10.2 Contributed Tools


The contributed (unsupported) tools are located in the directory /opt/OV/contrib/OpC. The programs in the contrib directory are listed in Chapter 18. Another tool

itochecker is covered in more detail in Chapter 22, "Troubleshooting Tools and Techniques."

Table 17-2. Server (S) and Agent (A) Contributed Tools

Program Name

Usage

Description

opcchgaddr

S

Changes the node address in the OVO database See also man page opcchgaddr (1M).

opc_reset_ports

S

Resets the port range in the database to the default value.

opcsvctemplchk

S

Identifies comma-separated service names within templates or conditions. Comma-separated service names within templates and conditions are not supported with VPO A.06.00 or OVO A.07.00.

win_logpath_set

S

Sets the logpath of Windows managed nodes to /usr/OV/log/OpC; with VPO A.6.00 and OVO A.07.00 the node name in the logpath is no longer supported.

opccfgtest

S

Checks if the APIs are working correctly. For use by HP support only.

itochecker

S

Checks many aspects of your system and writes reports that can be sent to the support center. See also man page itochecker (1M).

itosend

S

Mails the itochecker results to HP listguis.

checkuiwww

S

Checks for open GUI connections. Checks both Motif and Java GUI connections.

lsof

S

Prints a list of all open files. This is an OpenSource utility needed by listguis. You need a dedicated version for each OS version. See also

opcdbck

S

Checks the database tables for consistency. See also the README file in the contrib. Directory.

opc.checkfile

S

Opcdbck configuraton file.

opc_odc

S

Collects information about the database configuration. The data collected is written to an output file /tmp/opc_odc.log.

opcsrvtst

S

Shows nodes of this server along with info from opc.hosts.

lb_admin

S

NCS support tool. (Solaris Server only.)

stacktrace

S

Analyzes core files.

opcdfchk

A

Checks the agent buffer file. For use by HP support only.

opcsystst

A

Checks network configuration.

opcrpccp

A

Manages the name server use for RPC applications.

opcqchk

A

Dumps the contents of a message queue.

lb_admin

A

NCS support tool. (Solaris, Pyramid, Olivetti, OSF, SCO, Dynix, NCR, Irix, SINIX.)

stacktrace_agt

A

Analyzes core files to find out the function stack trace. It's only available on HP-UX agents for now. The tool is the same, as on the server, it only has to be installed with a different name to avoid problems while de-installing the agent.

View the contents of the contrib. directory via the web: http://<mgmt_svr>:3443/ITO/indexl

Also, refer to the README file located in the directory /opt/OV/contrib./OpC.

The location of the contributed tools by vendor platform:

HP-UX:/opt/OV/contrib./OpC

NT:/usr/OV/contrib./OpC

AIX:/usr/lpp/contrib./OpC

OSF:/usr/opt/OV/contrib./OpC


    / 276