Date Created: Wed 30-Jan-2008

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Overview of tip
A quick way of navigating to WebSphere logs. If you are using the bash as a shell then you know about the tab key to auto complete, however in the WebSphere file system there are many subfolders within subfolders to get to the logs. To speed up having to tab through folders you can go direct using a UNIX alias as a shortcut.

alias, unalias
Assign a name or an abbreviated name that makes sense or is shorter for a command.

Description:
alias Lists the aliases that are currently defined.
alias "dir=ls" Creates an alias. dir will output the same contents as the ls command.
unalias name Removes an alias. unalias dir

Example:

in my .bash_profile I have created two lines as follows:

alias dlogs='ls -ltr /apps/was/ws61/profiles/dmgr/logs'
alias glogs='cd /apps/was/ws61/profiles/dmgr/logs'

Demo:

To list deployment manager logs

[root@websphere ~]# dlogs
total 2076
-rw-r--r-- 1 root root 508 Oct 14 16:09 AboutThisProfile.txt
-rw-r--r-- 1 root root 2561 Dec 15 12:59 iscinstall.log
-rw-r--r-- 1 root root 0 Dec 15 15:03 wsadmin.valout
-rw-r--r-- 1 root root 6635 Dec 15 15:03 wsadmin.traceout
drwxr-xr-x 2 root root 4096 Dec 15 22:22 dmgr
drwxr-xr-x 2 root root 4096 Jan 28 21:59 ffdc
-rw-r--r-- 1 root root 2097152 Jan 28 22:01 activity.log

To go to deployment logs

[root@websphere ~]# glogs
[root@websphere logs]#

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/

Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories