Endevor

 View Only

 The E2ELOGMBR is there any automatic cleanup and how to determine sizing ?

kathy.decker1.1's profile image
kathy.decker1.1 posted Jun 21, 2023 09:16 AM

Does the E2ELOGMBR datasets just accumulate the data forever or is there some automatic cleanup that occurs or can be done (after a certain amount of days)?   Also what is a good way to determine how large they should be ?

Bernard Beriau's profile image
Broadcom Employee Bernard Beriau

Sadly, there is no utility that will delete these records if they are not "consumed" by the devop application that wants to use them.

A good approach is to have a script that will perform the deletes or delete them manually.

Our Web Service is recycled weekly and before the start of the Web Service, a step in the proc will execute the script to delete any record in the directory from the previous week.

It can become as sophisticated as you like.

Here is an example of the script that deleted all the elements written in 2021.

#!/bin/bash                                           
IWD="$PWD"                                            
###############################################       
# CLEAR REPORTS DIRECTORY                             
###############################################       
export NDVR_HOME=/u/users/CASoftware/ESCM/V181GA/tpv  
export PATH=$PATH:"${NDVR_HOME}"                      
                                                      
echo                                                  
echo "** Clear Event ELM Records from /EVENTS/elm **" 
echo                                                  
echo                                                  
# get current on EVENTS directory                     
                                                      
cd /u/users/CASoftware/ESCM/EVENTS/elm                
rm 202101*                                            
rm 202102*                                            
rm 202103*                                            
rm 202104*                                            
rm 202105*                                            
rm 202106*                                            
rm 202107*                                            
rm 202108*                                            
rm 202109*                                            
rm 202110*                                            
rm 202111*                                            
rm 202112*