Forum Discussion

V_P_S's avatar
V_P_S
Level 4
12 years ago

Unified logs and legacy logs

Hello All, Can someone plz explain me that what is unified logs and legacy logs.. And what is the diff. between them..   An interviewer ask me this question and i am not able to give ans.. ...
  • mph999's avatar
    12 years ago

    This is some details I posted previously about the problems with reading vx logs.   For your info ...

     

     

    vx logs are very difficult to read, because they are multithreaded.  From example, if we look in say the bptm log (not a vx log and single threaded) you can read it like a book.
     
    [1234] xxxx
    [1234] xxxx
    [1234] xxxx
    [1244] yyyy
    [1244] yyyy
    [1244] yyyy
     
    Where xxxx and yyyy are lines relating to a particular 'activity'
     
    So if I search all the lines containing a given 'PID' (shown in [xxx] ) then those lines relate to a single activity, eg. mounting a tape.
     
    With VX logs the PID (process ID ) is shown, and TID (Thread ID)
     
    nbemm 111 PID:20454 TID:6 
     
    The problem, is that if xxx and yyy are lines relating to a particular activity ...
     
    nbemm 111 PID:20454 TID:6  xxxx
    nbemm 111 PID:20454 TID:6  yyyy
    nbemm 111 PID:20454 TID:7  xxxx
     
    One second, TID 6 could be dealing with the 'activity', the next moment, TID 6 is dealing with some other activity (yyyy) and TID 7 has taken over 'xxxx'.
     
    That means if I search for all the TID 6 lines, I get multiple lines returned that could have nothing to do with each other,
     
    Unfortunately, NBU is too complex for any one person to know exactly what the logs lines will be for every possibly thing NBU can do ... therefore the only way to read these logs:
     
    1/ You need to know what NBU will do next and to be able to find the next line in the sequence.
     
    or
     
    2/  Run the job on a working machine and compare the logs line by line to spot the differencies.
     
     
    Generally, I use both 1/ and 2/ when reading these logs.  For something 'simple' like a backup, I know the main steps thet appear in the logs, so I canfind one line and then look for the next.
     
    For example, NBPEM will start a backup ,and then submit the job to nbjm
     
    So, I find the line in nbpem that shows the job starting, and I then know that the next line I have to look for is where nbpem gos to contact nbjm, which may, or may not be the same TID).
     
    But...
     
    If I have an issue I have never seen before, I have no idea what the logs should be showing, I then usually run the job on a working system to get the logs, and then compare these to the non-working logs.
     
    With legacy logs (bptm etc ...) we don't have this issue, you can just spearate the logs out by searching for the individual PIDs.
     
    Martin