Thursday, October 11, 2007

JACL 101

$AdminConfig
control
app
task
Object and Attributes
Objects may contain objects
WAS_6 contains 500 objects

Create object parent {{list of attributes value pairs} {attribute value}}
For variable substitution use [list [list attribute $name]]
$AdminConfig list cell
getid
help
types
Show
Showall
Showattribute
Create
save
Example:
AdminConfig showAttribute
(cells/WAS6_DEV_Cell01/clusters/INS_Clusterresources.xml#ConnectionPool_118347
2270295) maxConnections 10

Permissions and CHMOD

Letter Meaning
u The user who owns the file (this means “you.”)
g The group the file belongs to.
o The other users
a all of the above (an abbreviation for ugo)

Before: -rwxr-xr-x archive.sh
Command: chmod o=r archive.sh
After: -rwxr-xr-- archive.sh

Take away all permissions for the group for topsecret.inf We do this by leaving the permissions part of the command empty.
Before: -rw-r----- topsecret.inf
Command: chmod g= topsecret.inf
After:-rw------- topsecret.inf

Open up publicity.html for reading and writing by anyone.
Before: -rw-r--r-- publicity.html
Command: chmod og=rw publicity.html
After: -rw-rw-rw- publicity.html

Heap Dumps

Find .-name heapdump*
df –k

sudo –l grep node
sudo /etc/rc.d/init.d/DTc_was_nodeagent_v6i6 stop

node agent associated with the heapdumps is DTc_was_nodeagent_v6i6 for the application AML.

Be sure to also restart AML app

Finding an application log

SWWEBD13 su ivmgr
pdadmin –a -p server list grep dtcclogin2.dtcc.com
Server list
dtcclogin2-webseal-swwebd13 list
Sudo –l grep –i cdts (-i ignores case sensitivity).
cd /logs/was
usr/ucb/ps –auxwww grep CDTSPrime_c1

Systemout.log /opt/WebSphere/AppServer_v6/profiles/appsrv01/logs/DERIV_A3C1


tail –f /opt/WebSphere/UpdateInstaller/tmp/*.txt

cd /tmp/install/updates

Scripts

all the scripts are in /apps/WTG/wsadmin

J:\groups\wtg\pvcs\scripts\was6\AdminScripts\WAS6applicationReport.jacl

(Mainframe DBA's of the maximum connection pool size for NEON connection pools in the
Production environment). Run this script against all the deployment managers in production (they should be on the servers listed in the server/hostname box).

For JACL scripts
su bluemagc
activate WSADMIN /opt/WebSphere/AppSrvrv6/profiles//bin wsadmin (be extremely careful when working with profiles).

source /tmp/*.jacl (source is where the JACL scsript was placed or FTP'd).
$AdminConfig save (used only when the script is making changes).
exit

Search for an Apps script:

mpecina@saappp40:/opt/WebSphere/AppServer_v6/profiles/dmgr01/bin: wsadmin.sh
WASX7209I: Connected to process "dmgr" on node saappp40oob_CellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7029I: For help, enter: "$Help help"
wsadmin>$AdminApp list

Creating New Run Scripts

SCRIPT location:---- /apps/WTG/wsadmin/AppMgmt/applications/
MODIFY:---- create directory for the script, modify -- profile.jacl,
add postInstallTasks.jacl and create a rollback directory. (be sure the permissions are set to execute chmod 750).
vi applications.txt (add new directory to entries).
vi /apps/WTG/wsadmin/