Soup config diffs¶
Every time a configuration change is made or a new configuration is loaded the config is saved to the soup server
The Soup Server saves inbound configurations to /opt/sdm/savefiles
The process of inotifywait is running watching for new files to be created in /opt/sdm/savefiles
The script for inotify is /opt/savefiles.sh
The Inotify script
1. copies the file from /opt/sdm/savefiles and calls /opt/t/test.sh
2. Runs the test.sh script
3. output is save to /opt/sdm/config.log
The test.sh script
- Reads the inbound file.
- Parses the last 6 of MAC address out of the file name
- Changes the inbound file from Binary to ASCII A. Removes the admin/passwords B. Removed the reactive section - 7710 have unique codes per ESN/MEID
- Do a for loop against the comparefiles directory
- Compare each file by diff and look at the output of diff.