Sreeni's Weblog

Support for asadmin command in Application Server 6.0 N1SPS Plugin

Monday Sep 17, 2007

The Sun Java System Application Server (SJSAS) plugin 6.0 (available oct'07) for N1SPS provides support for running generic asadmin command in remote and local modes. The existing plugin provides components and plans to meet several common requirements. However in some cases where the specific functionality is not exposed thru the above components and plans, the generic asadmin command component can be used.

The asadmin component comes in 2 flavors, remote and local. By remote, the commands are communicated via http/s to DAS and needs the command name and arguments, the admin user id, password, host name and port are automatically provided. The local command doesn't need the admin user id, and password so no values are automatically provided to the local command.

In addition to running adhoc asadmin commands, it is possible to save the commands for repeated/later use by using 'Create Component' version of Remote and Local commands.

Pl. see the image below to visualize the N1SPS admin console support for asadmin commands under the category of 'Other Tasks'.

Remote Command: This procedure allows user to execute an asadmin remote command on multiple domains as the targetable host. The required variable is "asadminCommand" and "asadminArguments" is optional.

Create Remote asadmin Component: This procedure popups a wizard for user to create a custom component from the generic asadmin remote component. User can name the component to easily identify the asadmin command and can be tracked in the "Activity Log". User can overwrite the variables "asadminCommand" and "asadminArguments". When executing the custom component, user will not required to create a variable set since the default values already contain the values that are required to execute the command.

Local Command: The procedure is similar to the "Remote Command" except the asadmin is executed locally. The targetable host is the AppServer Install virtual host name.

Create Local asadmin Component: This procedure is similar to the "Create Remote asadmin Component" except the custom component created is for executing asadmin command locally.

To understand how the provisiong works with the Application Server, pl. refer to Prashant's blog on Provisioning GlassFish V2 with N1SPS.

I would like to thank Jane Young for providing certain content for the above blog.

[4] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

Excellent blog!

Posted by janey on September 17, 2007 at 01:44 PM PDT #

Great feature. Now we need something similar to BEA Weblogic WSLT scripting language in GF.

Posted by Thorleif Wiik on September 20, 2007 at 03:30 PM PDT #

I really believe that these social networks will have a huge impact on what we can accomplish as groups, it'll help us be very organized and communicate.

Posted by ed hardy hats on November 19, 2009 at 06:01 PM PST #

I really believe that these social networks will have a huge impact on what we can accomplish as groups, it'll help us be very organized and communicate.

Posted by ed hardy hats on November 19, 2009 at 06:01 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed