![]() |
![]() |
|
|
Administering the SNA Components
The topics in this section cover activities an administrator performs with the Communications Resource Manager (CRM) to maintain BEA eLink Adapter for Mainframe (eAM) applications.
The interface to the stack administration and configuration is dependent on the stack provider and thus cannot be covered in this guide. Refer to vendor publications for the stack(s) used in your environment.
This section discusses the following topics:
Starting the CRM on UNIX or Windows NT
The CRM is a server that communicates directly with the PU 2.1 server to provide SNA connectivity. These servers can be started manually. The PU 2.1 server must always be started before the CRM. Both servers must be started before starting the associated eAM gateway (GWSNAX).
To ensure proper start up of the CRM, complete the following tasks:
FIEDLTBLS32 must contain fmb.def
FLDTBLDIR32 must contain the path to the eAM libraries directory
APPDIR must be set to the application directory
Refer to the operational documentation provided by your SNA stack vendor for information about starting the PU2.1 server. The SNA stack must be running and active before you start the CRM.
Enter the SNACRM command on the command line.
Refer to Appendix A, Command Reference Pages for more detailed information about the SNACRM command.
When you start the CRM from the UNIX command line, the CRM Command Line Console puts its prompt in a window, and if exited, shuts down all of the active links.
On Windows NT, the CRM can be started in its own window; however, no prompt is displayed and no console commands are available. Refer to Command Reference Pages, for more detailed information about the SNACRM command.
Starting the CRM on OS/390 MVS
The OS/390 MVS platform sets the environment and invokes the CRM through Job Control Language (JCL).
FLDTBLDIR32=DD:FLDTBL
FIELDTBLS32=FMB
APPDIR=<High level qualifier for datasets to be created in APPDIR>
Refer to Sample JCL for the SNACRM Command and Command Reference Pages, for more information about sample SNACRM JCL and the SNACRM command.
Note: If the CRM is installed on an OS/390 MVS platform, it does not have to be restarted if the eAM gateway goes down abnormally. If a tmshutdown command is issued, the CRM will shut down.
Only the OS/390 MVS version and the OS/390 UNIX version of the CRM have this persistent feature.
Using the CRM Monitor
You can use the CRM monitor to set trace levels for a selected CRM and the associated APPC stacks. You also can observe link activity and display trace status, link status, and link statistics.
Note: The CRM monitor does not show trace data. This data is captured in a file under the APPDIR directory (where APPDIR is the variable name associated with the application directory). Please contact BEA Customer Support for help in locating the trace files and interpreting them.
The BEA eLink for Mainframe software includes two utilities that launch and execute the SNACRM monitor. The xsnacrm utility is designed for UNIX platforms and requires Motif libraries. The jsnacrm utility is designed for Windows NT platforms and supplies both a Java-based application and an applet.
Note: The jsnacrm utility can only be run from an Windows NT platform. It must be run on a UNIX or Windows NT platform to connect to an OS/390 CRM. The xsnacrm utility can only be run from the UNIX and Windows NT platform.
Using the CRM Monitor and the xsnacrm Utility
The xsnacrm utility provides realtime monitoring of the CRM and displays information describing the activity occurring in each CRM. The xsnacrm utility should be used by administrators and system operators only. Access to this utility may be restricted by setting the execute permissions during installation. The xsnacrm utility requires Motif libraries.
To launch and execute the CRM monitor using the xsnacrm utility, perform the following steps:
The APPC Protocol Stack API trace is either enabled or disabled. If enabled, it generally shows the parameters and results of all API calls. Depending on the Stack being used, other options (such as vendor-specified environment variables) may have to be activated for SNACRM to enable the trace.
At least one address must be specified. Multiple CRMs may be monitored by specifying all their associated addresses.
The format of an address consists of two forward slashes (//) followed by a host name or address, a colon (:) , and a service name or decimal port number (containing no spaces).
If a host name is used, it should be an entry in the file /etc/hosts. If a host address is used, it should be specified in the format nnn.nnn.nnn.nnn where each group of nnn represents a decimal number between 1 and 255. This host should identify the computer where the CRM you wish to monitor is running, not the host where xsnacrm is to run.
If a service name is used, it should be an entry in the file /etc/services. If a decimal port number is used, it should be a decimal number in the range 4000 - 32767. This number must match the corresponding port number on the command line used to start the CRM you want to monitor. (If the CRM was started automatically, the address is specified in the DMCONFIG file).
xsnacrm [<X/Motif args>] <addr> [ <addr> ...]
In the above command, the following definitions apply:
<addr>
The INET address of a CRM to monitor and <addr> is specified as either 0xHHHHHHHHHHHHHHHH or //<host>:<port>
<host>
Either a host name or an INET host address (e.g. 204.29.36.44) and
<port>
A service name or a decimal port number.
Figure 3-1 illustrates the xsnacrm screen.
Figure 3-1 xsnacrm Screen
Using the CRM Monitor and the jsnacrm Utility
The jsnacrm utility is written in Java as both an application and an applet. The application launches and executes like any other Java application and can be set up so it is accessible from the Windows desktop. The applet launches and executes from a network browser.
The BEA eLink Java Adapter for Mainframe software CD-ROM contains the following files associated with the jsnacrm utility:
Running the Java Applet Version
The following sections describe how to set up and run the Java applet version of the jsnacrm utility.
Prerequisites for Running the Java Applet Version
To run the Java applet version, you must complete the following tasks:
http://java.sun.com/products/plugin
Note: If the Java plug-in is not already installed on your system when you attempt to open the jsnacrm.html file, the program prompts you for an automatic download of the plug-in by the browser.
javakey -c moncrm true
javakey -ic moncrm %TUXDIR%\bin\moncrm.x509
Starting the Java Applet
To start the Java applet in an existing browser, open the file:
<tuxedo-path>\bin\jsnacrm.html
To build a shortcut to start the Java applet using a separate instance of your network browser, enter the following command:
<browser-pathname> %TUXDIR%\bin\jsnacrm.html
Running the Java Applet Version
To run the Java applet version, perform the following tasks:
http://java.sun.com/products/plugin/1.1.1/docs
//localhost:port
The following definitions apply to this address:
localhost explicitly specifies the local host.
port specifies the port number of the CRM on the local host.
//remotehostname:address
The following definitions apply to this address:
remotehostname specifies the remote host.
address specifies the network address of the CRM on the remote host.
The CRM Monitor contains two screen areas that require user entry and four screen areas that display information about the CRM being monitored. Status messages are displayed at the bottom of the screen. The screen functions are listed in Table 3-1 and shown in Figure 3-2.
Display Section |
Function |
---|---|
CRM Address |
Enter the address of the CRM to be monitored. |
Selected CRM |
Displays the name of the CRM at the address entered in the address field. |
Trace Status |
Displays the currently selected trace options. |
Trace Options |
|
Link Status |
Displays the current status of all remote links for the selected CRM. (Text may be scrolled.) |
Link Statistics |
Displays the current statistics for all remote links for the selected CRM. (Text may be scrolled.) |
Message Line |
Displays messages showing either the results of automatic connection attempts or commands issued to change the trace options. |
Figure 3-2 The CRM Monitor Running as an Applet on a Network Browser
Running the Java Application Version
The Java application version displays and operates identically to the applet version. Refer to screen definitions and functions discussed under "Running the Java Applet Version."
To build a shortcut for starting the Java application version, perform the following steps:
jrew -classpath %ClassPath%;jsnacrm.jar jsnacrm
To run from a command window, perform the following steps:
jrew -classpath %ClassPath%;jsnacrm.jar jsnacrm
Setting CRM and Stack Traces
Trace capabilities are provided for the CRM process. To initiate stack tracing, include the -t option for the SNACRM command with a number to specify the level of tracing. Refer to Trace Options for the SNACRM command in Appendix A, Command Reference Pages.
The APPC Stack API trace is either enabled or disabled using the -s option of the SNACRM command. Refer to General Options for the SNACRM command in Appendix A, Command Reference Pages. When enabled, the trace generally shows the parameters and results of all API calls. Depending on the stack being used, other options (such as vendor-specified environment variables) may have to be activated for SNACRM to enable the trace. Consult the vendor publications for instructions on how to set up stack tracing.
Note: On OS/390 platforms, the General Trace Facility (GFT) is used to capture API trace records under user EID 2EA. The GTF must be active on the OS/390 platform to use the -s parameter.
Activating and De-Activating Links
The eAM gateway provides a command line tool to activate and de-activate links that have been defined in the DM_SNALINKS section of the dmconfig file. This tool consists of two commands and their associated parameters:
Start one or more SNA links with this command.
crmlkon -n<hostname:port> [-v -i -h] <linkname> ...
Refer to crmlkon in Appendix A, "Command Reference Pages" for more information on the crmlkon command.
Run a CRMLKON job using JCL written explicitly for your system. Refer to "Sample JCL for CRMLKON Command" and Appendix A, "Command Reference Pages" for more information about sample CRMLKON JCL and the crmlkon command.
Note: You will not receive notification that the link(s) started with the crmlkon command are activated. Use the CRM monitor to verify a link is active. Refer to Using the CRM Monitor for more information.
Stop one or more SNA links with this command.
crmlkoff -n<hostname:port> [-v -i -h] <linkname> ...
Refer to crmlkoff in Appendix A, "Command Reference Pages" for more information on the crmlkoff command.
Run a CRMLKOFF job using JCL written explicitly for your system. Refer to "Sample JCL for CRMLKOFF Command" and Appendix A, "Command Reference Pages" for more information about sample CRMLKOFF JCL and the crmlkoff command.
Note: You will not receive notification that the links stopped with the crmlkoff command are de-activated. Use the CRM monitor to verify that a link is not active. Refer to Using the CRM Monitor for more information.
If a link to a remote host is deactivated and reactivated by the host, the eAM software normally re-establishes the link automatically. If this does not occur, use the crmlkon command to re-establish the link.
Stopping the CRM on OS/390
If the eAM gateway terminates abnormally, the persistent CRM feature allows the OS/390 CRM to continue running. (A tmshutdown command is considered a normal termination.) You must explicitly shutdown the CRM if the eAM gateway has terminated abnormally and the CRM needs to be stopped.
Enter the crmdown command on the command line. Refer to crmdown in Appendix A, "Command Reference Pages" for more detailed information about the crmdown command.
Run a CRMDOWN job using JCL written explicitly for your system. Refer to "Sample JCL for CRMDOWN Command" and Appendix A, "Command Reference Pages" for more information about sample CRMDOWN JCL and the crmdown command.
If the eAM gateway terminates abnormally, the persistent CRM feature allows the OS/390 MVS CRM to continue running. You must explicitly shutdown the CRM if you need to shut it down. The OS/390 MVS platform stops the CRM through the crmdown JCL.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|