Startup: Initialise

From Sysgem Support
Revision as of 17:47, 1 February 2011 by Mike.schofield (talk | contribs)
Jump to navigationJump to search

'Tips for developers working within the Sysgem Enterprise Manager (SEM) environment'.

Startup Initialize Script

Variables set by the SEM framework:

The Perl script: "Startup Initialize" runs on the target (Windows) system after the display has been selected and BEFORE the display of the startup window.

The purpose of the script is to initialize the fields that are displayed in the startup window.

This section describes the variables that are automatically preset in the script by the SEM framework at the start of the script.


Variables:

The details of the variables stored automatically by the SEM framework at the start of script are shown below.

  • Details of the Current SEM User:

Details of the SEM user that has invoked the display are stored in the following Perl variables:

   my $USER_NT_USERNAME "Windows NT username"
   my $USER_NT_COMPUTER "Windows NT computer name"
   my $USER_SYSGEM_USERNAME "SYSGEM username"
   my $USER_DISPLAY_VERBOSE "Verbose display option (either 0 or 1)"
   my $SEM_CLIENT_BUILD "SEM Client Build (e.g. 14178392.14178388 4459)"


  • Details of the Previous Values Used:

Details of the previous values used in the parameter fields (Supplied from the Registry) and will be used again unless changed by this script are shown in the following variables:

   my $CURRENT_AGENTS "The set of agents selected the last time the window was used and the agents 'saved'"
   my $VALUE_XX  "The value used in the previous use of the form - XX is the field code for each parameter field"


  • Details of the Authorization Server
  my $USE_AUTH_SVR_PROXY   "Whether the Authorization Server may be used for DB access (either 0 or 1)"
  my $AUTH_SVR_ADDRESS     "The address of the Authorization Server as used in the SEM Login window"
  my $AUTH_SVR_PORT        "The port number of the Authorization Server as used in the SEM Login window"



'Change the default value of fields'

To change the value of the fields in the startup window execute the following Perl command:

   print "XX : <new value>\n";   

... where "XX" is the field code for the required field.