Download Simple Network Management Protocol (SNMP)

Transcript
snmpa_conf
snmpa_conf
Erlang module
The module snmpa_conf contains various utility functions to used for manipulating (write/append/read) the config
files of the SNMP agent.
DATA TYPES
transportDomain() = transportDomainUdpIpv4 |
transportAddressIPv4() = [integer()], length
transportAddressIPv6() = [integer()], length
transportAddressMask() = [integer()], length
transportDomainUdpIpv6
4
8
0 (default), 6 (IPv4) or 10 (IPv6)
Exports
agent_entry(Tag, Val) -> agent_entry()
Types:
Tag = intAgentIpAddress | intAgentUDPPort | intAgentMaxPacketSize |
snmpEngineMaxMessageSize | snmpEngineID
Val = term()
agent_entry() = term()
Create an entry for the agent config file, agent.conf.
The type of Val depends on the value of Tag, see Agent Information for more info.
write_agent_config(Dir, Conf) -> ok
write_agent_config(Dir, Hdr, Conf) -> ok
Types:
Dir = string()
Hdr = string()
Conf = [agent_entry()]
Write the agent config to the agent config file.
Dir is the path to the directory where to store the config file.
Hdr is an optional file header (note that this text is written to the file as is).
See Agent Information for more info.
append_agent_config(Dir, Conf) -> ok
Types:
Dir = string()
Conf = [agent_entry()]
Append the config to the current agent config file.
Dir is the path to the directory where to store the config file.
112 | Ericsson AB. All Rights Reserved.: Simple Network Management Protocol (SNMP)