|
|
|||||||||||||||||||||||||||||||||||||||
Mandy Chung's BlogFebruary 2008 ArchivesSun Service Tags and Inventory ChannelPosted by mandychung on February 19, 2008 at 12:05 AM | Permalink | Comments (6)Recently I have been working on a new Java SE project related to a Sun Connection Technology called Service Tags. I'd like to give a short introduction of the Sun Service Tags technology that you may find various interesting ideas of leveraging it. Sun Service TagsThe Sun Service Tags enable automatic discovery of the tagged systems and softwares on your systems or a local network. The JDK and JRE 6 update 4 will become discoverable when installed on Solaris and Linux service tag enabled systems. The Sun Service Tags are not limited for Sun products. You can create the service tags for your own products (hardwares, softwares, or services) and leverage the discovery capability for your environment to use.Discoverable products are registerable at Sun Connection Inventory Channel. I'll talk about the JDK product registration next in a couple of weeks. What is a Service Tag?Sun Service Tag is a XML-based unique identifer of a product instance containing a set of basic information about the product instance on a system. Below represents a service tag of a JDK instance.
The product_urn field of Sun products is in this format "urn:uuid:" followed with a 32 character long UUID but is not required by Sun Service Tags. You can also embed additional information about a product besides the basic one in the product_defined_instance_id field. Service Tag Enabled SystemTo enable service tags technology, you need to install the Service Tags Software that consists of:
Create your own service tagOnce you enable Service Tags on your system, you can add a service tag for any hardware, software or anything else you want to be tagged. For example, I have created a service tag for Skype just as an example by using thestclient utility (I installed Skype on my laptop for making international calls to my mom in Hong Kong) . You can do it in an interactive mode or with the -a option.
c:\Program Files\Sun\servicetag>.\stclient > a Enter instance URN (optional): Enter product (e.g. Sun Web Server): Skype Enter version (e.g. 6.1): 3.6 Enter product URN: A-unique-ID-for-Skype Enter product parent URN: A-unique-ID-for-its-parent Enter product parent (e.g. JES): Free software Enter product defined instance id: Enter product vendor (e.g. Sun): Skype Enter platform arch (e.g. SPARC): x86 Enter container (e.g. zone 0): global Enter source (e.g. genesis patch): SkypeSetup.exe Skype 3.6 added Product instance URN=urn:st:1f158110-de82-11dc-a0f1-000f1f14443e Press enter to continue
<service_tag>
<instance_urn>urn:st:1f158110-de82-11dc-a0f1-000f1f14443e</instance_urn>
<product_name>Skype</product_name>
<product_version>3.6</product_version>
<product_urn>A-unique-ID-for-Skype</product_urn>
<product_parent>Free software</product_parent>
<product_parent_urn>A-unique-ID-for-its-parent</product_parent_urn>
<product_defined_inst_id></product_defined_inst_id>
<product_vendor>Skype</product_vendor>
<platform_arch>x86</platform_arch>
<timestamp>2008-02-19 00:32:16 GMT</timestamp>
<container>global</container>
<source>SkypeSetup.exe</source>
<installer_uid>0</installer_uid>
</service_tag>
DiscoveryTo discover the tagged products on your system, you can start the Registration Manager client tool (a Java web start application also available at https://sunconnection.sun.com/inventory). ST discoverer and listener services allow the system to be discovered via the Registration Manager client tool. These network services only communicate the service tag information with the Registration Manager client tool and do not communicate with any other services on your system. These are the screenshots of the Registration Manager client tool looking up the tagged products on my laptop:
The first screenshot shows that you can configure the Registration Manager client tool to perform the discovery on a local subnet or one or more specified systems. Note that the Registration Manager performs no communication with Sun until you decide to perform the "registration" step. I will blog about product registration later. The second screenshot shows the list of tagged products on your system including my tagged Skype. Several Sun hardware and software products including JDK and NetBeans IDE are discoverable and more are being added over time. A service tag for the Windows OS is also created as part of the Service Tags software installation.
One of the most basic and difficult problems IT departments have today is to simply know what systems, softwares, and even services they have. Systems and softwares are installed by various team members at all times. Systems are shut down and new software is upgraded. Sun Service Tags and Inventory Channel give IT new tools to manage this complexity. For example, you can quickly determine what JDK and JRE instances (Java SE 6 update 4 and later releases) are installed on which systems in your environment. For More Information
| |||||||||||||||||||||||||||||||||||||||
|
|