Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Tuesday, August 9, 2011

ptree

ptree command to identify the process hierarchy of the application

ptree <pid>

Eg :

[oraplayers21:ORA_PLAYERS:applmgr]$ ptree 8140
8140  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8152  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8153  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
    8155  <defunct>
    8158  <defunct>
    8154  <defunct>
    8157  <defunct>
    8156  <defunct>
    8159  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
    8160  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
    8161  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
  8191  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8192  /apps/applmgr/iAS/Apache/Apache/b
  
- Helps identifying orphan processes

- Equivalent of ptree is pstree in Linux



UR's Key Run ;-) 

Saturday, August 6, 2011

Solaris Cmnds


Solaris Cmds :

#Version              -          uname -a

if
SUN OS Version then Solaris Version
SunOS 5.4                  Solaris 2.4
SunOS 5.5                  Solaris 2.5
SunOS 5.5.1               Solaris 2.5.1
SunOS 5.6                  Solaris 2.6
SunOS 5.7                  Solaris 7
SunOS 5.8                  Solaris 8
SunOS 5.9                  Solaris 9
SunOS 5.10                Solaris 10

SunOS is Solaris core component of Solaris

# 32 or 64 bit                    -                   isalist
# Arch Info                        -                   isainfo
# Top consuming procs      -                   prstat
# Processor Info                   -                   psrinfo -v
# System Configuration      -                   sysdef   or  prtconf
# Compare Directories ( lists only files that are not common )  -  dircmp -s <dir1> <dir2>
# List top space consuming files in current directory -     ls -l | grep ^- | sort -nr -k 5 | more

#RAM :              
prtconf | grep -i mem
or
prtdiag | grep -i mem

Note : prtdiag will give System Configuration

#Installed Packages :
pkginfo
or
pkginfo –l file_name    - Gives the pkg version

#Users :

Who all logged in  - logins -x

UR's Key Run ;-)