WSADMIN Tutorial – Part3


In the first part of this WSADMIN tutorial, we learned the basics of WSADMIN and different objects and their use. In the second part, we saw how it can be used for deployment and adminapp object details. In this third and final part, let us learn how to do configuration related tasks and few operations. As a wrap up of this tutorial, next post will be the exercise/lab on what we have learned so far.

  • Adding an application server

    There are 3 steps involved in creating a new application server

    first we need to get the node on which we want to create the application server. Obtain the configuration ID of the object and assign it to the

node

    variable

node = AdminConfig.getid(‘/Node:mynode/’)

Then, create the application server using admintask

AdminTask.createApplicationServer(node, [‘-name’, ‘test1’, ‘-templateName’, ‘default’])

where test1 is the name of the server you want to create and mynode is the node on which this server will be created.

Then, save the changes using admintask.save () Continue reading

WSADMIN Tutorial – Part2


In the previous part of this tutorial, we have learned what is WSADMIN, what it can do and different objects of wsadmin and the use of them. In this part, let us learn how to install, start/stop and update or deployment tasks of applications using WSADMIN on to clusters and single servers.

Deploying Applications

You can install the application in batch mode, using the install command, or you can install the application in interactive mode using the installinteractive command. Interactive mode prompts you through a series of tasks to provide information.All the options available to use are listed here in the IBM documentation.

note: words in bold are command or options and in italic are your inputs

To find out the options available to install the EAR file, run:

AdminApp.options()

Installing EAR application: Continue reading

WSADMIN Tutorial – Part1


This is a 3 part tutorial series. This is the first of the three and in this i presented the basics of WSADMIN Tool and 5 objects we had with WSADMIN tool in websphere.

The idea behind this series of tutorials is to present here is something that can be easy for a beginner to understand and for an experienced guy to provide a quick access to the information.

WSADMIN is a scripting interface used at the command line. You can use the wsadmin tool to manage WebSphere Application Server as well as the configuration, application deployment, and server run-time operations.

WSADMIN tool can be run in 3 different modes

1. Interactive mode Continue reading

CRONTAB cheat sheet


cron is a unix utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs. Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times.

1. Crontab Restrictions

You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny. If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line.
2. Crontab Commands

export EDITOR=vi ;to specify a editor to open crontab file.

crontab -e Edit your crontab file, or create one if it doesn’t already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)

3. Crontab file Continue reading

Useful Linux/Unix commands


Summary and the usage of the unix/Linux commands.

—————————————————————————–
Help on any Unix command. RTFM!

man {command} Type “man ls” to read the manual for the ls command.

man {command} > {filename} Redirect help to a file to download.

whatis {command} Give short description of command.

apropos {keyword} Search for all Unix commands that match keyword, eg “apropos file”.

—————————————————————————–

List a directory

ls {path} It’s ok to combine attributes, eg “ls -laF” gets a long listing of all files with types.

ls {path_1} {path_2} List both {path_1} and {path_2}.

ls -l {path} Long listing, with date, size and permisions.

ls -a {path} Show all files, including important .dot files that don’t otherwise show.

ls -F {path} Show type of each file.
“/” = directory, “*” = executable.

ls -R {path} Recursive listing, with all subdirs.

ls {path} > {filename} Redirect directory to a file.

ls {path} | more Show listing one screen at a time.

dir {path} Useful alias for DOS people, or use with ncftp. Continue reading

WebSphere Application Server Important Files


XML Configuration Files
Property files
Log Files

WebSphere stores its configuration to set of XML files. When we use the Admin console to configure WebSphere, certain XML files are updated internally.

CELL-scope

• admin-authz.xml
Contains the roles set for administration of the Admin console.
<profile_root>/appsrv01/config/cells/<cell_name>/

• profileRegistry.xml
Contains a list of profiles and profile configuration data

• resources.xml
Defines operating cell scope environmental resources, including JDBC, JMS, JavaMail, URL end point configuration, and so on.

• security.xml
Contains security data , including all user ID and password information. Continue reading