Waheem Rahman

April 28, 2008

Compile SRF,Genb script, restart siebel servers

Filed under: Siebel — arwaheem @ 8:21 pm

The follwing batch script will do the following siebel admin activity:

  1. Backup the srf from both server
  2. Perform a full compile
  3. Stop the Siebel services
  4. Copy the full compiled srf
  5. Start the Siebel services
  6. Run the genbscript
  7. Copy the genbfolder
  8. Restart the web server

 The script takes approx. 1 hour 15 minutes to complete

Batch Script:

@echo off
REM ——————————————————————–
REM This batch compiles Siebel SRF and places on the server
REM ——————————————————————–

REM  —- Step1 : Create Backup —-
SET MONTH=%DATE:~4,2%
SET DAY=%DATE:~7,2%
SET YEAR=%DATE:~10,4%
SET HOUR=%TIME:~0,2%
SET MINUTE=%TIME:~3,2%
SET SECOND=%TIME:~6,4%

copy “E:\siebel\siebsrvr\OBJECTS\ENU\siebel_sia.srf” “E:\siebel\siebsrvr\OBJECTS\ENU\back\siebel_sia_%YEAR%_%MONTH%_%DAY%_%HOUR%_%MINUTE%.srf” /y
E:
cd E:\siebel\siebsrvr\OBJECTS\ENU\

REM  —- Step2 : Stop Siebel Service —-
net stop “siebsrvr_CTRMDEV1ENT_CTRMDEVSRVR1″

REM  —- Step3 : Stop Siebel Service on second server —-
SC \\<<Machine Name>> STOP “siebsrvr_CTRMDEV1ENT_CTRMDEVSRVR2″

REM  —- Step4 : COmplie it in local directory —-
E:\siebel\Tools\BIN\siebdev.exe /C “E:\siebel\Tools\BIN\ENU\tools.cfg” /d ServerDataSrc /u sadmin /p sadmin /bc “Siebel Repository” siebel_sia_new.srf

ping -n 3600 localhost > nul

REM  —- Step5 : Copy to siebsrvr folder on both server —-

copy E:\siebel\Tools\OBJECTS\ENU\siebel_sia_new.srf E:\siebel\siebsrvr\OBJECTS\ENU\siebel_sia.srf /y

ping -n 120 localhost > nul

REM  —- Step6 : Run Genb script———–
E:
cd E:\siebel\siebsrvr\bin
genbscript “E:\siebel\siebsrvr\bin\enu\eclinical.cfg” M:\enu

REM  —- Step7 : Start Siebel Service —-
net start “siebsrvr_CTRMDEV1ENT_CTRMDEVSRVR1″

REM  —- Step8 : Start Siebel Service on Second Server —-
SC \\<<Machine Name>> START “siebsrvr_CTRMDEV1ENT_CTRMDEVSRVR2″

REM  —- Step9 : Stop Web Server —-
net stop “W3SVC”

ping -n 180 localhost > nul

REM  —- Step10 : start Web Server —-
net start “W3SVC”

—————End of Batch Script—————————————–

Site Meter

2 Comments »

  1. Hi,
    It is very useful to Admins

    Regards,
    Syam

    Comment by Syamasundara Reddy — April 29, 2008 @ 10:16 am

  2. Good post!

    Comment by Jason — May 14, 2008 @ 6:47 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.