|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
| News | Recommended Links | Gateway Troubleshooting | TEC Documentation | Using Log Files to Troubleshoot Tivoli Environment | Etc |
Key commands:
wep help
wep [help [subcommand]] Get general or subcommand help messages
wep ls [-i <info>][-d <del>][-g <gw_label>] Lists endpoints
wep sync_gateways Sync gateways with the Endpoint Manager
wep <label> Show ep info for endpoint named <label>
wep <label> set field value Sets endpoint data
wep <label> get <info> [-d <del>] Displays endpoint data
wep <label> migrate [-f] <gw_label> Migrate endpoint to gateway
wep migrate_to_pref [-f] {-d|-a|-n} [-m <max>] [-g <gw_label>]
Migrate endpoints to their preferred gateways
Advanced Commands:
wep boot_method add <tag> <prototype_object> <method_name> <endpoint_object...>
wep boot_method list <tag> <endpoint_object>
wep boot_method remove <tag> <endpoint_object...>
wep boot_method test <tag> <endpoint_object>
wep del <ep_oid> <gw_label> Low level delete CAREFUL!
wep view <ep_oid> <gw_label> Low level display ep info
Rescue Commands: (These commands contact the endpoint)
wep <label> status
wep set gateway {-g <gw_label> | -e <ep_label>}
wep set interfaces {-g <gw_label> | -e <ep_label>} interfaces
wep <label> set_label [-s] <new_label> Changes the label of an endpoint
wep <label> set_config field=value Changes endpoint configuration parameter
Tivoli endpoints like Tivoli Framework itself have complex, very convoluted directory structure with path to some some components so deeply nested in a maze of directories that this depth of nesting itself defies any developer logic and might suggest problems with architectural thinking within IBM. The good thing is that at least it is similar for all operating systems be it NetWare, OS/2, UNIX, or Windows.
The main endpoint directory structure (there is also supplementary /etc/Tivoli directory structure) contains two important subtrees: one leading to cache directory where all downloaded from the gateway executables reside and the second to mrt directory where the platform specific lcfd binary resides:
Among important endpoint working directory subdirectories and
files:
Tivoli/lcf/bin/interpr/mrt
Contains platform specific lcfd binary used to manage endpoint.
The following system startup files are added or modified during the installation of a UNIX endpoint.
| Operating system | Files modified |
|---|---|
| AIX | /etc/rc.tma1 /etc/inittab.before.tma1 |
| HP-UX | /sbin/init.d/lcf1.sh /sbin/rc0.d/K100Tivoli_lcf1 /sbin/rc1.d/K100Tivoli_lcf1 /sbin/rc2.d/K100Tivoli_lcf1 /sbin/rc3.d/S500Tivoli_lcf1 |
| Solaris | /etc/init.d/lcf1.rc /etc/rc0.d/K50Tivoli_lcf1 /etc/rc1.d/K50Tivoli_lcf1 /etc/rc2.d/K50Tivoli_lcf1 /etc/rc3.d/S99Tivoli_lcf1 |
| SuSE Linux | /etc/rc.d/rc2.d/S99Tivoli_lcf1 /etc/rc.d/rc3.d/S99Tivoli_lcf1 /etc/rc.d/rc4.d/S99Tivoli_lcf1 /etc/rc.d/rc5.d/S99Tivoli_lcf1 /etc/rc.d/rc2.d/K10Tivoli_lcf1 /etc/rc.d/rc3.d/K10Tivoli_lcf1 /etc/rc.d/rc4.d/K10Tivoli_lcf1 /etc/rc.d/rc5.d/K10Tivoli_lcf1 |
| Other types of Linux | /etc/rc.d/rc2.d/S99Tivoli_lcf1 /etc/rc.d/rc3.d/S99Tivoli_lcf1 /etc/rc.d/rc4.d/S99Tivoli_lcf1 /etc/rc.d/rc5.d/S99Tivoli_lcf1 /etc/rc.d/rc0.d/K10Tivoli_lcf1 /etc/rc.d/rc1.d/K10Tivoli_lcf1 /etc/rc.d/rc6.d/K10Tivoli_lcf1 |
The following system variables can be set after you install an endpoint.
| System variable | Default setting |
|---|---|
| LCFROOT | Endpoint working directory |
| LCF_DATDIR | $LCFROOT/dat/ep_dir |
| TISDIR | $LCFROOT/dat/ep_dir |
| INTERP | interp_type |
To use these system variables, you must run the environment setup scripts for the endpoint from either of the two scripts created during the installation:
You can change your login initialization procedure to use the appropriate setup file so that the necessary environment variables and search paths are set to allow you to start the endpoint.
For example, for Bourne or Korn shell (sh or ksh) you can add the following to your profile:
if [ -f /opt/Tivoli/lcf/1/lcf_env.sh ]; then . /opt/Tivoli/lcf/1/lcf_env.sh fi
For Windows the installation process creates the following setup scripts:
By default TMA will automatically attempt the initial login to a Management Gateway as soon as lcdf process is launched on newly installed endpoint. This is done by UDP broadcast using port 9494. All gateways that receive this broadcast forward the request to Tivoli Server Endpoint Manager. The gateway whose request reaches server first handles the communication during login process. Endpoint manager executes endpoint policies:
Assignment information is passed to TMA which stores it in LCF.DAT file. After this point all TMA communications go through the assigned Management Gateway.
After the initial login, the TMA connects directly to its assigned management gateway for subsequent logins. Only if Management gateway does not respond TMA repeats UDP broadcast to find a new gateway, if any.
By default TMA listens on port 9495, the Tivoli Gateway uses 9494
Posted by: martinc on Feb 22, 2006 - 04:27 PM |
Sometimes there are situations that require an image of the endpoint code to be made. In this entry I will demonstrate how to make this work. |
Chapter 3. Maintaining the Tivoli Framework environment 237 is no longer in its endpoint list, it contacts the endpoint manager for the new gateway assignment, and communicates this back to the endpoint. The endpoint then performs a normal login to its new primary gateway. 3.6.5.2 Isolation An endpoint is considered isolated when it cannot connect to its primary gateway. In such situations, it attempts to connect the alternate gateways listed in its interfaces file. Once the endpoint contacts an alternate gateway, its login request is forwarded to the endpoint manager. At this point, the endpoint manager runs select_gateway_policy to determine an appropriate list of gateways for the endpoint, and passes this back to the endpoint through the intercepting gateway.
3.6.5.3 Orphaned An endpoint is considered orphaned if it is functional, but deleted from the endpoint manager.
In this situation, the endpoint login is performed as an nitial login, in which all the login policies are run.
The only difference is that the LCF_LOGIN_STATUS environment variable is changed to 7 (for orphaned) and the endpoint maintains its existing OID.
3.6.6 Endpoint migration scripts
The endpoint migration scripts referenced in this section are all available in Appendix A, “Useful Tivoli scripts” on page 377. They are designed to be a starting point. You will have to update them to provide the functionality appropriate for your TMR configuration, topology and general requirements. 3.6.6.1 epm.ksh script This endpoint migration script migrates an endpoint from one gateway to another within one TMR. The script determines if the endpoint has a status of manageable, as described in Section 3.6.1, “Endpoint status” on page 231. If not, the script returns an error. Otherwise, it performs the migration. If the new-gateway parameter passed to the program is the same as the endpoint’s existing gateway (as checked by a wep status command), the script returns the message “No action required.”
Syntax: epm <endpoint-name> <new-gateway>
Return codes and messages: • Return code 0: “Migration completed” • Return code 1: “Endpoint NOT MANAGEABLE” Chapter 3. Maintaining the Tivoli Framework environment 233
Figure 130. Korn shell script for AIX epstatus 3.6.2 Monitoring endpoints You may need to monitor endpoints to assure critical applications are running properly, or, for example, to distribute file packages. The script in Figure 131 on page 234 is an example of a monitor run from the TMR server that pings and runs wep ls (lists all gateways in a TMR, their assigned endpoints, and the endpoint status) against every endpoint in the TMR. This script assumes a functional DNS environment as well as a text file listing of all endpoints. This file can be generated by issuing the command:
wep ls | grep -v ^G | awk ‘{print $2}’ | grep -v gateway > endpoint.txt
When determining problems with the endpoint, it is important to remember that the endpoint operates in conjunction with two other components of the Tivoli environment: the endpoint manager and the gateway. Therefore, you need to assess the state of several Tivoli Management Framework components when troubleshooting endpoints: the endpoint itself, the gateways it can connect to, and the endpoint manager that is on the Tivoli server.
This chapter contains the following sections:
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: June 02, 2008