diff options
Diffstat (limited to 'lib/snmp/priv/conf/agent')
-rw-r--r-- | lib/snmp/priv/conf/agent/Makefile | 63 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/agent.conf | 17 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/community.conf | 14 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/context.conf | 13 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/files.mk | 22 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/notify.conf | 12 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/standard.conf | 20 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/target_addr.conf | 18 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/target_params.conf | 10 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/usm.conf | 15 | ||||
-rw-r--r-- | lib/snmp/priv/conf/agent/vacm.conf | 31 |
11 files changed, 235 insertions, 0 deletions
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}. + |