Project

General

Profile

Soup config diffs » History » Version 2

Version 1 (Jason Prouty, 12/22/2016 05:12 PM) → Version 2/3 (Jason Prouty, 12/22/2016 05:26 PM)

# 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 calls /opt/t/test.sh
This script

1. Reads the inbound file.
2. Parses the last 6 of MAC address out of the file name
3. 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
4. Do a for loop against the comparefiles directory
5. Compare each file by diff and look at the output of diff.



Add picture from clipboard (Maximum size: 10 MB)