dev@glassfish.java.net

Re: Stupid CLI Tricks

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 29 Oct 2009 09:08:07 -0700

Great tip!

On Oct 27, 2009, at 9:07 PM, Byron Nevins wrote:

> UNIX
> export AS_LOGFILE=/glassfishv3/glassfish/cli.log
>
> Windows:
> set AS_LOGFILE=c:\glassfishv3\glassfish\cli.log
>
> =====================================
>
> You can set and forget the environmental variable and every cli
> comand that is ever run will be logged into the file you specify.
> One line per command. I put the file right inside an installation
> so it automatically goes away whenever I reinstall.
>
> I decided to send out this tip because I was just asked "Does QL
> exercise create-domain thoroughly?" Beats me, but I had my answer
> in a jiffy by looking at cli.log which revealed that QL does not run
> create-domain at all.
>
>
> Typical output (a tiny portion of calls from QL)
>
> 10/27/2009 15:11:37 EXIT: 0 asadmin start-database
> 10/27/2009 15:12:01 EXIT: 0 asadmin start-domain domain1
> 10/27/2009 15:12:39 EXIT: 0 asadmin deploy ../../dist/basicweb/
> hellojsp.war
> 10/27/2009 15:12:50 EXIT: 0 asadmin deploy ../../dist/jsftest/
> jsfastrologer.war
> 10/27/2009 15:13:03 EXIT: 0 asadmin deploy ../../dist/basicweb/
> jsfinjection.war
> 10/27/2009 15:13:17 EXIT: 0 asadmin deploy ../../dist/jdbcusertx/
> jdbcusertx.war
> 10/27/2009 15:13:38 EXIT: 0 asadmin deploy ../../dist/jpainjectemf/
> jpainjectemf.war
> 10/27/2009 15:13:52 EXIT: 0 asadmin deploy ../../dist/jpavalidation/
> jpavalidation.war
> 10/27/2009 15:14:04 EXIT: 0 asadmin deploy ../../dist/security/
> hellojspsecure.war
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish Team