The application specific SNMP agent gets configured by a the file 'snmp.setup'. If this file exists in the VLC's home directory while the M&C server starts, the SNMP agent is started. The sat-nms software contains a utility program called 'create-snmp.template' to create a template of this file including all parameters of a particular M&C / VLC. The file is a text file using the following format:
Global settings
The file 'snmp.setup' must define the global settings 'systemname', 'systemid' and 'traphost' before the first parameter identifier appears in the file. The order of appearance does not matter.
Parameter attributes
The software accepts the following parameter attribute keywords following a parameter identifier. The activate the corresponding translation option for this parameter.
MIB tree creation
When reading the 'snmp.setup' file, the software dynamically allocates MIB nodes for each parameter. The program splits up parameter identifiers at the dots and builds a MIB tree breaking down the M&C parameter structure along devices and subsystems. Node numbers are assigned automatically starting at 1, parent nodes are created as needed. This means, the order of the parameters in the 'snmp.setup' file determines the numbering of OIDs.
As a consequence of the automatic MIB tree creation, existing MIBs usually become invalid after a configuration change in a M&C, due to the renumbering of the OIDs.
However, with the knowledge about the OID assignment algorithm used by the software, minor configuration changes can be worked into the SNMP configuration while keeping the existing OID numbering unchanged. There are simply two rules to follow:
If you follow the rules above, you still can use the previous MIB of a M&C after an extension of the configuration. You however will not be able to access the added parameters as long you use the old MIB.
'snmp.setup' Example
The example below shows the contents of a short 'snmp.setup' file.
### snmp.setup example
### created on Thu Jun 22 19:11:18 GMT 2006
traphost 127.0.0.1
systemname vlc2345
systemid 2345
SUMMARY.fault TRAP
E1.fault TRAP
E1.mode RO
SW.fault TRAP
SW.mode RO
Fault messages
If the software encounters problems while it reads the 'snmp.setup' file, it issues fault messages to the sat-nms event log. Hence, after a change of the SNMP configuration, you should inspect the event log after the server restart. The following error messages are possible:
Unknown variable in line n of 'snmp.setup': The snmp.setup file references a sat-nms variable which does not exist. The reason may be a misspelled parameter name or you changed the sat-nms device setup without adapting the SNMP configuration.
Unknown attribute ABC in line n of 'snmp.setup': You specified a parameter attribute which is neither 'TRAP', 'TEXT' nor 'RO'.
Warning: 'snmp.setup' has 0 entries: There is a 'snmp.setup' file, but it does not specify any parameters
Failed to read 'snmp.setup': A general error occurred. Delete and recreate 'snmp.setup'.