DispSysInfo

From My Admin Page
Jump to: navigation, search

From the "System Administration Guide: Advanced Administration" Chapter 5

System Information

  • Display if system 64 or 32 bit: isainfo options
-v Prints detailed information about the other options
-b Prints the number of bits in the address space of the native instruction set.
-n Prints the name of the native instruction set used by portable applications supported by the current version of the OS.
-k Prints the name of the instruction set or sets that are used by the OS kernel components such as device drivers and STREAMS modules.
  • Show release info: cat /etc/release
  • Show Physical Processor Type:
psrinfo -p <- to display total number of physical processors
prsinfo -v <- to display info on each virtual processor
  • Show how many system events have taken place since last reboot vmstat -s

Information About Processes

preap [-F] <pid>  <- Force a defunct process to be reaped by its parent

pargs <pid>       <- Print arguements associated with a process
pargs -l <pid>    <- Print arguements in single line
pargs -e <pid>    <- Print environment variables associated with a process

# pgrep cron (Obtains the process ID for the cron process)
   4780
# pwdx 4780 (Displays the current working directory for the cron process)
   4780: /var/spool/cron/atjobs
# ptree 4780 (Displays the process tree that contains the cron process)
   4780 /usr/sbin/cron

and all the related [from proc(1) man page] :

     pflags              Print the /proc tracing flags, the pend-
                         ing  and  held  signals, and other /proc
                         status information for each lwp in  each
                         process.

     pcred               Print or set the credentials (effective,
                         real,  saved UIDs and GIDs) of each pro-
                         cess.

     pldd                List the dynamic libraries  linked  into
                         each  process,  including shared objects
                         explicitly  attached  using  dlopen(3C).
                         See also ldd(1).

     psig                List the signal actions and handlers  of
                         each process. See signal.h(3HEAD).

     pstack              Print a  hex+symbolic  stack  trace  for
                         each lwp in each process.

     pfiles              Report fstat(2) and fcntl(2) information
                         for  all  open files in each process. In
                         addition, a path to the file is reported
                         if  the  information  is  available from
                         /proc/pid/path. This is not  necessarily
                         the same name used to open the file. See
                         proc(4) for more information.

     pwdx                Print the current working  directory  of
                         each process.

     pstop               Stop each process (PR_REQUESTED stop).

     prun                Set each  process  running  (inverse  of
                         pstop).

     pwait               Wait for all of the specified  processes
                         to terminate.

     ptime               Time  the  command,  like  time(1),  but
                         using microstate accounting for reprodu-
                         cible precision. Unlike  time(1),  chil-
                         dren of the command are not timed.