ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

STRUP Program - some command didn't executed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • STRUP Program - some command didn't executed

    Hi All,

    When I hit the bellow command in the command line, the web server and attached application server are get started

    Code:
    QSYS/STRTCPSVR SERVER(*HTTP) HTTPSVR(COMPWEB)
    Then, I added the last 4 line to QSTRUP program, compile it and IPL the system

    Code:
         IF COND((&CTLSBSD *NE 'QCTL      QSYS      ') *AND (&CTLSBSD *NE  'QCTL      QGPL      ')) THEN(GOTO CMDLBL(DONE))               
         QSYS/STRSBS SBSD(QINTER)                                         
         MONMSG MSGID(CPF0000)                                            
         QSYS/STRSBS SBSD(QBATCH)                                         
         MONMSG MSGID(CPF0000)                                            
         QSYS/STRSBS SBSD(QCMN)                                           
         MONMSG MSGID(CPF0000)                                            
    DONE:                                                                 
         QSYS/STRSBS SBSD(QSPL)                                           
         MONMSG MSGID(CPF0000)                                            
    [COLOR="#0000FF"]     QSYS/STRTCPSVR SERVER(*HTTP) HTTPSVR(COMPWEB)                    
         MONMSG MSGID(CPF0000)                                            
         QSYS/STRSBS SBSD(QGPL/SMSJOB)                                    
         MONMSG MSGID(CPF0000)  [/COLOR]
    In the JOBLOG, I can see the both subsystems between STRTCPSVR were started
    but looks like STRTCPSVR SERVER(*HTTP) HTTPSVR(COMPWEB) were not executed
    Where else should I look into?

    Thanks

    Job Logs:
    PHP Code:
    CPF1804  00  INFO         Subsystem QCMN in library QSYS starting.
                          
    QSYSARB4   QSYS       411538                   13/03/13 03:15:42.874527 QSYS
    CPF1124  00  INFO         Job 411642
    /QSYS/QCMN started on 13/03/13 at 03:15:42 in subsystem QCMN in QSYSJob entered system on 13/
                          
    QCMN       QSYS       411642                   13/03/13 03:15:42.883718 QSYS
    CPF1124  00  INFO         Job 411644
    /QUSER/QPWFSERV started on 13/03/13 at 03:15:42 in subsystem QSERVER in QSYSJob entered syste
                          QPWFSERV   QUSER      411644                   13
    /03/13 03:15:42.921749 QUSER
    CPF1804  00  INFO         Subsystem QSPL in library QSYS starting
    .
                          
    QSYSARB4   QSYS       411538                   13/03/13 03:15:42.994965 QSYS
    CPF1124  00  INFO         Job 411645
    /QSYS/QSPL started on 13/03/13 at 03:15:42 in subsystem QSPL in QSYSJob entered system on 13/
                          
    QSPL       QSYS       411645                   13/03/13 03:15:43.032259 QSYS
    CPF1124  00  INFO         Job 411647
    /QUSER/QZSCSRVS started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered syste
                          QZSCSRVS   QUSER      411647                   13
    /03/13 03:15:43.131867 QUSER
     5761SS1 V6R1M0 080215                                   History Log                                                   Page  0012
    MSGID    SEV MSG TYPE
    CPF5909  00  INFO         Line ETHFIREPRD varied on successfully
    .
                          
    QSYSARB    QSYS       411535                   13/03/13 03:15:43.139951 QSYS
    CPF1124  00  INFO         Job 411646
    /QUSER/QPWFSERV started on 13/03/13 at 03:15:43 in subsystem QSERVER in QSYSJob entered syste
                          QPWFSERV   QUSER      411646                   13
    /03/13 03:15:43.174184 QUSER
    CPF1124  00  INFO         Job 411648
    /QUSER/QNPSERVS started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered syste
                          QNPSERVS   QUSER      411648                   13
    /03/13 03:15:43.307553 QUSER
    CPF1124  00  INFO         Job 411649
    /QUSER/QZLSFILE started on 13/03/13 at 03:15:43 in subsystem QSERVER in QSYSJob entered syste
                          QZLSFILE   QUSER      411649                   13
    /03/13 03:15:43.326461 QUSER
    CPF1103  00  INFO         Subsystem QBATCH started
    .
                          
    QBATCH     QSYS       411639                   13/03/13 03:15:43.460668 QSYS
    CPF1124  00  INFO         Job 411652
    /QUSER/QTFPJTCP started on 13/03/13 at 03:15:43 in subsystem QSERVER in QSYSJob entered syste
                          QTFPJTCP   QUSER      411652                   13
    /03/13 03:15:43.490863 QUSER
    CPF1124  00  INFO         Job 411651
    /QUSER/QZRCSRVS started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered syste
                          QZRCSRVS   QUSER      411651                   13
    /03/13 03:15:43.506746 QUSER
    TCP1B07  00  INFO         User QSYS in job 411574
    /QSYS/QTCPWRK started TCP/IP *LOOPBACK interface 127.0.0.1.
                          
    QTCPWRK    QSYS       411574                   13/03/13 03:15:43.602799 QSYS
    CPF1103  00  INFO         Subsystem QSERVER started
    .
                          
    QSERVER    QSYS       411633                   13/03/13 03:15:43.640299 QSYS
    CPF1124  00  INFO         Job 411654
    /QPGMR/QSERVER started on 13/03/13 at 03:15:43 in subsystem QSERVER in QSYSJob entered system
                          QSERVER    QPGMR      411654                   13
    /03/13 03:15:43.679768 QPGMR
    CPF1124  00  INFO         Job 411653
    /QUSER/QZHQSSRV started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered syste
                          QZHQSSRV   QUSER      411653                   13
    /03/13 03:15:43.736397 QUSER
    CPF1124  00  INFO         Job 411655
    /QTCP/QTOCPP started on 13/03/13 at 03:15:43 in subsystem QSYSWRK in QSYSJob entered system o
                          QTOCPP     QTCP       411655                   13
    /03/13 03:15:43.905434 QTCP
    CPF1124  00  INFO         Job 411657
    /QUSER/QZDASOINIT started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered sys
                          QZDASOINIT QUSER      411657                   13
    /03/13 03:15:43.905448 QUSER
    TCP8A3E  00  DIAGNOSTIC   
    Interface 127.0.0.1 is active.
                          
    QTCPWRK    QSYS       411574                   13/03/13 03:15:43.936661 QSYS
    CPF1124  00  INFO         Job 411656
    /QTCP/QTCPSTSVRS started on 13/03/13 at 03:15:43 in subsystem QSYSWRK in QSYSJob entered syst
                          QTCPSTSVRS QTCP       411656                   13
    /03/13 03:15:43.946560 QTCP
    CPD2645  40  DIAGNOSTIC   Line ETHFIREPRD already varied on
    .
                          
    QTCPWRK    QSYS       411574                   13/03/13 03:15:43.994870 QSYS
    CPC2609  00  COMPLETION   Vary on completed 
    for controller ETHFINET.
                          
    QTCPWRK    QSYS       411574                   13/03/13 03:15:43.999602 QSYS
    CPC2605  00  COMPLETION   Vary on completed 
    for device ETHFITCP.
                          
    QTCPWRK    QSYS       411574                   13/03/13 03:15:44.006665 QSYS
    CPF1124  00  INFO         Job 411658
    /QUSER/QZDASSINIT started on 13/03/13 at 03:15:43 in subsystem QUSRWRK in QSYSJob entered sys
                          QZDASSINIT QUSER      411658                   13
    /03/13 03:15:44.007986 QUSER
    CPF5908  00  INFO         Controller ETHFINET contacted on line ETHFIREPRD
    .
                          
    QCMNARB02  QSYS       411553                   13/03/13 03:15:44.132584 QSYS
    CPF1124  00  INFO         Job 411659
    /QUSER/QRWTSRVR started on 13/03/13 at 03:15:44 in subsystem QUSRWRK in QSYSJob entered syste
                          QRWTSRVR   QUSER      411659                   13
    /03/13 03:15:44.220761 QUSER
    CPF1164  00  COMPLETION   Job 411655
    /QTCP/QTOCPP ended on 13/03/13 at 03:15:44.004 seconds usedend code 0
                          QTOCPP     QTCP       411655                   13
    /03/13 03:15:44.313448 QTCP
    CPF1124  00  INFO         Job 411660
    /QUSER/QSCWCHPS started on 13/03/13 at 03:15:44 in subsystem QUSRWRK in QSYSJob entered syste
                          QSCWCHPS   QUSER      411660                   13
    /03/13 03:15:44.367647 QUSER
    CPF1124  00  INFO         Job 411661
    /QUSER/QSCWCHPS started on 13/03/13 at 03:15:44 in subsystem QUSRWRK in QSYSJob entered syste
                          QSCWCHPS   QUSER      411661                   13
    /03/13 03:15:44.398807 QUSER
    CPIAD01  00  INFO         Subsystem QSERVER initialization complete
    .
                          
    QSERVER    QPGMR      411654                   13/03/13 03:15:44.414969 QPGMR
    CPF1124  00  INFO         Job 411662
    /QUSER/QSCWCHPS started on 13/03/13 at 03:15:44 in subsystem QUSRWRK in QSYSJob entered syste
                          QSCWCHPS   QUSER      411662                   13
    /03/13 03:15:44.453991 QUSER
    CPF1124  00  INFO         Job 411664
    /QUSER/QPWFSERVSD started on 13/03/13 at 03:15:44 in subsystem QSERVER in QSYSJob entered sys
                          QPWFSERVSD QUSER      411664                   13
    /03/13 03:15:44.544977 QUSER
    CPF1103  00  INFO         Subsystem QUSRWRK started
    .
                          
    QUSRWRK    QSYS       411634                   13/03/13 03:15:44.592076 QSYS
     5761SS1 V6R1M0 080215                                   History Log                                                   Page  0013
    MSGID    SEV MSG TYPE
    CPF1124  00  INFO         Job 411665
    /QUSER/QCTXDMON started on 13/03/13 at 03:15:44 in subsystem QUSRWRK in QSYSJob entered syste
                          QCTXDMON   QUSER      411665                   13
    /03/13 03:15:44.592198 QUSER
    CPF1124  00  INFO         Job 411663
    /QTCP/QTVTELNET started on 13/03/13 at 03:15:44 in subsystem QSYSWRK in QSYSJob entered syste
                          QTVTELNET  QTCP       411663                   13
    /03/13 03:15:44.622480 QTCP
    CPF1124  00  INFO         Job 411666
    /QTCP/QTVDEVICE started on 13/03/13 at 03:15:44 in subsystem QSYSWRK in QSYSJob entered syste
                          QTVDEVICE  QTCP       411666                   13
    /03/13 03:15:44.629181 QTCP
    CPF1124  00  INFO         Job 411667
    /QTCP/QTVDEVICE started on 13/03/13 at 03:15:44 in subsystem QSYSWRK in QSYSJob entered syste
                          QTVDEVICE  QTCP       411667                   13
    /03/13 03:15:44.687310 QTCP
    CPF1124  00  INFO         Job 411668
    /QTCP/QTVDEVICE started on 13/03/13 at 03:15:44 in subsystem QSYSWRK in QSYSJob entered syste
                          QTVDEVICE  QTCP       411668                   13
    /03/13 03:15:44.728609 QTCP
    CPF1124  00  INFO         Job 411670
    /QTCP/QTVDEVICE started on 13/03/13 at 03:15:44 in subsystem QSYSWRK in QSYSJob entered syste
                          QTVDEVICE  QTCP       411670                   13
    /03/13 03:15:44.747682 QTCP
    CPF1124  00  INFO         Job 411671
    /QSECOFR/QUMECIMOM started on 13/03/13 at 03:15:45 in subsystem QSYSWRK in QSYSJob entered sy
                          QUMECIMOM  QSECOFR    411671                   13
    /03/13 03:15:45.143734 QSECOFR
    CPF1124  00  INFO         Job 411672
    /QUSER/QRWTLSTN started on 13/03/13 at 03:15:45 in subsystem QSYSWRK in QSYSJob entered syste
                          QRWTLSTN   QUSER      411672                   13
    /03/13 03:15:45.300787 QUSER
    CPF1804  00  INFO         Subsystem SMSJOB in library QGPL starting
    .
                          
    QSYSARB4   QSYS       411538                   13/03/13 03:15:45.487226 QSYS 

  • #2
    Re: STRUP Program - some command didn't executed

    are you sure you compiled it into the same library that the QSTRUPPGM value is set to look for it?
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: STRUP Program - some command didn't executed

      show us the value in system value QSTRUPPGM please!
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: STRUP Program - some command didn't executed

        Yes, Compiled it to the qsys lib. Strange things is the next command [STRSBS SBSD(QGPL/SMSJOB)] is executing.

        PS : I have 2 box identically same configuration and both gives the same result ( SMSJOB subsystem is starting after IPL but STRTCPSVR SERVER(*HTTP) HTTPSVR(COMPWEB) is not doing anything)
        and also notice that all other HTTP instance like 'ADMIN' were started but not COMPWEB.

        PHP Code:
        System value . . . . . :   QSTRUPPGM                         
        Description  
        . . . . . :   Startup program                   
                                                                     
                                                                     
        Startup program  
        . . . . . . :   QSTRUP         Name, *NONE  
          Library  
        . . . . . . . . . :     QSYS         Name 
        Last edited by dhanuxp; March 14, 2013, 08:28 PM.

        Comment


        • #5
          Re: STRUP Program - some command didn't executed

          I have seen this before as a result of timing.... the STRTCPSVR runs but the required subsystems or network interfaces are not completely running or available...

          I have put in DLYJOB or a SBMJOB CALL to another program so that it provided adequate time for the system to be ready to process the web start up.

          Comment


          • #6
            Re: STRUP Program - some command didn't executed

            just to trust but confirm: also please post output from:
            PHP Code:
            wrkobj *all/QSTRUP 
            All my answers were extracted from the "Big Dummy's Guide to the As400"
            and I take no responsibility for any of them.

            www.code400.com

            Comment


            • #7
              Re: STRUP Program - some command didn't executed

              You can just change the configuration for COMPWEB to AUTOSTART which is probably the setting for the ADMIN instance, then you don't need to worry about it in the startup job and it will be started automatically with TCP.

              Comment


              • #8
                Re: STRUP Program - some command didn't executed

                Is the CCSID of your job non standard ?
                We had an issue with that which required special parms on the startup command ...
                Greg Craill: "Life's hard - Get a helmet !!"

                Comment


                • #9
                  Re: STRUP Program - some command didn't executed

                  Originally posted by jamief View Post
                  just to trust but confirm: also please post output from:
                  PHP Code:
                  wrkobj *all/QSTRUP 
                  Jamie,
                  I can see the same objects in few libraries,
                  You think that any of program will get execute ?
                  So what's the purpose of setting QSTRUPPGM value ?

                  Comment


                  • #10
                    Re: STRUP Program - some command didn't executed

                    Originally posted by dhanuxp View Post
                    Jamie,
                    I can see the same objects in few libraries,
                    You think that any of program will get execute ?
                    So what's the purpose of setting QSTRUPPGM value ?
                    It cannot be, because the next command is executing which added by me.
                    no doubt, the correct program is in QSYS

                    Comment


                    • #11
                      Re: STRUP Program - some command didn't executed

                      We have to do this STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN '-fsccsid 37') as our system is non 37 CCSID.

                      What are you using in Sri Lanka? (Of course this could be non related to your site)
                      Greg Craill: "Life's hard - Get a helmet !!"

                      Comment


                      • #12
                        Re: STRUP Program - some command didn't executed

                        Originally posted by gcraill View Post
                        We have to do this STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN '-fsccsid 37') as our system is non 37 CCSID.

                        What are you using in Sri Lanka? (Of course this could be non related to your site)
                        we use default 65535
                        I'm going to submit the command as per RBOrrell
                        we'll see what happened...

                        Comment

                        Working...
                        X