Friday, December 12, 2008

TSM: querying tsm from os prompt

/usr/tivoli/tsm/client/ba/bin/dsmadmc -servername=[tsmserver] -id=[admin] -pa=[password] q stg

-servername can be optional depending on your configuration

Websphere: Finding out the version info

/usr/IBM/WebSphere/AppServer/profiles/default/bin/versionInfo.sh

Content Manager: Stopping a RM subprocess

/etc/rc.cmrmproc -act stop -db rmdb -app icmrm -proc RMReplicator

DB2: Automatic reorg status from db2diag.log

grep "Automatic reorg has completed " db2diag.log
grep "Automatic reorg has failed " db2diag.log

AIX: Count occurences on a file

grep [query] [file]|wc -l

AIX: Get file system usage report

df -tk|grep stg1

AIX: Get status of port usage

netstat -an|grep 9044

AIX: Sort file structure by size

du -ak .|sort -rn|more

Thursday, December 4, 2008

DB2: NSE hang determination

ps -efl -udb2inst1|grep db2fmp32|grep f100