dev@glassfish.java.net

Re: asadmin tip

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Thu, 29 Apr 2010 17:08:10 -0700

I don't remember. Try it!


On 4/29/2010 1:08 PM, Anissa Lam wrote:
>
> Good to know. Thanks.
> Is this just for v3 ? does v2 honor that environment variable as
> well ?
> I wonder what will happen when i run both v2 and v3 at the same time.
>
> thanks.
> Anissa.
>
> Byron Nevins wrote:
>> If you setup a magic environmental variable then each and every
>> asadmin command you run -- including, say, all asadmin commands that
>> QL calls -- will be written into the file you specify.
>> It's handy for debugging things and/or figuring things out. I set
>> the file to be somewhere in my V3 installation. Then the file is
>> automatically purged frequently as I do reinstalls over time.
>>
>> export AS_LOGFILE=c:\glassfishv3\glassfish\cli.log
>> set AS_LOGFILE=c:\glassfishv3\glassfish\cli.log
>>
>>
>> -- You set this up in your environment ONCE and then forget it. I
>> set it up a year or two ago and it always works.
>>
>> Typical output:
>>
>> 04/28/2010 16:11:00 EXIT: 0 asadmin start-database
>> 04/28/2010 16:11:10 EXIT: 0 asadmin start-domain domain1
>> 04/28/2010 16:11:51 EXIT: 0 asadmin deploy
>> ../../dist/basicweb/hellojsp.war
>> 04/28/2010 16:12:03 EXIT: 0 asadmin deploy
>> ../../dist/jsftest/jsfastrologer.war
>> 04/28/2010 16:12:16 EXIT: 0 asadmin deploy
>> ../../dist/basicweb/jsfinjection.war
>> 04/28/2010 16:12:30 EXIT: 0 asadmin deploy
>> ../../dist/jdbcusertx/jdbcusertx.war
>> 04/28/2010 16:12:46 EXIT: 0 asadmin deploy
>> ../../dist/jpainjectemf/jpainjectemf.war
>> 04/28/2010 16:13:00 EXIT: 0 asadmin deploy
>> ../../dist/jpavalidation/jpavalidation.war
>> 04/28/2010 16:13:12 EXIT: 0 asadmin deploy
>> ../../dist/security/hellojspsecure.war
>> 04/28/2010 16:13:15 EXIT: 0 asadmin create-file-user --user admin
>> --passwordfile asadminuserpassword.txt --host localhost --port 4848
>> --echo=true --terse=true --groups testgroup1 --authrealmname file
>> testuser3
>> 04/28/2010 16:13:18 EXIT: 0 asadmin create-file-user --user admin
>> --passwordfile asadminuserpassword.txt --host localhost --port 4848
>> --echo=true --terse=true --groups testgroup5 --authrealmname file
>> testuser42
>> 04/28/2010 16:13:21 EXIT: 0 asadmin create-file-user --user admin
>> --passwordfile asadminuserpassword.txt --host localhost --port 4848
>> --echo=true --terse=true --groups testgroup10 --authrealmname file j2ee
>> 04/28/2010 16:13:29 EXIT: 0 asadmin deploy
>> ../../dist/security-basicauth/basicauth.war
>> 04/28/2010 16:13:43 EXIT: 0 asadmin deploy
>> ../../dist/EJB_slsbnicmt/slsbnicmt.war
>> 04/28/2010 16:13:55 EXIT: 0 asadmin deploy
>> ../../dist/EJB_sfulnoi/sfulnoi.war
>> 04/28/2010 16:14:07 EXIT: 0 asadmin deploy
>> ../../dist/bv/simple-bv-servlet.war
>> 04/28/2010 16:14:23 EXIT: 0 asadmin deploy
>> ../../dist/weldtest/numberguess.war
>> 04/28/2010 16:14:36 EXIT: 0 asadmin deploy
>> ../../dist/weldtest/osgiweld.war
>> 04/28/2010 16:14:50 EXIT: 0 asadmin deploy
>> ../../dist/weldtest/extensions.war
>> 04/28/2010 16:15:08 EXIT: 0 asadmin deploy
>> ../../dist/EJB_remoteview/remoteview.jar
>> 04/28/2010 16:15:21 EXIT: 0 asadmin deploy
>> ../../dist/EJB_Singleton/singleton.ear
>> 04/28/2010 16:15:25 EXIT: 0 asadmin deploy --force=true
>> ../../dist/EJB_Singleton/singleton.ear
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188