rfc3165.txt

来自「RFC 的详细文档!」· 文本 代码 · 共 1,695 行 · 第 1/5 页

TXT
1,695
字号






Network Working Group                                            D. Levi
Request for Comments: 3165                               Nortel Networks
Obsoletes: 2592                                         J. Schoenwaelder
Category: Standards Track                                TU Braunschweig
                                                             August 2001


                 Definitions of Managed Objects for the
                    Delegation of Management Scripts

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2001).  All Rights Reserved.

Abstract

   This memo defines a portion of the Management Information Base (MIB)
   for use with network management protocols in the Internet community.
   In particular, it describes a set of managed objects that allow the
   delegation of management scripts to distributed managers.























Levi & Schoenwaelder        Standards Track                     [Page 1]

RFC 3165                       Script MIB                    August 2001


Table of Contents

   1 Introduction .................................................    3
   2 The SNMP Management Framework ................................    3
   3 Overview .....................................................    4
   3.1 Terms ......................................................    5
   4 Requirements and Design Issues ...............................    6
   4.1 Script Languages ...........................................    6
   4.2 Script Transfer ............................................    7
   4.3 Script Execution ...........................................    8
   5 Structure of the MIB .........................................    9
   5.1 Language Group .............................................    9
   5.2 Script Group ...............................................   10
   5.3 Code Group .................................................   11
   5.4 Launch Group ...............................................   11
   5.5 Run Group ..................................................   11
   6 Definitions ..................................................   12
   7 Usage Examples ...............................................   49
   7.1 Pushing a Script via SNMP ..................................   49
   7.2 Pulling a Script from a URL ................................   50
   7.3 Modifying an Existing Script ...............................   50
   7.4 Removing an Existing Script ................................   51
   7.5 Creating a Launch Button ...................................   51
   7.6 Launching a Script .........................................   52
   7.7 Suspending a Running Script ................................   52
   7.8 Resuming a Suspended Script ................................   53
   7.9 Terminating a Running Script ...............................   53
   7.10 Removing a Terminated Script ..............................   54
   7.11 Removing a Launch Button ..................................   54
   8 VACM Configuration Examples ..................................   54
   8.1 Sandbox for Guests .........................................   55
   8.2 Sharing Scripts ............................................   55
   8.3 Emergency Scripts ..........................................   56
   9 IANA Considerations ..........................................   57
   10 Security Considerations .....................................   57
   11 Intellectual Property .......................................   59
   12 Changes from RFC 2592 .......................................   59
   13 Acknowledgments .............................................   61
   14 References ..................................................   61
   15 Editors' Addresses ..........................................   63
   16 Full Copyright Statement ....................................   64










Levi & Schoenwaelder        Standards Track                     [Page 2]

RFC 3165                       Script MIB                    August 2001


1.  Introduction

   This memo defines a portion of the Management Information Base (MIB)
   for use with network management protocols in the Internet community.
   In particular, it describes a set of managed objects that allow the
   delegation of management scripts to distributed managers.

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in RFC 2119 [RFC2119].

2.  The SNMP Management Framework

   The SNMP Management Framework presently consists of five major
   components:

   o  An overall architecture, described in RFC 2571 [RFC2571].

   o  Mechanisms for describing and naming objects and events for the
      purpose of management.  The first version of this Structure of
      Management Information (SMI) is called SMIv1 and described in STD
      16, RFC 1155 [RFC1155], STD 16, RFC 1212 [RFC1212] and RFC 1215
      [RFC1215].  The second version, called SMIv2, is described in STD
      58, RFC 2578 [RFC2578], STD 58, RFC 2579 [RFC2579] and STD 58, RFC
      2580 [RFC2580].

   o  Message protocols for transferring management information.  The
      first version of the SNMP message protocol is called SNMPv1 and
      described in STD 15, RFC 1157 [RFC1157].  A second version of the
      SNMP message protocol, which is not an Internet standards track
      protocol, is called SNMPv2c and described in RFC 1901 [RFC1901]
      and RFC 1906 [RFC1906].  The third version of the message protocol
      is called SNMPv3 and described in RFC 1906 [RFC1906], RFC 2572
      [RFC2572] and RFC 2574 [RFC2574].

   o  Protocol operations for accessing management information.  The
      first set of protocol operations and associated PDU formats is
      described in STD 15, RFC 1157 [RFC1157].  A second set of protocol
      operations and associated PDU formats is described in RFC 1905
      [RFC1905].

   o  A set of fundamental applications described in RFC 2573 [RFC2573]
      and the view-based access control mechanism described in RFC 2575
      [RFC2575].

   A more detailed introduction to the current SNMP Management Framework
   can be found in RFC 2570 [RFC2570].




Levi & Schoenwaelder        Standards Track                     [Page 3]

