acctcom man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

acctcom(1M)							   acctcom(1M)

NAME
       acctcom - search and print process accounting files

SYNOPSIS
       [[option]... [file]] ...

DESCRIPTION
       The  command  reads  file,  standard input, or in the form described in
       acct(4) and writes selected records to standard	output.	  Each	record
       represents  the execution of one process.  The output has the following
       column titles:

	      Option‐
	      ally,
	      the
	      fol‐
	      low‐
	      ing
	      can
	      be
	      dis‐
	      played:

	      flag:		  for
				  with‐
				  out
	      Sys‐
	      tem
	      exit
	      sta‐
	      tus
	      Total
	      blocks
	      read
	      and
	      writ‐
	      ten
	      PRM
	      process
	      resource
	      group
	      ID

       The
       com‐
       mand
       name
       is
       pre‐
       ceded
       by
       a
       if
       a
       priv‐
       i‐
       leged
       user
       is
       required
       to
       exe‐
       cute
       the
       com‐
       mand.

       For
       exam‐
       ple,
       if
       a
       user
       is
       logged
       in
       as
       and
       exe‐
       cutes
       the
       com‐
       mand
       to
       check
       the
       time,
       this
       does
       not
       require
       a
       priv‐
       i‐
       leged
       user,
       and
       will
       be
       shown
       by
       with‐
       out
       the
       char‐
       ac‐
       ter
       on
       the
       line.
       If
       the
       user
       exe‐
       cutes
       the
       com‐
       mand
       to
       set
       the
       time,
       this
       requires
       a
       priv‐
       i‐
       leged
       user,
       and
       so
       will
       be
       marked
       with
       a
       by

       If
       a
       process
       is
       not
       asso‐
       ci‐
       ated
       with
       a
       known
       ter‐
       mi‐
       nal,
       a
       is
       printed
       in
       the
       field.

       The
       sys‐
       tem
       exit
       sta‐
       tus
       is
       if
       the
       process
       ter‐
       mi‐
       nated
       by
       call‐
       ing
       If
       it
       is
       not
       it
       is
       the
       sig‐
       nal
       num‐
       ber
       that
       caused
       the
       process
       to
       ter‐
       mi‐
       nate.
       If
       a
       core
       file
       image
       was
       pro‐
       duced
       as
       a
       result
       of
       the
       sig‐
       nal
       (see
       sig‐
       nal(5)),
       the
       value
       is
       the
       sig‐
       nal
       num‐
       ber
       plus

       If
       no
       files
       are
       spec‐
       i‐
       fied,
       and
       if
       stan‐
       dard
       input
       is
       asso‐
       ci‐
       ated
       with
       a
       ter‐
       mi‐
       nal
       or
       (as
       is
       the
       case
       when
       using
       in
       a
       shell),
       reads
       Oth‐
       er‐
       wise,
       it
       reads
       stan‐
       dard
       input.

       If
       any
       file
       argu‐
       ments
       are
       given,
       they
       are
       read
       in
       their
       respec‐
       tive
       order.
       Each
       file
       is
       nor‐
       mally
       read
       for‐
       ward,
       that
       is,
       in
       chrono‐
       log‐
       i‐
       cal
       order
       by
       process-
       com‐
       ple‐
       tion
       time.
       The
       file
       is
       usu‐
       ally
       the
       cur‐
       rent
       file
       to
       be
       exam‐
       ined.
       A
       busy
       sys‐
       tem
       may
       need
       sev‐
       eral
       such
       files
       of
       which
       all
       but
       the
       cur‐
       rent
       file
       are
       found
       in

   Options
       rec‐
       og‐
       nizes
       the
       fol‐
       low‐
       ing
       val‐
       ues
       for
       the
       option
       argu‐
       ment.
       List‐
       ing
       options
       together
       has
       the
       effect
       of
       a
       log‐
       i‐
       cal
       AND.

	      Show
	      some
	      aver‐
	      age
	      sta‐
	      tis‐
	      tics
	      about
	      the
	      pro‐
	      cesses
	      selected.	     Sta‐
			     tis‐
			     tics
			     are
			     printed
			     after
			     the
			     out‐
			     put
			     records.

	      Read
	      back‐
	      wards,
	      show‐
	      ing
	      lat‐
	      est
	      com‐
	      mands
	      first.	     This
			     option
			     has
			     no
			     effect
			     when
			     stan‐
			     dard
			     input
			     is
			     read.

	      Print
	      in
	      octal
	      the	     flag
			     and
			     sys‐
			     tem
			     exit
			     sta‐
			     tus
			     col‐
			     umns
			     in
			     the
			     out‐
			     put.

	      Instead
	      of
	      mean
	      mem‐
	      ory
	      size,	     show
			     the
			     frac‐
			     tion
			     of
			     total
			     avail‐
			     able
			     CPU
			     time
			     con‐
			     sumed
			     by
			     the
			     process
			     dur‐
			     ing
			     its
			     exe‐
			     cu‐
			     tion.
			     This
			     is
			     com‐
			     puted
			     as:

	      Print
	      col‐
	      umns
	      con‐
	      tain‐
	      ing
	      the
	      I/O
	      counts
	      in
	      the
	      out‐
	      put.

	      Instead
	      of
	      mem‐
	      ory
	      size,
	      show
	      total
	      kcore-
	      min‐
	      utes.

	      Show
	      mean
	      core
	      size
	      (the
	      default).

	      Show
	      the
	      PRM
	      process
	      resource
	      group
	      ID	     of
			     each
			     process.
			     See
			     DEPEN‐
			     DEN‐
			     CIES.

	      Show
	      CPU
	      fac‐
	      tor:

	      Show
	      sep‐
	      a‐
	      rate
	      sys‐
	      tem
	      and
	      user
	      CPU
	      times.

	      Exclude
	      col‐
	      umn
	      head‐
	      ings
	      from
	      the
	      out‐
	      put.

	      Show
	      only
	      pro‐
	      cesses
	      belong‐
	      ing
	      to
	      ter‐
	      mi‐
	      nal

	      Show
	      only
	      pro‐
	      cesses
	      belong‐
	      ing
	      to	     user,
			     spec‐
			     i‐
			     fied
			     as:
			     a
			     user
			     ID,
			     a
			     login
			     name
			     that
			     is
			     then
			     con‐
			     verted
			     to
			     a
			     user
			     ID,
			     a
			     which
			     des‐
			     ig‐
			     nates
			     only
			     those
			     pro‐
			     cesses
			     exe‐
			     cuted
			     by
			     a
			     priv‐
			     i‐
			     leged
			     user,
			     or
			     which
			     des‐
			     ig‐
			     nates
			     only
			     those
			     pro‐
			     cesses
			     asso‐
			     ci‐
			     ated
			     with
			     unknown
			     user
			     IDs.
			     The
			     and
			     char‐
			     ac‐
			     ters
			     should
			     be
			     pre‐
			     ceded
			     by
			     a
			     back‐
			     slash
			     and
			     typed
			     as
			     and
			     to
			     pre‐
			     vent
			     the
			     shell
			     from
			     inter‐
			     pret‐
			     ing
			     the
			     as
			     the
			     start
			     of
			     a
			     com‐
			     ment,
			     or
			     the
			     as
			     a
			     pat‐
			     tern.

	      Show
	      only
	      pro‐
	      cesses
	      belong‐
	      ing
	      to	     group,
			     spec‐
			     i‐
			     fied
			     as
			     either
			     the
			     group
			     ID
			     or
			     group
			     name.

	      Select
	      pro‐
	      cesses
	      exist‐
	      ing
	      at
	      or
	      after	     time,
			     given
			     in
			     the
			     for‐
			     mat:

	      Select
	      pro‐
	      cesses
	      exist‐
	      ing
	      at
	      or
	      before	     time;
			     see

			     Using
			     the
			     same
			     time
			     for
			     both
			     and
			     shows
			     the
			     pro‐
			     cesses
			     that
			     existed
			     at
			     time;
			     see

	      Select
	      pro‐
	      cesses
	      start‐
	      ing
	      at
	      or
	      after	     time;
			     see

	      Select
	      pro‐
	      cesses
	      end‐
	      ing
	      at
	      or
	      before	     time;
			     see

	      Show
	      only
	      com‐
	      mands
	      match‐
	      ing	     pat‐
			     tern,
			     where
			     pat‐
			     tern
			     is
			     a
			     reg‐
			     u‐
			     lar
			     expres‐
			     sion
			     as
			     in
			     ed(1)
			     except
			     that
			     means
			     one
			     or
			     more
			     occur‐
			     rences.

	      Do
	      not
	      print
	      any
	      out‐
	      put
	      records.	     Just
			     print
			     the
			     aver‐
			     age
			     sta‐
			     tis‐
			     tics
			     as
			     with
			     the
			     option.

	      Copy
	      selected
	      process
	      records
	      in
	      the
	      input
	      data
	      for‐
	      mat
	      to	     ofile.
			     Sup‐
			     press
			     stan‐
			     dard
			     out‐
			     put
			     print‐
			     ing.

	      Show
	      only
	      pro‐
	      cesses
	      that
	      exceed	     fac‐
			     tor,
			     where
			     fac‐
			     tor
			     is
			     the
			     "hog
			     fac‐
			     tor"
			     as
			     explained
			     in
			     option

	      Show
	      only
	      those
	      pro‐
	      cesses
	      with
	      oper‐
	      at‐
	      ing
	      sys‐
	      tem
	      CPU
	      time
	      exceed‐
	      ing	     time;
			     see

	      Show
	      only
	      pro‐
	      cesses
	      with
	      total
	      CPU
	      time,
	      sys‐
	      tem
	      plus
	      user,
	      exceed‐
	      ing	     sec
			     sec‐
			     onds.

	      Show
	      only
	      pro‐
	      cesses
	      trans‐
	      fer‐
	      ring
	      more
	      char‐
	      ac‐
	      ters	     than
			     the
			     cut-
			     off
			     num‐
			     ber
			     given
			     by
			     chars.

	      Show
	      only
	      pro‐
	      cesses
	      belong‐
	      ing
	      to
	      process
	      resource
	      group	     prm‐
			     group,
			     spec‐
			     i‐
			     fied
			     as
			     either
			     process
			     resource
			     group
			     name
			     or
			     ID
			     num‐
			     ber.
			     See
			     DEPEN‐
			     DEN‐
			     CIES.

