User Tools

Site Tools


tools:scan_slices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:scan_slices [2024/05/09 16:21] – created vigneshtools:scan_slices [2024/05/30 15:00] (current) vignesh
Line 1: Line 1:
 ====== Scan Slices ====== ====== Scan Slices ======
 +{{ :tools:scan_slices1.gif?200 |}}
 ** What is the use of the tools ? ** \\ ** What is the use of the tools ? ** \\
-  Scans a slice directory and checks it is present in the Metaslice or not  and also it compares the timestamp of the slice directory with the slice timestamp present in metaslice .+  Scan each slice directory and compares the details with metaslice db and prints the results in table-format 
 +   
 +** How it works ? ** \\ 
 +  * First,it get the timestamp of given slices directory  
 +  * Then ,Checks the slice is present or not in the meta-slice  
 +  * If present it compares the slice date present in the directory with slice details present in meta-slice  
 +  * The difference between the two timestamps should be below or equal to 10 min. 
 +  * And it also check the archive file is present in each slice directory and print the status in terminal
  
 + 
 ** Options ** \\ ** Options ** \\
  
-^ Syntax                                       ^ Info ^ +^ Syntax                                       ^ Info ^Description 
-./scan_slices .                       | Print all slice details of current directory | +| scan_slices .                       | Print all slice details of current directory | You should run this script in the slice directory | 
-./scan_slice SLICE_NAME               | Print details of specific slice              | +| scan_slice SLICE_NAME               | Print details of specific slice              | You should run this  script in slice directory & provide the specific slice name 
-./scan_slice /path/of/slice/directory | Print all slice details in a given directory |+| scan_slice /path/of/slice/directory | Print all slice details in a given directory | You should provide the absolute path of slice directory as argument | 
 +|**Optional Arguments** | 
 +| -d mismatched date                  | Prints slices which have date mismatch       | You should provide this -d as argument to any of the first 3 options | 
 +| -s slice missing in db              | Prints slices which are not present in db    | You should provide -s as argument to any of the first 3 options |
  
-** Tuples of details ** \\ +** Description of each column ** \\ 
 ^ Parameters ^Info ^ ^ Parameters ^Info ^
-| Slice name           | Represent the name of the slice given or directory | +| Slice name           | Represent the name of the slice given or directory   
-| Status               | Directory name of slices like oper,archive,ref     +| Status               | Directory name of slices like oper,archive,ref       
-| Instance                                                                |  +| Instance             Directory present in oper like 0,1,...                                                                   
-| Meta slice timestamp | It is present in the metaslice for a spefic slice  +| Meta slice timestamp | Each and every slice timestamp present in Db         
-| Topper timestamp     | It is present in the slice directory itself        |+| Topper timestamp     | It is present in the slice directory itself          | 
 +| Slide date           | A file that contains the date in the file name       | 
 +| Date-match           | compare the date between topper and meta-slice timestamp & check the difference is below 10 min or not | 
 +| Slice in db          | Check the slice is present in meta-slice db or not   | 
 +| Archive              | check if archive file is present or not              |
  
  
 +** Example 1 ** \\
 +/usr/local/share/trisul-hub/scan_slices.sh .
 +{{:tools:scan_slice.png?900|}}
 +<note>You can get the details of specific slice or every slice in the directory </note>
  
 +** Example 2 ** \\
 +/usr/local/share/trisul-hub/scan_slices.sh . -d
 +{{:tools:scan_slices2.png?900|}}
  
tools/scan_slices.1715251860.txt.gz · Last modified: 2024/05/09 16:21 by vignesh