Jeff Bounds' Weblog The Grove

Monday Dec 19, 2005

Here are a few SMF descriptions you can use to enable Java Enterprise System applications.   I've included the steps to follow again.  They are pretty simple and you are more than welcome to edit the xml descriptions to meet your needs.  These files assume the creation of the jes dir located under the manifest dir.   Then the APPTYPE would include something like webserver. You can read the XML manifest files to understand how the Description maps to the directory.

Thanks to Scott Fehrman from the Identity Group for creating these.

chown root:sys /var/svc/manifest/jes/APPTYPE/FILENAME.xml
chmod 444 /var/svc/manifest/jes/APPTYPE/FILENAME.xml
svccfg import /var/svc/manifest/jes/APPTYPE/FILENAME.xml
svcadm -v enable SERVICENAME_FOUNDINXMLFILE

Calendar Server - jescalserverdefault.xml
Directory Server- jesdirserverport389.xml
Mail Server- jesmailserverdefault.xml
Web Server - jeswebserverport80.xml

Web Server Admin - jeswebserveradminport.xml



Monday Sep 26, 2005

Its been quite a while since I've blogged on anything. So I'll try to pick up with something useful. I was tasked by a collegue to create a script that would ensure that his Sun Java System Application Server instance would restart if his Solaris 10 server ever went down. For this example we are talking about normal power outages/flickers occuring in a home. Not anything you would face in a reliable data center. The SJSAS documentation describes how to do this with /etc/inittab. I decided to try some of the new capabilities in S10, mainly SMF.

I borrowed from these 3 sources:
http://www.cuddletech.com/blog/pivot/entry.php?id=326
http://www.sun.com/bigadmin/content/submitted/config_smf.html
http://www.sun.com/bigadmin/content/selfheal/sdev_intro.html

Step 1) Create the SMF description. Here is one for the Application Server. You should chanage DOMAINNAME to be the name of the domain you wish to restart. Currently this script will only start 1 domain. I called this SMF description sjsas.xml



<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>

<!--
Jeff Bounds 09/12
Service manifest for Sun Java System Application Server
-->

<service_bundle type='manifest' name='SUNWappserver:appserver'>
<service name='application/sjsas' type='service' version='1'>
<create_default_instance enabled='false' />
<single_instance />

<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local' />
</dependency>

<dependency name='net' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/initial' />
</dependency>

<exec_method type='method' name='start' exec='/opt/SUNWappserver/appserver/bin/asadmin start-domain DOMAINNAME' timeout_seconds='-1'>
<method_context>
<method_credential user='appservd' group='appservd' />
</method_context>
</exec_method>

<exec_method type='method' name='stop' exec='/opt/SUNWappserver/appserver/bin/asadmin stop-domain DOMAINNAME' timeout_seconds='-1'>
</exec_method>
<stability value='Unstable' />

<template>
<common_name>
<loctext xml:lang='C'>
SJSAS
</loctext>
</common_name>
</template>

</service>
</service_bundle>



Step 2) You will need to copy this file and fix permissions for it. I placed this file in the applications directory underneath the manifest dir.

chown root:sys /var/svc/manifest/application/sjsas.xml

chmod 444 /var/svc/manifest/application/sjsas.xml



Step 3) Import the service description

svccfg import /var/svc/manifest/application/sjsas.xml



Step 4) Enable the service

svcadm -v enable sjsas




This seems to work just fine for me. I also created a SMF description for Sun Java System Web Server. I'll post that tomorrow

Tuesday Sep 07, 2004

I knew replacing Eli Manning at QB for Ole Miss would be tough, but with a highly touted replacement with 3 years in the system, it should have gone better.  Ole Miss started the season with an embarrasing loss to the University of Memphis (20-13).  I'll go on record here stating that I believe Memphis will win CUSA.  It doesn't make me feel better.  All the 'worst-case' scenarios I could imagine came true.  Our QB Micheal Spurlock (Yes, that is how he spells his first name) is just too short to be a Div-1 QB.  Typically with a short, athletic QB you design rollout plays to get him out of the pocket.  Unfortunately, Micheal gets happy feet when on the move and ends up over/under throwing recievers.   I'm hoping his poor performance was just first game jitters.  I don't think so.   Secondly our Linebackers are WAY too slow.  Our LBs seemed to end up very mismatched by covering RBs out of the backfield.  If a QB has enough time, he'll exploit that weakness.  I think we'll see this happening all year:  RBs and TEs making big plays when matched against our LBs.
Third, Coach Cutcliffe's reverted back to his old self.   He seems to constantly get outcoached.  It was only after last years bad start that he seemed to actually create a gameplan and use each players abilities.
Great Job to Jonathan Nichols (K) for picking up where he left of last year.   Something is not right when your best player is a kicker.
Yes, it is the start of the season with many more games to go.  Just had to vent somewhere.

Monday Aug 09, 2004

This weekend I attended a concert of one of my favorite bands: Jackopierce.   They played the Belcourt Theatre in Nashville, TN.  Jackopierce originally toured back in the 90's but parted ways back in '98.  They are currently on a "reunion" tour.  Hopefully they will go back to the studio and write some new songs.  Jackopierce is essentially two guys on acoustic guitar, Jack O'Neil and Cary Pierce.   If you get the chance you should really check them out.  They formed the band while in Texas, so many of their concerts are there.
www.jackopierce.com
www.morethanthis.org

Tuesday Jun 29, 2004

Now for some real content. How to use Evolution as a RSS Reader. If you are familiar with the Summary page in Evolution then you are looking at a RSS Reader! To add an existing feed that Evolution knows about go to Tools -> Settings -> Summary Preferences -> News Feeds. There evolution will have a list of feeds. Select a feed then ADD it. To add a new feed go to Tools -> Settings -> Summary Preferences -> News Feeds -> New Feed. It will ask for a Name and a URL for the feed. I'm sure Evolution stores this list somewhere, but for the life of me I have NO clue where! So for the time being you Vi experts will just have to suffer using the gui.
In keeping with the tradition of most other bloggers first post, I will make this one about myself. My name is Jeff Bounds and I am a Systems Engineer based in Atlanta, GA. I came to Sun about 5 years ago through the Forte acquisition. I guess you can say my area of specialty includes Application Server, Web Server, SJ Studio, and SJ Creator. I am also the author of the Onestop RSS page. I graduated from the University of Mississippi (Ole Miss). The reason I mention this is, it will probably be the subject of future posts. Especially when Football season starts!