[THIN] Re: Reporting on datastore data

  • From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 6 Oct 2004 21:34:09 +1000

Hi Jeremy,
 
Exporting the published app info is fairly easy using some utilities in
the Citrix server SDK examples, namely export.exe, enum.exe and
newapp.exe.
 

Enum lists all published applications in a farm. It is run at the
command line and the output can be modified to produce an apps list file
for automation purposes, eg.

For /f "tokens=3 delims=\" %i in ('enum ^| find "Applications"') do
@echo %i >> xp_appslist.txt

Export can produce an APP file, which is basically an application
descriptor file that can be used to re-create a published application.

The syntax of the export command is:

Export app_name /ea App_filename eg

Export "\Applications\Travel System" /ea "Travel System.app"

We can automate this if we can use the apps list above xp_appslist.txt
list as follows:

For /f " "tokens=1 delims=:" %i in (xp_applist.txt) do export
"\Applications\%i" /ea "%i.app"

              This will produce a published_appname.app file for each of
the published applications.
 
It should be quite easy to extract the information you need. The
readprofilestring function in Kix would do what you want.
 
As an aside, and to complete the story:
 
Newapp is used to create a published application. It uses the syntax:

Newapp published_appname.app

This allows us to use xp_appslist.txt above to recreate the published
applications in the MetaFrame Farm. For example, from a server in the
farm, copy the utilities, the *.app files and xp_appslist.txt to a
temporary directory.

Then run:

For /f " "tokens=1 delims=:" %i in (xp_applist.txt) do newapp "%i.app"

The app file formats are slightly different between Metaframe 1.8 and
XP, but they're easy to convert and I've used this mechanism to
"migrate" published apps from a 1.8 farm to a completely different XP
farm.
 
regards,
 
Rick

Ulrich Mack
Volante Systems Ltd
18 Heussler Terrace, Milton 4064
Queensland Australia.
Ph: +61 7 3246 7704
email: rmack@xxxxxxxxxxxxxx
web: www.volante.com.au




        -----Original Message-----
        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jeremy Thomas
        Sent: Wednesday, 6 October 2004 5:32 PM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Reporting on datastore data
        
        
        Is there any way I can extract all the information in the
datastore to a readable format?
         
        What I want to do it to export all the published applications
information into a spreadsheet and use that to document the system.
         
        Thanks,
        Jez.


#####################################################################################
This e-mail, including all attachments, may be confidential or privileged.  
Confidentiality or privilege is not waived or lost because this e-mail has been 
sent to you in error.  If you are not the intended recipient any use, 
disclosure or copying of this e-mail is prohibited.  If you have received it in 
error please notify the sender immediately by reply e-mail and destroy all 
copies of this e-mail and any attachments.  All liability for direct and 
indirect loss arising from this e-mail and any attachments is hereby disclaimed 
to the extent permitted by law.
#####################################################################################

Other related posts: