Monday, December 3, 2012

IBM HTTP server status monitoring page


Now by enabling server-status on IBM HTTP Server, below details can be obtained :
  • The CPU usage
  • The total number of requests served since the server is up
  • The total traffic size since the server is up
  • Some average about the response time
  • The number of requests currently running
  • The number of idle threads
  • And the list of the requests being processe

To enable the server status monitoring page, perform the following steps:
1. Edit the httpd.conf file, and remove the comment character (#) from the 
following lines in this file:
#LoadModule status_module, modules/ApacheModuleStatus.dll,
#  < Location/server-status >
#SetHandler server-status
# < /Location >

2. Save the changes, and restart IBM HTTP Server.
3. In a web browser, access URL :  http://hostname/server-status. 

Click Reload to update the status. Also , 

http://your_host/server-status?refresh=10 to refresh every 10 seconds

---- courtesy ibm redbook ---- 


Tuesday, September 18, 2012

Recover password from .sth file

Create perl file (unstash.pl) and run the script.

#!/usr/bin/perl

#usage perl unstash.pl

use strict;

die "Usage: $0 \n" if $#ARGV != 0;

my $file=$ARGV[0];
open(F,$file) || die "Can't open $file: $!";

my $stash;
read F,$stash,1024;

my @unstash=map { $_^0xf5 } unpack("C*",$stash);

foreach my $c (@unstash) {
   last if $c eq 0;
   printf "%c",$c;
}


----------------------------------------------------------------------------------------------

Note : Content is taken from : http://websphere-world.blogspot.sg/2011/07/decrypt-ibm-stash-files.html