2 июл. 2014 г.

Profiles in WAS 7 [Windows]

This article will be about console profile manager in WAS

Run manageprofiles -help or visit Information Center at: http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=rxml_manageprofiles

1. To list number of profiles, execute command 

manageProfiles -listProfiles
eg. 

C:\IBM\WebSphere\AppServer\bin>manageProfiles -listProfiles
2. To delete all the existing profiles, execute 
C:\IBM\WebSphere\AppServer\bin>manageProfiles.bat -deleteAll
INSTCONFSUCCESS: Success: All profiles are deleted.

Once profile is deleted, remove left directories manually. To delete directories recursively in windows use command :
rmdir /s /q 
3. Create new prfoiles including deployment managerNow this could be interesting which directory could be recommended, many user creates profiles under path WebSphere\AppServer\profiles\\, now this works without issue in unix flavor but in case if 32 bit Windows there is limitation of 255 characters in path. So many people prefer to create profiles like :\IBM\Profiles\\

Command to create new profile :
Syntax : 

manageProfiles -create -profileName -profilePath -templatePath -nodeName -cellName -hostname -serverName -startingPort 10000 -winserviceCheck 

eg : 

C:\IBM\WebSphere\AppServer\bin>manageProfiles -create -profileName AppSrv01 -profilePath C:\IBM\profiles\AppSrv01 -nodeName AppSrv01Node -cellName AppSrv01Cell -hostname localhost -serverName server -startingPort 10000 -winserviceCheck false

gives output as
INSTCONFSUCCESS: Success: Profile AppSrv01 now exists. Please consult C:\IBM\profiles\AppSrv01\logs\AboutThisProfile.txt for more information about this profile.


4. to check the ports assigned and other details for new profiles check the file at
\logs\AboutThisProfile.txt
C:\IBM\WebSphere\AppServer\bin>type \IBM\profiles\AppSrv01\logs\AboutThisProfile.txt

Using PMT to create a profile in WebSphere 7

В принципе создание профайла что в WAS 7.0 что WAS 8.5 похожи. единственное - это нужно найти где находится этот профайл менеджер.

В WAS 8.5 все просто - Start => Programs => IBM WebSphere => IBM WebSphere Application Server 8.5 => Tools => Profile Management Tool

WAS 7
Windows: ${WAS Installation}\AppServer\bin\ProfileManagement\pmt.bat
Linux: /var/apps/was7/bin/ProfileManagement/pmt.sh

click "Launch Profile Management Tool"
click "Create"

An application server environment runs your enterprise applications. WebSphere Application Server (WAS) is managed from it's own administrative console and functions independently from all other application servers.


click "Next"

Click "Advanced profile creation"



Select "Deploy the Sample applications" if you want the samples installed.



Fill in the Node, server and hostname




Click "Next" on page 2 of SSL and leave defaulted.


Adjust the ports if you need. Otherwise leave defaulted. Click "Next"

Choose whether you want to install WAS as a service.

You can create a web server definition of you wish

Click create on summary page to complete.


28 янв. 2014 г.

Basic FTP commands

?
to request help or information about the FTP commands
ascii
to set the mode of file transfer to ASCII (this is the default and transmits seven bits per character)
binary
to set the mode of file transfer to binary (the binary mode transmits all eight bits per byte and thus provides less chance of a transmission error and must be used to transmit files other than ASCII files)
bye
to exit the FTP environment (same as quit)
cd
to change directory on the remote machine
close
to terminate a connection with another computer
close brubeck
closes the current FTP connection with brubeck, but still leaves you within the FTP environment.
delete
to delete (remove) a file in the current remote directory (same as rm in UNIX)
get
to copy one file from the remote machine to the local machine
get ABC DEF
copies file ABC in the current remote directory to (or on top of) a file named DEF in your current local directory.
get ABC
copies file ABC in the current remote directory to (or on top of) a file with the same name, ABC, in your current local directory.
help
to request a list of all available FTP commands
lcd
to change directory on your local machine (same as UNIX cd)
ls
to list the names of the files in the current remote directory
mkdir
to make a new directory within the current remote directory
mget
to copy multiple files from the remote machine to the local machine; you are prompted for a y/n answer before transferring each file
mget *
copies all the files in the current remote directory to your current local directory, using the same filenames. Notice the use of the wild card character, *.
mput
to copy multiple files from the local machine to the remote machine; you are prompted for a y/n answer before transferring each file
open
to open a connection with another computer
open brubeck
opens a new FTP connection with brubeck; you must enter a username and password for a brubeckaccount (unless it is to be an anonymous connection).
put
to copy one file from the local machine to the remote machine
pwd
to find out the pathname of the current directory on the remote machine
quit
to exit the FTP environment (same as bye)
rmdir
to to remove (delete) a directory in the current remote directory