Posts

Windows command line Tricks for Better, Faster Administration

Image
Windows CMD commands for life made easy for WebLogic, OFMW, WebSphere, Tomcat, JBoss Administrators. Windows shortcuts will shave our time more. Especially working on Windows 8.1 is more complex than previous so I pulled out some of the important commands which will make your life easy. Some of them are collected from the daily works in OFMW administrator. Mapping of SHELL command with CMD commands How to set the proxy in CMD? You need to run the following command in the CMD to set the proxy. set HTTP_PROXY=http://your_proxy:your_port set HTTPS_PROXY=https://your_proxy:your_port How to add a IP, DNS to your Windows hosts file? The Linux OS maintains /etc/hosts and it can be editable only by root user. Whereas, in Windows OS same file is available at c:\windows\system32\drivers\etc\hosts. This will be same for Windows 7 and Windows 8.1. You could also check in the hot Windows 10. Hence the command to edit this : start notepad c:\windows\system32\drivers\etc\hosts ...

WebLogic Wrapper Scripts

Image
Administrators with automation skill would perform than many admins. Requirement makes you to write automation scripts. I was working on Oracle Virtual Box, which is running SSH service. Hence I am able to connected thru PUTTy to the ubuntu Guest Linux server. By making Static IP configuration on the additional network adapter this was happen to possible.  Everything going good! when I ran the WebLogic server from the PuTTY. It is working until when it is connected and alive. Once I went for break/Lunch the Windows system went to sleep then WebLogic server stopped due to PuTTY session inactive. To avoid this we can use the Wrapper start scripts.  Idea behind the wrapper script/ psuedo code Using the startWebLogic.sh script in background using & use the nohup -- no hungup to run the process even the PuTTY inactive or closed The log file generated by starting WebLogic server redirected to a separate file. The Standard error file also merged with standard output log...

JMS MessageBridgeRuntime monitoring

We were in the developing a orchestration application platform which requires multiple JMS Messaging bridges. We have configured near 10 Bridges to different external systems. When maanaged servers each one host a bridge it will be doubles the count that we cannot monitor on single screen in the  admin console. On the Weblogic Admin Console we can monitor the Bridge status using Bridges -> Monitoring tab.For testing we had started single managed server and checked the Bridge monitoring status.  It could be either 'Forwarding Messages' or 'Fail to connect Source' or 'Fail to connect to Target'. The actual tragedy starts when it comes to production environment, where we have multiple managedservers in the cluster. Usually Bridges status matters when it connects to third party messaging providers such as MQ Series or something else. Assume that, there are 10 Bridges deployed to 10 managed servers on the WebLogic Console becomes very slow when you use 'Mo...

Who logged into WebLogic console?

Image
Who logged into the WebLogic admin console? Where there is multi administrators environment. It is very difficult to manage the environment. Some time management asks you to 'What the guy did on the WebLogic Admin console?' This was a nightmare for the WebLogic architect  to identify this, tracing the person who did wrong configuration. what all steps he performed. WebLogic Admin console click on domain. Configuration->General tab Select the Advanced properites. There you can find the Audit Type. Configuration Audit Type By default there this is set to NONE. You have 3 options. Change Log Change Audit Change Log and Audit Best practices for non-production environments or production environments need to setup the  Configuration Audit Type to "Change Log and Audit". WebLogic Audit type setting

Check system information for Capacity Planning

Working for migration projects requires lots of mesurements about the current running environment that gives you right way for predictions, estimations about the newly build environment. Thinking BIG!!! as architect for the enterprise applications, I started digging details of the system information of every machine I mean, every box and I need to prepare a table that will give all the details about the machine. This will make easy for deciding various things for WebLogic domain and its related environment. Script Objective: Capacity Measurements The Capacity plan is critical where a Senior WebLogic Administrator or Infrastructure Architect need to be more smarter to make wise decisions on allocated infrastructure. If you know the mesurements you can tailor your environment to give best predicated application environment platform. I had seen there is a legacy(old) shell script which gives the required information for mesurements! But it is not really robust and effective to gi...

Thread Dump Analysis

Dear WebLogic users/Administrator you might already visited many other sites that discussed about - how to take the thread dump. But here I am going to tell you about automation script makes more simplified way of working, with more information - almost 70% on the occasion of STUCK thread Thread dumps will reveals. In case of High CPU utilization situations, which method is badly working. Step by Step analysis for Thread Dump Thread dump troubleshooting from Jerry Chan Step 1: Automated Thread Dump for WebLogic Take the Thread dump for a managed server that have issues or slowness or latency etc. You just read the description and start applying to your test environment and then try out on your Live environments. Cheers! #!/bin/bash # This script will takes the managed server name as argument and it will work generic to Linux or SunOS or HP-UX. # The only ps command options varies for each platform # Kill -3 command used for every 10 seconds of interval. You can increa...

RegEx for WebLogic Admin

Trick on grep Normally every WebLogic user/Admin knows that "ps -ef|grep java" gives you the WebLogic servers process list in any UNIX or Linux environments. Most of the forums suggesting use "|grep -v" to exclude the "grep line". But, here I don't want to use one more pipe and grep -v option really makes expensive in CPU cycles. Searched for the optimistic solutions and finally found! Two choices using --exclude  and using regex. The exclude options is not available on all UNIX systems. So I've chosen next option. How do you avoid the grep line in the grep command output itself? Here the trick is using the regular expression to workout this requirement. Use your searching pattern any one of the character in [] then it will automatically excludes the grep line from the output. actually it wouldn't get output itself! bash-2.05$ ps -ef |grep jav[a] weblogic   950   934  0   Feb 10 ?        0:06 /usr/local/bea/jdk142_11/bin/java -clie...