[Top] [Prev] [Next] [Bottom]

10. Run bankapp


Run the Application

This chapter covers some of the scripts and commands you can use after bankapp has been booted.

We recognize the probability, since you have a system that is active, that you already have set the bankapp environment. However, if that is not the case, if you are logging in cold to a running system, you will need to enter the following.

. ./bankvar

to set your environment for bankapp.

The bankapp run Script

A script called run is provided with bankapp. This script brings up the initial menu with its choice of six services you can request bankapp to perform. run contains a single command line:

mio -i MENU

where the -i option tells mio to use the MENU mask rather than the default, which prompts for the name of the mask to use.

You might want to enter the mio command directly, just to see what happens. There is a HELP screen that gives you a summary of a number of keystrokes that enable you to move around in mio masks.

The output file that was created by the populate script, pop.out, can be used to provide account numbers, branch IDs, and other fields you can specify on the data entry masks, so your service requests produce some output.

Running the audit Client Program

The audit.c client program was described in Chapter 3, "bankapp Client Programs." To execute the program, enter the command line as follows.

audit {-a | -t} [branch_id]

specifying either -a for account balances or -t for teller balances. If you specify a branch_id, the report is limited to that branch; if you do not specify a branch_id, the report is for all branches.

Running auditcon

To start the conversational version of the audit program, enter the command.

auditcon

The program displays the following message on your terminal.

to request a TELLER or ACCOUNT balance for a branch,
type the letter t or a, followed by the branch id,
followed by <return>
for ALL TELLER or ACCOUNT balances, type t or a <return>
q <return> quits the program

When you have typed your request and pressed return, the requested information is displayed on your terminal followed by this.

another balance request ??

The program continues to offer you this service until you enter a q.

Using the driver Program

The driver program is a script that generates a series of transactions to simulate activity on the system. It is included as part of the sample application so you can get realistic-looking statistics with commands of the tmadmin interface. By default, the driver program generates 300 transactions. You can change that number with the -n option, as in the following example.

driver -n1000

specifies that the program should run for 1,000 loops.

Using tmadmin

This book is not the place to go into an extensive description of the BEA TUXEDO system administrative interface, tmadmin. We encourage you to use it while bankapp is running to see the kind of information you can produce with tmadmin subcommands.

Shutting Down bankapp

When you want to bring bankapp down, enter the tmshutdown(1) command with no arguments, as follows.

tmshutdown

Running this command (or the shutdown command of tmadmin) will cause the shutting down of all application servers, gateway servers, TMSs, and administrative servers, and the removal of associated IPC resources.

The shutdown command must be issued from the MASTER machine.

References

For more information about using tmadmin, the command-line interface for administration, see Chapter 14, "Monitoring a Running System," in Administering the BEA TUXEDO System.

The following pages of the BEA TUXEDO Reference Manual are important:



[Top] [Prev]