Amazon books

Tuesday, November 10, 2009

Using OS tools to monitor swap space and check packages, patches and 64 bit Capacle

--AIX
host:root@/> usr/sbin/lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk0 rootvg 6912MB 2 yes yes lv
hd6 hdisk1 rootvg 6912MB 2 yes yes lv
host:root@/>

--Check packages on AIX
lslpp -w | grep -i "Patch_Name" (applies to APARs and PTFs)

--Check patches on AIX
/usr/sbin/instfix -ik patch number

--Check packages on HP-UX
/usr/sbin/swlist -lproduct PH
/usr/contrib/bin/show_patches

--Check patches pn HP-UX
/usr/sbin/swlist -l fileset | grep -i

--Check patches on Solaris
/bin/showrev -p

--Check packages on Solaris
/bin/pkginfo -l | grep -i "Pkg_Name"

--Linux
rpm -qa | grep "package name"
rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" > /tmp/rpm-queryformat.txt
rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}_%{ARCH}\\n" | grep "PKG_Name"

--Show What package have the library specified on Linux
rpm -q --whatprovides --qf "%{NAME}-%{VERSION}-%{RELEASE}_%{ARCH}\\n" "full path/library name"


--Check if OS is 64 bit or not
--AIX
lslpp -L | grep 64bit
--HP
getconf KERNEL_BITS
--Solaris
/bin/isainfo -kv

--sar example
sar -r 5 5



Best Regards,
Paulo Portugal

No comments:

Post a Comment