Featured image of post Compare AudioCodes SBC INI Files ๐Ÿ”Ž

Compare AudioCodes SBC INI Files ๐Ÿ”Ž

A PowerShell script to analyze and compare AudioCodes SBC INI configuration files

The Challenge with AudioCodes SBC Configurations

If youโ€™ve worked with AudioCodes Session Border Controllers (SBCs), you know that comparing INI configuration files can be tricky. These files are packed with sections like IP Profiles, where endless strings of 0s and 1s which will make spotting differences feel like searching for needles in a haystack. Manual reviews sometimes miss subtle changes in parameters that could lead to issues in call handling. This is especially true when you have multiple SBCs in an “active-active-cluster” setup. The challenge is to quickly identify whatโ€™s changed, whatโ€™s missing, and what could potentially cause problems.

PowerShell to the Rescue

Iโ€™ve developed a PowerShell script to simplify comparisons of AudioCodes SBC INI files. It parses the structured format, identifies variances in sections like IP-Profiles and generates a clean HTML report if there are differences.

๐Ÿ› ๏ธ SBC-Focused compare:

  • General settings
  • Table based settings like IP Profiles
    • Drifted settings
    • Missing Rows

๐Ÿ“‹ HTML Report Features

  • Customizable displayname for each SBC
  • Clear section-by-section comparison
  • Highlighted differences for easy spotting

Sample Output

Hereโ€™s a screenshot of the HTML report generated by the script, showing differences between two SBC INI files (click to enlarge):

Sample Output Screenshot

Getting Started with the Script

  1. Clone or download from the repo.
  2. Launch PowerShell and move to the script folder.
  3. Compare with:
1
2
3
4
5
6
.\Compare-ACSBCIniFiles.ps1  `
    -SBCIniFilePath1 "C:\Temp\SBC1.ini"  `
    -SBCName1 "Old Config File" `
    -SBCIniFilePath2 "C:\Temp\SBC2.ini" `
    -SBCName2 "New Config File" `
    -ReportFilePath "C:\Temp\SBC-Comparison.html"
  1. Open the generated HTML report in your browser.

GitHub Repository

You can find the script in the GitHub repository: AudioCodes SBC INI File Comparison

Current Limitations

One current limitation is (at least for now ๐Ÿ˜‰) the handling of missmatching indexes but with the same content. For example, if both INI files have an IP Profile with the profile name “Teams” with the same settings, but on the first SBC it’s listed as index 0 and on the second SBC as index 1, the script could not match them correctly and will show them as different.

Last updated on Jul 19, 2025 11:00 CET
... all without guarantee - more like thoughts and inspiration ;)
Built with Hugo
Theme Stack designed by Jimmy