BEA Logo BEA eLink Java Adapter for Mainframe WLS Edition

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   BEA eLink JAM Doc Home   |   BEA eLink Adapter for Mainframe, SNACRM Administration Guide   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Command Reference Pages

 

This appendix discusses the following commands:

 


CRMLOGS

Displays the content and state of the SNA Communications Resource Manager (SNACRM) log files in the current directory.

Synopsis

CRMLOGS <group> [<crm name>]

Description

You can use the CRMLOGS command to display the contents and state of the two SNACRM log files. RSTRTLOG is the transaction state log used during the recovery process and the BLOBLOG log stores session and link information. Deleting the log files require a cold start for each link involved.

CRMLOGS requires the following parameters:

group

SNA domain group name (required)

crm name

SNACRM name (default SNACRM)

Diagnostics

CRMLOGS exits with a return code of 0 upon successful completion.

Examples

To display the RSTRTLOG log file for group2, type:

CRMLOGS GROUP2 SNACRM.GROUP2.RSTRTLOG

To display the BLOBLOG log file for group1, type:

CRMLOGS GROUP1 SNACRM.GROUP1.BLOBLOG

See Also

SNACRM and xsnacrm

 


crmlkoff

Stop one or more named SNACRM links.

Synopsis

crmlkoff -n<hostname:port> [-v -i -h] <linkname> ... 

Description

crmlkoff stops all of the SNACRM links named on the command line. This is useful if one or more individual links need to be stopped after the SNACRM server is booted. It can be used from any machine located on the same TCP/IP network as the machine running the SNACRM server. It can be used in a script and returns zero if the command is sent to the target SNACRM. It returns one if the command is not successfully sent to the target SNACRM.

-n

names the machine and port running the SNACRM server.

-v

specifies verbose. Normally, the command will not produce any messages facilitating use in a script.

-i

ignores errors. When specifying multiple links, any error encountered when issuing SNACRM commands causes crmlkoff to stop processing links and return. Errors can be ignored for individual links, and processing continued with the next named link.

<linkname>

names the link to be stopped. This is the *DM_SNALINKS entry in the DMCONFIG that defines this link. Multiple link names can be specified.

Portability

crmlkoff is an administrative tool available on all platforms supporting a JAM SNACRM.

Example

To stop links link1 and cicstest owned by the SNACRM running on mach at port 5000:

crmlkoff -n mach:5000 link1 cicstest

Diagnostics

crmlkoff only checks the syntax of the command. Separate facilities, either xsnacrm or mainframe-based facilities must be used to determine if the link actually became inactive. If the command is not successfully sent to the SNACRM and mode is set to verbose, crmlkoff prints an error message and exits with error code one. Upon successful completion, crmlkoff exits with exit code zero.

See Also

crmlkon(1), xsnacrm(1) 

 


crmlkon

Start one or more named SNACRM links.

Synopsis

crmlkon -n<hostname:port> [-v -i -h] <linkname> ... 

Description

crmlkon starts all of the SNACRM links named on the command line. This is useful if one or more individual links failed to start when the SNACRM server booted. It can be used from any machine located on the same TCP/IP network as the machine running the SNACRM server. It can be used in a script and returns zero if the command is sent to the target SNACRM. It returns one if the command is not successfully sent to the target SNACRM.

-n

names the machine and port running the SNACRM server.

-v

specifies verbose. Normally the command will not produce any messages, facilitating use in a script.

-i

ignores errors. When specifying multiple links, any error encountered when issuing SNACRM commands causes crmlkon to stop processing links and return. Errors can be ignored for individual links, and processing continued with the next named link.

<linkname>

names the link to be started. This is the *DM_SNALINKS entry in the DMCONFIG that defines this link. Multiple link names can be specified.

Portability

crmlkon is an administrative tool available on all platforms supporting a JAM SNACRM.

Example

To start links link2 and cicstest owned by the SNACRM running on mach1 at port 5000:

crmlkon -n mach1:5000 link2 cicstest

Diagnostics