RFC 3165                       Script MIB                    August 2001


   Managed objects are accessed via a virtual information store, termed
   the Management Information Base or MIB.  Objects in the MIB are
   defined using the mechanisms defined in the SMI.

   This memo specifies a MIB module that is compliant to the SMIv2.  A
   MIB conforming to the SMIv1 can be produced through the appropriate
   translations.  The resulting translated MIB must be semantically
   equivalent, except where objects or events are omitted because no
   translation is possible (use of Counter64).  Some machine readable
   information in SMIv2 will be converted into textual descriptions in
   SMIv1 during the translation process.  However, this loss of machine
   readable information is not considered to change the semantics of the
   MIB.

3.  Overview

   The Script MIB module defined in this memo can be used to delegate
   management functions to distributed managers.  Management functions
   are defined as management scripts written in a management scripting
   language.  This MIB makes no assumptions about the language itself
   and even allows distribution of compiled native code, if an
   implementation is able to execute native code under the control of
   this MIB.

   The Script MIB defines a standard interface for the delegation of
   management functions based on the Internet management framework.  In
   particular, it provides the following capabilities:

   1. Capabilities to transfer management scripts to a distributed
      manager.

   2. Capabilities for initiating, suspending, resuming and terminating
      management scripts.

   3. Capabilities to transfer arguments for management scripts.

   4. Capabilities to monitor and control running management scripts.

   5. Capabilities to transfer the results produced by running
      management scripts.

   This memo does not address any additional topics like the generation
   of notifications or how to address remote agents from a Script MIB
   implementation.







Levi & Schoenwaelder        Standards Track                     [Page 4]

RFC 3165                       Script MIB                    August 2001


3.1.  Terms

   This section defines the terms used throughout this memo.

   o  A `distributed manager' is a processing entity which is capable of
      performing network management functions.  For the scope of this
      memo, a distributed manager is assumed to implement the Script
      MIB.

   o  A `higher-level manager', or just `manager', is a processing
      entity or human who initiates and controls the operations
      performed by one or more distributed managers.

   o  A `management script' is a set of instructions written in an
      executable language which implements a management function.

   o  A `management scripting language' is a language used to write
      management scripts.  The term scripting language does not imply
      that the language must have the characteristics of scripting
      languages (e.g., string orientation, interpretation, weak typing).
      The MIB defined in this memo also allows to control management
      scripts written in arbitrary compiled system programming
      languages.

   o  A `distributed manager' can be decomposed into an `SNMP entity'
      which implements the Script MIB defined in this memo and the `
      runtime system' that executes scripts.  The Script MIB sees the
      runtime system as the managed resource which is controlled by the
      MIB.

      The runtime system can act as an SNMP application, according to
      the SNMP architecture defined in RFC 2571 [RFC2571].  For example,
      a runtime system which sends SNMP requests to other SNMP entities
      will act as a command generator application.  The SNMP
      applications in the runtime system may use the same SNMP engine
      which also serves the command responder application used to
      implement the Script MIB, but they are not required to do so.

   o  A `launch button' is the conceptual button used to start the
      execution of a management script.  It assigns control parameters
      to a management script.  In particular, it defines the ownership
      of the scripts started from a launch button.  The ownership can be
      used by the language runtime system to enforce security profiles
      on a running management script.







Levi & Schoenwaelder        Standards Track                     [Page 5]

RFC 3165                       Script MIB                    August 2001


4.  Requirements and Design Issues

   This section discusses some general requirements that have influenced
   the design of the Script MIB.

   o  The Script MIB must not make any assumptions about specific
      languages or runtime systems.

   o  The Script MIB must provide mechanisms that help to avoid new
      management problems (e.g., script version problems).

   o  The Script MIB must provide SNMP interfaces to all functions
      required to delegate management scripts.  However, other protocols
      might be used in addition if they provide a significant
      improvement in terms of convenience for implementation or
      performance.

   o  The Script MIB must be organized so that access can be controlled
      effectively by using view-based access control [RFC2575].

   The following sections discuss some design issues in more detail.

4.1.  Script Languages

   The Script MIB defined in this memo makes no assumption about the
   script language.  This MIB can therefore be used in combination with
   different languages (such as Tcl or Java) and/or different versions
   of the same language.  No assumptions are made about the format in
   which management scripts are transferred.

   The Script MIB provides access to information about the language
   versions supported by a Script MIB implementation so that a manager
   can learn about the capabilities provided by an implementation.
   Languages and language versions are identified as follows:

   1. The language is identified by an object identifier.  Object
      identifier for well-known languages will be registered by the
      Internet Assigned Numbers Authority (IANA).  Enterprise specific
      languages can also be registered in the enterprise specific OID
      subtree.

   2. A particular version of a language is identified by a language
      version number.  The combination of a language object identifier
      and a language version is in most cases sufficient to decide
      whether a script can be executed or not.






Levi & Schoenwaelder        Standards Track                     [Page 6]


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?