Search code examples
linuxunixconfiguration-files

What kind of configuration file is this?


I have the following config file, it was taken from a Unix/Linux like networking device.

I am trying to figure out if there is a name for such a kind of config file so that I can re-use an existing java/other library to parse it.

The config file content is as follows:

config site element Open
  instance Server001
    exit
config site module BTS Console Management enable
config site element Server001
    type TMonitor
    param alarmSource elements
    param criticalInputs 21
    param warningInputs 0
    param informationalInputs 4
component Server001
    param normalState close
    param description 'voltageFail'
    param discrete 'input 0/1'
    param debounceTime 0
    exit
component Server001
    param normalState close
    param description 'Dark Mode'
    param discrete 'input 0/2'
    exit

From the first glance it resembles a list of commands, but then you have tab indentation as well.

so

config site element Server001
    type TMonitor

would translate to

config site element Server001 type TMonitor

I would be interested in knowing the configuration file kind, ex: is it JSON, XML, TOML etc?


Solution

  • Looks like a Westell configuration file / list of commands.

    See http://support.westell.com/documents/Technical-Job-Aides/Westell_Troubleshooting_Procedure_v7.pdf