crmlkon only checks the syntax of the command. Separate facilities, either xsnacrm or mainframe based facilities must be used to determine if the link actually became active. It the command could not be successfully sent to the SNACRM, crmlkon prints an error message, if in verbose mode, and exits with error code 1. Upon successful completion, crmlkon exits with exit code 0.

See Also

crmlkon(1), xsnacrm(1) 

 


SNACRM

Launches the SNA Communications Resource Manager.

Synopsis

SNACRM [ -t 0|1|2|3 ]  [-s] <addr> <group>

Description

SNACRM provides all of the Sync-Level 2 logic for a JAM gateway and directly communicates with the PU2.1 server.

When you start SNACRM from the command line, the SNACRM Command Line Console puts its prompt in the window and, if exited, shuts down all of the active links.

Note: A JCRMGW boot can automatically start a SNACRM for the gateway WLS startup. The SNACRM command line is dynamically created based on GWBOOT options. Refer to the BEA eLink Java Adapter for Mainframe WLS Edition User Guide for more information on the GWBOOT command.

You must configure one SNACRM for each JAM gateway, as well as configure one stack for each SNACRM definition. Each stack can manage one or more SNA links.

SNACRM has two types of log files stored in $APPDIR, RSTRTLOG, and BLOBLOG. RSTRTLOG is the transaction state log used during the recovery process, while the BLOBLOG log stores session and link information. Deleting the log files requires a cold start for each link involved. You can use the CRMLOGS command to display the contents and state of the SNACRM log files.

Trace Options

When initiating the SNACRM from the UNIX command line, you can specify any of the following trace levels:

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.

General Options

The following parameters apply to this command:

-s

APPC Stack API trace (default none)

addr

Socket listening address (required)

//host:port group

JAM Gateway Group Name (required)

Note: Do not use the -o and -a parameters for the SNACRM command.

Environment Variables

You must set the following environment variables before starting the SNACRM from the UNIX command line:

Portability

Refer to the following table for a list of operating systems and stacks that can communicate with the SNACRM.

Table A-1 Supported Host Platforms

Vendor

Classification

Product

Version

Comments

IBM

MF/OS

OS390

1.2, 2.4, 2.5, 2.6

Y2K Certified

IBM

MF/OS

VM

2.3

Y2K Certified

IBM

MF/OS

VSE/ESA

2.3

Y2K Certified

IBM

MF/OLTP

CICS/ESA

4.1

for MVS

IBM

MF/OLTP

CICS Transaction Server for OS/390

1.2

1.3

for MVS

IBM

MF/OLTP

CICS

2.3

for VSE

IBM

MF/OLTP

IMS/ESA Transaction Manager

5.1

6.1

for MVS

IBM

MF/TCOM

ACF/VTAM

3.4+

for MVS

IBM

MF/TCOM

ACF/NCP

4.3+

for MVS

IBM

MF/TCOM

ACF/VTAM


for VSE

IBM

MF/TCOM

ACF/NCP


for VSE

IBM

MF/OS

OS390

1.2

Y2K Certified

Interoperability

SNACRM is interactive with the following:

Diagnostics

SNACRM exits with a return code of 0 upon successful completion.

Examples

Following is an example of the SNACRM command:

SNACRM -t 0 //myhost:5587 GROUP2 /dev/null>std.out 2>std.err &

When you start SNACRM from the UNIX command line, the following SNACRM Command Line Console appears:

$ SNACRM -t 0 //myhost:5587 GROUP2
BEA JAM Resource Manager started Thu Dec 11
18:40:49.098 1997
[SNACRM]

Console active. Enter commands
?>
da => Display active tasks
dl => Display remote links
ds => Display link statistics
dt => Display trace status
st => Start all links
sh => Stop all links and terminate
si => Terminate immediately (no quiesce)

To launch SNACRM with the console running in the background:

$ SNACRM -t0 //myhost:5587 GROUP2 <dev/null>std.out 2>std.err &

To launch SNACRM with detailed tracing and APPC Stack API tracing turned on from the command line using the host/port address, type:

SNACRM -t2 -s //myhost:5587

