General discussion on Zend Core for IBM System i
-
hessrk
- Posts: 4
- Joined: Mon Aug 17, 2009 10:25 pm
Post
by hessrk » Mon Aug 17, 2009 10:37 pm
Zend Core v2.6.1
i5/OS V6R1M0
Installed Zend Core, with what appears to be no issues. However, daily I receive a log in my root regarding a connection to the Zend Core Update Server:
1. Where do I configure the path of these logs? I don't want them in my root, but in some sub directory.
2. How do I fix this (following) error?
- Aug 17 06:00:00 [info] Starting installation...
Aug 17 06:00:00 [info] Executing: uname -s 2>/dev/null
Aug 17 06:00:01 [info] uname -s 2>/dev/null has returned exit status: 0
Aug 17 06:00:01 [info] Sysname: OS400
Aug 17 06:00:01 [info] Executing: uname -p 2>/dev/null
Aug 17 06:00:01 [info] uname -p 2>/dev/null has returned exit status: 0
Aug 17 06:00:01 [info] Machine: powerpc
Aug 17 06:00:01 [info] Executing: uname -n 2>/dev/null
Aug 17 06:00:01 [info] uname -n 2>/dev/null has returned exit status: 0
Aug 17 06:00:01 [info] Nodename: AS400B05
Aug 17 06:00:01 [info] Executing: uname -r 2>/dev/null
Aug 17 06:00:01 [info] uname -r 2>/dev/null has returned exit status: 0
Aug 17 06:00:01 [info] Release: 1
Aug 17 06:00:01 [info] open config file at:/usr/local/Zend/Core/setup/installer/core.ini
Aug 17 06:01:18 [critical] ERROR: Cannot connect to ZendCore Update Server
Aug 17 06:01:18 [critical] #0 /usr/local/Zend/Core/setup/installer/utils/uc.inc(163): uc_http_request()
#1 /usr/local/Zend/Core/setup/installer/utils/uc.inc(191): uc_call_server()
#2 /usr/local/Zend/Core/setup/installer/utils/sconn.inc(34): uc_get_xml('Cookie: h=local...', '', NULL, NULL)
#3 /usr/local/Zend/Core/setup/installer/packages/zendcore.inc(651): ServerConnection->get_update_xml('us.get_xml', Array, NULL)
#4 /usr/local/Zend/Core/setup/installer/packages/zendcore.inc(481): InstalledZendCore->getUpdateXML('ZendCoreFori5_O...', '2', 'pase')
#5 /usr/local/Zend/Core/setup/installer/ui/comp/core/UIParamZendCore.php(59): InstalledZendCore->changes_available()
#6 /usr/local/Zend/Core/setup/installer/ui/comp/core/UIParamZendCoreUnattended.php(105): UIParamZendCore->getAvaliableComponentsToUpdate('online')
#7 [internal function]: UIParamZendCoreUnattended->getAvaliableComponentsToUpdate('online')
#8 /usr/local/Zend/Core/setup/installer/ui/paramdb/CacheParamDB.php(72): call_user_func_array(false, false)
#9 [internal function]: CacheParamDB->__call(false, false)
#10 /usr/local/Zend/Core/setup/installer/ui/comp/core/UICompProcedCore.inc(264): CacheParamDB->getAvaliableComponentsToUpdate(Array, Array)
#11 /usr/local/Zend/Core/setup/installer/ui/comp/UIComponentProcedure.inc(66): UICompProcedCore->doUpdate('getAvaliableCom...', Array)
#12 /usr/local/Zend/Core/setup/installer/ui/UserInteractiveMgr.php(417): UIComponentProcedure->update(false, false)
#13 /usr/local/Zend/Core/setup/installer/ui/UserInteractiveMgr.php(317): UserInteractiveMgr->cliBasedUpdate('modlist', NULL)
#14 /usr/local/Zend/Core/setup/installer/setup.php(81): UserInteractiveMgr->update('modlist')
#15 /usr/local/Zend/Core/setup/update.php(4): include('/usr/local/Zend...')
#16 {main}
Thanks in advance...
-
scottgcampbell
- Posts: 187
- Joined: Wed Apr 22, 2009 2:29 pm
- Location: Edmonton, AB, Canada
Post
by scottgcampbell » Tue Aug 18, 2009 7:57 pm
It's trying to connect to check for updates.
Is your AS400 able to make connections out to the internet or is that restricted?
You can stop the job from running by
go zendcore/zcmenu
2. Update via Zend Network menu
then
3. Work with Updater scheduled jobs
or
4. Remove all Updater scheduled jobs
Perhaps if you look at the job maybe you can determine how to change it to write to the directory you want.
-
hessrk
- Posts: 4
- Joined: Mon Aug 17, 2009 10:25 pm
Post
by hessrk » Wed Aug 19, 2009 8:41 pm
Just an FYI:
I got in touch with support and there is no configuration for this log.
Below is the code to move to another folder and clean after 15 days of age:
Code: Select all
/*===================================================================+
+
Clean IFS Root of Zendcore logs +
+
===================================================================*/
PGM
DCL &JOBTYPE *CHAR 1
DCL &MSGDTA *CHAR 256
DCL &MSGF *CHAR 10
DCL &MSGFLIB *CHAR 10
DCL &MSGID *CHAR 7
DCL &RTNTYPE *CHAR 2
DCL &MSG_FLAG *LGL 1 VALUE('0')
DCL &@BLANKS *CHAR 1 VALUE(' ')
DCL &@DIAG *CHAR 2 VALUE('02')
DCL &@ESCAPE *CHAR 2 VALUE('15')
DCL &@FALSE *LGL 1 VALUE('0')
DCL &@TRUE *LGL 1 VALUE('1')
DCL &CDATE *CHAR 6
DCL &JCDATE *CHAR 7
DCL &FDATE *CHAR 8
DCL &JFDATE *CHAR 7
DCL &N1 *DEC 7
DCL &N2 *DEC 7
DCL &NUMDAYS *DEC 2
DCL &OBJPATH *CHAR 53
DCLF FILE(ZENDLOGS) OPNID(F1)
MONMSG CPF9999 EXEC(GOTO GLOBAL_ERR)
RTVJOBA TYPE(&JOBTYPE)
IF (&JOBTYPE = '1') DO
SNDPGMMSG MSGID(CPF9898) MSGF(QSYS/QCPFMSG) +
MSGDTA('CLNRTZEND submitted to batch') +
MSGTYPE(*COMP)
SBMJOB CMD(CALL PGM(CLNRTZEND)) JOB(CLNRTZEND) +
JOBD(HESSRK/BATCH)
GOTO FINISH
ENDDO
/*===================================================================*/
CHGJOB DATFMT(*MDY)
RTVJOBA DATE(&CDATE) /* Retrieve current date */
CVTDAT DATE(&CDATE) TOVAR(&JCDATE) FROMFMT(*MDY) +
TOFMT(*LONGJUL) TOSEP(*NONE)
MOV OBJ('/zendcore_2*.log') +
TODIR('/usr/local/Zend/Core/logs') /* +
move any zendcore_2*.log file to log +
folder */
MONMSG MSGID(CPFA093) /* Name matching pattern not +
found */
CRTPF FILE(QGPL/ZENDLOGS) RCDLEN(53) TEXT('File +
for Zend logs for CLNRTZEND - Do Not Delete')
MONMSG MSGID(CPF7302 CPF5813) EXEC(CLRPFM +
FILE(*LIBL/ZENDLOGS)) /* File not created +
in library or already in library */
QSH CMD('ls /usr/local/Zend/Core/logs > +
/qsys.lib/qgpl.lib/zendlogs.file/zendlogs.m+
br') /* get IFS list and copy to file */
README: RCVF OPNID(F1)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(ENDFILE))
CHGVAR VAR(&FDATE) VALUE(%SST(&F1_ZENDLOGS 10 8))
CVTDAT DATE(&FDATE) TOVAR(&JFDATE) FROMFMT(*YYMD) +
TOFMT(*LONGJUL) TOSEP(*NONE)
MONMSG MSGID(CPF0550) EXEC(DO)
SNDPGMMSG MSGID(CPF9898) MSGF(QSYS/QCPFMSG) +
MSGDTA('File not valid for date +
validation:' |> &F1_ZENDLOGS) MSGTYPE(*INFO)
GOTO CMDLBL(LOOP)
ENDDO
CHGVAR VAR(&N1) VALUE(&JCDATE) /* convert to number */
CHGVAR VAR(&N2) VALUE(&JFDATE) /* convert to number */
CHGVAR VAR(&NUMDAYS) VALUE(&N1 - &N2)
IF COND(&NUMDAYS > 15) THEN(DO)
CHGVAR VAR(&OBJPATH) +
VALUE('/usr/local/Zend/Core/logs/' |< +
&F1_ZENDLOGS)
RMVLNK OBJLNK(&OBJPATH)
SNDPGMMSG MSGID(CPF9898) MSGF(QSYS/QCPFMSG) +
MSGDTA('Log entry deleted:' |> &OBJPATH) +
MSGTYPE(*COMP)
ENDDO
GOTO CMDLBL(README)
ENDFILE:
CLOF OPNID(F1)
MONMSG MSGID(CPF4520) /* no file with id */
CLRPFM FILE(QGPL/ZENDLOGS)
/*===================================================================*/
GOTO RSND_BGN
GLOBAL_ERR:
IF (&MSG_FLAG) DO
SNDPGMMSG MSGID(CPF9898) +
MSGF(QSYS/QCPFMSG) +
MSGDTA('Error in message handling process' || +
'detected during a program failure.' || +
' See joblog for details') +
MSGTYPE(*ESCAPE)
MONMSG CPF0000 EXEC(RETURN)
ENDDO
CHGVAR &MSG_FLAG &@TRUE
RSND_BGN:
IF (&MSG_FLAG) DO
RSND_RPT:
RCVMSG MSGDTA(&MSGDTA) +
RMV(*YES) +
MSGID(&MSGID) +
RTNTYPE(&RTNTYPE) +
MSGF(&MSGF) +
MSGFLIB(&MSGFLIB)
MONMSG CPF0000 EXEC(GOTO RSND_END)
IF (&MSGID = &@BLANKS) GOTO RSND_END
IF (&RTNTYPE = &@DIAG *OR &RTNTYPE = &@ESCAPE) DO
SNDPGMMSG MSGID(&MSGID) +
MSGF(&MSGFLIB/&MSGF) +
MSGDTA(&MSGDTA) +
MSGTYPE(*DIAG)
MONMSG CPF0000 EXEC(GOTO RSND_END)
ENDDO
GOTO RSND_RPT
RSND_END:
SNDPGMMSG MSGID(CPF9898) +
MSGF(QSYS/QCPFMSG) +
MSGDTA('Operation ended in error.' || +
' See previously listed messages') +
MSGTYPE(*ESCAPE)
MONMSG CPF0000 EXEC(GOTO FINISH)
ENDDO
FINISH:
RETURN
ENDPGM
-
rodflohr
- Zend Global Support
- Posts: 56
- Joined: Mon Dec 29, 2008 5:28 pm
Post
by rodflohr » Wed Aug 26, 2009 3:45 am
The most common reason the Core Updater cannot connect is because the Zend User ID and password have not been set up. To set them up, go to the Updater menu from a 5250 command line:
GO ZENDCORE/ZCUMENU
Use option "1. Change Network ID user/password". The User ID and Password are the same ones you use to log in at zend.com to download software, check your licenses, submit support tickets, etc. At zend.com you can use either your User ID or email address to log in, but here it must be the User ID. The email address will not work. Also, you should avoid special characters, because some of them will not translate correctly from EBCDIC to ASCII.
To verify your User ID and Password are entered correctly, go to the Zend Core Admin interface in your web browser at http://<your i5 ip address>:89/ZendCore/ Go to Control Center -> Updates, and click the Check Updates link. If you are able to check the updates successfully, you are good to go.
-
shlomov
- Zend Global Support
- Posts: 139
- Joined: Mon Dec 29, 2008 2:38 pm
Post
by shlomov » Wed Aug 26, 2009 11:27 am
1. make sure your i5 can does not have any network restrictions on accessing the web.
2. For more information on the update possibilities please follow this link:
viewtopic.php?f=64&t=355
Shlomo Vanunu
IBM System i
-
fppq01
- Posts: 6
- Joined: Tue May 26, 2009 7:11 pm
Post
by fppq01 » Thu Feb 18, 2010 3:35 pm
Wich port Zend need to go out for is update job?
My server is in restricted zone, it would be usefull to know the TCP port that is used
shlomov wrote:1. make sure your i5 can does not have any network restrictions on accessing the web.
2. For more information on the update possibilities please follow this link:
viewtopic.php?f=64&t=355
-
schnapsten
- Posts: 4
- Joined: Thu Oct 27, 2011 10:38 am
Post
by schnapsten » Thu Oct 27, 2011 10:42 am
Create a savf file on the iSeries server using the
CRTSAVF FILE(QGPL/ZCORESAVF)
command, and FTP the installation savf file over to the iSeries server into the above savf file.
Restore the object using the following command:
RSTOBJ OBJ(ZENDRSTPRD) SAVLIB(ZENDCORE) DEV(*SAVF)
SAVF(QGPL/ZCORESAVF) MBROPT(*ALL) ALWOBJDIF(*ALL) RSTLIB(QGPL)
-
luftek
- Posts: 1
- Joined: Wed Nov 02, 2011 7:54 am
Post
by luftek » Wed Nov 02, 2011 7:56 am
schnapsten, good suggestion, thank you for that. It works.