November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Auto Restart Application Server by Node Agent

Auto Restart Application Server by Node Agent

Learnt that in websphere application server 7, by default, the node agent will not take any action when an application server fails.

In order to get the node agent to monitor and automatically restart a failed application server instance, we must setup the monitoring policy for that […]

Setup an Oracle JDBC Data Source on WebSphere Application Server 7 Step-by-Step

Login to the Admin Console of the running server, i.e. Window -> Show Views -> Servers | right click the server -> Run Administration -> Run Administrative Console

Environment -> WebSphere variables

Find “ORACLE JDBC DRIVER PATH” Name out of the list (second page) and click its link

Set its “Value” to the “directory” (not […]

check if node is in sync with dmgr and take corrective actions using wsadmin tool

Today’s objective is to check if WebSphere nodes are synchronized and take respective actions depending on the results. I will try to be as clear as possible so, you won’t require any preparation to complete this task.

I will divide this into two sections where first will show how to get the information about node […]

manual heap or thread dump in websphere

How you should force heap or thread dump using wsadmin script

Login to your machine running WAS Navigate to cd /profiles//bin/ Connect to deployment manager using wsadmin script wsadmin.sh -conntype SOAP -username -password Set object variable wsadmin> set jvm [$AdminControl completeObjectName type=JVM,process=,node=,*] Force heap dump wsadmin> $AdminControl invoke $jvm generateHeapDump In case you would like […]

clean messaging queue using jython

Objective for yesterday: Clean Persistent messages from JMS queue.

There are few methods that will work depending on your messaging set-up. I ill show how to clean persistent messages from the queue using wsadmin and jython.

First of all localize wsadmin tool on your host. It is located in /AppServer/bin

cd /AppServer/bin

Create new file […]

Recovering passwords from WebSphere

WebSphere stores passwords for datasources, security aliassss, etc in an encrypted format in its configuration files. The format, called XOR (exclusive OR), is not a particularly strong encryption algorithm, probably designed just to stop casual snooping. (In contrast WebLogic uses triple-DES encryption.)

(To be precise IBM says WebSphere “encodes” paswords, not encrypts them.)

When you […]

Password Decoder for WebSphere

Did you happen to have too much configuration and want to recover password from WebSphere Configuration, if yes then following program can help you. I happen to forgot my application database password and didn’t wanted to get into hassle of resetting it from the Administration Support Group ( you know it can be time consuming […]

websphere: how to refresh security settings with scriptnig

after changing security settings, creating or modifying authentication alias you can reload security settings without restarting websphere processes.

reload security settings on specific websphere process

set agm [ $AdminControl queryNames type=AuthorizationGroupManager,process=,* ] $AdminControl invoke $agm refreshAll

reload security settings on all processes

set agm [ $AdminControl queryNames type=AuthorizationGroupManager,* ] for a $agm { $AdminControl invoke […]

IBM HTTP Server – SSL Certification Expiration Situation

We saw this in /opt/IBM/HTTPServer/logs/error.log yesterday: –

[Mon Jan 23 14:23:25 2012] [notice] Using config file /opt/IBM/HTTPServer/conf/httpd.conf [Mon Jan 23 14:23:25 2012] [debug] mod_mpmstats.c(189): mpmstats daemon started (pid 4775) [Mon Jan 23 14:23:25 2012] [notice] IBM_HTTP_Server/7.0.0.17 (Unix) configured — resuming normal operations [Mon Jan 23 14:23:25 2012] [info] Server built: Mar 7 2011 15:49:28 [Mon […]

websphere restart script

#!/bin/ksh

BASENAME=`basename $0`

WAZZZ_HOME=/usr/WebSphere/AppServer JVVVM_BIN_DIR=$WAZZZ_HOME/profiles/node01/bin

die_usage() { echo “usage: $BASENAME: <jvm name> <timeout> <hard retries>” exit $1 }

[[ $# -eq 3 ]] || die_usage 111

JVVVM_NAME=$1 TIMEOUT=$2 HARD_RETRIES=$3

JVVVM_LOG_DIR=$WAZZZ_HOME/profiles/node01/logs/$JVVVM_NAME JVVVM_PID=

$JVVVM_BIN_DIR/serverStatus.sh -all | grep ” $JVVVM_NAME” | grep -v grep | grep -v $BASENAME > /dev/null 2>&1

if [[ $? -ne 0 ]] then […]