WARN‐
       INGS

       only
       reports
       on
       pro‐
       cesses
       that
       have
       ter‐
       mi‐
       nated.
       For
       active
       pro‐
       cesses,
       use
       the
       com‐
       mand
       (see
       ps(1)).

       If
       time
       exceeds
       the
       cur‐
       rent
       sys‐
       tem
       clock
       time,
       time
       is
       inter‐
       preted
       as
       occur‐
       ring
       on
       the
       pre‐
       vi‐
       ous
       day.

       The
       account‐
       ing
       flag
       is
       not
       cleared
       when
       one
       pro‐
       cesses
       exec's
       another,
       but
       only
       when
       one
       process
       forks
       another.
       One
       side-
       effect
       of
       this
       is
       that
       some
       pro‐
       cesses
       will
       be
       marked
       with
       when
       users
       do
       not
       expect
       them
       to
       be.

       For
       exam‐
       ple,
       the
       com‐
       mand
       requires
       a
       priv‐
       i‐
       leged
       user
       to
       assume
       the
       iden‐
       tity
       of
       the
       user
       who
       is
       log‐
       ging-
       in,
       set‐
       ting
       the
       ASU
       bit
       in
       the
       account‐
       ing
       flag
       (which
       ulti‐
       mately
       causes
       the
       sym‐
       bol
       in
       the
       out‐
       put).
       After
       assum‐
       ing
       the
       user's
       iden‐
       tity,
       exec's
       the
       user's
       shell.
       Since
       the
       exec
       does
       not
       clear
       the
       ASU
       flag,
       the
       shell
       will
       inherit
       it,
       and
       be
       marked
       with
       a
       in
       the
       out‐
       put.

       The
       mean
       mem‐
       ory
       size
       may
       over‐
       flow
       for
       val‐
       ues
       greater
       than

