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

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

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

Tammy Zitello

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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


17.2 SYSTEM STARTUP AND SHUTDOWN


During system startup and shutdown, programs are executed that cause the OpenView environment to start and stop gracefully. Programs called during startup are sequenced in order to ensure that any program dependencies have been met before executing application startup scripts. Each vendor platform is slightly different. The examples in this section are from the HP-UX 11.11 system startup environment.

The startup and shutdown model uses four components:

  • Execution scripts

  • Configuration variable files

  • Link files

  • Sequencer script

  • 17.2.1 Execution Scripts


    Execution scripts read variables from configuration variable files. The OpenView platform relies on the execution of network startup programs (they are not covered here). The startup scripts are located in the directory /sbin/init.d. The execution scripts for OpenView on the management server are as follows:

    • SNMP startup scripts (SnmpHpunix,SnmpMaster,SnmpMib2,SnmpTrpDst)

    • DCE startup scripts (DCE programs required for OV RPC communications)

    • NNM and OVO startup scripts (ov500)

    • Oracle startup script (ovoracle)

    • OV Agent startup scripts (opcagt)


    17.2.2 Configuration Variable Files


    Configuration variable files are located in the directory /etc/rc.config.d. These files control the calls to the startup scripts that determine if the programs will start up. One (1) means start up the program and zero (0) means do not start up the program. Some files also contain other variables that are important to the program during startup. For example, the nfs.server file contains the number of nfs server processes (NUM_NFSDs) to startup. For OpenView, the configuration variable files are as follows:

    • SNMP startup variables
      SNMP_HPUNIX_START=1; export SNMP_HPUNIX-START; SNMP_MASTER_START=1; export SNMP_MASTER_START; SNMP_MIB2_START=1; export SNMP_MIB2_START; SNMP_TRAPDEST_START=1; export SNMP_TRAPDEST_START

    • DCE/RPC startup variable
      START_RPCD=1

    • NNM and OVO startup variable
      START_OV500=1

    • Oracle startup variables
      ORACLE=1, OVORALISTENER=1

    • OV Agent startup variables
      OPCAGT_DIR=/opt/OV/bin/OpC; START_LANG=C.iso88591; OPCAGT=1


    17.2.3 Link Files


    The link files are files that contain the startup or shutdown sequence number in the name of the file. Each file that the link file points to is called in order based on the sequence number assigned to the link. This order ensures that the applications and services start up in such a way that if an application requires the network service, the network service starts before the call for the application to start. There are two sequence link files for each startup script located in the /sbin/init.d directory. One sequence link file determines the startup order and starts with the letter "S" followed by the sequence number. The other sequence link file determines the shutdown order and starts with the letter "K" followed by the sequence number for shutdown. The sequence numbers for the OpenView program startup and shutdown are located in three locations: /sbin/rc1.d, /sbin/rc2.d, and /sbin/rc3.d, and are listed here for reference:

    • /sbin/rc1.d/K060ov900/sbin/init.d/ovoracle

    • /sbin/rc1.d/K410Rpcd/sbin/init.d/rpcd

    • /sbin/rc1.d/K435SnmpHpunix/sbin/init.d/snmpHpunix

    • /sbin/rc1.d/K435SnmpMib2/sbin/init.d/SnmpMib2

    • /sbin/rc1.d/K435SnmpTrpDst/sbin/init.d/SnmpTrpDst

    • /sbin/rc1.d/K440SnmpMaster/sbin/init.d/SnmpMaster

    • /sbin/rc2.d/K010OVCtrl --> /sbin/init.d/OVCtrl

    • /sbin/rc2.d/K059opcagt/sbin/init.d/opcagt

    • /sbin/rc2.d/K060ov500/sbin/initd.d/ov500

    • /sbin/rc2.d/S560SnmpMaster/sbin/init.d/SnmpMaster

    • /sbin/rc2.d/S565SnmpHpunix/sbin/init.d/SnmpHpunix

    • /sbin/rc2.d/S565SnmpMib2/sbin/init.d/snmpMib2

    • /sbin/rc2.d/S565SnmpTrpDst/sbin/init.d/SnmpTrpDst

    • /sbin/rc2.d/S590Rpcd/Sbin/init.d/Rpcd

    • /sbin/rc3.d/S920 --> /sbin/init.d/OVCtrl

    • /sbin/rc3.d/S390ov300/sbin/initd.d/ovoracle

    • /sbin/rc3.d/S940ov500/sbin/init.d/ov500

    • /sbin/rc3.d/S941opcagt /sbin/init.d/opcagt


    Note :
    The command

    opcagt applies to DCE agents only.

    17.2.4 The Sequencer Script


    The sequencer script /sbin/rc is responsible for calling the startup scripts for the programs during system boot and ensuring that they start with the system variables and in the correct order. During installation of the OpenView application programs, the startup and shutdown environment is configured on the management server and during agent installation on the managed node in case you enabled the automatic update of system resource files. If any programs fail to startup or shutdown properly, check the sequencer script log file /etc/rc.log for more information.

    During system boot, there is a series of transitions that are referred to as run levels. On an HP-UX system there are four run level transitions possible starting from a halted state (run level 0) to run level six. The link files for each run level are located under the directory /sbin/rcX.d, where "X" represents the number for the run level. Each run level directory contains the links to the programs that will be executed during startup or shutdown. The sequence numbers provide the order of precedence for the scripts in each run level directory. At each change of state during startup, the system enters a new run level and the files in the /sbin/init.d directory are executed based on the sequence number for the link found in the directory /sbin/rcX.d.


      / 276