Wednesday, January 27, 2016

Siebel: Generate browser scripts using genbscript utility in siebel

genbscript.exe is the utility that is sued to generate browser scripts from the .srf file. This executable is available in the siebsrvr/bin or the client/bin directories.
The syntax to run the command is:

genbscript <application cfg file> <dest directory> [language]






when generating browser scripts on the siebel server, the destination directory should be siebsrvr/WEBMASTER and the cfg file should be from the siebel server like below:

genbscript "c:\siebel80\siebsrvr\bin\ENU\siebel.cfg" c:\siebel80\siebsrvr\WEBMASTER ENU

After executing the genbscript utility, a new folder called <srfxxxxxxxxxx_xxx> is created in the c:\siebel80\siebsrvr\WEBMASTER folder

If deploying to the Mobile Web client, the dest_dir should be client/public/%LANG_CODE% and the config_file should be the appropriate language specific client configuration

genbscript "c:\siebel80\client\bin\ENU\uagent.cfg" "c:\siebel80\client\PUBLIC\enu"

if you are generating browser scripts for non ENU language then the syntax is as below:


genbscript "c:\siebel80\client\bin\FRA\uagent.cfg" "c:\siebel80\client\PUBLIC\fra" "FRA"

after the browser scripts are generated, either bounce the web servers to refresh the files from the siebel server or by Updating Web Server Static Files on the SWSE Using the Web Update Protection Key. more details can be found here

Siebel: How to update web server static files on the SWSE using the Web Update Protection Key

Web Update protection Key is sued by the siebel administrators to update or refresh the static files on the web server like images, css files from the siebel server.
Siebel developers will place the updated versions of these static files in the WEBMASTER sub directory for the siebel server folder. whenever the web server is restarted, it contacts the siebel server and updates them. this can be achieved even without bouncing the web server by issuing the web update protection key. this is particularly useful when we want to refresh the files on multiple web servers.






The value for Web Update protection Key is set during SWSE configuration and is set for the parameter "WebUpdatePassword" in the eapps.cfg file.

hit the below URL to refresh the static files:

http://host:port/application/start.swe?SWECmd=UpdateWebImages&SWEPassword=WebUpdateProtectionKey 

where

  • host = web server machine name
  • port = web server listening port if used
  • application = application used like callcenter_enu, fins_enu etc
  • WebUpdateProtectionKey = unencrypted password defined in eapps.cfg file for the parameter "WebUpdateProtectionKey"

Siebel: Changing hostname for windows server running Siebel 8.x

Below are the detailed steps to change the hostname for a windows environment running Siebel 8.x


  1. Backup siebns.dat, siebel.cfg, eapps.cfg, eaps_sia.cfg and the corresponding application cfg files.
  2. Stop the siebel server.
  3. Navigate to <SIEBSRVR_ROOT>/bin directory in a command prompt.
    1. connect to srvrmgr using the below command:                                                      >srvrmgr /g <GatewayHost> /e <EnterpriseName> /u /p 
    2. Run the below commands to update the Gateway port and the hostname:
      1. change param DSGatewayAddress=:<GatewayPort> for named subsystem ServerDataSrc
      2. change param DSConnectString=:<GatewayPort> for named subsystem GatewayDataSrc
      3. change param Host= for server <ServerName>
    3. you can now verify the changes by issuing the below commands:
      1. list hidden param DSGatewayAddress for named subsystem ServerDataSrc
      2. list param DSConnectString for named subsystem GatewayDataSrc
      3. list parameter HOST for server <ServerName>
  4. You need to remove the Siebel service by running the below command in the command prompt navigating to <SIEBSRVR_ROOT>/bin directory
    1. siebctl -d -S siebsrvr -i "EnterpriseName_SiebelServerName"
  5. Restart the Gateway server.
  6. Recreate the Siebel server service using the below command:
    1. siebctl -h "SIEBSRVR_ROOT" -S siebsrvr -i "EnterpriseName_SiebelServerName" -a -g "-g NewGatewayServerHostname:port -e EnterpriseName -s SiebelServerName -u sadmin" -e Password
  7. update GatewayAddress (gateway_host:port) under [ServerDataSrc] section and ConnectString (gateway_host:port) under [GatewayDataSrc] section in the application cfg file.
  8. change the hostname in eapps.cfg and eapps_sia.cfg files.
  9. Restart the gateway server and start the siebel server.

Monday, January 25, 2016

Siebel: "PRM ANI Utility Service" and Query Business Component Method

This method is used to query for records in a Business component in a Business object irrespective of the links to the primary business component. This searches/queries in the entire business component.
If both searchspec and Query fields are provided, Siebel choses the searchspec.






when using PRM ANI Utility Business service and Query BusComp method, to get the field values for the output record after querying, below is the syntax to be mentioned:

Input Args:

ProcessProperty--Output Field 1
Type--Literal
Value-- Field Name1


ProcessProperty--Output Field 2
Type--Literal
Value-- Field Name2


to collect the values for these 2 fields, we have to create 2 new process properties and mention as below in output args:

Output args:

ProcessProperty--testproperty1
Type--Output Argument
Value-- Field Name1

ProcessProperty--testproperty2
Type--Output Argument
Value-- Field Name2

Siebel: Clear Siebel Datamap cache after changes

After import or changes to Siebel EAI Data maps at Administration - Data Map Editor view, the changes wont reflect automatically as these objects are cached in memory and it has to be refreshed.






Below are options to clear cache:


  1. Restart the component or the Siebel server.
  2. You can navigate to Administration - Webservices > outbound webservices view or Administration - Webservices > inbound webservices view and click on "Clear Cache" button for the current session.
  3. Simulate the Business service or create a workflow with the Business service "EAI Data Transformation Engine" and method "Purge" without any input arguments.

123Siebel

Search 123Siebel