See Also

xsnacrm

 


xsnacrm

xsnacrm: X/Motif real-time monitor for running the SNACRM (not available on Microsoft NT platforms)

Synopsis

xsnacrm [ X overrides ] address [ address . . . ]

(See syntax examples.)

Description

The xsnacrm utility provides real-time monitoring of running SNACRMs and displays information describing the activity occurring in each SNACRM. The xsnacrm utility is intended to be used by administrators and system operators only. Therefore, usage may be restricted by the installation (by setting the execute permissions). xsnacrm requires Motif libraries.

Command Line Options

xsnacrm supports the standard X Toolkit command line arguments (see X(1)). The following additional arguments are supported as well.

address

Specifies the host name and port number of a SNACRM to monitor. This value must match the corresponding parameter on the command line used to start the SNACRM you wish to monitor.

There must be at least one address specified. Any number of SNACRMs 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 one and 255. This host should identify the computer where the SNACRM 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 SNACRM you want to monitor. (If the SNACRM was started automatically, the address is specified in the JCRMGW configuration file).

Trace Options

You can enter one of the following xsnacrm trace levels:

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.

xsnacrm Window

xsnacrm displays a single window consisting of the following sections from top to bottom:

Examples

The default geometry for xsnacrm is 630x480+150+150. This places an appropriately sized window for the default font in approximately the center of a 1024x768 Xterm. The following command places this window in the lower-right corner at start-up:

xsnacrm -geometry 630x480-0-0 //somehost:4999 //otherhost:6666

The following command starts xsnacrm as an icon:

xsnacrm -iconic //252.148.37.16:5555

The following command changes the name of the trace menu to Commands and uses the service name snacrm for the port number:

xsnacrm -xrm "*tracemenu.labelString: Commands" //myhost:snacrm

Customizing X Resources

The default X resources for xsnacrm correspond to the distributed contents of the associated file xsnacrm. To customize the application, copy the xsnacrm file to your home directory and edit it.

Widgets

The widget structure of the xsnacrm window is given in the text of the xsnacrm file as follows:

! English US resource file for xsnacrm program
!
! "@(#)ISC Devel SNACRM Xsnacrm 1.1 97/08/12 17:49:57";
!
! The values shown below are the fallback resource values
!
! The widget hierarchy is:
!
! Xsnacrm App Shell
! mainWindow Main Window
! logo Frame
! logobitmap Label
! menubar Row/Column
! filemenu Pull-down Menu
! quit Push Button
! tracemenu Pull-down Menu
! tracebutton0 Push Button
! tracebutton1 Push Button
! tracebutton2 Push Button
! tracebutton3 Push Button
! traceSep Separator
! tracebuttonY Push Button
! tracebuttonN Push Button
! mainpane Paned Window
! selectFrame Frame
! selectFrameLabel Label
! selectRadioBox Row/Column
! selectButton<n> Toggle Button
! traceFrame Frame
! traceFrameLabel Label
! traceData Label
! statusFrame Frame
! statusFrameLabel Label
! stusScroll Scrolled Window
! stusScrollData Label
! statisticsFrame Frame
! statFrameLabel Label
! statScroll Scrolled Window
! statScrollData Label
! mainmessage Label
! quitDialog Message Dialog
!

*title:                 BEA eLink Adapter for Mainframe CRM Monitor
*geometry: 630x480+150+150
*foreground: white
*background: purple
*fontList: *courier-medium-r-normal--12*
*filemenu.labelString: File
*quitDialog.okLabelString: Exit
*quitDialog.messageString: Exit SNA CRM Status Display now?
*quit.labelString: Exit
*tracemenu.labelString: Trace
*traceButton0.labelString: Stop CRM Trace
*traceButton1.labelString: Set Minimum CRM Trace
*traceButton2.labelString: Set Medium CRM Trace
*traceButton3.labelString: Set Maximum CRM Trace
*traceButtonY.labelString: Start APPC Stack Trace
*traceButtonN.labelString: Stop APPC Stack Trace

See Also

xsnacrm and SNACRM