The module
The following data-types are used in the functions below:
See
A simple interactive configuration tool. Simple configuration files can be generated, but more complex configurations still have to be edited manually.
The tool is a textual based tool that asks some questions
and generates
Note that if the application shall support version 3, then the crypto app must be started before running this function (password generation).
Note also that some of the configuration files for the agent and manager share the same names. This means that they have to be stored in different directories!
Starts the SNMP application.
See
The SNMP application consists of several entities, of which the agent is one. This function starts the agent entity of the application.
Note that the only way to actually start the agent in this way is
to add the agent related config after starting the application (e.g
it cannot be part of the normal application config; sys.config).
This is done by calling:
The default value for
The SNMP application consists of several entities, of which the manager is one. This function starts the manager entity of the application.
Note that the only way to actually start the manager in this way is
to add the manager related config after starting the application (e.g
it cannot be part of the normal application config; sys.config).
This is done by calling:
The default value for
Returns current date and time as the data type DateAndTime, as specified in RFC1903. This is an OCTET STRING.
Converts a DateAndTime list to a list of possible universal time(s). The universal time value on the same format as defined in calendar(3).
Converts a DateAndTime list to a printable string, according to the DISPLAY-HINT definition in RFC2579.
The validation fun,
Converts a DateAndTime list to a printable string, according to the DISPLAY-HINT definition in RFC2579, with the extension that it also allows the values "hours from UTC" = 14 together with "minutes from UTC" = 0.
Converts a local time value to a list of possible DateAndTime list(s). The local time value on the same format as defined in calendar(3).
Converts a universal time value to a DateAndTime list. The universal time value on the same format as defined in calendar(3).
Checks if
The validation fun,
Kind Data -------------- ---------------------- year {Year1, Year2} month Month day Day hour Hour minute Minute seconds Seconds deci_seconds DeciSeconds diff [Sign, Hour, Minute] valid_date {Year, Month, Day}
Generates a key that can be used as an authentication or privacy key using MD5 och SHA. The key is localized for EngineID.
Utility function for converting a value of type
Utility function for converting a value of type
Read a compiled mib.
Converts an Audit Trail Log to a readable text file, where each item has a trailing TAB character, and any TAB character in the body of an item has been replaced by ESC TAB.
The function can be used on a running system, or by copying the entire log directory and calling this function. SNMP must be running in order to provide MIB information.
The format of an audit trail log text item is as follows:
where
Changes the log size of the Audit Trail Log. The application must be configured to use the audit trail log function. Please refer to disk_log(3) in Kernel Reference Manual for a description of how to change the log size.
The change is permanent, as long as the log is not deleted. That means, the log size is remembered across reboots.
Utility function(s) to produce a formatted printout of the versions
info generated by the
This is the same as doing, e.g.:
{ok, V} = snmp:versions1(), snmp:print_versions(V).
Utility functions used to retrieve some system and application info.
The difference between the two functions is in how they get
the modules to check.
Utility function to produce a formatted printout of the versions
info generated by the
Example:
{ok, V} = snmp:versions1(), snmp:print_versions(V).
Starts a dbg tracer that prints trace events to stdout (using plain io:format after a minor formatting).
Stop the tracer.
This function is used to set up default trace on function(s) for the given module or modules. The scope of the trace will be all exported functions (both the call info and the return value). Timestamp info will also be included.
This function is used to reset (disable) trace for the given module(s).
This function is used to set up trace on function(s) for the given module or modules.
The example below sets up trace on the exported functions (default)
of module
snmp:enable_trace(), snmp:set_trace([snmp_generic, {snmp_generic_mnesia, [{scope, all_functions}]}]), . . . snmp:set_trace(snmp_generic, disable), . . . snmp:disable_trace(),
calendar(3)