Archive for March, 2014


1. From registry.xml in MW_HOME View the registry.xml file.

<component name=”WebLogic Server” version=”10.3.6.0” InstallDir=”/home/weblogic/bea/weblogic/wlserver_10.3″>

 

2.From Weblogic.jar file.Change the directory to MW_HOME/wlserver_XX.X/server/lib and run below command

[weblogic@localhost lib]$ java -cp weblogic.jar weblogic.version

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

Use ‘weblogic.version -verbose’ to get subsystem information

Use ‘weblogic.utils.Versions’ to get version information for all modules

 

3.From weblogic Admin console

 

 

 

 

Tmadmin is a command line utility which incorporates with Tuxedo installed in environment. With tmadmin command line we can start and stop the services with out effecting other services.

To check Tuxedo version run below command

tmadmin -v

With tmadmin(Tuxedo command line) we can start andstop specific process running on PeopleSoft Application server and Process Scheduler Server.

There are two ways to perform, ie one is with group name and second is with id.You can find group name and id with domain status menu either in application server or process scheduler server.

If you want to start only PUBSUB(Integration broker services) process, now you can use with group name as shown below command from tuxedo command line.

>PSADMIN

—> 1) Application Server

–>1) Administer a domain

–>1) ABCD  (” Choose the domain that you are going to start PUBSUB”)

–>5) TUXEDO command line (tmadmin)

–> boot -g PUBSUB

If you want to bring down then use “shutdown -g PUBSUB”

If you want to start AESRV process use ” boot -g AESRV”

If you want to stop AESRV process use “shutdown -g AESRV

Note: The letter “-g” refers group name from domain status, If you want to bounce with ID then use “-i” instead of “-g” in above all commands.

Example: Stopping process with ID is shown in below command

shutdown -i 103

In my scenario ID “103” refers to   process “PSDSTSRV” , you can find the ID and corresponding Process in domain status menu option .

Note:If you select with group name then, it only effects specific group. Where as in ID it is different, one single id might represents multiple types of process.

 

1. Below command counts X days old files and directories at Present directory.If you want to sort from different directory use path instead of dot(.)

find .  -mtime +x | wc -l (present directory)

find /home/varun/  -mtime +x | wc -l (sort in different directory)

2.Below Command lists X days old files and directories.

find .  -mtime +x | ls -ltr

3.Below command lists specific format files of X days old.

example: If you want all files which are 50 days older and end with log extension

find -name “*.log” –mtime +50

4.If you want to delete 50 days old files with extension “.log”.

find . -name “*.log” -mtime +50 -exec rm -f {} \;

5.If you want to delete 50(any number) days old files and directories recursively then use below command.

find . -mtime +1100 -exec rm -rf {} \;

More Info:

find: the command that will search for the files
/path/to/files/: the top level directory to start searching
-type f: so we don’t remove directories, only files
-mtime +7: files older than ’7′ days. Change to ‘+14′ to delete files older than 2 weeks.
-exec: what to do with the files we find
rm -rf: remove them recursively, force
{}: this represents each file we find
\;: the end of the exec