Project

General

Profile

Soup config diffs » History » Version 3

Jason Prouty, 12/22/2016 05:55 PM

1 1 Jason Prouty
# Soup config diffs
2 1 Jason Prouty
3 1 Jason Prouty
Every time a configuration change is made or a  new configuration is loaded the config is saved to the soup server
4 1 Jason Prouty
The Soup Server saves inbound configurations to /opt/sdm/savefiles
5 1 Jason Prouty
6 1 Jason Prouty
The process of inotifywait is running watching for new files to be created in /opt/sdm/savefiles
7 1 Jason Prouty
The script for inotify is /opt/savefiles.sh
8 2 Jason Prouty
9 3 Jason Prouty
The Inotify script 
10 3 Jason Prouty
1. copies the file from /opt/sdm/savefiles and calls /opt/t/test.sh
11 3 Jason Prouty
2.  Runs the test.sh script
12 3 Jason Prouty
3.  output is save to /opt/sdm/config.log
13 3 Jason Prouty
14 3 Jason Prouty
The test.sh script
15 2 Jason Prouty
16 2 Jason Prouty
1. Reads the inbound file.
17 2 Jason Prouty
2. Parses the last 6 of MAC address out of the file name 
18 2 Jason Prouty
3. Changes the inbound file from Binary to ASCII 
19 2 Jason Prouty
   A.  Removes the admin/passwords
20 2 Jason Prouty
   B.  Removed the reactive section - 7710 have unique codes per ESN/MEID
21 2 Jason Prouty
4. Do a for loop against the comparefiles directory
22 2 Jason Prouty
5. Compare each file by diff and look at the output of diff.
Add picture from clipboard (Maximum size: 10 MB)