Project

General

Profile

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

  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.

inotify.txt View (335 Bytes) Jason Prouty, 12/22/2016 05:12 PM

test.sh.txt View (1.04 KB) Jason Prouty, 12/22/2016 05:26 PM

Add picture from clipboard (Maximum size: 10 MB)