From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/snmp/priv/conf/Makefile | 35 ++++++++++++++++ lib/snmp/priv/conf/agent/Makefile | 63 +++++++++++++++++++++++++++++ lib/snmp/priv/conf/agent/agent.conf | 17 ++++++++ lib/snmp/priv/conf/agent/community.conf | 14 +++++++ lib/snmp/priv/conf/agent/context.conf | 13 ++++++ lib/snmp/priv/conf/agent/files.mk | 22 ++++++++++ lib/snmp/priv/conf/agent/notify.conf | 12 ++++++ lib/snmp/priv/conf/agent/standard.conf | 20 +++++++++ lib/snmp/priv/conf/agent/target_addr.conf | 18 +++++++++ lib/snmp/priv/conf/agent/target_params.conf | 10 +++++ lib/snmp/priv/conf/agent/usm.conf | 15 +++++++ lib/snmp/priv/conf/agent/vacm.conf | 31 ++++++++++++++ lib/snmp/priv/conf/manager/Makefile | 63 +++++++++++++++++++++++++++++ lib/snmp/priv/conf/manager/agents.conf | 40 ++++++++++++++++++ lib/snmp/priv/conf/manager/files.mk | 20 +++++++++ lib/snmp/priv/conf/manager/manager.conf | 16 ++++++++ lib/snmp/priv/conf/manager/users.conf | 14 +++++++ lib/snmp/priv/conf/manager/usm.conf | 30 ++++++++++++++ lib/snmp/priv/conf/subdirs.mk | 21 ++++++++++ lib/snmp/priv/mibs/.gitignore | 0 20 files changed, 474 insertions(+) create mode 100644 lib/snmp/priv/conf/Makefile create mode 100644 lib/snmp/priv/conf/agent/Makefile create mode 100644 lib/snmp/priv/conf/agent/agent.conf create mode 100644 lib/snmp/priv/conf/agent/community.conf create mode 100644 lib/snmp/priv/conf/agent/context.conf create mode 100644 lib/snmp/priv/conf/agent/files.mk create mode 100644 lib/snmp/priv/conf/agent/notify.conf create mode 100644 lib/snmp/priv/conf/agent/standard.conf create mode 100644 lib/snmp/priv/conf/agent/target_addr.conf create mode 100644 lib/snmp/priv/conf/agent/target_params.conf create mode 100644 lib/snmp/priv/conf/agent/usm.conf create mode 100644 lib/snmp/priv/conf/agent/vacm.conf create mode 100644 lib/snmp/priv/conf/manager/Makefile create mode 100644 lib/snmp/priv/conf/manager/agents.conf create mode 100644 lib/snmp/priv/conf/manager/files.mk create mode 100644 lib/snmp/priv/conf/manager/manager.conf create mode 100644 lib/snmp/priv/conf/manager/users.conf create mode 100644 lib/snmp/priv/conf/manager/usm.conf create mode 100644 lib/snmp/priv/conf/subdirs.mk create mode 100644 lib/snmp/priv/mibs/.gitignore (limited to 'lib/snmp/priv') diff --git a/lib/snmp/priv/conf/Makefile b/lib/snmp/priv/conf/Makefile new file mode 100644 index 0000000000..341107ce30 --- /dev/null +++ b/lib/snmp/priv/conf/Makefile @@ -0,0 +1,35 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 2004-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +include $(ERL_TOP)/make/target.mk +include $(ERL_TOP)/make/$(TARGET)/otp.mk + +# ---------------------------------------------------- +# Common Macros +# ---------------------------------------------------- + +include subdirs.mk + +SPECIAL_TARGETS = + +# ---------------------------------------------------- +# Default Subdir Targets +# ---------------------------------------------------- +include $(ERL_TOP)/make/otp_subdir.mk + diff --git a/lib/snmp/priv/conf/agent/Makefile b/lib/snmp/priv/conf/agent/Makefile new file mode 100644 index 0000000000..ee3a915c2b --- /dev/null +++ b/lib/snmp/priv/conf/agent/Makefile @@ -0,0 +1,63 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 1996-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +include $(ERL_TOP)/make/target.mk +include $(ERL_TOP)/make/$(TARGET)/otp.mk + +# ---------------------------------------------------- +# Application version +# ---------------------------------------------------- +include ../../../vsn.mk + +VSN = $(SNMP_VSN) + +# ---------------------------------------------------- +# Release directory specification +# ---------------------------------------------------- +RELSYSDIR = $(RELEASE_PATH)/lib/snmp-$(VSN) + +# ---------------------------------------------------- +# Common macros +# ---------------------------------------------------- + +include files.mk + + +# ---------------------------------------------------- +# Targets +# ---------------------------------------------------- + +debug opt: + +clean: + +docs: + +# ---------------------------------------------------- +# Release Target +# ---------------------------------------------------- +include $(ERL_TOP)/make/otp_release_targets.mk + +release_spec: opt + $(INSTALL_DIR) $(RELSYSDIR)/priv/conf + $(INSTALL_DIR) $(RELSYSDIR)/priv/conf/agent + $(INSTALL_DATA) $(CONF_FILES) $(RELSYSDIR)/priv/conf/agent + +release_docs_spec: + diff --git a/lib/snmp/priv/conf/agent/agent.conf b/lib/snmp/priv/conf/agent/agent.conf new file mode 100644 index 0000000000..582be65fdc --- /dev/null +++ b/lib/snmp/priv/conf/agent/agent.conf @@ -0,0 +1,17 @@ +%% This file was generated by snmp_config (v1.1) 1996-5-29 15:38:48 +%% This files defines the Agent address info +%% The data is inserted into the intAgent* variables defined +%% in INTERNAL-MIB. +%% Each row is a 2-tuple: +%% {IntAgentVariable, Value}. +%% For example +%% {intAgentUDPPort, 4000}. +%% The ip address for the agent is sent as id in traps. +%% {intAgentIpAddress, [127,42,17,5]}. +%% {intAgentMaxPacketSize, 484}. + +{intAgentUDPPort, 4000}. +{intAgentIpAddress, [141,213,11,24]}. +{snmpEngineID, "mbj's engine"}. +{snmpEngineMaxMessageSize, 484}. + diff --git a/lib/snmp/priv/conf/agent/community.conf b/lib/snmp/priv/conf/agent/community.conf new file mode 100644 index 0000000000..a7457191a4 --- /dev/null +++ b/lib/snmp/priv/conf/agent/community.conf @@ -0,0 +1,14 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the community info which maps to VACM parameters. +%% The data is inserted into the snmpCommunityTable defined +%% in SNMP-COMMUNITY-MIB. +%% Each row is a 5-tuple: +%% {CommunityIndex, CommunityName, SecurityName, ContextName, TransportTag}. +%% For example +%% {1, "public", "initial", "", ""}. +%% {2, "secret", "secret_name", "", "tag"}. +%% {3, "bridge1", "initial", "bridge1", ""}. +%% +{"public", "public", "initial", "", ""}. +{"all-rights", "all-rights", "all-rights", "", ""}. +{"standard trap", "standard trap", "initial", "", ""}. diff --git a/lib/snmp/priv/conf/agent/context.conf b/lib/snmp/priv/conf/agent/context.conf new file mode 100644 index 0000000000..1dcba35643 --- /dev/null +++ b/lib/snmp/priv/conf/agent/context.conf @@ -0,0 +1,13 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the contexts known to the agent. +%% The data is inserted into the vacmContextTable defined +%% in SNMP-VIEW-BASED-ACM-MIB. +%% Each row is a string: +%% ContextName. +%% +%% The empty string is the default context. +%% For example +%% "bridge1". +%% "bridge2". +%% +"". diff --git a/lib/snmp/priv/conf/agent/files.mk b/lib/snmp/priv/conf/agent/files.mk new file mode 100644 index 0000000000..2f81515af9 --- /dev/null +++ b/lib/snmp/priv/conf/agent/files.mk @@ -0,0 +1,22 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 2001-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +CONF_FILES = agent.conf community.conf context.conf \ + notify.conf standard.conf target_addr.conf \ + target_params.conf usm.conf vacm.conf diff --git a/lib/snmp/priv/conf/agent/notify.conf b/lib/snmp/priv/conf/agent/notify.conf new file mode 100644 index 0000000000..96155f5963 --- /dev/null +++ b/lib/snmp/priv/conf/agent/notify.conf @@ -0,0 +1,12 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the notification parameters. +%% The data is inserted into the snmpNotifyTable defined +%% in SNMP-NOTIFICATION-MIB. +%% The Name is used as CommunityString for v1 and v2c. +%% Each row is a 3-tuple: +%% {Name, Tag, Type}. +%% For example +%% {"standard trap", "std_trap", trap}. +%% {"standard inform", "std_inform", inform}. +%% +{"standard trap", "std_trap", trap}. diff --git a/lib/snmp/priv/conf/agent/standard.conf b/lib/snmp/priv/conf/agent/standard.conf new file mode 100644 index 0000000000..c0070508e6 --- /dev/null +++ b/lib/snmp/priv/conf/agent/standard.conf @@ -0,0 +1,20 @@ +%% This file was generated by snmp_config (v1.1) 1996-5-29 15:38:48 +%% This files defines the STANDARD-MIB info. +%% Each row is a 2-tuple: +%% {StandardVariable, Value}. +%% For example +%% {sysDescr, "Erlang SNMPv1 agent"}. +%% {sysObjectID, [1,2,3]}. +%% {sysContact, "(mbj,eklas)@erlang.ericsson.se"}. +%% {sysName, "test"}. +%% {sysLocation, "erlang"}. +%% {sysServices, 72}. +%% {snmpEnableAuthenTraps, enabled}. +%% +{sysDescr, "Erlang SNMPv1 agent"}. +{sysObjectID, [1,2,3]}. +{sysContact, "(mbj,eklas)@erlang.ericsson.se"}. +{sysLocation, "erlang"}. +{sysServices, 72}. +{snmpEnableAuthenTraps, enabled}. +{sysName, "My own foo agent"}. diff --git a/lib/snmp/priv/conf/agent/target_addr.conf b/lib/snmp/priv/conf/agent/target_addr.conf new file mode 100644 index 0000000000..33a5d0d4c4 --- /dev/null +++ b/lib/snmp/priv/conf/agent/target_addr.conf @@ -0,0 +1,18 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the target address parameters. +%% The data is inserted into the snmpTargetAddrTable defined +%% in SNMP-TARGET-MIB, and in the snmpTargeAddrExtTabke defined +%% in SNMP-COMMUNITY-MIB. +%% Each row is a 9-tuple: +%% {Name, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId, +%% TMask, MaxMessageSize}. +%% The EngineId value is only used if Inform-Requests are sent to this +%% target. If Informs are not sent, this value is ignored, and can be +%% e.g. an empty string. However, if Informs are sent, it is essential +%% that the value of EngineId matches the value of the target's +%% actual snmpEngineID. +%% For example +%% {"1.2.3.4 v1", [1,2,3,4], 162, 1500, 3, "std_inform", "otp_v2", "", +%% [127,0,0,0], 2048}. +%% +{"141,213,11,24 v3", [141,213,11,24], 5000, 1500, 3, "std_trap", "target_v3", "", [], 2048}. diff --git a/lib/snmp/priv/conf/agent/target_params.conf b/lib/snmp/priv/conf/agent/target_params.conf new file mode 100644 index 0000000000..5ad3363f6d --- /dev/null +++ b/lib/snmp/priv/conf/agent/target_params.conf @@ -0,0 +1,10 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the target parameters. +%% The data is inserted into the snmpTargetParamsTable defined +%% in SNMP-TARGET-MIB. +%% Each row is a 5-tuple: +%% {Name, MPModel, SecurityModel, SecurityName, SecurityLevel}. +%% For example +%% {"target_v3", v3, usm, "", noAuthNoPriv}. +%% +{"target_v3", v3, usm, "initial", noAuthNoPriv}. diff --git a/lib/snmp/priv/conf/agent/usm.conf b/lib/snmp/priv/conf/agent/usm.conf new file mode 100644 index 0000000000..f379f47264 --- /dev/null +++ b/lib/snmp/priv/conf/agent/usm.conf @@ -0,0 +1,15 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the security parameters for the user-based +%% security model. +%% The data is inserted into the usmUserTable defined +%% in SNMP-USER-BASED-SM-MIB. +%% Each row is a 14-tuple: +%% {EngineID, UserName, SecName, Clone, AuthP, AuthKeyC, OwnAuthKeyC, +%% PrivP, PrivKeyC, OwnPrivKeyC, Public, AuthKey, PrivKey}. +%% For example +%% {"agentEngine", "initial", "initial", zeroDotZero, +%% usmNoAuthProtocol, "", "", usmNoPrivProtocol, "", "", "", +%% "", ""}. +%% + +{"mbj's engine", "initial", "initial", zeroDotZero, usmNoAuthProtocol, "", "", usmNoPrivProtocol, "", "", "", "", ""}. diff --git a/lib/snmp/priv/conf/agent/vacm.conf b/lib/snmp/priv/conf/agent/vacm.conf new file mode 100644 index 0000000000..31499ee811 --- /dev/null +++ b/lib/snmp/priv/conf/agent/vacm.conf @@ -0,0 +1,31 @@ +%% This file was generated by snmp_config (v3.0) 2001-04-04 14:29:04 +%% This files defines the Mib Views. +%% The data is inserted into the vacm* tables defined +%% in SNMP-VIEW-BASED-ACM-MIB. +%% Each row is one of 3 tuples; one for each table in the MIB: +%% {vacmSecurityToGroup, SecModel, SecName, GroupName}. +%% {vacmAccess, GroupName, Prefix, SecModel, SecLevel, Match, RV, WV, NV}. +%% {vacmViewTreeFamily, ViewIndex, ViewSubtree, ViewStatus, ViewMask}. +%% For example +%% {vacmSecurityToGroup, v2c, "initial", "initial"}. +%% {vacmSecurityToGroup, usm, "initial", "initial"}. +%% read/notify access to system +%% {vacmAccess, "initial", "", any, noAuthNoPriv, exact, +%% "system", "", "system"}. +%% {vacmViewTreeFamily, "system", [1,3,6,1,2,1,1], included, null}. +%% {vacmViewTreeFamily, "exmib", [1,3,6,1,3], included, null}. % for EX1-MIB +%% {vacmViewTreeFamily, "internet", [1,3,6,1], included, null}. +%% + +{vacmSecurityToGroup, usm, "initial", "initial"}. +{vacmSecurityToGroup, usm, "all-rights", "all-rights"}. + +{vacmAccess, "initial", "", any, noAuthNoPriv, exact, "restricted", "", "restricted"}. +{vacmAccess, "initial", "", usm, authNoPriv, exact, "internet", "internet", "internet"}. +{vacmAccess, "initial", "", usm, authPriv, exact, "internet", "internet", "internet"}. + +{vacmAccess, "all-rights", "", any, noAuthNoPriv, exact, "internet", "internet", "internet"}. + +{vacmViewTreeFamily, "internet", [1,3,6,1], included, null}. +{vacmViewTreeFamily, "restricted", [1,3,6,1], included, null}. + diff --git a/lib/snmp/priv/conf/manager/Makefile b/lib/snmp/priv/conf/manager/Makefile new file mode 100644 index 0000000000..16355f0ff3 --- /dev/null +++ b/lib/snmp/priv/conf/manager/Makefile @@ -0,0 +1,63 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 2004-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +include $(ERL_TOP)/make/target.mk +include $(ERL_TOP)/make/$(TARGET)/otp.mk + +# ---------------------------------------------------- +# Application version +# ---------------------------------------------------- +include ../../../vsn.mk + +VSN = $(SNMP_VSN) + +# ---------------------------------------------------- +# Release directory specification +# ---------------------------------------------------- +RELSYSDIR = $(RELEASE_PATH)/lib/snmp-$(VSN) + +# ---------------------------------------------------- +# Common macros +# ---------------------------------------------------- + +include files.mk + + +# ---------------------------------------------------- +# Targets +# ---------------------------------------------------- + +debug opt: + +clean: + +docs: + +# ---------------------------------------------------- +# Release Target +# ---------------------------------------------------- +include $(ERL_TOP)/make/otp_release_targets.mk + +release_spec: opt + $(INSTALL_DIR) $(RELSYSDIR)/priv/conf + $(INSTALL_DIR) $(RELSYSDIR)/priv/conf/manager + $(INSTALL_DATA) $(CONF_FILES) $(RELSYSDIR)/priv/conf/manager + +release_docs_spec: + diff --git a/lib/snmp/priv/conf/manager/agents.conf b/lib/snmp/priv/conf/manager/agents.conf new file mode 100644 index 0000000000..7f9b3d60ab --- /dev/null +++ b/lib/snmp/priv/conf/manager/agents.conf @@ -0,0 +1,40 @@ +%% agents.conf +%% +%% Configuration for each agent the manager shall handle. +%% (Relevant parts of the snmpTargetAddrTable and snmpTargetParamsTable) +%% +%% {UserId, +%% TargetName, Comm, Ip, Port, EngineID, Timeout, MaxMessageSize, +%% Version, SecModel, SecName, SecLevel} +%% +%% UserId -> User identity of "manager entity" responsible for this +%% agent: term() +%% TargetName -> string(), length > 0 (Name associated with the agent) +%% Comm -> string(), length > 0 (Community string) +%% Ip -> [integer()] (Host address as a list of integers) +%% Port -> integer() > 0 +%% EngineID -> string() +%% Timeout -> infinity (no retransmission) | integer() > 0 | +%% incr_timer() +%% (Can be overridden when sending a sync message) +%% MaxMessageSize -> integer() >= 484 +%% Version -> v1 | v2 | v3 +%% SecModel -> any | v1 | v2c | usm +%% SecName -> string() +%% SecLevel -> noAuthNoPriv | authNoPriv | authPriv +%% +%% incr_timer() -> {wait_for(), factor(). incr(), retry()} +%% wait_for() -> integer() (Initial timeout (milli seconds)) +%% factor() -> integer() (Factor to multiply with at timeout) +%% incr() -> integer() (Milli seconds to add at timeout) +%% retry() -> integer() (Number of retransmissions) + +%% Example: +{user_id_1, + "targ-hobbes", "comm1", [192,168,0,100], 162, "hobbe's agent", + 1500, 484, + v1, any, "initial", noAuthNoPriv}. +{"user_id_2", + "targ-calvin", "comm2", [192,168,0,101], 162, "calvin's agent", + {1500, 1, 0, 0}, 484, + v1, any, "initial", noAuthNoPriv}. diff --git a/lib/snmp/priv/conf/manager/files.mk b/lib/snmp/priv/conf/manager/files.mk new file mode 100644 index 0000000000..61dde77d93 --- /dev/null +++ b/lib/snmp/priv/conf/manager/files.mk @@ -0,0 +1,20 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 2004-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +CONF_FILES = manager.conf agents.conf users.conf diff --git a/lib/snmp/priv/conf/manager/manager.conf b/lib/snmp/priv/conf/manager/manager.conf new file mode 100644 index 0000000000..624ad4310e --- /dev/null +++ b/lib/snmp/priv/conf/manager/manager.conf @@ -0,0 +1,16 @@ +%% manager.conf +%% +%% General SNMP-related configuration parameters for the SNMP manager +%% +%% Default values: +%% address local host +%% port 5000 +%% engine_id "mgrEngine" +%% max_message_size 484 +%% + +%% Examples: +{address, [192,168,0,100]}. +{port, 5000}. +{engine_id, "mgrEngine"}. +{max_message_size, 484}. diff --git a/lib/snmp/priv/conf/manager/users.conf b/lib/snmp/priv/conf/manager/users.conf new file mode 100644 index 0000000000..8f3abe74d2 --- /dev/null +++ b/lib/snmp/priv/conf/manager/users.conf @@ -0,0 +1,14 @@ +%% users.conf +%% +%% Configuration for each user the manager shall handle. +%% +%% {UserId, UserMod, UserData} +%% +%% UserId -> User identity of "manager entity" responsible for this +%% agent: term() +%% UserMod -> Module implementing the snmpm_user behaviour: atom() +%% UserData -> Generic data passed on to the user when calling any +%% of the callback functions: term() +%% +{user_id_1, snmpm_user_default, undefined}. +{"user_id_2", snmpm_user_default, []}. diff --git a/lib/snmp/priv/conf/manager/usm.conf b/lib/snmp/priv/conf/manager/usm.conf new file mode 100644 index 0000000000..5eb78791ca --- /dev/null +++ b/lib/snmp/priv/conf/manager/usm.conf @@ -0,0 +1,30 @@ +%% usm.conf +%% The data corresponds to the relevant parts of the usmUserTable +%% defined in SNMP-USER-BASED-SM-MIB. +%% +%% {EngineID, UserName, AuthP, AuthKey, PrivP, PrivKey}. +%% {EngineID, UserName, SecName, AuthP, AuthKey, PrivP, PrivKey}. +%% +%% The first case is when we have the identity-function (SecName = UserName)! +%% +%% EngineID -> string() +%% UserName -> string() +%% SecName -> string() +%% AuthP -> usmNoAuthProtocol | usmHMACSHAAuthProtocol | +%% usmHMACMD5AuthProtocol +%% AuthKey -> string() (The user's secret localized authentication key) +%% length depends on AuthP: +%% usmNoAuthProtocol - any +%% usmHMACSHAAuthProtocol - 16 +%% usmHMACMD5AuthProtocol - 20 +%% PrivP -> usmNoPrivProtocol | usmDESPrivProtocol +%% PrivKey -> string() (The user's secret localized encryption key) +%% length depends on PrivP: +%% usmNoPrivProtocol - any +%% usmDESPrivProtocol - 16 +%% + +%% example +{"manager engine", "initial", "initial", + usmNoAuthProtocol, "", + usmNoPrivProtocol, ""}. diff --git a/lib/snmp/priv/conf/subdirs.mk b/lib/snmp/priv/conf/subdirs.mk new file mode 100644 index 0000000000..b3e159b0e4 --- /dev/null +++ b/lib/snmp/priv/conf/subdirs.mk @@ -0,0 +1,21 @@ +#-*-makefile-*- ; force emacs to enter makefile-mode + +# %CopyrightBegin% +# +# Copyright Ericsson AB 2004-2009. All Rights Reserved. +# +# The contents of this file are subject to the Erlang Public License, +# Version 1.1, (the "License"); you may not use this file except in +# compliance with the License. You should have received a copy of the +# Erlang Public License along with this software. If not, it can be +# retrieved online at http://www.erlang.org/. +# +# Software distributed under the License is distributed on an "AS IS" +# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +# the License for the specific language governing rights and limitations +# under the License. +# +# %CopyrightEnd% + +SUB_DIRECTORIES = agent manager + diff --git a/lib/snmp/priv/mibs/.gitignore b/lib/snmp/priv/mibs/.gitignore new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3