Maintenance Commands                                   lmstat(1m)

NAME
     lmstat - gets statistical information on the server's shared
     memory.

SYNOPSIS
     lmstat [-acCfglnNrtuv] [-i file] [-o file] [-p pid] [-O inode]
            [ -I instance ]

     lmstat [-w pid] [-m size] [-d count] [ -I instance ]

DESCRIPTION
     The lmstat command looks through PC NetLink's shared  memory
     and  prints out what it finds.  It is most useful for debug-
     ging purposes.   It  can  show  information  about  clients,
     files, locks, counters, and ustruct free lists.

OPTIONS
  -a
     Shows all server statistics.

  -c
     Shows the client computers connected to server processes.

  -C
     Shows SMB and RPC counters.

  -f
     Shows information about files.

  -g
     Shows the current client license limit.

  -l
     Shows the locks.

  -n
     Shows the counters.

  -N
     Shows the functions that are never called.

  -r
     Repeats.

  -t
     Shows the task information.

  -u
     Shows the ustruct free list.

  -o file
     Outputs shared memory to file.

  -i file
     Inputs shared memory to file.

  -p pid
     Shows only data for process pid.

  -O inode
     Shows data only for inode file.

  -w pid
     Watches system calls for process pid.  This  option  is  not
     valid on all operating systems.

  -m size
     Buffer size. Optional, used with -w.

  -d count
     Displays count; optional, used with -w.

  -v
     Displays the version of PC NetLink.

  -s
     Displays performance statistics.

  -z
     Clears counters used for performance statistics.

  -I instance
     Specifies the PCNL instance name  or  number.  In  a  multi-
     instance environment instance may be specified either on the
     command line or by the environment  variable  PCNL_INSTANCE.
     If  there  is only one instance configured, it is not neces-
     sary to specify this argument.

EXAMPLES
     To show everything from the shared memory, type the  follow-
     ing command:

          lmstat -a

     To show locks, type the following command:

          lmstat -l