Huge Discounts on Mobiles, Books, Cameras, Computers etc: @Flipkart
Flipkart.com

Wednesday, April 16, 2014

How to add a custom system property to WAS (WebSphere Application Server) 7

Struggling to add a custom environment property to WAS? Tried editing startServer/setupCmdLine batch/script files and failed? Here is how you can do it easily from the Admin Web Console

Go to admin console:
eg: https://localhost:16316/ibm/console

In the admin console:
Application servers -> (server name) -> Server Infrastructure, Java and Process Management, Process Definition -> Java Virtual Machine -> Custom Properties.

Note: The exact sequence may vary depending on what version of Websphere you are using.

The entries you make here are system properties (not environment variables and not WebSphere variables). They can be accessed via System.getProperty().

More Info: http://pic.dhe.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=%2Fcom.ibm.jazz.install.doc%2Ftopics%2Ft_s_server_installation_setup_WAS.html


YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository

Screwed up your yum? Here is a quick way to fix by cleaning it up:

View repolist:
yum repolist all

Clean cached package downloads/headers:
yum clean all

Disable a repo temporarily:
yum --disablerepo epel install htop

Disable a repo permanently:
Remove or comment it out in: /etc/yum.repos.d/

More info:
http://docs.oracle.com/cd/E37670_01/E37355/html/ol_creating_yum_repo.html
http://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/
http://forums.fedoraforum.org/showthread.php?t=223472
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Managing_Yum_Repositories.html
http://www.centos.org/docs/5/html/yum/sn-yum-maintenance.html

Task Manager for Linux

New to Linux and missing a graphical task manager like the one in Windows?

Try Htop (Linux Process Monitoring)

Htop is an interactive and real time process monitoring application for Linux. It shows complete list of processes running and easy to use for normal tasks.

For RHEL, CentOS & Fedora 64-bit OS
## For RHEL 5, CentOS 5 & Fedora ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -ihv rpmforge-release*.rf.x86_64.rpm

## For RHEL 6 and CentOS 6
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -ihv rpmforge-release*.rf.x86_64.rpm

Note: update above command to use the latest version of RPMforge.

Once RPMforge repository is installed. Now start installation with yum command.
# yum install htop


For more info, visit:
http://www.tecmint.com/install-htop-linux-process-monitoring-for-rhel-centos-fedora/
http://linuxlookup.com/howto/view_running_processes_linux_system

You can always see running processing in the console using the following command:
ps aux | less

The pstree command is similar to ps in that it can be used to show all of the processes on the system along with their PIDs. However, it differs in that it presents output in a tree structure that shows how processes are related to each other and in that it provides less detailed information about each process than does ps