Checking the Number of Processes For Each Listener

You can use the SHOWPROC command as an alternativ e to the ANSTAT command. To display the number of processes active in eac h listener job, use the SHO WPROC command with the TREE option. The INF O string used when the process w as created is displa yed after the process name. For example:

: showproc ;job=#j22;tree

 

 

 

 

 

 

 

 

 

 

QPRI

CPUTIME

STATE

JOBNUM

PIN

(PROGRAM) STEP

C152

0:01.985

WAIT

J22

36

:HPDALSTN '-l NS'

B149

0:02.934

WAIT

J22

65

(HPDALSTN.PUB.SYS) -l NSC

C152

0:00.099

WAIT

J22

37

(HPDADVR.PUB.SYS) 11000001,1,NS

:showproc; job=#j23

 

 

 

 

QPRI

CPUTIME

STATE

JOBNUM

PIN

(PROGRAM) STEP

C152

0:02.076

WAIT

J23

68

:HPDALSTN '-l ARPA'

B149

0:02.666

WAIT

J23

54

(HPDALSTN.PUB.SYS) -l ARPA

C152

0:00.106

WAIT

J23

40

(HPDADVR.PUB.SYS) 11000001,1,ARPA

:

 

 

 

 

 

 

 

A user without the appropriate privilege (SM or OP) will get the following error when a showproc is attempted:

:showproc; job=#j22;tree

Cannot access job #J22. (CIERR 11002)

:

Checking the Listener Log File

To check the listener log ￿le, HPD ANSLG (for NS) or HPD AARLG (for ARPA), use the PRINT command. This can be done when the listener is not running or if the listener w as started with the DEBUG option. F or example:

:PRINT HPDANSLG.PUB.SYS

The listener log ￿le sho ws the date and time when the listener w as started or restarted. It then shows the client node name of the user that has been successfully connected b y the listener and the clien t version. The clien t version indicates whether the clien t is on an MPE/iX system (-) or on an HP-UX (*) system. If the connection w as made with a clien t running a version of ALLBASE/NET that is earlier than A.30.00 (MPE/iX) or A.08.00 (HP-UX), the ALLBASE/NET v ersion number is shown. Listener error codes are also sho wn. Refer to the ALLBASE/SQL Message Manual for descriptions of listener error codes.

The listener log ￿le is a circular ￿le that holds 1000 en tries. The last en try in the ￿le is the most recent.

Here is an example of a t ypical listener log ￿le:

MON, JUL 30, 1993. 9:01 AM: ***** ALLBASE / NET LISTENER *****

MON, JUL 30, 1993. 9:01 AM: - ALLBASE/NET LISTENER FOR ARPA IS ALREADY ACTIVE.

2-12 Setting Up ALLBASE/NET