DEPEN‐
       DEN‐
       CIES

   HP
       Process
       Resource
       Man‐
       ager
       The
       and
       options
       require
       the
       optional
       HP
       Process
       Resource
       Man‐
       ager
       (PRM)
       soft‐
       ware
       to
       be
       installed
       and
       con‐
       fig‐
       ured.
       See
       prm‐
       con‐
       fig(1)
       for
       a
       descrip‐
       tion
       of
       how
       to
       con‐
       fig‐
       ure
       HP
       PRM,
       and
       prm‐
       conf(4)
       for
       the
       def‐
       i‐
       ni‐
       tion
       of
       process
       resource
       group.

FILES

SEE
       ALSO

       ps(1),
       su(1),
       acct(1M),
       acctcms(1M),
       acct‐
       con(1M),
       acct‐
       merg(1M),
       acct‐
       prc(1M),
       acctsh(1M),
       fwtmp(1M),
       runacct(1M),
       acct(2),
       wait(2),
       acct(4),
       utmp(4),
       sig‐
       nal(5).

       HP
       Process
       Resource
       Man‐
       ager:
       prm‐
       con‐
       fig(1),
       prm‐
       conf(4)
       in

STAN‐
       DARDS
       CON‐
       FOR‐
       MANCE

								   acctcom(1M)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net