snmpa_mib_data
Module
snmpa_mib_data
Module Summary
Behaviour module for the SNMP agent mib-server
data module.
Since
Module snmpa_mib_data was introduced in
OTP R16B01.
Description
This module defines the behaviour of the SNMP agent mib-server data module. A snmpa_mib_data compliant module must export the following functions:
- new/1
- close/1
- sync/1
- load_mib/4
- unload_mib/4
- lookup/2
- next/3
- register_subagent/3
- unregister_subagent/2
- which_mib/2
- which_mibs/1
- whereis_mib/2
- dump/2
- info/1
- backup/2
- code_change/4
The semantics of them and their exact signatures are explained below.
Note that the data extracted from the imported (loaded) mibs are stored partly by the mib-server and partly by the symbolic-store server. See the default mib-server data module, snmpa_mib_data_tttn for details.
OTP R16B01 |
OTP R16B01 |
OTP R16B01 |
Types
State = term()
OTP R16B01 |
Types
State = NewState = term()
Filename = filename()
MeOverride = boolean()
TeOverride = boolean()
Reason = already_loaded | term()
OTP R16B01 |
Types
State = NewState = term()
Filename = filename()
Reason = not_loaded | term()
OTP R16B01 |
Types
State = term()
Reply = {variable, ME} | {table_column, ME, TEOid} | {subagent, SAPid, SAOid} | {false, Reason}
Oid = TEOid = SAOid = oid()
SAPid = pid()
ME = me()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = false | endOfTable | {subagent, SAPid, SAOid} | {variable, ME, VarOid} | {table, TableOid, TableRestOid, ME}
Oid = SAOid = VarOid = TableOid = TableRestOid = oid()
SAPid = pid()
ME = me()
OTP R16B01 |
Types
State = NewState = term()
Reply = {ok, NewState} | {error, Reason}
Oid = oid()
Pid = pid()
Reason = term()
OTP R16B01 |
Types
State = NewState = term()
Reply = {ok, NewState} | {ok, NewState, Pid} | {error, Reason}
PidOrOid = pid() | oid()
Pid = pid()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = ok | {error, Reason}
Destination = io | filename()
Pid = pid()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = {ok, MibFile} | {error, Reason}
Oid = oid()
MibFile = string()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = [{MibName, Filename}]
MibName = atom()
Filename = string()
OTP R16B01 |
Types
State = term()
MibName = atom()
Reply = {ok, Filename} | {error, Reason}
Filename = string()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = {ok, Filename} | {error, Reason}
Filename = string()
Reason = term()
OTP R16B01 |
Types
State = term()
Reply = ok | {error, Reason}
BackupDir = string()
Reason = term()
OTP R16B01 |
Types
Destination = up | down
Vsn = term()
Extra = term()
State = NewState = term()
Perform a code-change (upgrade or downgrade).
See gen_server for more info regarding the Vsn and Extra arguments.