IBM i Global

 View Only
  • 1.  What's the point of the QMGTC* libraries at IBM i 7.5?

    IBM Champion
    Posted Fri March 31, 2023 09:24 AM

    At IBM i 7.5 Management Central is no longer supported.  In fact if you try
    STRTCPSVR SERVER(*MGTC)
    CPF9898:  SERVER *MGTC NOT SUPPORTED.
    TCP1A10: MGTC server not started.
    TCP1A77:  STRTCPSVR completed successfully; however errors occurred.

    WRKLIB LIB(QMGTC*)
    shows: QMGTC, QMGTC2

    CREATE TABLE QTEMP.QMGTCUNION AS (
    select *
    from table(OBJECT_STATISTICS(
    'QMGTC',
    '*ALL'
    )) x) WITH DATA;
     
    INSERT INTO QTEMP.QMGTCUNION (
    select *
    from table(OBJECT_STATISTICS(
    'QMGTC2',
    '*ALL'
    )) x);
    SELECT OBJLIB, SUM(OBJSIZE) AS LIBRARY_SIZE, MAX(CHANGE_TIMESTAMP) AS LAST_CHANGED
    FROM QTEMP.QMGTCUNION
    GROUP BY OBJLIB;
    Returns:
    QMGTC2 113394212864 2023-03-31 00:00:28.000000
    QMGTC 609210368 2023-03-11 21:33:36.000000
    The last change date on QMGTC is the date when we migrated to our Power 10.
    But QMGTC2 has 113GB and it's changing.

    That midnight timestamp is not from any WRKJOBSCDE entries but it does match CFGPFRCOL<F4> CYCTIME

    According to
    SELECT OBJLIB, OBJNAME, OBJTYPE, OBJSIZE, CHANGE_TIMESTAMP
    FROM QTEMP.QMGTCUNION
    ORDER BY OBJSIZE desc;
    Almost all of the largest objects are *MGTCOL objects .

    According to the following, we've got them going back for years, but the most recent was at midnight:
    SELECT OBJLIB, OBJNAME, OBJTYPE, OBJSIZE, OBJCREATED
    FROM QTEMP.QMGTCUNION
    WHERE OBJTYPE='*MGTCOL'
    ORDER BY OBJCREATED;

    I'm assuming I can delete the older ones.
    Should it still be collecting this stuff?  If so, is the library name a misnomer?


    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------


  • 2.  RE: What's the point of the QMGTC* libraries at IBM i 7.5?

    IBM Champion
    Posted Fri March 31, 2023 09:42 AM

    Any reason not to pull this trigger?
    SELECT OBJLIB, OBJNAME, OBJTYPE, OBJSIZE, OBJCREATED,
    'DLTMGTCOL MGTCOL(' concat trim(objlib) concat '/' concat objname concat ')' as cmd,
    qcmdexc('DLTMGTCOL MGTCOL(' concat trim(objlib) concat '/' concat objname concat ')')
    FROM QTEMP.QMGTCUNION
    WHERE OBJTYPE='*MGTCOL'
    and objcreated < current timestamp - 30 days
    ORDER BY OBJCREATED;



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 3.  RE: What's the point of the QMGTC* libraries at IBM i 7.5?

    IBM Champion
    Posted Fri March 31, 2023 09:57 AM

    Simplified.
    To make it live, remove the two dashes.
    SELECT OBJLIB, OBJNAME, OBJTYPE, OBJSIZE, OBJCREATED,
    'DLTMGTCOL MGTCOL(' concat trim(objlib) concat '/' concat objname concat ')' as cmd
    -- , qcmdexc('DLTMGTCOL MGTCOL(' concat trim(objlib) concat '/' concat objname concat ')')
    from table(OBJECT_STATISTICS(
    'QMGTC2',
    '*MGTCOL'
    )) x
    WHERE objcreated < current timestamp - 30 days
    ORDER BY OBJCREATED;



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 4.  RE: What's the point of the QMGTC* libraries at IBM i 7.5?

    IBM Champion
    Posted Fri March 31, 2023 09:23 PM
    Edited by Satid Singkorapoom Sat April 01, 2023 04:11 AM

    Dear Robert

    By default, library QMGTC2 stores performance collection data (*MGTCOL object type) of the type *PFRDTL (graph data) and *PFRHST (summary data)  which are used by a GUI tool name Graph History that I used a lot in the distant past but no longer use for several years now that PDI provides more informative data for performance problem analysis.

    image-20200120131823-2
    Having had an improved version in Navigator for i in release 7.3, Graph History is still useful for keeping an eye on overview performance data (CPU utilization, memory faulting, disk % Busy, etc.) over a long period of time such as a full year that you can display in one chart for the purpose of knowing your long-term workload profile or for helping you make performance capacity sizing plan for anticipated future workload growth of your existing system.  If you have no need for it you can disable it or keep a retention of the data for a short time period using the command CFGPFRCOL + enter + F9 or use the Navigator GUI.

    This article discusses how to clean up Graph History data :  https://powerwire.eu/a-screen-a-story-graph-history/     

    More on Graph History here: 



    ------------------------------
    Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
    ------------------------------
    Satid S.
    ------------------------------



  • 5.  RE: What's the point of the QMGTC* libraries at IBM i 7.5?

    IBM Champion
    Posted Mon April 03, 2023 07:23 AM

    Ok, as Satid pointed out, and as people in the case I opened with IBM pointed out, these are still used.

    However, there is an APAR for 7.3-7.5 in which these collections are not being deleted when they expire.
    https://www.ibm.com/support/pages/apar/SE73899?mhsrc=ibmsearch_a&mhq=SE73899
    PTF's are listed at that APAR.  They are not in a cume or group at this time.

    There's also an old situation which may need some cleanup
    https://www.ibm.com/support/pages/ptf/SI73895
    The ptf listed isn't as important as the handling instructions are.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------