This content has been marked as final. Show 2 replies
By "putty" I'm assuming you mean using the command line in an operating system shell.
The WLST functionality in WLS gives you a lot of power to execute administration/configuration tasks on a WebLogic Server domain.
As a really well illustrated example, I'd suggest looking at this blog post from Rene van Wilk which shows how he uses WLST to create an environment consisting of multiple managed servers. The script he provides can be run non-interactively in the WLST shell, or you can type the respective commands you want to use into the shell in an interactive manner.
Below is an example from his blog that shows the commands used to create and configure a managed server instance. This has been taken from the URL above (without permission, hope it's OK) and I suggest reading his full blog to see the entire script and description thereof.
Using his script as a template, I think you should be able to tweak it very easily to support your specific requirements.
082 print 'CREATE MANAGED SERVER: server1'; 083 server1 = cmo.createServer('Server1'); 084 server1.setListenPort(7002); 085 server1.setAutoRestart(true); 086 server1.setAutoKillIfFailed(true); 087 server1.setRestartMax(2); 088 server1.setRestartDelaySeconds(10); 089 server1.getServerStart().setJavaHome(jvmlocation); 090 server1.getServerStart().setJavaVendor('Oracle'); 091 server1.getServerStart().setArguments('-Xms512m -Xmx512m -Xns256m -Xgcprio:pausetime');