Posts

Showing posts from March, 2011

Python Script to Monitor Weblogic Servers thru WLST

Python Script: (monitor.py) def reportDomainHealth(usern, passw, url):     print ""     print "====================================================================="     connect(usern,passw,url)     domainRuntime()      print "Found Servers: "     serverList=ls('ServerRuntimes');     serverList=serverList.split()     print "%15s %15s %20s %15s %15s %40s" % ("Server","Threads","HoggingThreads","QueueLength","Heap_Free","HealthState ")     print "----------------------------------------------------------------------------------------------------------------"     for i in range(len(serverList)):         if serverList[i] != 'dr--':             server_st=get('ServerRuntimes/' + serverList[i] + '/HealthState')         ...

Weblogic Admin password

This procedure specifies how to reset the Weblogic Admin password: Where   MW_HOME - BEA HOME       1.     Shutdown your weblogic instance if its running, using the command: $ cd MW_HOME/user_projects/domains/base_domain/bin $ ./stopWebLogic.sh 2. Set your environment variables using setDomainEnv.sh: $ cd MW_HOME/user_projects/domains/base_domain/bin $ . ./setDomainEnv.sh 3.Run the following commands: $ cd MW_HOME/user_projects/domains/base_domain/security $ java weblogic.security.utils.AdminAccount adminuser1 welcome1 . 4. Delete file from "ldap" folder: $ cd MW_HOME/user_projects/domains/base_domain/servers/AdminServer/data/ldap $ rm DefaultAuthenticatormyrealmInit.initialized 5. Startup weblogic server using the newly created "adminuser1" account. $ cd /scratch/aime1/work1/mwps1/user_projects/domains/base_domain/bin $ ./startWebLogic.sh Enter username to boot WebLogic server: adminuser1 Enter password to boot ...