From owner-snmpconf@seymour39.SNMP.COM  Fri Feb  2 15:44:42 2001
Received: from seymour39.SNMP.COM ([192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id PAA27290
	for <snmpconf-archive@odin.ietf.org>; Fri, 2 Feb 2001 15:44:42 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id PAA23215
	for snmpconf-outgoing; Fri, 2 Feb 2001 15:20:09 -0500 (EST)
Message-Id: <5.0.2.1.1.20010202122536.02fc51f0@mordor>
X-Sender: mrm@mordor
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Fri, 02 Feb 2001 12:26:56 -0800
To: snmpconf@snmp.com
From: Mike MacFaden <mrm@riverstonenet.com>
Subject: snmpconf Final call for input for bcp
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Hi,

I'm making a final call here for input to the BCP.
A final version will be submitted at IETF 50 in March.

Regards,
Mike MacFaden
www.riverstonenet.com



From owner-snmpconf@seymour39.SNMP.COM  Wed Feb  7 12:17:02 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA04121
	for <snmpconf-archive@odin.ietf.org>; Wed, 7 Feb 2001 12:17:01 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id LAA15233
	for snmpconf-outgoing; Wed, 7 Feb 2001 11:51:01 -0500 (EST)
Message-ID: <2413FED0DFE6D111B3F90008C7FA61FB0B1D381A@nl0006exch002u.nl.lucent.com>
From: "Wijnen, Bert (Bert)" <bwijnen@lucent.com>
To: snmpconf@snmp.com
Subject: snmpconf Last Call: Publish draft-ops-ip-config-management-reqmnts-00.txt 
	as Informational RFC
Date: Wed, 7 Feb 2001 17:36:46 +0100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Hi...

http://www.ietf.org/internet-drafts/draft-ops-ip-config-management-reqmnts-0
0.txt

I dropped the ball on this document. But I would like to get it publsihed
as an Informational RFC, so that we capture the work we did and
so that we can use it to evaluate other work when appropriate.

Anyone who has an issue with this document, pls speak up
before Feb 21 2001. You can send comments directly to me
or (preferably) to the confmgmt mailing list: confmgt@ops.ietf.org

This "Last Call" will be posted on:

   Policy FW WG
   RAP WG
   CONFMGT mailing list (discussion on THIS list pls)
   SNMPCONF WG
   OPS-AREA mailing list

Bert Wijnen


From owner-snmpconf@seymour39.SNMP.COM  Wed Feb  7 18:07:33 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id SAA11815
	for <snmpconf-archive@odin.ietf.org>; Wed, 7 Feb 2001 18:07:33 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id RAA22810
	for snmpconf-outgoing; Wed, 7 Feb 2001 17:46:30 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: Re: snmpconf Final call for input for bcp
References: <5.0.2.1.1.20010202122536.02fc51f0@mordor>
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 07 Feb 2001 14:48:27 -0800
In-Reply-To: <5.0.2.1.1.20010202122536.02fc51f0@mordor>
Message-ID: <sd3ddqun2c.fsf@wanderer.hardakers.net>
Lines: 125
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

>>>>> On Fri, 02 Feb 2001 12:26:56 -0800, Mike MacFaden <mrm@riverstonenet.com> said:

Mike> I'm making a final call here for input to the BCP.
Mike> A final version will be submitted at IETF 50 in March.

Coincidentally, I just finished reading it.

First off let me state that I think its an excellent document and I'm
glad its been written so I can point people at it.  It's been needed
for a long time.

Unfortunately, I didn't have a pen with me when I was reading it at
times so I know I've missed a couple of things I wanted to mention.
However:

1) section 5.1.1.4, 2nd paragraph, 2nd sentence begins with "textual
   The first".  "textual" needs to be deleted.

2) later in that same section:

     Best current practice in internet deployed network elements is a dual
     persistence model where: 1) a volatile memory configuration can
     be retrieved/updated and 2) persistent boot configuration.

   If you read this, its an incomplete sentence structure.  #2 needs
   to be reworded/extended to something like "2) A persistent
   configuration can be used to store information across device
   reboots".

   A second solution would be to change it to "where devices contain:
   1) a volatile memory configuration which can be retrieved/updated
   and 2) a persistent configuration that survives device reboots.

3) Section 5.1.2.2 describes problems arise when polling a garage
   door.  It would be good to specify a solution in between the last
   two paragraphs of the section.  Something like "A better solution
   to this particular problem would be to define an
   acmePortGarageDoorState object to be used for polling, and an
   acmePortGarageDoorControl object that can be used to issues requsts
   to change the state of the door.  The acmePortGarageDoorState could
   then include new enum values such as "closing(3)" and "opening(4)"
   to actively reflect the true state of the door.

4) Section 5.1.2.4, first sentence "minde" -> "mind"

5) section 5.1.3.2 says to return a noSuchName exception if an object
   doesn't exist, but I think a noSuchInstance exception is the proper
   choice here.  To quote from RFC1903:

                 noSuchInstance:
                 the `noSuchInstance' exception tells the management
                 station that it should supply a value for this column
                 when the conceptual row is to be created.

   and

                 noSuchObject:
                 As such, the management station can not issue any
                 management protocol set operations to create an
                 instance of this column.

6) section 5.1.5.1 mentions snmpv1 read-only community strings but
   should probably say "SNMPv1 or SNMPv2c"

7) Section 5.1.5.3 could probably use something like the following
   added to it:

   Even if a device does support DES, it should be noted that
   configuration of other keys via SNMP SETs protected by DES should
   not be allowed if the other keys are longer than the 56 bit DES
   keys protecting the SNMP transmission.

8) section 5.2.2 probably should discuss SET error handling, if your
   going to recommend the conglomeration of as many configuration
   directives as possible into a single SET.  You should probably
   mention that not all implementations support multiple varbinds in a
   SET very well and management applications will have to take into
   account these types of problems.

9) The 3rd paragraph of section 6.1 starting with "The policy
   configuration software..." is hard to understand, or at least it
   was for me.  I can't offer a rewrite of it, as I'm still not
   convinced I perfectly understand the concepts you're trying to get
   across.

10) The last sentence of 6.1 says:

       Policies should not be distributed to systems
       that do not have the resources to carry out the policy for a
       reasonable period of time.

    I think "for a reasonable period of time" should be either:

       "within a reasonable period of time"
          or
       "in a reasonable period of time"

11) Section 6.2: "if they intent" -> "if they intend"

12) section 6.3: you might suggest that mib authors make sure they use
    the standard time TC, the name of which escapes me at the moment,
    to help resolves these issues at the MIB definition level.

13) Section 6.4: You might want to start with a sentence that defines
    "conflict detection and resolution" more explicitly.

14) section 8: "A finite group of changes that taken as" -> "A finite
    group of changes that when taken as"
                          ^^^^

16) section 8: "before the set is returned should" -> "before the SET
    is restored when".  "returned" could lead someone astray that the
    original values are returned in the response to the failed SET.

17) section 8: DOS doesn't happen just because inadvertent abuse of
    "network layer" mechanisms.  Other mechanisms (processing power,
    memory consumption, eg) can be used to cause DOS problems.

18) section 10: add 3) "policy based management" section is not yet
    complete.

-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Thu Feb  8 11:47:23 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA12701
	for <snmpconf-archive@odin.ietf.org>; Thu, 8 Feb 2001 11:47:22 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id LAA19174
	for snmpconf-outgoing; Thu, 8 Feb 2001 11:28:28 -0500 (EST)
Message-ID: <F38185D061EBD21185F10008C7F926CE05307294@nj7460exch007u.ho.lucent.com>
From: "Huynh, An-Ni (Anni)" <ahuynh@lucent.com>
To: "'snmpconf@snmp.com'" <snmpconf@snmp.com>
Subject: RE: snmpconf Last Call: Publish draft-ops-ip-config-management-re
	qmnts-00.txt  as Informational RFC
Date: Thu, 8 Feb 2001 11:20:30 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Hi, Bert.
what is the CONFMGT mailing list? is it the same as the mailing list for
snmpconf WG?

Anni




From owner-snmpconf@seymour39.SNMP.COM  Thu Feb  8 13:27:56 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA15798
	for <snmpconf-archive@odin.ietf.org>; Thu, 8 Feb 2001 13:27:55 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id NAA21576
	for snmpconf-outgoing; Thu, 8 Feb 2001 13:05:27 -0500 (EST)
Message-ID: <2413FED0DFE6D111B3F90008C7FA61FB0B23AA26@nl0006exch002u.nl.lucent.com>
From: "Wijnen, Bert (Bert)" <bwijnen@lucent.com>
To: snmpconf@snmp.com
Subject: RE: snmpconf Last Call: Publish draft-ops-ip-config-management-re
	 qmnts-00.txt  as Informational RFC
Date: Thu, 8 Feb 2001 19:04:45 +0100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Nope, CONFMGT was the mailing list (and still is) to
discuss the requirements for IP Configuration Management

Bert

> ----------
> From: 	Huynh, An-Ni (Anni)[SMTP:ahuynh@lucent.com]
> Reply To: 	snmpconf@snmp.com
> Sent: 	Thursday, February 08, 2001 5:20 PM
> To: 	'snmpconf@snmp.com'
> Subject: 	RE: snmpconf Last Call: Publish
> draft-ops-ip-config-management-re qmnts-00.txt  as Informational RFC
> 
> Hi, Bert.
> what is the CONFMGT mailing list? is it the same as the mailing list for
> snmpconf WG?
> 
> Anni
> 
> 


From owner-snmpconf@seymour39.SNMP.COM  Thu Feb  8 16:56:01 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id QAA20553
	for <snmpconf-archive@odin.ietf.org>; Thu, 8 Feb 2001 16:56:00 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id QAA27148
	for snmpconf-outgoing; Thu, 8 Feb 2001 16:37:13 -0500 (EST)
Message-Id: <200102082136.QAA03166@europa-h0001027441c5.ne.mediaone.net>
To: snmpconf@snmp.com
Subject: Re: snmpconf Final call for input for bcp 
From: Jon Saperia <saperia@jdscons.com>
In-reply-to: Your message of 07 Feb 2001 14:48:27 -0800.
             <sd3ddqun2c.fsf@wanderer.hardakers.net> 
Date: Thu, 08 Feb 2001 16:36:11 -0500
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

> >>>>> On Fri, 02 Feb 2001 12:26:56 -0800, Mike MacFaden <mrm@riverstonenet.com> said:
> 
> Mike> I'm making a final call here for input to the BCP.
> Mike> A final version will be submitted at IETF 50 in March.
> 
> Coincidentally, I just finished reading it.
> 
> First off let me state that I think its an excellent document and I'm
> glad its been written so I can point people at it.  It's been needed
> for a long time.
> 
> Unfortunately, I didn't have a pen with me when I was reading it at
> times so I know I've missed a couple of things I wanted to mention.
> However:

Wes, thanks for all the great comments. We continue to work on the
document and will work to include your points. 

Thanks,
/jon
--

Jon Saperia		     saperia@jdscons.com
			     Phone: 617-744-1079
			     Fax:   617-249-0874
			     http://www.jdscons.com/


From owner-snmpconf@seymour39.SNMP.COM  Thu Feb  8 20:20:27 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id UAA22672
	for <snmpconf-archive@odin.ietf.org>; Thu, 8 Feb 2001 20:20:27 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id UAA00182
	for snmpconf-outgoing; Thu, 8 Feb 2001 20:06:28 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: snmpconf-pm-04 notes
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 08 Feb 2001 17:08:10 -0800
Message-ID: <sdlmrgpssl.fsf@wanderer.hardakers.net>
Lines: 190
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com


I haven't quite finished reading it, but I thought I'd jot these down
for as far as I've gotten.  I'll try to mark the more serious issues
(as opposed to editorial ones) with a '***'.

1)  section 4:
    "Policies always express a notion of:
       if (an object has certain characteristics) then (apply operation to
       that object)"

    should be replaced with:

    "Policies always express a notion of:
       if (an object has certain characteristics) then (apply an operation(s) to
       an object)"                                            ^^
       ^^
  Operations can apply to objects other than the one with the
  characteristic in question.  Now, since an action can contain
  multiple operations, the following would probably be the best, IMHO:

    "Policies always express a notion of:
       if (an object has certain characteristics) then (apply a set of
       operation(s) to a set of objects)"

2) section 4:
  roles, whereas the percent utilization of a link would not be.
     ->
  roles, whereas "the percent utilization of a link" would not be.

  (the other two examples in the paragraph are quoted)

3) section 4:

  Roles are human defined strings that can be referenced by policy
     ->
  Roles in this model are human defined strings that can be referenced by policy

4) section 4:
  Repeated use of the word 'download' is used to say that the manager
  downloads policies to the managed devices.  IMHO, this is
  "uploading".

***
5) section 4:
  There are security issues with not uploading policies to a managed
  object until they are discovered.  This issue comes up repeatedly in
  the document.  During the time that the policy is not in place it
  obviously can't be enforced (which could be serious if financial or
  highly secure information was transmitted (EG) during that time
  window).  In theory, you'd think, that this shouldn't happen that
  often and the window would be small.  But what if the
  pmNewRoleNotification isn't received by the management station?

6) 5.1

  therefore they can be modeled as one element type.
   ->
  therefore they can be defined in this model as one element type.

7) 5.2

  filter the last time it was checked (or it was a newly-
   ->
  filter the last time it was checked (or it is a newly-

  and just below it:

  the last check, it will remain in the set of elements that
  will whose policyAction will be run within the
    ->
  the last check, it will remain in the set of elements
  whose policyAction will be run within the


8) 5.3

   accessible from accessor functions, no state is remembered
   from the policy filter evaluation, nor from the previous
   filter/action invocation of this element nor from the previous
   invocation of the policy filter or action). If any syntax or
     ->
   accessible from accessor functions, no state is remembered
   from the policy filter evaluation, nor from the previous
   filter/action invocation of this element. If any syntax or

***
9) 5.3 and others
   If syntax or processing errors occur, the action will terminate
   immediately for this element.  I think failures need to be dealt
   with in a better way.  The document repeatedly references failing
   actions and that processing stops.

   First and most importantly, I think a failure notification needs to
   be sent out (if configured to do so), as there are security
   implications with policies that fail to run properly.

   Second, having a policy die in mid stream is a pretty serious event
   since half of the operations (or so) will have succeeded before the
   error occurred (yet another security consideration).  I'm not
   saying there is a way around this (there isn't), but it should be
   noted somewhere (IMHO).

***
10) I certainly understand the reason for not including function
    definitions, but the code duplication issues resulting from this
    are going to be a pain.

11) section 6: define BNF & EBNF somewhere (or state a reference to
    its definition).

12) section 6:

    "The use of comments and newlines are allowed and encouraged
    where they will promote readability of policy code."
    ^^^^^^^^^^^^^^^

    Oh sure, but I can't make comments with snide remarks in them?
    How about:

    "The use of comments and newlines are allowed and encouraged
    in order to promote readability of policy code."

13) section 8.1:

        Copies the value of b to a. After the copy a and
        b are equal but do not share storage.

    Compilers optimized for storage space could simply make a
    reference until a data request is made...

14) section 8.1:
    "Index (with range checking): a[i]"

    What happens when its out of range?

* (it's almost important)

15) 11.1.1.1
   If getint() is retrieving a unsigned int, I suggest calling it
   getunsigned() or getuint() instead.

16) repeatedly, starting in 11.1.1.1:

     The agent will retrieve the instance in the same SNMP context
     in which the element resides.

   What exactly does this mean?  In the SNMP notion of contexts, an
   item can exist in multiple contexts.

17) It's repeatedly stated that oids are specified as dotted-string of
    numbers, but doesn't say what happens if the oid can't be parsed.
    Action stops, like everything else?

18) 11.1.1.2
    the optional argument "value" should be dropped (as someone else
    pointed out).
     a) C has no optional arguments
     b) is not needed.

***
19) why have both longs and ints if they are the same size?  Just drop
    "long"s, or make them 64 bits and drop "long longs"

********
20) repeatedly:

     Note that no actual SNMP PDU needs to be generated and parsed
     when the policy MIB module resides on the same system as the
     managed elements.

    If this is the case, I can write policy scripts that will operate
    on objects that I don't otherwise have permission to modify?  Is
    there *no* access control checking going on here?  The
    DISMAN-EVENT-MIB handles this by using the authentication
    semantics of the person that performed the set operation putting
    it into existence.  Maybe something similar should be done here?

***
21) 11.1.2
    readVarbind() can return bogus values if nothing was ever written
    to that slot location before.  This goes against everything
    previously in the document where the default action was to stop
    processing for situations like that.  Undefined values are
    probably a very bad thing in a policy script.


-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Mon Feb 12 15:24:14 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id PAA20620
	for <snmpconf-archive@odin.ietf.org>; Mon, 12 Feb 2001 15:24:13 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id PAA07410
	for snmpconf-outgoing; Mon, 12 Feb 2001 15:08:20 -0500 (EST)
Message-Id: <200102122007.PAA20894@europa-h0001027441c5.ne.mediaone.net>
To: snmpconf@snmp.com
Subject: snmpconf Preliminary IETF Agenda
From: Jon Saperia <saperia@jdscons.com>
Date: Mon, 12 Feb 2001 15:07:16 -0500
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

For those of you that may not have noticed it. The preliminary IETF
agenda has been posted.  Notice that the SNMPCONF WG is slated for
Thursday and Friday. I have inlcude the relevant Thursday and Friday
schedule fyi below.

We will publish an agenda in the required time. It will look like the to
do list previously published minus issues resolved on this list.

enjoy.
/jon

THURSDAY, March 22, 2001
0800-1700 IETF Registration - 
0800-0900 Continental Breakfast - 
0900-1130 Morning Sessions
APP     webdav          WWW Distributed Authoring and Versioning WG 
OPS     mboned          MBONE Deployment WG
RTG     mobileip        IP Routing for Wireless/Mobile Hosts WG
SEC     idwg            Intrusion Detection Exchange Format WG
TSV     midcom          Middlebox Communication WG
TSV     sigtran         Signaling Transport WG
        
1130-1300 Break
1300-1500 Afternoon Sessions I
OPS     snmpconf        Configuration Management with SNMP WG
OPS     ngtrans         Next Generation Transition WG 
RTG     gsmp            General Switch Management Protocol WG
SEC     sacred          Securely Available Credentials WG
TSV     avt             Audio/Video Transport WG 
        
1500-1530 Break (Refreshments provided) - 
1530-1730 Afternoon Sessions II
APP     deltav          Web Versioning and Configuration Management WG
SEC     saag            Open Security Area Directorate Meeting 
TSV     diffserv        Differentiated Services WG

FRIDAY, March 23, 2001
0800-1000 IETF Registration - 
0800-0900 Continental Breakfast - 
0900-1130 Morning Sessions
OPS     snmpconf        Configuration Management with SNMP WG
TSV     rserpool        Reliable Server Pooling WG     




--
Jon Saperia		     saperia@jdscons.com
			     Phone: 617-744-1079
			     Fax:   617-249-0874
			     http://www.jdscons.com/


From owner-snmpconf@seymour39.SNMP.COM  Tue Feb 13 13:44:21 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA27163
	for <snmpconf-archive@odin.ietf.org>; Tue, 13 Feb 2001 13:44:20 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id NAA10211
	for snmpconf-outgoing; Tue, 13 Feb 2001 13:24:25 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: snmpconf-pm-04 notes continued
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 13 Feb 2001 10:26:51 -0800
Message-ID: <sdk86usal0.fsf@wanderer.hardakers.net>
Lines: 324
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com


Having finished reading the draft, here is another slew of notes I
jotted down while reading it.  Again, I'll mark the more serious
issues (in my mind) with a "***" (ie, those more theoretical rather
than editorial and require more major structural changes though my
consistency for marking them probably isn't perfect).

Since I'm proposing a huge number of changes at this point (62 in
all!), I'd be happy to edit any deemed acceptable into the document if
you'd rather I do the work than one of the editors (I'll need the
source if thats the case).

***
22) The most blunt of my statements today:  The pmNotificationRegTable
    is redundant with the existence of the NOTIFICATION-MIB and, IMHO,
    should be dropped from the mib entirely (but, obviously, the
    notifications definitions themselves should remain).  Duplication
    of standardized work is a bad thing.

23) The mib is sprinkled with text in the form of comments that
    describe the table(s) below them.  This is a pet peeve of mine, as
    I frequently use mib parsing tools to browse through mib
    descriptions where I'd expect that information to be properly
    kept.  In particular, I'd like to suggest that the text preceding
    the following mib items should be moved into the items themselves:

       pmRoleESTable [this one has to be done carefully, as it
                     describes two tables not just one]
       pmElementTypeRegTable
       pmCapabilitiesTable
       pmDebuggingTable
       pmNotificatioonRegTable [unless this table is dropped; see above]
       
    I'd actually suggest a note be put into the -bcp document as well
    describing that comments should never be used to describe
    functionality of objects, but rather to mark things to remember, etc.

24) the capMatch function definition is not clear as to what the OID
    should be.  After reading everything, I'm guessing that it should
    be an oid corresponding to a pmCapabilitiesType definition, but I
    could easily accidentally read it as possibly a
    pmCapabilitiesSubType OID or even a row pointer into the
    pmCapabilitiesTable itself.

    (while I'm at it, the capabilities table seems almost redundant
    with respect to the sysORTable.  There is a lot of overlap and it
    took me a while to figure out why both are needed: the table
    defined here references mib accessible changes, while the
    sysORTable contains only a pointer to a mib object.  I'd be
    tempted to write a sysORTable agent-capabilities mib table instead)

25) section 5.3 implies that an action is always to be run after a
    filter has evaluated to true, but 5.2 dictates that it's only to
    be executed within the time frame of policyFilterActionMaxLatency.
    It's possible that the action will not be run given a filter's
    output if the corresponding value of policyFilterActionMaxLatency
    is greater than twice the of pmPolicyFilterMaxLatency.  Acutally,
    the whole issue of those two objects is rather odd.  The way I see
    it, these two objects allow for two different management functions
    to be run separetly:

      1) runs a filter at least as frequently as
         pmPolicyFilterMaxLatency and remembers the results.
      2) runs a set of actions based on the results from #1 above with
         at least the frequency of policyFilterActionMaxLatency.

    The odd thing is that these items allow you to configure the row
    in very odd ways, like the example described above where 

      policyFilterActionMaxLatency > pmPolicyFilterMaxLatency*2

    which might produce both cases of an action not running for every
    filter check, and a case where an action may not get run at all
    (if a filter evaluates to true then false during the second
    reading).  (I guess 5.3 also states it must be run immediately
    upon the first discovery of a filter that returns true, but future
    invocations may not happen).

    Another odd state would be where

      policyFilterActionMaxLatency < pmPolicyFilterMaxLatency*2

    which would mean that the action would run even though a recent
    check hadn't been performed to make sure it should be run (which,
    I guess, is not *that* odd).

    So if an implementation didn't want to separate these two phases
    of collection and responding, they should do filtering/action
    running based on min(policyFilterActionMaxLatency,
    pmPolicyFilterMaxLatency)?

***
26) setRowStatus() comes up with a random index based on maxTries, but
    is somewhat inefficient if some knowledge of the table exists
    already.  I'd really like to specify a starting value as well, in
    case the table contents were exceptionally large (and I'd default
    to 0 if I knew nothing about the contents).  If I need to create 5
    rows, I'd like to start my 2nd-5th calls searching with the last
    assigned value from the previous runs.

***
27) Its still unclear to me when in the API (if ever) you're allowed
    to reference oids by textual name.  I'm gathering that never is
    the case for all APIs?  If so, I'd replace the examples (like
    11.1.2) that reference textual oids with numeric ones (even if you
    state earlier than some management apps may convert them for you
    before uploading the code).

28) 11.1.2.2
        type is the type of the value parameter and will be set to
        one of the values for DataType Constants.
     ->
        type will be the type of the value parameter and will be set to
        one of the values for DataType Constants.

***
29) snmpsend() should really really really pass back the errindex (into
    a new parameter).  Efficiently parsing through a huge varbind list
    to find the source of the error would be otherwise impossible.

***
30) I'd suggest a new function called "logDebugString()" that would
    log a string to the pmDebuggingTable if the row was configured
    with debugging turned on (otherwise it'll result in essentially a
    noop()).

31) It's kind of odd that you declare the constants as "const" even
    though the language doesn't allow the "const" token.  I'd be
    happier if the document just declared that all constants can be
    treated as an integer and simple list the name and value pairs
    without trying to translate them into C-like statements at all.

***
32) I think all the constants should be matched with the similar BER
    tag encodings where possible (just for ease-of-implementation
    issues).  For instance, a string shouldn't be const "2" but rather
    "4".  Similarly, the error constants like NosuchObject should
    probably be "128" instead of "21", etc.  Non-snmp related
    constants should then be moved further away from the most likely
    places for the SNMP protocol spec to declare future additions (bad
    parameter might move to 32767 or something).

33) setScratchpad(varName, scope, value) should have its arguments
    reordered to (scope, varName, value).  Just makes more sense,
    IMHO, to have name and value next to each other.

34) Many functions like getScratchpad, for example, don't state what
    will be returned in variables like getScratchpad's value argument
    when an error has occurred.  I'd suggest explicitly stating that
    the value is unchanged from before the call, or that it is
    undefined (I'd prefer it remain the same for consistency of
    programming).

**
35) Throughout the document strings and integers are frequently mixed
    and shouldn't be unless this is legal (which from my reading, I
    don't think it is).  The "Scratchpad Usage Examples" section, for
    instance, has the return values of the getScratchpad call being
    '== 55' for example, when it should really be '== "55"'.

    I'd be somewhat happier as a scripting programmer if the values
    were indeed inter-usable (automatically converted as needed), as
    perl's variables are (since you reference it earlier in the
    document).

36) oidncmp() has an argument "int n" that isn't defined in the text.
    I assume its the length against which to compare the oids in
    question.  So if I want to compare 2 oids to their completion, do
    I:

    a) oidncmp(oid1, oid2, 0)
    b) oidncmp(oid1, oid2, 128)
    c) int o1, o2, otmp;
       o1 = oidlength(oid1);
       o2 = oidlength(oid2);
       if (o1 > o2)
         otmp = o1;
       else
         otmp = o2;
       oidncmp(oid1, oid2, otmp);

37) subidwrite() and subid() says their  "int n" argument must
    start at "0".  I'd suggest replacing the argument instead with
    "unsigned int n", which solves the problem the correct way (and
    forces a complier check).  In fact, I think all the function
    definitions could probably use a once over for this type of
    checking.  The "int subid" of subidwrite(), for example, is
    another case where it should probably be an unsigned int (since an
    oid can't have negative values in it).

38) A note should be put in subidwrite() saying that appending is
    possible through the string concatinator operator (+).

39) the definition of oidsplice() is somewhat ambiguous.
    Specifically, "oidsplice replaces n subidentifiers in oid1 with
    all of the subidentifiers from oid2 starting at the m'th
    subidentifier of oid1".  So, does this mean that:

      oidsplice(".1.2.3.4", 2, ".5.6.7.8.9", 1)

    will result in ".1.5.6.7.8.9.3.4"?  Thats how I read it, but I
    don't know if thats correct.

40) library accessor functions uses atoi, but I'd rather have strtoul
    around instead if possible.

41) library accessor functions defines random, but doesn't state a
    minimum acceptability of random-ness provided by the function.
    Just a thought.

42) Why are memcmp() and memmove() in the library accessor functions?
    We have no pointers?

43) substr() would be a good type of function to add to the list of
    functions.

44) You should probably import UTF8String from SYSAPPL-MIB::Utf8String
    instead of defining your own.  Though you don't put a size
    restriction on yours, but yet your display hint has one???

***
45) You're tables are frequently indexed by arbitrary integer numbers,
    which is another pet-peeve of mine.  This number has no meaning
    what so ever and iterating through a table is always required if I
    need information.  I'd much rather that things be indexed by a
    string where possible.  For example, the pmPolicyIndex should be
    "pmPolicyName" instead and be an snmpAdminString (IMHO, of
    course).  Most of the other tables could use this type of indexing
    change as well.  I'd be happy to come up with a list if the idea
    is acceptable.

***
46) If pmPolicyPrecedence values must be unique, then I *highly*
    recommend making that the index (I know, I'm contradicting what
    I'm suggesting in #45 above but now the number would have
    significance).

47) A flow diagram or state table describing pmPolicyPrecedence is
    greatly needed.

48) Any reason why pmPolicyDescription can only be 255?  I'd be
    tempted to allow larger sizes (and implementations can reduce the
    length and document it in their agent-capabilities statements).

49) pmPolicyMatches: "The number of elements that are currently
    matched by the associated pmPolicyFilter".  When is this number
    determined?  At the time of the last filter run or does the filter
    run right now to come up with the number?

50) I don't understand the difference between
    pmPolicyAbnormalTerminations and pmPolicyExecutionErrors?

51) Why are pmPolicyAbnormalTerminations and pmPolicyMatches writable
    (and Gauges for that matter)???

***
52) pmPolicyStatus should indicate if any of the previous row columns
    are mandatory to set before coming active?  Certainly some objects
    need setting, like the pmPolicyPrecedence object before it can
    become operational.  Default values might be needed for some of
    the other objects as well (like the latency objects).

53) pmPolicyCodeText has a type "The code" in the middle of the
    description that probably is either supposed to be removed or
    added to the beginning of the next sentence.

***
54) pmElementTypeRegTable should be indexed by the
    pmElementTypeRegOIDPrefix OID in question to help managers
    determine if an entry already exists for that object.

    Additionally, I'd suggest that the index should point to the table
    object and a second "column number" object be created to indicate
    what column should be used when searching for sub-objects.  This
    would allow guaranteed uniqueness of the pmElementTypeRegOIDPrefix

55) pmElementTypeRegMaxLatency should give a pointer as to what to do
    after a new element is discovered.

***
56) pmCapabilitiesTable should be indexed by the type and/or subtype
    for faster traversal when you're looking for a particular
    capability.  (The type object really needs a better description,
    since I have no idea what its value should indicate other than it
    has been "assigned by IANA".)

57) pmTrackingElementToPolicyElement:
   "The element this policy is configuring" -> um...
     "The element that is configured by the policy defined in this row."

    I don't really like that either, though, but it does need to
    change, IMHO.

58) Why define "off" in pmTrackingElementToPolicyStatus (and
    pmTrackingPolicyToElementStatus) at all?  Why not just say that
    the row doesn't exist unless the policy is on.  The enum value
    will *never* get used.

59) Can we force creation of rows into the
    pmTrackingElementToPolicyTable by setting the
    pmTrackingElemenToPolicyStatus object to "forceOff"?  IE, so its
    definition is remembered when it comes active via the calendar
    later on?

***
60) most of these tables could use a "StorageType" object.

    (note, the suggested use of the StorageType object should probably
    be mentioned in the -bcp document as well).

61) A minimum/maximum number of support entries in the
    pmDebuggingTable should be defined somewhere (the maximum being a
    mib object returned by an object in the agent).  Also, roll over
    of the log entries is done by, what, time?  A time index would
    probably be a good thing for the table as well.

62) notification registration table coments, step 4:
    downloaded -> uploaded & download -> upload


-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Sun Feb 18 10:33:30 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA09986
	for <snmpconf-archive@odin.ietf.org>; Sun, 18 Feb 2001 10:33:29 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id KAA01117
	for snmpconf-outgoing; Sun, 18 Feb 2001 10:16:02 -0500 (EST)
Message-ID: <15F58915DF84D311AC7D0090279AA61423469E@itc-eml2.lannet.com>
From: Dan Romascanu <dromasca@avaya.com>
To: "'Andy Bierman'" <abierman@cisco.com>, disman@dorothy.bmc.com
Cc: snmpconf@snmp.com
Subject: snmpconf RE: [Fwd: I-D ACTION:draft-bierman-disman-see-00.txt]
Date: Sun, 18 Feb 2001 17:13:49 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Andy,

Can you briefly describe how is this proposal related (if at all) with the
SNMPCONF Policy MIB work? 

Regards,

Dan


> -----Original Message-----
> From:	Andy Bierman [SMTP:abierman@cisco.com]
> Sent:	Sat February 17 2001 8:06
> To:	disman@dorothy.bmc.com
> Subject:	[Fwd: I-D ACTION:draft-bierman-disman-see-00.txt]
> 
> Hi,
> 
> I think there is a need for a set of standardized execution environment
> features, including a programming grammar, for use with the Script MIB
> and Scheduling MIB. This draft is a proposal to the DISMAN WG as a
> starting point for this work.
> 
> thanks,
> Andy << Message: I-D ACTION:draft-bierman-disman-see-00.txt >> 


From owner-snmpconf@seymour39.SNMP.COM  Sun Feb 18 13:39:11 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA11068
	for <snmpconf-archive@odin.ietf.org>; Sun, 18 Feb 2001 13:39:10 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id NAA01622
	for snmpconf-outgoing; Sun, 18 Feb 2001 13:26:40 -0500 (EST)
Message-ID: <3A9013A9.28109B7@cisco.com>
Date: Sun, 18 Feb 2001 10:25:45 -0800
From: Andy Bierman <abierman@cisco.com>
X-Mailer: Mozilla 4.74 [en]C-CCK-MCD {Sony}  (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
CC: disman@dorothy.bmc.com
Subject: Re: snmpconf RE: [Fwd: I-D ACTION:draft-bierman-disman-see-00.txt]
References: <15F58915DF84D311AC7D0090279AA61423469E@itc-eml2.lannet.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit

Hi Dan,

> 
> Andy,
> 
> Can you briefly describe how is this proposal related (if at all) with the
> SNMPCONF Policy MIB work?

This draft defines a programming grammar, runtime environment,
and system library documentation requirements for a general-purpose
meta-logic layer (i.e. shell). There is a small (extensible) set of
application profiles which are tailored for DISMAN or large agent platforms.
It uses the Script MIB for script storage, and the Scheduling MIB for
TOD-based script invocation.

The execution model is much more 'traditional' than the one used in the PM MIB,
and the problem scope includes all aspects of distributed network management,
not policy-based configuration. 

How this work relates to the PM MIB work is a subjective matter.
I think the PM MIB offers all of the complexities and expenses
of a programming shell, but very few of the benefits. 

> 
> Regards,
> 
> Dan

Andy

> 
> > -----Original Message-----
> > From: Andy Bierman [SMTP:abierman@cisco.com]
> > Sent: Sat February 17 2001 8:06
> > To:   disman@dorothy.bmc.com
> > Subject:      [Fwd: I-D ACTION:draft-bierman-disman-see-00.txt]
> >
> > Hi,
> >
> > I think there is a need for a set of standardized execution environment
> > features, including a programming grammar, for use with the Script MIB
> > and Scheduling MIB. This draft is a proposal to the DISMAN WG as a
> > starting point for this work.
> >
> > thanks,
> > Andy << Message: I-D ACTION:draft-bierman-disman-see-00.txt >>


From owner-snmpconf@seymour39.SNMP.COM  Thu Feb 22 22:01:18 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id WAA05455
	for <snmpconf-archive@odin.ietf.org>; Thu, 22 Feb 2001 22:01:17 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id VAA24405
	for snmpconf-outgoing; Thu, 22 Feb 2001 21:37:03 -0500 (EST)
Message-ID: <3A95CC7C.4C26D381@nextbeacon.com>
Date: Thu, 22 Feb 2001 18:35:40 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit


Wes,

  Thanks a lot (!) for the extensive comments. I'll try to finish my
reply to your second note soon.

My comments are inline.

Wes Hardaker wrote:
> 
> I haven't quite finished reading it, but I thought I'd jot these down
> for as far as I've gotten.  I'll try to mark the more serious issues
> (as opposed to editorial ones) with a '***'.
> 
> 1)  section 4:
>     "Policies always express a notion of:
>        if (an object has certain characteristics) then (apply operation to
>        that object)"
> 
>     should be replaced with:
> 
>     "Policies always express a notion of:
>        if (an object has certain characteristics) then (apply an operation(s) to
>        an object)"                                            ^^
>        ^^
>   Operations can apply to objects other than the one with the
>   characteristic in question.  Now, since an action can contain
>   multiple operations, the following would probably be the best, IMHO:
> 
>     "Policies always express a notion of:
>        if (an object has certain characteristics) then (apply a set of
>        operation(s) to a set of objects)"



What if it said:
"Policies are intended to express a notion of:"
and then we could use the original pseudo-code, which is designed to
show the intent of the policy-based management model rather than the
limits of what a *could* be done.

I think the "intent" also extends to:
... (apply operation to that object or a related object)
for example: "for every frame relay circuit with xxx characteristics,
apply config xxx to its containing interface/port"

Do you think this should be mentioned in this section?


> 2) section 4:
>   roles, whereas the percent utilization of a link would not be.
>      ->
>   roles, whereas "the percent utilization of a link" would not be.
> 
>   (the other two examples in the paragraph are quoted)

Fixed

> 3) section 4:
> 
>   Roles are human defined strings that can be referenced by policy
>      ->
>   Roles in this model are human defined strings that can be referenced by policy

Done.

> 4) section 4:
>   Repeated use of the word 'download' is used to say that the manager
>   downloads policies to the managed devices.  IMHO, this is
>   "uploading".

Very interesting. You probably say uploading because the code is being
"pushed" from here to there. I say it is downloading because the code is
going from server to client (central to distributed).

I'm not sure I agree that it is "uploading" but it's clear that it's not
clear. I'm thinking using the word "install" instead. What do you think?

> ***
> 5) section 4:
>   There are security issues with not uploading policies to a managed
>   object until they are discovered.  This issue comes up repeatedly in
>   the document.  During the time that the policy is not in place it
>   obviously can't be enforced (which could be serious if financial or
>   highly secure information was transmitted (EG) during that time
>   window).  In theory, you'd think, that this shouldn't happen that
>   often and the window would be small.  But what if the
>   pmNewRoleNotification isn't received by the management station?

I agree. I'll make some mention of this as appropriate (at least in the
security section). How's this text?:

-- Note that using this algorithm to avoid installing "unnecessary"
-- policies may result in delays in having the policy available when
-- the policy becomes necessary. This delay could become extensive if
-- an interruption of communications prevents the notification from
-- being delivered and/or the policy from being downloaded, causing
-- the sytem to not be in compliance with policy for a period of
-- time. In particular, if the policy is enforcing security rules,
-- this could open up security vulnerabilities during this period of
-- time.


> 6) 5.1
> 
>   therefore they can be modeled as one element type.
>    ->
>   therefore they can be defined in this model as one element type.
> 
> 7) 5.2
> 
>   filter the last time it was checked (or it was a newly-
>    ->
>   filter the last time it was checked (or it is a newly-
> 
>   and just below it:
> 
>   the last check, it will remain in the set of elements that
>   will whose policyAction will be run within the
>     ->
>   the last check, it will remain in the set of elements
>   whose policyAction will be run within the

Both are fixed.

> 8) 5.3
> 
>    accessible from accessor functions, no state is remembered
>    from the policy filter evaluation, nor from the previous
>    filter/action invocation of this element nor from the previous
>    invocation of the policy filter or action). If any syntax or
>      ->
>    accessible from accessor functions, no state is remembered
>    from the policy filter evaluation, nor from the previous
>    filter/action invocation of this element. If any syntax or

Fixed. 

> ***
> 9) 5.3 and others
>    If syntax or processing errors occur, the action will terminate
>    immediately for this element.  I think failures need to be dealt
>    with in a better way.  The document repeatedly references failing
>    actions and that processing stops.
> 
>    First and most importantly, I think a failure notification needs to
>    be sent out (if configured to do so), as there are security
>    implications with policies that fail to run properly.

For each policy, there's a rollup of the total number of instances of
the policy that are failing now (a gauge, pmPolicyAbnormalTerminations).
Also, when I send an updated draft next week, check out
pmTrackingPolicyToElementInfo which contains info about errors and
exceptions on a per-execution-context basis (i.e. per policy/element
pair). Of course, there's also the debugging table.

So we've made it easy to poll but haven't achieved sub-second
notification (only possible with a notification). And it's here that I'm
a bit reluctant to say that a notification is a requirement. To be
honest, I really don't have a sense of this yet. One more notification 
isn't that big a deal but I'm most worried about getting into ratholes
about how we can make sure that floods of notifications don't occur.

All we would absolutely need would be to have a notification that is
sent whenever the abnormalTerminations gauge goes from zero to non-zero
and no more than 1 notification per 60 seconds (or some similar
non-configurable constant). If we could keep it simple like this it
might be worth it.


>    Second, having a policy die in mid stream is a pretty serious event
>    since half of the operations (or so) will have succeeded before the
>    error occurred (yet another security consideration).  I'm not
>    saying there is a way around this (there isn't), but it should be
>    noted somewhere (IMHO).
> ***
> 10) I certainly understand the reason for not including function
>     definitions, but the code duplication issues resulting from this
>     are going to be a pain.
> 
> 11) section 6: define BNF & EBNF somewhere (or state a reference to
>     its definition).

OK.

> 12) section 6:
> 
>     "The use of comments and newlines are allowed and encouraged
>     where they will promote readability of policy code."
>     ^^^^^^^^^^^^^^^
> 
>     Oh sure, but I can't make comments with snide remarks in them?
>     How about:
> 
>     "The use of comments and newlines are allowed and encouraged
>     in order to promote readability of policy code."

Done.

> 13) section 8.1:
> 
>         Copies the value of b to a. After the copy a and
>         b are equal but do not share storage.
> 
>     Compilers optimized for storage space could simply make a
>     reference until a data request is made...

Fixed.

> 14) section 8.1:
>     "Index (with range checking): a[i]"
> 
>     What happens when its out of range?
> 
> * (it's almost important)

Yes, I agree it's important. I'll specify.

> 15) 11.1.1.1
>    If getint() is retrieving a unsigned int, I suggest calling it
>    getunsigned() or getuint() instead.

Check this out in light of the loosely-typed variables in the next
draft.

> 16) repeatedly, starting in 11.1.1.1:
> 
>      The agent will retrieve the instance in the same SNMP context
>      in which the element resides.
> 
>    What exactly does this mean?  In the SNMP notion of contexts, an
>    item can exist in multiple contexts.

It's supposed to mean the context in which the element was discovered
(by the pmElementTypeRegTable).

> 17) It's repeatedly stated that oids are specified as dotted-string of
>     numbers, but doesn't say what happens if the oid can't be parsed.
>     Action stops, like everything else?

Yes. I'll say if it isn't of the form below, it is a run-time-exception.

oid:
  integer [ . integer ]

> 18) 11.1.1.2
>     the optional argument "value" should be dropped (as someone else
>     pointed out).
>      a) C has no optional arguments
>      b) is not needed.

Done.

> ***
> 19) why have both longs and ints if they are the same size?  Just drop
>     "long"s, or make them 64 bits and drop "long longs"

While I agree, this has been overtaken by events. Check out the next
draft.

> ********
> 20) repeatedly:
> 
>      Note that no actual SNMP PDU needs to be generated and parsed
>      when the policy MIB module resides on the same system as the
>      managed elements.
> 
>     If this is the case, I can write policy scripts that will operate
>     on objects that I don't otherwise have permission to modify?  Is
>     there *no* access control checking going on here?  The
>     DISMAN-EVENT-MIB handles this by using the authentication
>     semantics of the person that performed the set operation putting
>     it into existence.  Maybe something similar should be done here?

Exactly. Access-control checking MUST be done even if no PDU is
generated. I've had a long-standing todo to write the appropriate text.
The plan is to lift as much text as appropriate from the disman event
mib.

> ***
> 21) 11.1.2
>     readVarbind() can return bogus values if nothing was ever written
>     to that slot location before.  This goes against everything
>     previously in the document where the default action was to stop
>     processing for situations like that.  Undefined values are
>     probably a very bad thing in a policy script.

This has been changed.


Steve


From owner-snmpconf@seymour39.SNMP.COM  Fri Feb 23 14:05:55 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA15709
	for <snmpconf-archive@odin.ietf.org>; Fri, 23 Feb 2001 14:05:55 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id NAA21384
	for snmpconf-outgoing; Fri, 23 Feb 2001 13:45:05 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
	<3A95CC7C.4C26D381@nextbeacon.com>
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 23 Feb 2001 10:47:10 -0800
In-Reply-To: <3A95CC7C.4C26D381@nextbeacon.com> (Steve Waldbusser's message of "Thu, 22 Feb 2001 18:35:40 -0800")
Message-ID: <sdg0h5xmmp.fsf@wanderer.hardakers.net>
Lines: 151
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com


Following up on the discussion related issues:

>  "Policies always express a notion of:
>     if (an object has certain characteristics) then (apply an operation(s) to
>     an object)"                                            ^^
>     ^^
Steve> What if it said: "Policies are intended to express a notion
Steve> of:" and then we could use the original pseudo-code, which is
Steve> designed to show the intent of the policy-based management
Steve> model rather than the limits of what a *could* be done.

What I didn't like about the original statement is that it implied to
me that operations always applied to the objects that triggered them,
which is hardly the case (if anything, its probably counter to how
they'd typically be used.  The operation is more likely to apply to a
near by object to the one that triggered the action).  Anyway, you can
do what you want of course.  The notion of applying multiple actions
is less important (IMHO) than the notion of applying the action to a
possibly different object.

> 4) section 4:
>   Repeated use of the word 'download' is used to say that the manager
>   downloads policies to the managed devices.  IMHO, this is
>   "uploading".

Steve> Very interesting. You probably say uploading because the code
Steve> is being "pushed" from here to there. I say it is downloading
Steve> because the code is going from server to client (central to
Steve> distributed).

Ahh.  To me it has always implied a direction associated with who is
performing the action.  The m-w.com dictionary defines it as:

   to transfer (information) from a microcomputer to a remote computer
   usually with a modem

which is just horrible out of date and could be interpreted either way
(though I'd argue that is directional).

However,

Steve> I'm not sure I agree that it is "uploading" but it's clear that
Steve> it's not clear. I'm thinking using the word "install"
Steve> instead. What do you think?

That works.

>> 5) section 4:
>> There are security issues with not uploading policies to a managed
>> object until they are discovered.  This issue comes up repeatedly in
>> the document.  During the time that the policy is not in place it
>> obviously can't be enforced (which could be serious if financial or
>> highly secure information was transmitted (EG) during that time
>> window).  In theory, you'd think, that this shouldn't happen that
>> often and the window would be small.  But what if the
>> pmNewRoleNotification isn't received by the management station?

Steve> I agree. I'll make some mention of this as appropriate (at least in the
Steve> security section). How's this text?:

Steve> -- Note that using this algorithm to avoid installing "unnecessary"
Steve> -- policies may result in delays in having the policy available when
Steve> -- the policy becomes necessary. This delay could become extensive if
Steve> -- an interruption of communications prevents the notification from
Steve> -- being delivered and/or the policy from being downloaded, causing
Steve> -- the sytem to not be in compliance with policy for a period of
Steve> -- time. In particular, if the policy is enforcing security rules,
Steve> -- this could open up security vulnerabilities during this period of
Steve> -- time.

That looks good.  2 comments:

1) please don't put it in the MIB as a comment (see issues discussed
   in my second mail message with respect to putting functionality
   related discussions in MIB comments)

2) download -> installed    ;-)

> ***
> 9) 5.3 and others
>    If syntax or processing errors occur, the action will terminate
>    immediately for this element.  I think failures need to be dealt
>    with in a better way.  The document repeatedly references failing
>    actions and that processing stops.
> 
>    First and most importantly, I think a failure notification needs to
>    be sent out (if configured to do so), as there are security
>    implications with policies that fail to run properly.

Steve> For each policy, there's a rollup of the total number of
Steve> instances of the policy that are failing now (a gauge,
Steve> pmPolicyAbnormalTerminations).  Also, when I send an updated
Steve> draft next week, check out pmTrackingPolicyToElementInfo which
Steve> contains info about errors and exceptions on a
Steve> per-execution-context basis (i.e. per policy/element pair). Of
Steve> course, there's also the debugging table.

Steve> So we've made it easy to poll but haven't achieved sub-second
Steve> notification (only possible with a notification). And it's here
Steve> that I'm a bit reluctant to say that a notification is a
Steve> requirement. To be honest, I really don't have a sense of this
Steve> yet. One more notification isn't that big a deal but I'm most
Steve> worried about getting into ratholes about how we can make sure
Steve> that floods of notifications don't occur.

Steve> All we would absolutely need would be to have a notification
Steve> that is sent whenever the abnormalTerminations gauge goes from
Steve> zero to non-zero and no more than 1 notification per 60 seconds
Steve> (or some similar non-configurable constant). If we could keep
Steve> it simple like this it might be worth it.

IMHO, it is a serious security issue not to enable a way for failed
actions to be run incorrectly and not have a way to inform an
administrator of this immediately.  You're right that the counter
objects exist, but (IMHO) thats not enough.  I don't want to have to
rely on a management station monitoring 50,000 boxes to determine
which ones are failing.  The chances of monitoring it frequently
enough to ensure that my policies are being implemented properly
everywhere is slim.  HP-OV, the last time I ran it, defaulted to
polling objects only every 30 or 60 minutes (and I couldn't decrease
it from that because the polling was taking 20 minutes in the first
place (granted it was a slow box)).  I'd much rather have a trap sent
warning me of such a serious problem. 

The other possibility is to configure backup actions to be used when a
primary action fails.  This is what many other policy related
architectures are trying to do (specifically, the one I'm most
familiar with is the ipsec-policy WG and they're providing a list of
backup actions to take).  In theory, then, you could implement a
backup action that sent a trap.  Though I think making a specific
notification to handle failures is a better way to go.

> 16) repeatedly, starting in 11.1.1.1:
> 
>      The agent will retrieve the instance in the same SNMP context
>      in which the element resides.
> 
>    What exactly does this mean?  In the SNMP notion of contexts, an
>    item can exist in multiple contexts.

Steve> It's supposed to mean the context in which the element was discovered
Steve> (by the pmElementTypeRegTable).

It's already been too long since I read it.  I'll have to go rescan it
now, as this one is already hazy in my head.

-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Fri Feb 23 17:34:42 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id RAA25007
	for <snmpconf-archive@odin.ietf.org>; Fri, 23 Feb 2001 17:34:41 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id RAA02289
	for snmpconf-outgoing; Fri, 23 Feb 2001 17:14:27 -0500 (EST)
Message-ID: <3A96E06E.8AECAAF3@nextbeacon.com>
Date: Fri, 23 Feb 2001 14:13:03 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
		<3A95CC7C.4C26D381@nextbeacon.com> <sdg0h5xmmp.fsf@wanderer.hardakers.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit



Wes Hardaker wrote:
> 
> Following up on the discussion related issues:
> 
> >  "Policies always express a notion of:
> >     if (an object has certain characteristics) then (apply an operation(s) to
> >     an object)"                                            ^^
> >     ^^
> Steve> What if it said: "Policies are intended to express a notion
> Steve> of:" and then we could use the original pseudo-code, which is
> Steve> designed to show the intent of the policy-based management
> Steve> model rather than the limits of what a *could* be done.
> 
> What I didn't like about the original statement is that it implied to
> me that operations always applied to the objects that triggered them,
> which is hardly the case (if anything, its probably counter to how
> they'd typically be used.  The operation is more likely to apply to a
> near by object to the one that triggered the action).  Anyway, you can
> do what you want of course.  The notion of applying multiple actions
> is less important (IMHO) than the notion of applying the action to a
> possibly different object.

Your statement surprises me but I'm wondering if it's because I've
created another terminology problem. I happen to not mean object in the
SNMP sense (i.e. a variable, sort of) but in an object-oriented sense.
What I should really say is element (I wrote this text before I siezed
on element as the term - "thingie" was in the running for a while too
:-).

This should really be re-written to:
    "Policies are intended to express a notion of:
        if (an element has certain characteristics) then (apply an
operation to that element)"

After fixing my notational blunder, would you agree that an operation is
more likely to apply to the same element? Second most likely to a
related element? And unrelated elements are also possible but don't
really draw as many strengths from the architecture.


> >> 5) section 4:
> >> There are security issues with not uploading policies to a managed
> >> object until they are discovered.  This issue comes up repeatedly in
> >> the document.  During the time that the policy is not in place it
> >> obviously can't be enforced (which could be serious if financial or
> >> highly secure information was transmitted (EG) during that time
> >> window).  In theory, you'd think, that this shouldn't happen that
> >> often and the window would be small.  But what if the
> >> pmNewRoleNotification isn't received by the management station?
> 
> Steve> I agree. I'll make some mention of this as appropriate (at least in the
> Steve> security section). How's this text?:
> 
> Steve> -- Note that using this algorithm to avoid installing "unnecessary"
> Steve> -- policies may result in delays in having the policy available when
> Steve> -- the policy becomes necessary. This delay could become extensive if
> Steve> -- an interruption of communications prevents the notification from
> Steve> -- being delivered and/or the policy from being downloaded, causing
> Steve> -- the sytem to not be in compliance with policy for a period of
> Steve> -- time. In particular, if the policy is enforcing security rules,
> Steve> -- this could open up security vulnerabilities during this period of
> Steve> -- time.
> 
> That looks good.  2 comments:
> 
> 1) please don't put it in the MIB as a comment (see issues discussed
>    in my second mail message with respect to putting functionality
>    related discussions in MIB comments)
> 
> 2) download -> installed    ;-)

Sigh. It seems it will take some time to purge that from my vocabulary.

> > ***
> > 9) 5.3 and others
> >    If syntax or processing errors occur, the action will terminate
> >    immediately for this element.  I think failures need to be dealt
> >    with in a better way.  The document repeatedly references failing
> >    actions and that processing stops.
> >
> >    First and most importantly, I think a failure notification needs to
> >    be sent out (if configured to do so), as there are security
> >    implications with policies that fail to run properly.
> 
> Steve> For each policy, there's a rollup of the total number of
> Steve> instances of the policy that are failing now (a gauge,
> Steve> pmPolicyAbnormalTerminations).  Also, when I send an updated
> Steve> draft next week, check out pmTrackingPolicyToElementInfo which
> Steve> contains info about errors and exceptions on a
> Steve> per-execution-context basis (i.e. per policy/element pair). Of
> Steve> course, there's also the debugging table.
> 
> Steve> So we've made it easy to poll but haven't achieved sub-second
> Steve> notification (only possible with a notification). And it's here
> Steve> that I'm a bit reluctant to say that a notification is a
> Steve> requirement. To be honest, I really don't have a sense of this
> Steve> yet. One more notification isn't that big a deal but I'm most
> Steve> worried about getting into ratholes about how we can make sure
> Steve> that floods of notifications don't occur.
> 
> Steve> All we would absolutely need would be to have a notification
> Steve> that is sent whenever the abnormalTerminations gauge goes from
> Steve> zero to non-zero and no more than 1 notification per 60 seconds
> Steve> (or some similar non-configurable constant). If we could keep
> Steve> it simple like this it might be worth it.
> 
> IMHO, it is a serious security issue not to enable a way for failed
> actions to be run incorrectly and not have a way to inform an
> administrator of this immediately.  You're right that the counter
> objects exist, but (IMHO) thats not enough.  I don't want to have to
> rely on a management station monitoring 50,000 boxes to determine
> which ones are failing.  The chances of monitoring it frequently
> enough to ensure that my policies are being implemented properly
> everywhere is slim.  HP-OV, the last time I ran it, defaulted to
> polling objects only every 30 or 60 minutes (and I couldn't decrease
> it from that because the polling was taking 20 minutes in the first
> place (granted it was a slow box)).  I'd much rather have a trap sent
> warning me of such a serious problem.
> 
> The other possibility is to configure backup actions to be used when a
> primary action fails.  This is what many other policy related
> architectures are trying to do (specifically, the one I'm most
> familiar with is the ipsec-policy WG and they're providing a list of
> backup actions to take).  In theory, then, you could implement a
> backup action that sent a trap.  Though I think making a specific
> notification to handle failures is a better way to go.

Understood. Still thinking. And eager to hear others viewpoints.


Thanks,
Steve


From owner-snmpconf@seymour39.SNMP.COM  Mon Feb 26 05:32:25 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id FAA03517
	for <snmpconf-archive@odin.ietf.org>; Mon, 26 Feb 2001 05:32:10 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id FAA17492
	for snmpconf-outgoing; Mon, 26 Feb 2001 05:11:05 -0500 (EST)
Message-ID: <3A9A0563.E2A3E581@nextbeacon.com>
Date: Sun, 25 Feb 2001 23:27:31 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: snmpconf Snapshot draft
Content-Type: multipart/mixed;
 boundary="------------CBC5EA910B8DBA2A7FF6D9FE"
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

This is a multi-part message in MIME format.
--------------CBC5EA910B8DBA2A7FF6D9FE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Here's a snapshot of the draft in progress. You'll also see more changes
later in the week. I'll try to put together a backgrounder and summary
of notable changes Monday afternoon.

Using Jon's todo list that he posted a while ago, the following items
are done:
3
5
7
9
10
15
16
17
18
19
23
24
25
28
29
35
36
37
38
39
40
48


A number (but not all) of the feedback from recent emails is also in
here. There's still more pending in this category.


Steve
--------------CBC5EA910B8DBA2A7FF6D9FE
Content-Type: text/plain; charset=us-ascii;
 name="pm.txt"
Content-Disposition: inline;
 filename="pm.txt"
Content-Transfer-Encoding: 7bit





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


                 Policy Based Management MIB
                draft-ietf-snmpconf-pm-05.txt
                       January 3, 2001


                       Steve Waldbusser
                         Jon Saperia
                       Thippanna Hongal





Status of this Memo

This document is an Internet-Draft and is in full conformance
with all provisions of Section 10 of RFC2026.

Internet-Drafts are working documents of the Internet
Engineering Task Force (IETF), its areas, and its working
groups.  Note that other groups may also distribute working
documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six
months and may be updated, replaced, or obsoleted by other
documents at any time.  It is inappropriate to use Internet-
Drafts as reference material or to cite them other than as
"work in progress."

The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt

The list of Internet-Draft Shadow Directories can be accessed
at http://www.ietf.org/shadow.html.

Copyright Notice

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

1.  Abstract

This memo defines a portion of the Management Information Base
(MIB) for use with network management protocols in TCP/IP-
based internets.  In particular, this MIB defines objects that
enable policy-based configuration management of SNMP





Various Authors      Expires June 3, 2001             [Page 1]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


infrastructures.

2.  The SNMP Management Framework

   The SNMP Management Framework presently consists of five
   major components:

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

    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 [2], STD 16, RFC 1212 [3] and RFC 1215 [4]. The
        second version, called SMIv2, is described in STD 58,
        RFC 2578 [5], RFC 2579 [6] and RFC 2580 [7].

    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 [8]. A second version of the SNMP message
        protocol, which is not an Internet standards track
        protocol, is called SNMPv2c and described in RFC 1901
        [9] and RFC 1906 [10]. The third version of the
        message protocol is called SNMPv3 and described in RFC
        1906 [10], RFC 2572 [11] and RFC 2574 [12].

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

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

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

   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.






Various Authors      Expires June 3, 2001             [Page 2]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


   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.








































Various Authors      Expires June 3, 2001             [Page 3]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


3.  Overview

Large IT organizations have developed management strategies to cope
with the extraordinarily large scale and complexity inherent in
today's networks. In particular, they try to configure the network as
a whole by describing and implementing high-level business policies,
rather than managing device by device, where orders of magnitude more
decisions (and mistakes) may be made.

Following this management practice results in the following benefits:
  - Reduced training needs (fewer details to learn)
  - Reduced documentation costs (fewer details to document)
  - Reduced impact of turnover (less ad-hoc knowledge goes out the door)
  - Greater testability (a greater percentage of fielded
    configurations may be tested in the lab)
  - Higher reliability (combination of factors above)
  - Lower cost of changes (changes can be simpler and operate over a
    wider extent)
  - Lower cost of corporate mergers (less knowledge to transfer; fewer
    policies to integrate)
  - Lower cost of ownership (combination of factors above)

To illustrate the concept of "business policies", some examples are:
  - All routers will run code version 6.2
  - On-site contracters will all have special security restrictions on
    their ports
  - All voice over cable ports in California must provide free local
    calling
  - Apply special forwarding to all ports whose customers have paid
    for premium service.

Each of these policies could represent an action applied to hundreds
of thousands of configuration variables.

In order to automate this practice, customers need software tools that
will implement business policies across their network, as well as
a standard protocol that will ensure that it can be applied to all of
their devices, regardless of the vendor.

This practice is called Policy-Based Network Management. This document
defines standard managed objects for the Simple Network Management
Protocol that are used to distribute policies in a standard form
throughout the network.







Various Authors      Expires June 3, 2001             [Page 4]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


4.  Policy-Based Management Architecture

Policy-based network management is the practice of applying management
operations globally on all managed elements that share certain
attributes.

Policies are intended to express a notion of:
  if (an element has certain characteristics) then (apply operation to
  that element)

Policies take the following normal form:

  if (policyFilter) then (policyAction)

A policyFilter is program code which results in a boolean
to determine whether or not an element is a member of a set of
elements upon which an action is to be performed.

A policyAction is an operation performed on an element or a set of
elements.

These policies are most often executed on or near managed devices,
where the elements live (and thus their characteristics may be easily
inspected), and where operations on those elements will be performed.

A management station is responsible for distributing an organization's
policies to all of the managed devices in the infrastructure. The
pmPolicyTable provides managed objects for sending a policy to a
managed device.

In this architecture, an element is a group of related MIB variables
such as all the variables for interface #7. This enables policies to
be expressed more efficiently and concisely. Elements can also model
circuits, CPUs, queues, processes, systems, etc.

The execution model for policies on a managed device is:

  foreach element for which policyFilter returns true
      execute policyAction on that element

For example:

  If (interface is fast ethernet)       then (apply full-duplex mode)
  If (interface is access)              then (apply security filters)
  If (gold service paid for on circuit) then (apply special queueing)





Various Authors      Expires June 3, 2001             [Page 5]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


Each unique combination of policy and element is called an execution
context. Within a particular execution context, the phrase "this
element" is often used to refer to the associated element, as most
policy operations will be applied to "this element". The address of
"this element" contains the index of the element, the context the
element was discovered in, and the address of the system on which the
element was discovered. In most circumstances the context and address
will be implicit.

PolicyFilters have the capability of performing comparison operations
on SNMP variables, logical expressions, and other functions. Many
device characteristics are already defined in MIBs and are
easy to include in policyFilter expressions (ifType == ethernet,
frCircuitCommittedBurst < 128K, etc). However, there are
important characteristics that aren't currently in MIB objects, and
worse, it is not current practice to store this information on managed
devices. Therefore, this document defines MIB objects for this
information. To meet today's needs there are three missing areas:
roles, capabilities and time.

Roles

A role is an administratively specified characteristic of a managed
element (for example, an interface). It is a selector for
policies, to determine the applicability of the policy to
a particular managed element.

Some examples of roles are political, financial, legal,
geographical, or architectural characteristics, typically not directly
derivable from information stored on the managed system. For example,
"paid for premium service" or "is plugged into a UPS" are examples of
roles, whereas the "percent utilization of a link" would not be.

Some types of information one would put into a role include:

  political - describes the role of a person or group of people, or of
              a service that a group of people use. Examples:
              executive, sales, outside-contracter, customer.
        If (attached user is executive) then (apply higher bandwidth)
        If (attached user is outside-contracter) then (restrict access)

  financial/legal - describes what financial consideration was
                    received. Could also include contractual or legal
                    considerations. Examples:
                    paid, gold, free, trial, demo, lifeline





Various Authors      Expires June 3, 2001             [Page 6]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        If (gold service paid for) then (apply special queueing)

  geographical - describes the location of an element. Examples:
                 California, Headquarters, insecure conduit.
        If (interface leaves the building) then (apply special security)

  architectural - describes the network architects "intent" for an
                  element. For example: backup, trunk.
         If (interface is backup) then (set ifAdminStatus = down)

  Roles in this model are human defined strings that can be referenced
  by policy code. Roles may be assigned to elements by the role group
  in this MIB as well as through implementation-dependent
  means. Multiple roles may be assigned to each element. Because
  policy code can make policy decisions based on the value of any MIB
  object, role strings will typically contain information not
  accessible in MIB objects.

  The roleMatch accessor function allows policy code to make
  decisions based on whether or not an element has a particular role
  assigned to it.

  The role group allows a management station to learn what roles exist
  on a managed system. The management station may choose not to
  install policies that depend on a role that does not exist on any
  elements in the system. The management station can then register for
  notifications of new roles. Upon receipt of a pmNewRoleNotification,
  it may choose to install new policies that make use of that new
  role.

Capabilities

  Some actions are inappropriate for certain elements or are simply
  unsupported because a capability doesn't exist or because it is
  restricted. Policy filters must be able to be defined so that a
  policy can be applied only to elements that have the proper
  capability. The capabilities table provides MIB objects that
  describe the capabilities of the system.

  The capMatch accessor function allows policy code to make
  decisions based on whether or not an element has certain
  capabilities.

  The capabilities group allows a management station to learn what
  capabilities exist on a managed system. The management station may





Various Authors      Expires June 3, 2001             [Page 7]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


  choose not to install policies that depend on a capability that
  does not exist on any elements in the system. The management station
  can then register for notifications of new capabilities. Upon
  receipt of a pmNewCapabilityNotification, it may choose to install
  new policies that make use of that new capability.

Time

  Managers may wish to define policies that are true for certain
  periods of time. This might mean that a policy is installed and is
  dormant for a period of time, becomes active, and then later becomes
  inactive. Sometimes these time periods will be regular (M-F 9-5) and
  sometimes ad-hoc. This MIB provides MIB objects that allow
  policies to be dependent on time.


5.  Policy Based Management Execution Environment

There are several steps performed in order to execute policies
in this environment:

    - Element Discovery
    - Element Filtering
    - Policy Enforcement


5.1.  Element Discovery

An element is a uniquely addressable entity on a managed
device. Examples of elements include interfaces, circuits,
queues, CPUs, and processes. Sometimes various attributes of
an entity will be described through tables in several standard
and proprietary MIBs - as long as the indexing is consistent
between these tables, the entity can be modeled as 1 element.
For example, the ifTable and the dot3Stats table both contain
attributes of interfaces and share the same index (ifIndex),
therefore they can be modeled in this model as one element
type.

The Element Type Registration table is used for the manager to
learn what element types are being managed by the system and
to register new types if necessary. An element type is
registered by providing the OID of an SNMP object (i.e.,
without the instance). Each SNMP instance that exists under
that object is a distinct element. The address of the element





Various Authors      Expires June 3, 2001             [Page 8]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


is the index part of the discovered OID. This address will be
supplied to policy filters and actions so that this code can
inspect and configure the element.

For each element that is discovered, the policy filter is
called with the element address as an argument to see if the
element is a member of the set that the policy acts upon.

A special element type "0.0" exists. "0.0" represents the
single instance of the system itself and provides an execution
context for policies to operate on "the system" as well as on
MIB objects modelled as scalars. For example, "0.0" gives an
execution context for policy-based selection of the operating
system code version (likely modeled as a scalar MIB object).

If the agent is discovering elements by polling, it should
check for new elements no less frequently than
pmElementTypeRegMaxLatency would dictate. When an element is
first discovered all policyFilters are run immediately and
policyFilters that match will have the associated policyAction
run immediately. Subsequently, the policyFilter will be run
regularly for the element with no more than
pmPolicyFilterMaxLatency milliseconds elapsing between each
invocation.


5.1.1.  Implementation Notes

Note that while the external behavior of this registration
process is defined in terms of the walking of MIB tables,
implementation strategies may differ. For example, commonly-
used element types (like interface) may have purpose-built
element discovery capability built-in and advertised to
managers through an entry in the pmElementTypeRegTable.

Before registering an element type, it is the responsibility
of a manager to inspect the table and see if it is already
registered (by the agent or another manager). Note that
entries that differ only in the last OID (which specifies
which object in an entry) are effectively duplicates and
should be treated as such by the manager.

The system which implements the Policy-Based Management MIB
may not have knowledge of the format of object identifiers in
other MIBs. Therefore it is inappropriate for it to check





Various Authors      Expires June 3, 2001             [Page 9]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


these OIDs for errors. It is the responsibility of the
management station to register well-formed object-identifiers.
For example, if an extra sub-identifier is supplied when
registering the ifTable, no elements will be discovered.
Similarly, if a sub-identifier is missing, every element will
be discovered numerous times (once per column) and none of the
element addresses will be well-formed.



5.2.  Element Filtering

The first step in executing a policy is to see which elements
match the policy filter. To evaluate a policy, the policy
filter is called once for each element and runs to completion.
The element address is the only state that is passed to the
filter code for each invocation (in particular, except for
state accessible from accessor functions, no state is
remembered from the previous invocation of this element nor
from the previous invocation of the policy filter). If any
syntax or processing error occurs, the filter will terminate
immediately for this element. If the filter returns non-zero,
the corresponding policy action will be executed for this
element.

If an element matches a filter and it had not matched that
filter the last time it was checked (or it is a newly-
discovered element), the associated policyAction will be
executed immediately. If the element had matched the filter at
the last check, it will remain in the set of elements whose
policyAction will be run within the
policyFilterActionMaxLatency.


5.2.1.  Implementation Notes

It is an implementation-dependent matter as to how policy
filters are scheduled. Each filter/element combination is
conceptually its own process and can be scheduled sequentially
or two or more could be run simultaneously.

Policy filters have no side-effects except for changes to the
scratchpad.







Various Authors      Expires June 3, 2001            [Page 10]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


5.3.  Policy Enforcement

For each element that has returned non-zero from the policy
filter, the corresponding policy action is called. The element
address is the only state that is passed to the policy action
for each invocation (in particular, except for state
accessible from accessor functions, no state is remembered
from the policy filter evaluation, nor from the previous
filter/action invocation of this element nor from the previous
invocation of the policy filter or action on any other
element). If any syntax or processing error occurs, the action
will terminate immediately for this element.


5.3.1.  Implementation Notes

It is an implementation-dependent matter as to how policy
actions are scheduled. Each filter/element combination is
conceptually its own process and can be scheduled sequentially
or two or more could be run simultaneously.






























Various Authors      Expires June 3, 2001            [Page 11]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


6.  Policy Language

Policy filters and policy actions are expressed with the
policy language.

The policy language is intended to be familiar to programmers
in a variety of languages, including Perl and C. There is no
referenceable standard for the Perl language, so the policy
language is defined as a subset of the C++ language. A subset
was used to provide for easy development of low-cost
interpreters of the policy language and to take away language
constructs that are peculiar to the C++ language.  For
example, it is expected that both C and Perl programmers will
understand the constructs allowed in the policy language.

Some examples of the features that have been removed from the
C++ language are: function definitions, pointer variables,
structures, enums, typedefs, floating point and pre-processor
functions (except for comments).

This language is formally defined as a subset of ISO C++ [19],
but only allows those constructs that may be expressed in the
EBNF documented here. This is done because while BNF doesn't
fully specify syntactical rules (it allows constructs that are
invalid) and doesn't specify semantic rules, it can
successfully be used to define the subset of the language that
is required for conformance to this standard. Unless
explicitly described herein, the meaning of any construct
expressed in the BNF can be found by reference to the ISO C++
standard.

The use of comments and newlines are allowed and encouraged in
order to promote readability of policy code. Comments begin
with '/*' and end with '*/'.

Policy code in this language must be expressed in the UTF8
character set.



6.1.  Formal Definition

The policy language follows the syntax and semantics of ISO
C++ [19], but policy code is limited to that which that can be
expressed in the Extended Backus-Naur Form below.





Various Authors      Expires June 3, 2001            [Page 12]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


Any keyword in the C++ language which is not used in the
Policy language is a reserved word and cannot be used in any
policy script. This prevents someone from using a C++ keyword
as an identifier in a program and thus make the meaning of the
program confusing.

The Policy Language permits comments using the comment
delimiters,

In the syntax notation used here, terminals are character set
members (singly or in a sequence) that are enclosed between
two single-quote characters or described as a phrase between
'<' and '>' characters.  Syntactic categories (nonterminals)
are a sequence of letters and underscore characters.  A colon
(:) following a  nonterminal introduces its definition, a
production.  In a production, a '|' character separates
alternatives. The '(' and indicate that the enclosed items are
optional. The '?' symbol following an item indicates that the
item is optional. The '*' symbol following an item indicates
that the item is repeated zero, one, or more times. The '+'
symbol following an item indicates that the item is repeated
one or more times. The symbol '--' begins a comment that ends
at the end of the line.

-- Lexical Grammar

    identifier:   letter ( letter | digit )*

    letter:       '_' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f'
                | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm'
                | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't'
                | 'u' | 'v' | 'w' | 'x' | 'y' | 'z'
                | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'
                | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M'
                | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T'
                | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'

    digit:        '0' | '1' | '2' | '3' | '4' | '5'
                | '6' | '7' | '8' | '9'

    non_zero:   '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'

    oct_digit:  '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'

    hex_digit:    digit





Various Authors      Expires June 3, 2001            [Page 13]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


                | 'a' | 'b' | 'c' | 'd' | 'e' | 'f'
                | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'

    integer_constant:    decimal_constant
                       | octal_constant
                       | hex_constant

    decimal_constant:    non_zero digit*

    octal_constant:      '0' oct_digit*

    hex_constant:        ( '0x' | '0X' ) hex_digit+

    char_constant:       ''' c_char '''

    c_char:              non_quote | '"' | escape_seq

    string_literal:      '"' s_char* '"'

    s_char:              non_quote | ''' | escape_seq

    non_quote:  Any character in the UTF-8 character set
                except single quote ('), double quote ("),
                backslash ('\') or newline.

    escape_seq:    '\''   |   '\"'   |   '\?'   |   '\\'
                 | '\a'   |   '\b'   |   '\f'   |   '\n'
                 | '\r'   |  '\t'    |   '\v'
                 | '\' oct_digit+
                 | '\x' hex_digit+

-- Phrase Structure Grammar

    -- Expressions

    primary_expression:
          identifier
        | integer_constant
        | char_constant
        | string_literal
        | '(' expression ')'

    postfix_expression:
          primary_expression
        | postfix_expression '(' argument_expression_list? ')'





Various Authors      Expires June 3, 2001            [Page 14]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        | postfix_expression '++'
        | postfix_expression '--'
        | postfix_expression '[' expression ']'

    argument_expression_list:
          assignment_expression
        | argument_expression_list ',' assignment_expression

    unary_expression:
          postfix_expression
        | unary_operator unary_expression

    unary_operator:
        '+' | '-' | '~' | '!' | '++' | '--'

    binary_expression:
          unary_expression
        | binary_expression binary_operator unary_expression

    binary_operator:
          '||' | '&&' | '|' | '^' | '&' | '!=' | '==' | '>=' | '<='
        | '>' |  '<' | '>>' | '<<' |  '-' |  '+' |  '%' |  '/' |  '*'

    assignment_expression:
          binary_expression
        | unary_expression assignment_operator assignment_expression

    assignment_operator:
          '=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' | '>>='
        | '&=' | '^=' | '|='

    expression:
          assignment_expression
        | expression ',' assignment_expression

    ------------------------------------------------------
    -- Declarations

    declaration:       var declarator_list ';'

    declarator_list:   init_declarator
                     | declarator_list ',' init_declarator

    init_declarator:   identifier [ '=' assignment_expression ]






Various Authors      Expires June 3, 2001            [Page 15]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    ------------------------------------------------------
    -- Statements

    statement:
          declaration
        | compound_statement
        | expression_statement
        | selection_statement
        | iteration_statement
        | jump_statement

    compound_statement:     '{' statement* '}'

    expression_statement:   expression? ';'

    selection_statement:
       'if' '(' expression ')' statement [ 'else' statement ]

    iteration_statement:
          'while' '(' expression ')' statement
        | 'for' '(' expression? ';' expression? ';' expression? ')'
              statement

    jump_statement:
          'continue' ';'
        | 'break' ';'
        | 'return' expression? ';'


    ---------------------------------------------
    -- Root production.

    policy_code:
        statement*


7.  Variables

For further simplicity, the policy script language only allows
variables to be declared of one type, "var", a loosely-typed
data class that can store integer and string values. The
native C++ types (char, int, etc.) are not available in this
language. The semantics of the "var" type are modelled after
those of ECMAScript[21].






Various Authors      Expires June 3, 2001            [Page 16]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


  For example:

    var number = 0, name = "IETF";

Policy code will be executed in an environment where the
following typedef is declared. (Note that this typedef will
not be visible in the policyFilter or policyAction code.)

  typedef ... var;

While this declaration is expressed here as a typedef, the
'typedef' keyword itself is not available to be used inside of
policy code.


7.1.  The var class

A value is an entity that takes on one of two types: string or
integer.

The String type is the set of all finite ordered sequences of
zero or more 8-bit unsigned integer values ("elements"). The
string type can store textual data as well as binary data
sequences. Each element is regarded as occupying a position
within the sequence. These positions are indexed with
nonnegative integers. The first element (if any) is at
position 0, the next element (if any) at position 1, and so
on. The length of a string is the number of elements (i.e.,
8-bit values) within it. The empty string has length zero and
therefore contains no elements.

The integer type is the set of all integer values in the range
-9223372036854775808 to 18446744073709551615, plus the value
NaN.

Prior to initialization, a var object has type String and a
length of zero.

The policy script runtime system performs automatic type
conversion as needed. To clarify the semantics of certain
constructs it is useful to define a set of conversion
operators. These operators are not a part of the language;
they are defined here to aid the specification of the
semantics of the language. The conversion operators are
polymorphic; that is, they can accept a value of any standard





Various Authors      Expires June 3, 2001            [Page 17]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


type.

ToInteger

The operator ToInteger converts its argument to a value of
type Integer according to the following table:

    Integer            The result equals the input argument
                       (no conversion).
    String             See grammar and note below
    integer_constant   The result equals the input argument
                       (no conversion).
    string_literal     See grammar and note below
    char_constant      See grammar and note below

ToInteger Applied to strings

ToInteger applied to the String Type, string_literal and
char_constants applies the following grammar to the input. If
the grammar cannot interpret the string as an expansion of
numeric_string, then the result of ToInteger is NaN. Note that
a numeric_string that is empty or contains only white space is
converted to 0.

-- EBNF for numeric_string

  numeric_string : white_space* numeric white_space*

  white_space :      <TAB> |  <SP> |  <NBSP> |  <FF> |  <VT>
                   | <CR>  |  <LF> |  <LS>   |  <PS> |  <USP>

  numeric :        signed_decimal |  hex_constant |
octal_constant

  signed_decimal:  [ '-' | '+' ] decimal_constant

  -- decimal_constant, hex_constant, octal_constant are
defined in the
  -- policy language EBNF described earlier

ToString

The operator ToString converts its argument to a value of type
String according to the following table:






Various Authors      Expires June 3, 2001            [Page 18]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    Integer           Return the string containing the decimal
                      representation of the input argument in
the form
                      of signed_decimal except that no leading
'+'
                      will be used. If the value is 'NaN',
return the
                      string "NaN".
    String            Return the input argument (no
conversion)
    integer_constant  Return the string containing the decimal
                      representation of the input argument in
the form
                      of signed_decimal except that no leading
'+'
                      will be used. If the value is 'NaN',
return the
                      string "NaN".
    string_literal    Return the input argument (no
conversion)
    char_constant     Return the string of length one
containing
                      the value of the input argument.

ToBoolean

The operator ToBoolean converts its argument to a value of
type Integer according to the following table:

    Integer            The result is 0 if the argument is 0 or
NaN.
                       Otherwise the result is 1.
    String             The results is 0 if the argument is the
empty
                       string. Otherwise the result is 1.
    integer_constant   The result is 0 if the argument is 0.
                       Otherwise the result is 1.
    string_literal     The results is 0 if the argument is the
empty
                       string. Otherwise the result is 1.
    char_constant      The result is 1.


Operators






Various Authors      Expires June 3, 2001            [Page 19]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    A++, A--, ++A, --A:
           A = ToInteger(A); OP;
    +A:    ToInteger(A);
    -A:     -1 * ToInteger(A);
     A:     ToInteger(A);
    !A:    !ToBoolean(A);
    A * B, A - B, A & B, A ^ B , A | B, A << B, A >> B:
           ToInteger(A) OP ToInteger(B)
    A / B, A % B:
           if (ToInteger(B) == 0)
             NaN;
           else
             ToInteger(A) OP ToInteger(B)
    A + B:
           if (Type(A) == String || Type(B) == String)
             ToString(A) concatenated with ToString(B)
           else
             A + B
    Compound Assignment (op=):
            Simply follow rules above. Note that type of LHS may be
            changed as a result.

    Note that for any operation above, if any operand is 'NaN' or
    becomes 'NaN' due to a ToInteger conversion, the result of the
    operation will be 'NaN'.

    A < B, A > B, A <= B, A >= B, A == B, A != B:
           if (Type(A) == String && Type(B) == String)
               lexically compare strings as per OP
           else
               ToInteger(A) OP ToInteger(B)
     A && B:
            if (ToBoolean(A))
                ToBoolean(B);
            else
                false;
     A || B:
            if (ToBoolean(A))
                true;
            else
                ToBoolean(B);









Various Authors      Expires June 3, 2001            [Page 20]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


8.  Address of `this element'

Policy code needs a convenient way to get the components of
the index for "this element" so that they can perform SNMP
operations on it or on related elements.

Two mechanisms are provided.

1. For all oid input parameters to all SNMP Accessor Functions (but
   not oid utility functions), the token "$n" ('$' followed by an
   integer between 0 and 99) can be used in place of any decimal
   sub-identifier. This token is expanded by the agent at execution
   time to contain the n'th subid of the index for the current
   element. For example, if the element is interface #7, and the
   objectIdentifier is "1.3.6.1.2.1.2.2.1.3.$1", it will be expanded
   to "1.3.6.1.2.1.2.2.1.3.7".

   If the token specified is beyond the length of the index for the
   current element, processing of the containing filter or action will
   be immediately terminated.

2. The ic() and iv() functions allow access to the components of the
   index for "this element". ic() takes no argument and returns the
   number index components exist. iv() takes an integer argument
   specifying which component of the index (numbered starting at 0)
   and returns an integer containing the value of the n'th
   subidentifier. Refer to the accessor functions section for the
   complete definition of ic() and iv().

   For example, if "this element" is frCircuitDLCI.5.57
                                     (ifIndex = 5, DLCI = 57)
         then ic()  returns 2
              iv(0) returns 5
              iv(1) returns 57

   This is helpful when wishing to address a related element.
   Extending the previous example, to find the port speed of the port
   the circuit (above) runs over:

       portSpeed = getvar("ifSpeed." + iv(0));










Various Authors      Expires June 3, 2001            [Page 21]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


9.  Accessor Functions

Accessor functions are built-in functions available primarily
to provide access to information on the local system or to
more efficiently manipulate this information. A group of
functions is organized into a library, the unit of conformance
for function implementation. In order to claim conformance to
a library, an implementation must implement all functions in a
library to the specifications of the library.

In order for a management station or policy code to understand
if a certain library of functions is implemented, each library
will have a registration OID that it registers in this MIB's
capabilities table. Thus, conformance to a library can be
tested with the capMatch library function (in the base
library) or by inspecting the pmCapabilitiesType objects in
the pmCapabilitiesTable.


10.  Base Accessor Function Library

A standard base library of accessor functions is available to
all systems that implement this specification. This library is
known by the capability OID of:

  pmBaseFunctionLibrary ::= { policyMgt pmConformance pmGroups 4 }

This library contains four types of functions:

  - SNMP Accessor functions
  - Policy Configuration Accessor functions
  - Utility functions
  - Library Functions

Note that in the descriptions of these functions below, the
function prototype describes the type of argument expected.
Even though variables are not declared with a particular type,
their contents be as appropriate for each function argument.
If the type is variable, the keyword 'var' will be used. If
only a string is appropriate, the keyword 'string' will be
used. If only an integer is appropriate, the keyword 'integer'
will be used.

In the function prototype, if the '&' character precedes the
identifier for an argument, that argument may be modified by





Various Authors      Expires June 3, 2001            [Page 22]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


the function (e.g., "integer &result, ...)"). Arguments
without the '&' character cannot be modified by the function.


10.1.  SNMP Accessor Functions

Two sets of SNMP Accessor functions are available with
different situations in mind:

  - Convenience SNMP Functions

    In an effort to keep simple things simple, these functions are
    easy to use and promote easy to understand code. These functions
    will suffice for the majority of situations where a single
    variable is referenced and the desired error recovery is to simply
    (and immediately) give up (and move to the next policy-element
    combination). In more complex cases, the General SNMP Functions
    can be used at the cost of several times the code complexity.

    The convenience SNMP functions are getvar, exists,
    setvar, setRowStatus, and searchcolumn.

  - General SNMP Functions

    The General SNMP functions allow nearly any legal SNMP Message to
    be generated, including those with multiple varbinds, getNext
    operations, notifications, and messages with explicit addressing
    or security specifications.

    The general SNMP functions are writeVar, readVar, and snmpsend.

Many of the accessor functions use a string encoding of a
value that may be one of many SMI data types as input or
output parameters. The actual type is not encoded in the
value, but rather is specified elsewhere, possibly by nature
of the context in which it is used. The encodings are:

Any Integer value
    (INTEGER, Integer32, Counter32, Counter64, Gauge32, Unsigned32,
    TimeTicks, Counter64):

    Ascii-encoded integer in ascii,
    range: -9223372036854775808 to 18446744073709551615

Octet String





Various Authors      Expires June 3, 2001            [Page 23]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    The character string contains the unencoded value of the octet
    string.

Object Identifier
    A decimal ascii encoded object identifier stored in a string.

    subid:     decimal
    oid:       subid | subid '.' oid

    Note that ascii descriptors (e.g. "ifIndex") are never used in
    these encodings "over the wire". They are never returned from
    accessor functions nor are they ever accepted by them. NMS user
    interfaces are encouraged to allow humans to view object
    identifiers with ascii descriptors, but they must translate those
    descriptors to dotted-decimal format before sending them in MIB
    objects to policy agents.



10.1.1.  Convenience SNMP Functions


10.1.1.1.  getvar()

The getvar() function is used to retrieve the value of an SNMP
MIB instance.

     string getvar(string oid)

        Oid is a string containing an ASCII dotted-decimal
        representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").

        The agent will retrieve the instance in the same SNMP context
        in which the element resides. Note that no actual SNMP PDU
        needs to be generated and parsed when the policy MIB module
        resides on the same system as the managed elements.

        If the queried object identifier value does not exist
        execution of the containing code on the current
        element will immediately terminate and the associated
        policyAction will not be executed on the current element.

        This function returns a string containing the returned value,
        encoded according to the returned type.





Various Authors      Expires June 3, 2001            [Page 24]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        It is recommended that NMS user interfaces display and allow
        input of MIB object names by their descriptor values followed
        by the index in dotted-decimal form (e.g., "ifType.7").

10.1.1.2.  exists()

The exists() function is used to verify the existence of an
SNMP MIB instance.

     integer exists(string oid)

        oid is a string containing an ASCII dotted-decimal
        representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").

        The agent will retrieve the instance in the same SNMP context
        in which the element resides. Note that no actual SNMP PDU
        needs to be generated and parsed when the policy MIB module
        resides on the same system as the managed elements.

        This function returns the value 1 if the SNMP instance exists
        and 0 if it doesn't exist.

        It is recommended that NMS user interfaces display and allow
        input of MIB object names by their descriptor values followed
        by the index in dotted-decimal form (e.g., "ifType.7").

10.1.1.3.  setvar()

The setvar() function is used to set a MIB instance to a
certain value. The setvar() function is only valid in
policyActions.  If when executing a policyFilter, the agent
encounters a call to the setvar() function, execution of the
policyFilter for the current element will immediately
terminate and the associated policyAction will not be executed
on the current element.

    integer setvar(string oid, var value, integer type)

        oid is a string containing an ASCII dotted-decimal
        representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").

        value is a string encoded in the format appropriate to the
        type parameter. The agent will set the variable specified by





Various Authors      Expires June 3, 2001            [Page 25]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        oid to the value specified by value.

        type will be the type of the value parameter and will be set
        to one of the values for DataType Constants.

        The agent will set the instance in the same SNMP context
        in which the element resides. Note that no actual SNMP PDU
        needs to be generated and parsed when the policy MIB module
        resides on the same system as the managed elements.

        If the set encounters any error, 0 is returned. If sucessful,
        1 is returned.

        It is recommended that NMS user interfaces display and allow
        input of MIB object names by their descriptor values followed
        by the index in dotted-decimal form (e.g., "ifType.7").

10.1.1.4.  searchcolumn()

    integer searchcolumn(string columnoid, string startoid,
                         var value, integer type, string &resultoid)

        searchcolumn performs an SNMP walk on a portion of the MIB
        searching for objects with values equal to the `value'
        parameter.

        columnoid constrains the search to only those variables that
        share the same OID prefix (i.e. are beneath it in the OID
        tree).

        startoid is the OID sent in the first getnext packet. While
        the value has not been found and the returned OID still shares
        the same prefix wth columnoid, the returned OID will be sent
        in the next getnext query.

        In the first search of a column, startoid will be set to the
        same value as columnoid. If the caller wishes to learn of more
        than one match, it should call searchcolumn multiple times
        where the startoid value should be set to the value returned
        from the previous invocation (effectively continuing the
        search).

        value is the value to be searched for. When a value is found
        that matches exactly, oid is set to the oid of the matched
        value.





Various Authors      Expires June 3, 2001            [Page 26]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        type describes the type of the value to be matched.

        The resultoid argument is modified to contain the oid of the
        variable that was matched.

        If the search traverses beyond columnoid without finding a
        match, zero is returned.

        For example:
        To find an ethernet interface
        searchcolumn("ifType", "ifType", "6", Integer, oid);

        This sends a getnext request for ifType and continues to walk
        the tree until a value matching 6 is found or a variable
        returns that is not in the 'ifType' subtree.

        To find the next ethernet interface, assuming interface #3
        was discovered to be the first:
        searchcolumn("ifType", "ifType.3", "6", Integer, oid);

        Note that in the preceeding examples, "ifType" is used as a
        notational convenience and the actual code downloaded to the
        policy MIB agent must use the string "1.3.6.1.2.1.2.2.1.3" as
        there may be no MIB compiler (or MIB) available on the policy
        MIB agent.


10.1.1.5.  setRowStatus()

    integer setRowStatus(string oid, integer maxTries, integer seed)

        setRowStatus is used to automate the process of finding an
        unused row in a read-create table that uses RowStatus.

        oid is a string containing an ASCII dotted-decimal
        representation of an object identifier, with one of
        the subids replaced with a '*' character
        (e.g. "1.3.6.1.3.1.99.1.2.1.9.*"). The oid must reference an
        'instance' of the RowStatus object and the '*' must replace
        any integer index item that may be set to some random value.

        setRowStatus will come up with a number for the selected index
        item and will attempt to create the instance with the
        createAndWait state. If the attempt fails, it will retry with
        a different random index value. It will attempt this no more





Various Authors      Expires June 3, 2001            [Page 27]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        than maxTries times.

        If the optional seed argument is present, the initial index
        will be set to seed. Otherwise it will be random.

        setRowStatus returns the successful integer value for the
        index. If unsuccessful after maxTries or if more than one
        '*' is in oid, -1 will be returned.


10.1.2.  General SNMP Functions

It is desireable for a general SNMP interface have the ability
to perform SNMP operations on multiple variables at once and
for it to allow multiple varbind lists to exist at once. The
newPdu, readVar and writeVar functions exist in order to
provide these facilities in a language without pointers,
arrays and memory allocators.

newPDU is called to allocate a PDU and return an integer
handle to it.

readVar and writeVar access a variable length varbindlist for
a PDU. The PDU handle and the index of the variable within
that PDU are specified in every readVar and writeVar
operation. Once a PDU has been fully specified by one or more
calls to writeVar, it is passed to snmpsend (by referencing
the PDU handle) and the number of varbinds to be included in
the operation. When a response is returned, the contents of
the response are in the same varbindlist (i.e. the same PDU
handle is used) and may be read by one or more calls to
readVar.

Varbinds in this data store are created automatically whenever
they are written by any writeVar, readVar, or snmpsend
operation. It is a runtime error to read a varbind that has
not been previously written.

For example:
  var pdu = newPDU();

  writeVar(pdu, 0, "sysDescr.0", ...);
  writeVar(pdu, 1, "sysOID.0", ...);
  writeVar(pdu, 2, "ifNumber.0", ...);
  if (snmpsend(pdu, 3, Get, ...))





Various Authors      Expires June 3, 2001            [Page 28]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


      return;
  readVar(pdu, 0, iKnowItsSysDescr, iKnowItsaString, value);
  readVar(pdu, 1, ...)
  readVar(pdy, 2, ...)
  ...

or,
  var pdu = newPDU();

  writeVar(pdu, 0, "ifIndex", ...);
  writeVar(pdu, 1, "ifType", ...);
  while(!done){
    if (snmpsend(pdu, 2, Getnext, ...))
        continue;
    readVar(pdu, 0, oid1, ...);
    readVar(pdu, 1, oid2, ...);
    /* leave OIDs alone, now varbindlist #0 is set up for next step
       in table walk. */
    if (oidncmp(oid1, "ifIndex", oidlen("ifIndex")))
      done = 0;
    ...
  }


Note that in the preceeding examples, descriptors such as
ifType and sysDescr are used in object identifiers solely as a
notational convenience and the actual code downloaded to the
policy MIB agent must use a dotted decimal notation only as
there may be no MIB compiler (or MIB) available on the policy
MIB agent.

It is suggested that implementations limit the total number of
PDUs per invocation to protect other script invocations from a
malfunctioning script (e.g. a script that calls newPDU() in a
loop). To be conformant to this specification, implementations
must allow each policy script invocation to allocate at least
5 varbindlists with at least 32 varbinds per list.


10.1.2.1.  newPDU()

    integer newPDU()

        newPDU will allocate a new PDU and return a handle to the
        PDU. If no PDU could be allocated, -1 will be returned.





Various Authors      Expires June 3, 2001            [Page 29]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.1.2.2.  writeVar()

    void writeVar(integer pdu, integer varBindIndex,
                  string oid, var value, integer type)

        writeVar will store the oid, the value and it's type in
        the specified varbind.

        pdu is the handle to a PDU allocated by newPDU().

        varbindIndex is a non-negative integer that identifies the
        varbind within the specified PDU modified by this call. The
        first varbind is number 0.

        oid is a string containing an ASCII dotted-decimal
        representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").

        value is the value to be stored, of a type appropriate to the
        type parameter.

        type will be the type of the value parameter and will be set
        to one of the values for DataType Constants.




10.1.2.3.  readVar()

    void readVar(integer pdu, integer varBindIndex,
                 string &oid, var &value, integer &type)

        readVar will retrieve the oid, the value and it's type
        from the specified varbind.

        pdu is the handle to a PDU allocated by newPDU().

        varbindIndex is a non-negative integer that identifies the
        varbind within the specified PDU read by this call. The
        first varbind is number 0.

        The object identifier value of the referenced varbind will be
        copied into the oid parameter, formatted in an ASCII
        dotted-decimal representation (e.g. "1.3.6.1.2.1.1.1.0").






Various Authors      Expires June 3, 2001            [Page 30]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        value is the value retrieved, of a type appropriate to the
        type parameter.

        type is the type of the value parameter and will be set to
        one of the values for DataType Constants.




10.1.2.4.  snmpsend()

    integer snmpsend(integer pdu, integer numVarbinds, integer opcode)

        snmpsend will perform an SNMP operation using the specified
        varbindlist. Note that no actual SNMP PDU needs to be
        generated and parsed when the policy MIB module
        resides on the same system as the managed elements.

        The results of the operation will be placed in the same
        varbindList. If an error occurred, the varbindlist will remain
        unmodified except for the following:

          1) If the response PDU had a nonzero error-index, the
             varbind specified by the error-index will have its type
             field replaced with associated error-status constant.
          2) If the response PDU contained varbinds with exceptions,
             the type field of those varbinds will be replaced with
             the appropriate exception (Nosuchobject,
             NosuchInstance, or Endofmibview).
          3) If the error-status was zero and there were no
             exceptions, the varbindlist will remain unmodified. (some
             examples of situations where this will apply are timeout
             and authentication failure).

        This function returns zero unless an error occurs in which
        case it returns the proper SNMP Error Constant.

        pdu is the handle to a PDU allocated by newPDU().

        numVarbinds is a integer greater than zero that specified
        which varbinds in the varbindList will be used in this
        operation. The first N varbinds in the varbindList are used.

        opcode is the type of SNMP operation to perform and must be
        one of the values for SNMP Operation Constants.





Various Authors      Expires June 3, 2001            [Page 31]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.2.  Constants

The following constants are defined for use in all SNMP
Accessor Functions. Policy code will be executed in an
environment where the following constants are declared. (Note
that these constant declarations will not be visible in the
policyFilter or policyAction code.)

While these declarations are expressed here as C 'const's, the
'const' construct itself is not available to be used inside of
policy code.

  -- Datatype Constants

  const int Integer       = 1;
  const int String        = 2;
  const int Oid           = 3;
  const int Integer32     = 4;
  const int Ipaddress     = 5;
  const int Counter32     = 6;
  const int Gauge32       = 7;
  const int Unsigned32    = 8;
  const int Timeticks     = 9;
  const int Opaque        = 10;
  const int Counter64     = 11;

  -- SNMP Error Constants

  const int Nosuchobject         = 21;
  const int Nosuchinstance       = 22;
  const int Endofmibview         = 23;
  const int Noerror              = 24;
  const int Toobig               = 25;
  const int Nosuchname           = 26;
  const int Badvalue             = 27;
  const int Readonly             = 28;
  const int Generr               = 29;
  const int Noaccess             = 30;
  const int Wrongtype            = 31;
  const int Wronglength          = 32;
  const int Wrongencoding        = 33;
  const int Wrongvalue           = 34;
  const int Nocreation           = 35;
  const int Inconsistentvalue    = 36;
  const int Resourceunavailable  = 37;





Various Authors      Expires June 3, 2001            [Page 32]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


  const int Commitfailed         = 38;
  const int Undofailed           = 39;
  const int Authorizationerror   = 40;
  const int Notwritable          = 41;

  const int Badparameter         = 42;
  const int Toolong              = 43;
  const int Parseerror           = 44;
  const int Authfailure          = 45;
  const int Timeout              = 46;

  -- SNMP Operation Constants

  const int Get                  = 0;
  const int Getnext              = 1;
  const int Set                  = 3;
  const int Trap                 = 4;
  const int Inform               = 6;
  const int V2trap               = 7;



10.3.  Policy Configuration Accessor Functions

Policy Configuration Accessor Functions provide access to
information specifically related to the execution of policies.


10.3.1.  roleMatch()

The roleMatch() function is used to check to see if an element
has been assigned a particular role.

    integer roleMatch(string roleString, string element)

        Argument roleString is a string. The optional argument element
        contains the OID address of an element, defaulting to the
        current element if this argument is not supplied.
        If roleString exactly matches (content and length) any role
        assigned to the specified element,
        the function returns 1. If no roles match,
        the function returns 0.








Various Authors      Expires June 3, 2001            [Page 33]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.3.2.  capMatch()

The capMatch() function is used to check to see if an element
has a certain capability.

    integer capMatch(string capOid, string element)

        Argument capability is a string containing a
        ASCII dotted-decimal representation of an object identifier
        that describes a capability as would be found in the
        pmCapabilitiesTable. The optional argument element
        contains the OID address of an element, defaulting to the
        current element if this argument is not supplied.

        If the specified element has the capability described by
        capString, this function returns 1, otherwise it returns 0.

10.3.3.  elementName()

The elementName() function is used to determine what the
current element is and can be used to provide information
about the type of element as well as how it is indexed.

    string elementName()

        elementName returns a string containing an ASCII
        dotted-decimal representation of an object identifier
        (e.g. 1.3.6.1.2.1.1.1.0). This object identifier identifies an
        instance of a MIB object that is an attribute of this element.


10.3.4.  ic()

The ic() and iv() functions provide convenient access to the
components of the index for "this element". Typical uses will
be in creating the index to other, related elements.

    integer ic()

        ic() returns an integer count of the number index subidentifiers
        exist in the index for "this element".









Various Authors      Expires June 3, 2001            [Page 34]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.3.5.  iv()

The ic() and iv() functions provide convenient access to the
components of the index for "this element". Typical uses will
be in creating the index to other, related elements.


    integer iv(integer n)

        iv() returns the value of the n'th subidentifier in the index
        for 'this element". The first subidentifier is indexed at
        0. If n specifies a subidentifier beyond the last
        subidentifier, a run-time exception occurs and execution of
        the current script immediately terminates.


10.3.6.  setScratchpad()

    setScratchpad(string varName, integer scope, string value)

        Every maxLatency time period, every policy runs once for each
        element. When the setScratchpad function executes, it stores a
        value that can be retrieved even after this policy execution
        code exits. This allows sharing of data between a filter and
        an action, two filters executing on different elements, or
        even different policies altogether. The value of scope
        controls which policy/element combinations can retrieve this
        varName/value pair. The options for scope are:

        Global
            The varName/value combination will be available in the
            filter or action of any policy while executing on any
            element.

        Policy
            The varName/value combination will be available in any
            future execution of the filter or action of the current
            policy (regardless of what element the policy is executing
            on).

        PolicyElement
            The varName/value combination will be available in future
            executions of the filter or action of the current policy
            but only when the policy is executing on the current
            element.





Various Authors      Expires June 3, 2001            [Page 35]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        varName is a string used to identify the value. Subsequent
        retrievals of the same varName in the proper scope will return
        the value stored. Note that the namespace for varName is
        distinct for each scope. varName is case sensitive.

        value is a string containing the value to be stored.

        Note that there may be implementation-specific limits on the
        number of scratchpad variables that can be allocated. The
        limit of unique scratchpad variables may be different for each
        scope.


10.3.7.  getScratchpad()

    integer getScratchpad(string varName, integer scope, var &value)

        The getScratchpad function allows the retrieval of values that
        were stored previously in this execution context or in
        other execution contexts. The value of scope controls which
        execution contexts can pass a value to this execution context.
        Refer to the definition of setScratchpad to see which values
        of scope can pass a value to which execution contexts.

        varName is a string used to identify the value. Subsequent
        retrievals of the same varName in the proper scope will return
        the value stored. Note that the namespace for varName is
        distinct for each scope. As a result, getScratchpad cannot
        force access to a variable in an inaccessible scope - it can
        only retrieve variables by referencing the proper scope in
        which they were set. varName is case sensitive.

        On successful return, value will be set to the value that was
        previously stored.

        This function returns 1 if a value was previously stored and 0
        otherwise.

Scratchpad Usage Examples

      Policy  Element    Action
      A       ifIndex.1  setScratchpad("foo", Global, "55")
      A       ifIndex.1  getScratchpad("foo", Global, val) == 55
      A       ifIndex.2  getScratchpad("foo", Global, val) == 55
      B       ifIndex.2  getScratchpad("foo", Global, val) == 55





Various Authors      Expires June 3, 2001            [Page 36]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


      B       ifIndex.2  setScratchpad("foo", Global, "16")
      A       ifIndex.1  getScratchpad("foo", Global, val) == 16

      Policy  Element    Action
      A       ifIndex.1  setScratchpad("bar", Policy, "75")
      A       ifIndex.1  getScratchpad("bar", Policy, val) == 75
      A       ifIndex.2  getScratchpad("bar", Policy, val) == 75
      B       ifIndex.1  getScratchpad("bar", Policy, val) not found
      B       ifIndex.1  setScratchpad("bar", Policy, "20")
      A       ifIndex.2  getScratchpad("bar", Policy, val) == 75
      B       ifIndex.2  getScratchpad("bar", Policy, val) == 20

      Policy  Element    Action
      A       ifIndex.1  setScratchpad("baz", PolicyElement, "43")
      A       ifIndex.1  getScratchpad("baz", PolicyElement, val) == 43
      A       ifIndex.2  getScratchpad("baz", PolicyElement, val) not found
      B       ifIndex.1  getScratchpad("baz", PolicyElement, val) not found
      A       ifIndex.2  setScratchpad("baz", PolicyElement, "54")
      B       ifIndex.1  setScratchpad("baz", PolicyElement, "65")
      A       ifIndex.1  getScratchpad("baz", PolicyElement, val) == 43
      A       ifIndex.2  getScratchpad("baz", PolicyElement, val) == 54
      B       ifIndex.1  getScratchpad("baz", PolicyElement, val) == 65

      Policy  Element    Action
      A       ifIndex.1  setScratchpad("foo", PolicyElement, "11")
      A       ifIndex.1  setScratchpad("foo", Global, "22")
      A       ifIndex.1  getScratchpad("foo", PolicyElement, val) == 11
      A       ifIndex.1  getScratchpad("foo", Global, val) == 22


10.3.8.  Constants

The following constants are defined for use for the scratchpad
functions. Policy code will be executed in an environment
where the following constants are declared. (Note that these
constant declarations will not be visible in the policyFilter
or policyAction MIB objects.)

While these declarations are expressed here as C 'const's, the
'const' construct itself is not available to be used inside of
policy code.

  -- Scratchpad Constants

  const int Global           = 0;





Various Authors      Expires June 3, 2001            [Page 37]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


  const int Policy           = 1;
  const int PolicyElement    = 2;


10.3.9.  signalException()

The signalException() function is used to by the script to
indicate to a management station that it is experiencing
abnormal behavior. signalException() turns on the
filterUserSignal(3) or actionUserSignal(5) bit in the
associated pmTrackingPolicyToElementInfo object (subsequent
calls to signalError() have no additional effect). This bit is
initially cleared at the beginning of each execution, so if
upon a subsequent execution, a script no longer calls this
function, the bit will be cleared.

    void signalException()

        The signalException function takes no arguments and returns no
        value.


10.3.10.  getParameters()

From time to time, policy scripts may desire one or more
parameters (e.g., site-specific constants). These parameters
may be installed with the script in this object and are
accessible to the script via the getParameters() accessor
function. If it is necessary for multiple parameters to be
passed to the script, the script can choose whatever
encoding/delimiting mechanism is most appropriate.

    string getParameters()

        The getParameters function takes no arguments. It returns a
        string containing the value of the pmPolicyParameters object
        for the running policy.


10.4.  Utility Accessor Functions

Utility Accessor Functions are provided to enable more
efficient use of the other accessor functions.







Various Authors      Expires June 3, 2001            [Page 38]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.4.1.  oidlength()

    integer oidlen(string oid)

        oidlen returns the number of subidentifiers in oid. oid is a
        string containing an ASCII dotted-decimal
        representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").


10.4.2.  oidncmp()

    integer oidncmp(string oid1, string oid2, integer n)

        Arguments oid1 and oid2 are strings containing
        ASCII dotted-decimal representations of object identifiers
        (e.g. "1.3.6.1.2.1.1.1.0").

        Compares the first n subidentifiers of oid1 and oid2 and
        returns -1 if oid1 is less than oid2, 0 if they are equal, and
        1 if oid1 is greater than oid2.


10.4.3.  subid()

    integer subid(string oid, integer n)

        subid returns the value of the n'th (starting at zero)
        subidentifier of oid. oid is a string containing an ASCII
        dotted-decimal representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").

        If n specifies a subidentifier beyond the length of oid, a
        value of -1 is returned.


10.4.4.  subidwrite()

    integer subidwrite(string oid, integer n, integer subid)

        subid sets the value of the n'th (starting at zero)
        subidentifier of oid to `subid'. oid is a string containing an
        ASCII dotted-decimal representation of an object identifier
        (e.g. "1.3.6.1.2.1.1.1.0").






Various Authors      Expires June 3, 2001            [Page 39]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        If n specifies a subidentifier beyond the length of oid, a
        value of -1 is returned.


10.4.5.  oidsplice()

    string oidsplice(string oid1, integer offset, integer len, string oid2)

        oidsplice replaces len subidentifiers in oid1 with all of the
        subidentifiers from oid2, starting at offset in oid1 (the
        first subidentifier is at offset 0). The oid length will be
        extended if necessary if offset + len extends beyond the end
        of oid1. The resulting oid is returned.


10.4.6.  Integer()

    integer Integer(var input)

        Integer converts the input into an integer by using the rules
        specified for ToInteger(), returning the integer-typed
        results.


10.4.7.  String()

    string String(var input)

        String converts the input into a string by using the rules
        specified for ToString(), returning the string-typed
        results.


10.4.8.  chr()

    string chr(integer utf8)

        Returns a one-character string containing the character
        specified by the UTF8 code contained in utf8. Note that a
        property of UTF8 is that ASCII characters are represented by
        the same UTF8 code-points as their ascii equalivents.









Various Authors      Expires June 3, 2001            [Page 40]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.4.9.  ord()

    integer ord(string str)

        Returns the UTF8 code-point value of the first character of
        str. This function complements chr(). Note that a property of
        UTF8 is that ASCII characters are represented by the same UTF8
        code-points as their ascii equalivents.


10.4.10.  substr()

    string substr(string &str, integer offset, integer len,
                  string replacement)

        Extracts a substring out of str and returns it. The first
        character is at offset 0. If offset is negative, the returned
        string starts that far from the end of str. If len is
        omitted, the returned string includes everything to the end of
        str. If len is negative, abs(len) characters are left off the
        end of the string.

        If you specify a substring that is partly outside the string,
        the part within the string is returned. If the substring is
        totally outside the string, a zero-length string is produced.

        If the replacement argument is included, str is
        modified. offset and len act as above to select a range of
        characters in str. These characters are replaced with
        characters from replacement. If the replacement string is
        shorter or longer than the number of characters selected, str
        will shrink or grow respectively.


10.5.  Library Accessor Functions

The following standard library accessor functions are
provided:

  strncmp()
  strncasecmp()
  strlen()
  random()
  sprintf()
  sscanf()





Various Authors      Expires June 3, 2001            [Page 41]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


11.  Schedule Table

This table is an adapted form of the schedTable, originally
published in RFC 2591 [20].

The policy schedule table allows control over when a policy
will be active based on the time of day. A policy that is
controlled by a schedule immediately executes its policy
filter (and conditionally the policyAction) when the schedule
becomes active, periodically re-executing these scripts as
appropriate until the schedule becomes inactive. If a policy
is associated with multiple schedules, it is considered active
at any moment at least one of the schedules is active. A
policy that is not controlled by a schedule will be
continuously active.

The policy schedule table provides for scheduling of policies
periodically or at specified dates and times. Policies are
activated at the beginning of each scheduled duration and
remain active until the end of the duration.

Schedules can be enabled or disabled by modifying the
pmSchedAdminStatus object. This allows pre-configured
schedules to exist which are activated or deactivated by other
management functions.

The term `scheduler' is used throughout this memo to refer to
the entity which implements the schedule table and which
activates and deactivates policies at the specified points in
time.


11.1.  Periodic Schedules

Periodic schedules are based on fixed time periods between the
initiation of scheduled activations. Periodic schedules are
defined by specifying the number of seconds between two
initiations. If the duration of a schedule causes it to remain
active at the next initiation, it will remain active, with no
interruption, into the next scheduled duration.










Various Authors      Expires June 3, 2001            [Page 42]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


11.2.  Calendar Schedules

Calendar schedules allow policies to be activated at specified
days of the week and days of the month. Calendar schedules are
therefore aware of the notion of months, days, weekdays, hours
and minutes.

It is possible to specify multiple values for each calendar
item.  This provides a mechanism for defining complex
schedules.  For example, a schedule could be defined which is
active the entire workday each weekday.

Months, days and weekdays are specified using the objects
pmSchedMonth, pmSchedDay and pmSchedWeekDay of type BITS.
Setting multiple bits to one in these objects causes an OR
operation. For example, setting the bits monday(1) and
friday(5) in pmSchedWeekDay restricts the schedule to Mondays
and Fridays.

The bit fields for pmSchedMonth, pmSchedDay and pmSchedWeekDay
are combined using an AND operation. For example, setting the
bits june(5) and july(6) in pmSchedMonth and combining it with
the bits monday(1) and friday(5) set in pmSchedWeekDay will
result in a schedule which is restricted to every Monday and
Friday in the months June and July.  Wildcarding of calendar
items is achieved by setting all bits to one.

It is possible to define calendar schedules that will never
trigger cause a policy to be activated. For example, one can
define a calendar schedule which should be active on February
31st. Schedules like this will simply be ignored by the
scheduler.

Finally, calendar schedules are always expressed in local
time. A scalar, pmSchedLocalTime is provided so that a manager
can retrieve the notion of local time and the offset to GMT
time.


11.3.  One-shot Schedules

One-shot Schedules are similar to calendar schedules. The
difference between a calendar schedule and a one-shot schedule
is that a one-shot schedule will automatically disable itself
the first time it moves from the active state to the inactive





Various Authors      Expires June 3, 2001            [Page 43]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


state.

















































Various Authors      Expires June 3, 2001            [Page 44]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


12.  Definitions

POLICY-MANAGEMENT-MIB DEFINITIONS ::= BEGIN
IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
    Counter32, Integer32, Gauge32, Unsigned32,
    experimental                                 FROM SNMPv2-SMI
    RowStatus, RowPointer, TEXTUAL-CONVENTION,
    DateAndTime, StorageType                     FROM SNMPv2-TC
    MODULE-COMPLIANCE, OBJECT-GROUP,
    NOTIFICATION-GROUP                           FROM SNMPv2-CONF
    SnmpAdminString                              FROM SNMP-FRAMEWORK-MIB;

--  Policy-Based Management MIB

policyMgt MODULE-IDENTITY
    LAST-UPDATED "200101031500Z"  -- January 3, 2001
    ORGANIZATION "IETF SNMP Configuration Working Group"
    CONTACT-INFO
        "


        Steve Waldbusser

        Phone: +1-650-948-6500
        Fax:   +1-650-745-0671
        Email: waldbusser@nextbeacon.com

        Jon Saperia
        JDS Consulting, Inc.
        174 Chapman St.
        Watertown MA 02472-3063
        USA
        Phone: +1-617-744-1079
        Fax:   +1-617-249-0874
        Email: saperia@jdscons.com

        Thippanna Hongal
        Riverstone Networks, Inc.
        5200 Great America Parkway
        Santa Clara, CA, 95054
        USA

        Phone: +1-408-878-6562
        Fax:   +1-408-878-6501





Various Authors      Expires June 3, 2001            [Page 45]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        Email: hongal@riverstonenet.com"
    DESCRIPTION
        "The MIB module for rule-based configuration of SNMP
        infrastructures."

    REVISION "200101031500Z"    -- January 3, 2001
    DESCRIPTION
        "The original version of this MIB, published as RFCXXXX."
    ::= { experimental 107 }

UTF8String ::= TEXTUAL-CONVENTION
    STATUS       current
    DESCRIPTION
        "An octet string containing information typically in
        human-readable form.

        To facilitate internationalization, this
        information is represented using the ISO/IEC
        IS 10646-1 character set, encoded as an octet
        string using the UTF-8 transformation format
        described in [RFC2279].

        Since additional code points are added by
        amendments to the 10646 standard from time
        to time, implementations must be prepared to
        encounter any code point from 0x00000000 to
        0x7fffffff.  Byte sequences that do not
        correspond to the valid UTF-8 encoding of a
        code point or are outside this range are
        prohibited.

        The use of control codes should be avoided.

        When it is necessary to represent a newline,
        the control code sequence CR LF should be used.

        For code points not directly supported by user
        interface hardware or software, an alternative
        means of entry and display, such as hexadecimal,
        may be provided.

        For information encoded in 7-bit US-ASCII,
        the UTF-8 encoding is identical to the
        US-ASCII encoding.






Various Authors      Expires June 3, 2001            [Page 46]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        UTF-8 may require multiple bytes to represent a
        single character / code point; thus the length
        of this object in octets may be different from
        the number of characters encoded.  Similarly,
        size constraints refer to the number of encoded
        octets, not the number of characters represented
        by an encoding.

        Note that when this TC is used for an object that
        is used or envisioned to be used as an index, then
        a SIZE restriction MUST be specified so that the
        number of sub-identifiers for any object instance
        does not exceed the limit of 128, as defined by
        [RFC1905].

        Note that the size of an UTF8String object is
        measured in octets, not characters."
       SYNTAX       OCTET STRING

-- The policy group

pmPolicyTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmPolicyEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "The policy table. A policy is a pairing of a
        policyFilter and a policyAction which is used to apply the
        action to a selected set of elements."
    ::= { policyMgt 1 }

pmPolicyEntry OBJECT-TYPE
    SYNTAX      PmPolicyEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "An entry in the policy table."
    INDEX { pmPolicyIndex }
    ::= { pmPolicyTable 1 }

PmPolicyEntry ::= SEQUENCE {
    pmPolicyIndex                Unsigned32,
    pmPolicyFilter               Unsigned32,
    pmPolicySchedule             Unsigned32,
    pmPolicyAction               Unsigned32,





Various Authors      Expires June 3, 2001            [Page 47]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    pmPolicyParameters           OCTET STRING,
    pmPolicyFilterMaxLatency     Unsigned32,
    pmPolicyActionMaxLatency     Unsigned32,
    pmPolicyPrecedence           Unsigned32,
    pmPolicyGroup                UTF8String,
    pmPolicyDescription          UTF8String,
    pmPolicyMatches              Gauge32,
    pmPolicyAbnormalTerminations Gauge32,
    pmPolicyExecutionErrors      Counter32,
    pmPolicyDebugging            INTEGER,
    pmPolicyAdminStatus          INTEGER,
    pmPolicyRowStatus            RowStatus
}

pmPolicyIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A unique index for this policy entry."
    ::= { pmPolicyEntry 1 }

pmPolicyFilter OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "A pointer to the row or rows in the pmPolicyCodeTable that
         contain the filter code for this policy. When a policy entry
         is created, an unused pmPolicyCodeIndex value will be
         assigned to this object.

         A policy filter is one or more policy language statements
         which results in a boolean value that represents whether or
         not an element is a member of a set of elements upon which an
         action is to be performed.

         Filter evaluation stops immediately when any error
         is detected without executing the policyAction.

         The policyFilter is evaluated for various elements. Any
         element for which the policyFilter returns any nonzero value
         will match the filter and will have the associated
         policyAction executed on that element.






Various Authors      Expires June 3, 2001            [Page 48]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


         If the filter object is empty (contains no code) or otherwise
         does not return a value, the element will not be matched."
    ::= { pmPolicyEntry 2 }

pmPolicySchedule OBJECT-TYPE
    SYNTAX      Unsigned32 (1..65535)
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "If this entry contains a valid pmSchedGroupIndex value, this
         policy will be activated as specified by the associated schedule
         entries. Whenever any schedule in the group is active, this
         policy will be active.

         If the value of this object is 0, this policy is always
         active."
    ::= { pmPolicyEntry 3 }

pmPolicyAction OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "A pointer to the row or rows in the pmPolicyCodeTable that
         contain the action code for this policy. When a policy entry
         is created, an unused pmPolicyCodeIndex value will be
         assigned to this object.

         A pmPolicyAction is an operation performed on a set of
         elements.

         Action evaluation stops immediately when any error is
         detected."
    ::= { pmPolicyEntry 4 }

pmPolicyParameters OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "From time to time, policy scripts may desire one or more
        parameters (e.g., site-specific constants). These parameters
        may be installed with the script in this object and are
        accessible to the script via the getParameters() accessor
        function. If it is necessary for multiple parameters to be





Various Authors      Expires June 3, 2001            [Page 49]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        passed to the script, the script can choose whatever
        encoding/deliminiting mechanism is most appropriate."
    ::= { pmPolicyEntry 5 }

pmPolicyFilterMaxLatency OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "milliseconds"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "Every element under the control of this agent is
        re-checked periodically to see if it is under control of this
        policy by re-running the filter for this policy.
        This object lets the manager control the maximum amount of
        time that may pass before an element is re-checked.

        In other words, in any given interval of this duration, all
        elements must be re-checked. Note that it is an
        implementation-dependent matter as to how the policy agent
        schedules the checking of various elements within this
        interval."
    ::= { pmPolicyEntry 6 }

pmPolicyActionMaxLatency OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "milliseconds"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "Every element that matches this policy's filter and is
        therefore under control of this policy will have this policy's
        action executed periodically to ensure that the element
        remains in the state dictated by the policy.
        This object lets the manager control the maximum amount of
        time that may pass before an element has the action run on
        it.

        In other words, in any given interval of this duration, all
        elements under control of this policy must have the action run
        on them. Note that it is an implementation-dependent matter as
        to how the policy agent schedules the policy action on various
        elements within this interval."
    ::= { pmPolicyEntry 7 }

pmPolicyPrecedence OBJECT-TYPE





Various Authors      Expires June 3, 2001            [Page 50]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    SYNTAX      Unsigned32 (0..65535)
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "If while checking to see which policy filters match an
        element, 2 or more policies in the same group match the same
        element, the pmPolicyPrecedence object provides the rule to
        arbitrate which single policy action will be executed on this
        element. Of policies in the same group, only the matching
        policy with the highest precedence value will have its policy
        action periodically executed on this element. In the case
        where multiple policies share the highest value, it is an
        implementation-dependent matter as to which single policy
        action will be chosen."
    ::= { pmPolicyEntry 8 }

pmPolicyGroup OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (0..32))
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "An administratively assigned string that is used to group
        policies. Of all policies in the same group, only one will
        have its policyAction active on an element at any instance."
    ::= { pmPolicyEntry 9 }

pmPolicyDescription OBJECT-TYPE
    SYNTAX      UTF8String
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "A description of this rule and its significance, typically
         provided by a human."
    ::= { pmPolicyEntry 10 }

pmPolicyMatches OBJECT-TYPE
    SYNTAX      Gauge32
    UNITS       "elements"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The number of elements that are currently matched by the
         associated pmPolicyFilter."
    ::= { pmPolicyEntry 11 }






Various Authors      Expires June 3, 2001            [Page 51]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


pmPolicyAbnormalTerminations OBJECT-TYPE
    SYNTAX      Gauge32
    UNITS       "elements"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The number of elements that, in their most recent filter or
         action execution, have experienced a run-time exception and
         terminated abnormally. Note that if a policy was experiencing
         a run-time exception while processing a particular element
         but on a subsequent invocation it runs normally, this number
         can decline."
    ::= { pmPolicyEntry 12 }

pmPolicyExecutionErrors OBJECT-TYPE
    SYNTAX      Counter32
    UNITS       "errors"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The total number of times that execution of this policy's
         filter or action has been terminated due to run-time
         errors."
    ::= { pmPolicyEntry 13 }

pmPolicyDebugging OBJECT-TYPE
    SYNTAX      INTEGER {
                    off(0),
                    on(1)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The status of debugging for this policy. If this is turned
         on(1), log entries will be created in the pmDebuggingTable
         for each run-time error that is experienced by this policy."
    DEFVAL { off }
    ::= { pmPolicyEntry 14 }

pmPolicyAdminStatus OBJECT-TYPE
    SYNTAX      INTEGER {
                    inactive(0),
                    active(1)
                }
    MAX-ACCESS  read-create





Various Authors      Expires June 3, 2001            [Page 52]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    STATUS      current
    DESCRIPTION
         "The admin status of this policy.

         The policy will be runnable only if the associated
         pmPolicyRowStatus is set to active(1) and this object is set
         to active(1).

         [Note to reader: This object exists because a row cannot sit
         for extended periods of time with it's rowstatus set to
         inactive (it is subject to garbage collection. This object
         allows policies to be downloaded but not run except at the
         convenience of the management station.]"
    ::= { pmPolicyEntry 15 }

pmPolicyRowStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The row status of this pmPolicyEntry.

         The status may not be set to active if any of the related
         entries in the pmPolicyCode table do not have a status of
         active."
    ::= { pmPolicyEntry 16 }


pmPolicyCodeTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmPolicyCodeEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "The pmPolicyCodeTable stores the code for policy filters and
        actions."
    ::= { policyMgt 2 }

pmPolicyCodeEntry OBJECT-TYPE
    SYNTAX      PmPolicyCodeEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "An entry in the policy code table."
    INDEX { pmPolicyCodeProgramIndex, pmPolicyCodeSegment }
    ::= { pmPolicyCodeTable 1 }





Various Authors      Expires June 3, 2001            [Page 53]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


PmPolicyCodeEntry ::= SEQUENCE {
    pmPolicyCodeProgramIndex   Unsigned32,
    pmPolicyCodeSegment        Unsigned32,
    pmPolicyCodeText           UTF8String,
    pmPolicyCodeStatus         RowStatus
}

pmPolicyCodeProgramIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A unique index for each policy filter or action. The code
         for each such filter or action may be composed of multiple
         entries in this table if the code cannot fit in one entry.
         Values of pmPolicyCodeProgramIndex may not be used unless
         they have previously been assigned in the
         pmPolicyFilterProgramIndex or pmPolicyActionProgramIndex
         objects."
    ::= { pmPolicyCodeEntry 1 }

pmPolicyCodeSegment OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A unique index for each segment of a policy filter or
         action.

         When a policy filter or action spans multiple entries in this
         table, the code of that policy starts from the
         lowest-numbered segment and continues with increasing segment
         values until ending with the highest-numbered segment."
    ::= { pmPolicyCodeEntry 2 }

pmPolicyCodeText OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (1..1024))
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "A segment of policy code (filter or action). Lengthy Policy
         filters or actions may be stored in multiple segments in this
         table that share the same value of pmPolicyCodeProgramIndex.
         When multiple segments are used, it is recommended that each
         segment be as large as practical.





Various Authors      Expires June 3, 2001            [Page 54]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


         Entries in this table are associated with policies by values
         of the pmPolicyFilterProgramIndex and
         pmPolicyActionProgramIndex objects. If the status of the
         related policy is active, then this object may not be
         modified."
    ::= { pmPolicyCodeEntry 3 }

pmPolicyCodeStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The status of this code entry.

         Entries in this table are associated with policies by values
         of the pmPolicyFilterProgramIndex and
         pmPolicyActionProgramIndex objects. If the status of the
         related policy is active, then entries in this table may not
         be created or deleted."
    ::= { pmPolicyCodeEntry 4 }

-- Element Type Registration Table

-- The Element Type Registration table is used for the manager to
-- learn what element types are being managed by the system and to
-- register new types if necessary. An element type is registered by
-- providing the OID of an SNMP object (i.e., without the
-- instance). Each SNMP instance that exists under that object is a
-- distinct element. The address of the element is the index part of
-- the discovered OID. This address will be supplied to policy filters
-- and actions so that this code can inspect and configure the
-- element.
--
-- Before registering an element type, it is the responsibility of a
-- manager to inspect the table and see if it is already registered
-- (by the agent or another manager). Note that entries that differ
-- only in the last OID (which specifies which object in an entry) are
-- effectively duplicates and should be treated as such by the
-- manager.
--
-- Note that agents may automatically configure elements in this
-- table.

pmElementTypeRegTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmElementTypeRegEntry





Various Authors      Expires June 3, 2001            [Page 55]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "A registration table for element types managed by this
        system."
    ::= { policyMgt 3 }

pmElementTypeRegEntry OBJECT-TYPE
    SYNTAX      PmElementTypeRegEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "A registration of an element type."
    INDEX       { pmElementTypeRegIndex }
    ::= { pmElementTypeRegTable 1 }

PmElementTypeRegEntry ::= SEQUENCE {
    pmElementTypeRegIndex         Unsigned32,
    pmElementTypeRegOIDPrefix     OBJECT IDENTIFIER,
    pmElementTypeRegMaxLatency    Unsigned32,
    pmElementTypeRegName          UTF8String,
    pmElementTypeRegRowStatus     RowStatus
}

pmElementTypeRegIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "A unique index for this entry."
    ::= { pmElementTypeRegEntry 1 }

pmElementTypeRegOIDPrefix OBJECT-TYPE
    SYNTAX      OBJECT IDENTIFIER
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "An OBJECT IDENTIFIER subtree under which all instances of
        this element type may be found.

        This OBJECT IDENTIFIER should be specified up to, but not
        including, any index objects. The agent will discover all
        instances in the system that are members of the specified
        subtree. It will then execute policy filters (and potentially
        policy actions) for each instance discovered.





Various Authors      Expires June 3, 2001            [Page 56]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        The address of 'this element' will be passed to each
        invocation of the policy filter. This is derived by taking the
        last N sub-identifiers from the discovered instance, where N
        is:

           X = number of sub-identifiers in pmElementTypeRegOIDPrefix
           Y = number of sub-identifiers in discovered instance

           N = Y - X

        A special OBJECT IDENTIFIER '0.0' can be written to this
        object. '0.0' represents the single instance of the system
        itself and provides an execution context for policies to
        operate on 'the system' as well as on MIB objects modelled
        as scalars. For example, '0.0' gives an execution context for
        policy-based selection of the operating system code version
        (likely modeled as a scalar MIB object).

        When a policy is invoked on behalf of a '0.0' entry in this
        table, the element name will be '0.0' and there is no address
        of 'this element' (in other words it has zero length)."
    ::= { pmElementTypeRegEntry 2 }

pmElementTypeRegMaxLatency OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "milliseconds"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The PM agent is responsible for discovering new elements of
        types that are registered. This object lets the manager
        control the maximum amount of time that may pass between the
        time an element is created and when it is discovered.

        In other words, in any given interval of this duration, all
        new elements must be discovered. Note that it is an
        implementation-dependent matter as to how the policy agent
        schedules the checking of various elements within this
        interval."
    ::= { pmElementTypeRegEntry 3 }

pmElementTypeRegName OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (0..32))
    MAX-ACCESS  read-create
    STATUS      current





Various Authors      Expires June 3, 2001            [Page 57]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    DESCRIPTION
        "A descriptive label for this registered type."
    ::= { pmElementTypeRegEntry 4 }

pmElementTypeRegRowStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The status of this registration entry."
    ::= { pmElementTypeRegEntry 5 }

-- Role Tables

-- The Role tables associate role strings to elements. It is the
-- responsibility of the agent to keep track of any re-indexing of the
-- underlying SNMP elements and to continue to associate role strings
-- with the element with which they were initially configured.
--
-- The agent must store role string associations in nonvolatile
-- storage.
--
-- The Role String table is visible through 2 SNMP tables. The
-- pmRoleESTable is a read-create table that organizes role strings
-- sorted by element. This table is used to create and modify role
-- strings and their associations.
-- The pmRoleSETable is a read-only table that organizes role strings
-- sorted by string. This table is read-only.

pmRoleESTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmRoleESEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The role string table with element as the major index."
    ::= { policyMgt 4 }

pmRoleESEntry OBJECT-TYPE
    SYNTAX      PmRoleESEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A role string entry associates a role string with an
         individual element."
    INDEX       { pmRoleESElement, pmRoleESString }





Various Authors      Expires June 3, 2001            [Page 58]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    ::= { pmRoleESTable 1 }

PmRoleESEntry ::= SEQUENCE {
    pmRoleESElement        RowPointer,
    pmRoleESString         UTF8String,
    pmRoleESStatus         RowStatus
}

pmRoleESElement OBJECT-TYPE
    SYNTAX      RowPointer
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The element to which this role string is associated.

         If the agent assigns new indexes in the MIB table to
         represent the same underlying element (re-indexing), the
         agent will modify this value to contain the new index for the
         underlying element."
    ::= { pmRoleESEntry 1 }

pmRoleESString OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (0..64))
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The role string that is associated with an element through
         this table.

         A role string is an administratively specified characteristic
         of a managed element (for example, an interface). It is a
         selector for policy rules, to determine the applicability of
         the rule to a particular managed element."
    ::= { pmRoleESEntry 2 }

pmRoleESStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The status of this role string."
    ::= { pmRoleESEntry 3 }

pmRoleSETable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmRoleSEEntry





Various Authors      Expires June 3, 2001            [Page 59]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A read-only version of the role string table with
         roleString as the major index. The purpose of this
         table is to make it easy to retrieve all elements that
         share a common string."
    ::= { policyMgt 5 }

pmRoleSEEntry OBJECT-TYPE
    SYNTAX      PmRoleSEEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A role string entry associates a role string with an
         individual element."
    INDEX       { pmRoleSEString, pmRoleSEElement }
    ::= { pmRoleSETable 1 }

PmRoleSEEntry ::= SEQUENCE {
    pmRoleSEString         UTF8String,
    pmRoleSEElement        RowPointer
}

pmRoleSEString OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (0..64))
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The role string that is associated with an element through
         this table.

         A role string is an administratively specified characteristic
         of a managed element (for example, an interface). It is a
         selector for policy rules, to determine the applicability of
         the rule to a particular managed element."
    ::= { pmRoleSEEntry 1 }

pmRoleSEElement OBJECT-TYPE
    SYNTAX      RowPointer
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The element to which this role string is associated.






Various Authors      Expires June 3, 2001            [Page 60]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


         If the agent assigns new indexes in the MIB table to
         represent the same underlying element (re-indexing), the
         agent will modify this value to contain the new index for the
         underlying element."
    ::= { pmRoleSEEntry 2 }

-- Capabilities table

-- Note that with this table it is not necessary to list all OIDs that
-- a mechanism specific MIB Module supports, just the base OID if
-- the implementation is a fully compliant one. If the implementation
-- is not, then additional rows will exist in the table that list
-- the limitations or enhancements.

pmCapabilitiesTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmCapabilitiesEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The pmCapabilitiesTable contains a description of
         the inherent capabilities of the system."
    ::= { policyMgt 6 }

pmCapabilitiesEntry OBJECT-TYPE
    SYNTAX      PmCapabilitiesEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The description of a capability or limitation of a
         capability of the system. An entry will exist for each
         domain and mechanism specific ability the system has. In
         the case of a domain specific capability with no mechanism
         specific parameters, the pmCapabilitiesSubType and all other
         columns may be null. Entries will exist that contain
         values for the pmCapabilitiesRestrictOID,
         pmCapabilitiesRestrictType, pmCapabilitiesRestrictValue
         and pmCapabilitiesRestrictString objects only when
         an implementation is reporting a mechanism specific
         restriction. Multiple entries are possible when more
         than one restriction for a type or subtype are needed."
    INDEX       { pmCapabilitiesIndex }
    ::= { pmCapabilitiesTable 1 }

PmCapabilitiesEntry ::= SEQUENCE {
    pmCapabilitiesIndex              Unsigned32,





Various Authors      Expires June 3, 2001            [Page 61]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    pmCapabilitiesType               OBJECT IDENTIFIER,
    pmCapabilitiesSubType            OBJECT IDENTIFIER,
    pmCapabilitiesModificationOID    OBJECT IDENTIFIER,
    pmCapabilitiesModificationType   INTEGER,
    pmCapabilitiesModificationValue  Integer32,
    pmCapabilitiesModificationString OCTET STRING
}

pmCapabilitiesIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A unique index for this entry."
    ::= { pmCapabilitiesEntry 1 }

pmCapabilitiesType OBJECT-TYPE
    SYNTAX      OBJECT IDENTIFIER
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The type of the capability represented by this entry.
         The IANA will publish the list of identifiers that are valid
         values for this object."
    ::= { pmCapabilitiesEntry 2 }

pmCapabilitiesSubType OBJECT-TYPE
    SYNTAX      OBJECT IDENTIFIER
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The sub type of capability is a pointer to a mechanism specific
          set of capabilities supporting a base technology. In the case of
          DIFFSERV, the OID value here would be the base OID of the
          Differentiated Services Policy MIB Module."
    ::= { pmCapabilitiesEntry 3 }

pmCapabilitiesModificationOID OBJECT-TYPE
    SYNTAX      OBJECT IDENTIFIER
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The OID of the object that is either not supported, supported
         with one or more limitations, or expanded by an implementation
         specific module. If this columnar object is other than null then





Various Authors      Expires June 3, 2001            [Page 62]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


         there must be at least an entry in pmCapabilitiesModificationType.
         Note that this need not be a leaf node or scalar object. If
         an entire table is not supported, this value can be the base OID
         for the table."
    ::= { pmCapabilitiesEntry 4 }

pmCapabilitiesModificationType OBJECT-TYPE
    SYNTAX      INTEGER {
                    unsupported(0),
                    restricted(1),
                    additional(2),
                    addvalue(3),
                    maxlimit(4),
                    minlimit(5)
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "An unsupported value indicates that the OID in
          pmCapabilitiesModificationOID is not supported on
          this system. A value of 1 indicates that the OID
          is supported but with restricted values
          These constraints are described in the
          pmCapabilitiesModificationValue and
          pmCapabilitiesModificationString objects. A value of
          2 indicates a vendor specific extension to a standard.
          The OID of the new object is pmCapabilitiesModificationOID.
          For some implementations, additional functions may be
          provided. addvalue indicates that this row of the table
          describes an additional value that the object can take.
          The specific value is in the pmCapabilitiesModificationValue.
          The values of 4 and 5 indicate restrictions or the removal
          of restrictions for the object identified."
    ::= { pmCapabilitiesEntry 5 }

pmCapabilitiesModificationValue OBJECT-TYPE
    SYNTAX      Integer32 (0..2147483647)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "If the value of pmCapabilitiesModificationType is 0, this
          object will be null since 0 indicates no support for the
          object at all. A value of 1 in the
          pmCapabilitiesModificationType will be further modified by a
          single integer value in this object that corresponds to





Various Authors      Expires June 3, 2001            [Page 63]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


          enumerated integer values that are not supported by the
          system for the object that is identified in this row. This
          value can also represent the limit values in the
          pmCapabilitiesModificationType object."
    ::= { pmCapabilitiesEntry 6 }

pmCapabilitiesModificationString OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "Any additional details or description or parameters needed."
    ::= { pmCapabilitiesEntry 7 }

pmSchedLocalTime OBJECT-TYPE
    SYNTAX      DateAndTime (SIZE (11))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The local time used by the scheduler. Schedules which
         refer to calendar time will use the local time indicated
         by this object. An implementation MUST return all 11 bytes
         of the DateAndTime textual-convention so that a manager
         may retrieve the offset from GMT time."
    ::= { policyMgt 7 }

--
-- The schedule table which controls the scheduler.
--

pmSchedTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmSchedEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This table defines schedules for policies."
    ::= { policyMgt 8 }

pmSchedEntry OBJECT-TYPE
    SYNTAX      PmSchedEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "An entry describing a particular scheduled action.






Various Authors      Expires June 3, 2001            [Page 64]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        Unless noted otherwise, writable objects of this row
        can be modified independent of the current value of
        pmSchedRowStatus, pmSchedAdminStatus and pmSchedOperStatus.
        In particular, it is legal to modify pmSchedInterval,
        pmSchedWeekDay, pmSchedMonth, pmSchedDay, pmSchedHour, and
        pmSchedMinute when pmSchedRowStatus is active and
        pmSchedAdminStatus and pmSchedOperStatus are both enabled."
    INDEX { pmSchedIndex }
    ::= { pmSchedTable 1 }

PmSchedEntry ::= SEQUENCE {
    pmSchedIndex          Unsigned32,
    pmSchedGroupIndex     Unsigned32,
    pmSchedDescr          SnmpAdminString,
    pmSchedInterval       Unsigned32,
    pmSchedWeekDay        BITS,
    pmSchedMonth          BITS,
    pmSchedDay            BITS,
    pmSchedHour           BITS,
    pmSchedMinute         BITS,
    pmSchedDuration       Unsigned32,
    pmSchedType           INTEGER,
    pmSchedAdminStatus    INTEGER,
    pmSchedOperStatus     INTEGER,
    pmSchedStorageType    StorageType,
    pmSchedRowStatus      RowStatus
}

pmSchedIndex OBJECT-TYPE
    SYNTAX      Unsigned32 (1..65535)
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "The locally-unique, administratively assigned index for this
        scheduling entry."
    ::= { pmSchedEntry 1 }

pmSchedGroupIndex OBJECT-TYPE
    SYNTAX      Unsigned32 (1..65535)
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The locally-unique, administratively assigned index for the
        group that this scheduling entry belongs to.






Various Authors      Expires June 3, 2001            [Page 65]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        To assign multiple schedule entries to the same group, the
        pmSchedGroupIndex of each entry in the group will be set to
        the same value. This pmSchedGroupIndex value must be equal to
        the pmSchedIndex of one of the entries in the group. If the
        entry is deleted whose pmSchedIndex equals the
        pmSchedGroupIndex for the group, the agent will assign a new
        pmSchedGroupIndex to all remaining members of the group.

        If an entry is not a member of a group, its pmSchedGroupIndex
        must be assigned to the value of its pmSchedIndex.

        Policies that are controlled by a group of schedule entries
        are active when any schedule in the group is active."
    ::= { pmSchedEntry 2 }

pmSchedDescr OBJECT-TYPE
    SYNTAX      SnmpAdminString
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The human readable description of the purpose of this
        scheduling entry."
    DEFVAL { ''H }
    ::= { pmSchedEntry 3 }

pmSchedInterval OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "seconds"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The number of seconds between two activations of
        a periodic scheduler. Implementations must guarantee
        that activations will not occur before at least
        pmSchedInterval seconds have passed.

        The scheduler must ignore all periodic schedules that
        have a pmSchedInterval value of 0. A periodic schedule
        with a scheduling interval of 0 seconds will therefore
        never invoke an action.

        Implementations may be forced to delay invocations in the
        face of local constraints. A scheduled management function
        should therefore not rely on the accuracy provided by the
        scheduler implementation."





Various Authors      Expires June 3, 2001            [Page 66]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    DEFVAL { 0 }
    ::= { pmSchedEntry 4 }

pmSchedWeekDay OBJECT-TYPE
    SYNTAX      BITS {
                    sunday(0),
                    monday(1),
                    tuesday(2),
                    wednesday(3),
                    thursday(4),
                    friday(5),
                    saturday(6)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The set of weekdays on which the schedule should
        be active. Setting multiple bits will include several
        weekdays in the set of possible weekdays for this schedule.
        Setting all bits will cause the scheduler to ignore the
        weekday."
    DEFVAL { {} }
    ::= { pmSchedEntry 5 }

pmSchedMonth OBJECT-TYPE
    SYNTAX      BITS {
                    january(0),
                    february(1),
                    march(2),
                    april(3),
                    may(4),
                    june(5),
                    july(6),
                    august(7),
                    september(8),
                    october(9),
                    november(10),
                    december(11)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The set of months during which the schedule should
        be active. Setting multiple bits will include several
        months in the set of possible months for this schedule.





Various Authors      Expires June 3, 2001            [Page 67]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        Setting all bits will cause the scheduler to ignore the
        month."
    DEFVAL { {} }
    ::= { pmSchedEntry 6 }

pmSchedDay OBJECT-TYPE
    SYNTAX      BITS {
                    d1(0),   d2(1),   d3(2),   d4(3),   d5(4),
                    d6(5),   d7(6),   d8(7),   d9(8),   d10(9),
                    d11(10), d12(11), d13(12), d14(13), d15(14),
                    d16(15), d17(16), d18(17), d19(18), d20(19),
                    d21(20), d22(21), d23(22), d24(23), d25(24),
                    d26(25), d27(26), d28(27), d29(28), d30(29),
                    d31(30),
                    r1(31),  r2(32),  r3(33),  r4(34),  r5(35),
                    r6(36),  r7(37),  r8(38),  r9(39),  r10(40),
                    r11(41), r12(42), r13(43), r14(44), r15(45),
                    r16(46), r17(47), r18(48), r19(49), r20(50),
                    r21(51), r22(52), r23(53), r24(54), r25(55),
                    r26(56), r27(57), r28(58), r29(59), r30(60),
                    r31(61)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The set of days in a month on which a schedule
        should be active. There are two sets of bits one can
        use to define the day within a month:

        Enumerations starting with the letter 'd' indicate a
        day in a month relative to the first day of a month.
        The first day of the month can therefore be specified
        by setting the bit d1(0) and d31(30) means the last
        day of a month with 31 days.

        Enumerations starting with the letter 'r' indicate a
        day in a month in reverse order, relative to the last
        day of a month. The last day in the month can therefore
        be specified by setting the bit r1(31), and r31(61) means
        the first day of a month with 31 days.

        Setting multiple bits will include several days in the set
        of possible days for this schedule. Setting all bits will
        cause the scheduler to ignore the day within a month.
        Setting all bits starting with the letter 'd' or the





Various Authors      Expires June 3, 2001            [Page 68]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        letter 'r' will also cause the scheduler to ignore the
        day within a month."
    DEFVAL { {} }
    ::= { pmSchedEntry 7 }

pmSchedHour OBJECT-TYPE
    SYNTAX      BITS {
                    h0(0),   h1(1),   h2(2),   h3(3),   h4(4),
                    h5(5),   h6(6),   h7(7),   h8(8),   h9(9),
                    h10(10), h11(11), h12(12), h13(13), h14(14),
                    h15(15), h16(16), h17(17), h18(18), h19(19),
                    h20(20), h21(21), h22(22), h23(23)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The set of hours within a day during which the schedule
        should be active."
    DEFVAL { {} }
    ::= { pmSchedEntry 8 }

pmSchedMinute OBJECT-TYPE
    SYNTAX      BITS {
                    m0(0),   m1(1),   m2(2),   m3(3),   m4(4),
                    m5(5),   m6(6),   m7(7),   m8(8),   m9(9),
                    m10(10), m11(11), m12(12), m13(13), m14(14),
                    m15(15), m16(16), m17(17), m18(18), m19(19),
                    m20(20), m21(21), m22(22), m23(23), m24(24),
                    m25(25), m26(26), m27(27), m28(28), m29(29),
                    m30(30), m31(31), m32(32), m33(33), m34(34),
                    m35(35), m36(36), m37(37), m38(38), m39(39),
                    m40(40), m41(41), m42(42), m43(43), m44(44),
                    m45(45), m46(46), m47(47), m48(48), m49(49),
                    m50(50), m51(51), m52(52), m53(53), m54(54),
                    m55(55), m56(56), m57(57), m58(58), m59(59)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The set of minutes within an hour when the schedule
        should be active."
    DEFVAL { {} }
    ::= { pmSchedEntry 9 }

pmSchedDuration OBJECT-TYPE





Various Authors      Expires June 3, 2001            [Page 69]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    SYNTAX      Unsigned32
    UNITS       "seconds"
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The number of seconds the schedule will be active after
        invocation."
    ::= { pmSchedEntry 10 }

pmSchedType OBJECT-TYPE
    SYNTAX      INTEGER {
                    periodic(1),
                    calendar(2),
                    oneshot(3)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The type of this schedule. The value periodic(1) indicates
         that this entry specifies a periodic schedule. A periodic
         schedule is defined by the value of pmSchedInterval. The
         values of pmSchedWeekDay, pmSchedMonth, pmSchedDay,
         pmSchedHour and pmSchedMinute are ignored.

         The value calendar(2) indicates that this entry describes a
         calendar schedule. A calendar schedule is defined by the
         values of pmSchedWeekDay, pmSchedMonth, pmSchedDay,
         pmSchedHour and pmSchedMinute. The value of pmSchedInterval
         is ignored. A calendar schedule will be active on all local
         times that satisfy the bits set in pmSchedWeekDay,
         pmSchedMonth, pmSchedDay, pmSchedHour and pmSchedMinute.

         The value oneshot(3) indicates that this entry describes a
         one-shot schedule. A one-shot schedule is similar to a
         calendar schedule with the additional feature that it
         disables itself by changing in the `finished'
         pmSchedOperStatus once the schedule becomes inactive after
         its first activation.

         Changing a schedule's type is equivalent to deleting the
         old-type schedule and creating a new-type one."
    DEFVAL { periodic }
    ::= { pmSchedEntry 11 }

pmSchedAdminStatus OBJECT-TYPE





Various Authors      Expires June 3, 2001            [Page 70]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    SYNTAX      INTEGER {
                    enabled(1),
                    disabled(2)
                }
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The desired state of the schedule."
    DEFVAL { disabled }
    ::= { pmSchedEntry 12 }

pmSchedOperStatus OBJECT-TYPE
    SYNTAX      INTEGER {
                    enabled(1),
                    disabled(2),
                    finished(3)
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "The current operational state of this schedule. The state
         enabled(1) indicates this entry is active and that the
         scheduler will invoke actions at appropriate times. The
         disabled(2) state indicates that this entry is currently
         inactive and ignored by the scheduler. The finished(3)
         state indicates that the schedule has ended. Schedules
         in the finished(3) state are ignored by the scheduler.
         A one-shot schedule enters the finished(3) state when it
         deactivates itself."
    ::= { pmSchedEntry 13 }

pmSchedStorageType OBJECT-TYPE
    SYNTAX      StorageType
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "This object defines whether this scheduled action is kept
         in volatile storage and lost upon reboot or if this row is
         backed up by non-volatile or permanent storage.

         Conceptual rows having the value `permanent' must allow write
         access to the columnar objects pmSchedDescr, pmSchedInterval,
         pmSchedWeekDay, pmSchedMonth, pmSchedDay, pmSchedHour,
         pmSchedMinute and pmSchedAdminStatus."
    DEFVAL { volatile }





Various Authors      Expires June 3, 2001            [Page 71]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    ::= { pmSchedEntry 14 }

pmSchedRowStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
        "The status of this scheduled action."
    ::= { pmSchedEntry 15 }

-- Policy Tracking

pmTrackingPolicyToElementTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmTrackingPolicyToElementEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The pmTrackingPolicyToElementTable describes what elements
         are under control of a policy. This table is indexed in
         order to optimize retrieval of the entire status for a given
         policy."
    ::= { policyMgt 9 }

pmTrackingPolicyToElementEntry OBJECT-TYPE
    SYNTAX      PmTrackingPolicyToElementEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "An entry in the pmTrackingPolicyToElementTable.  The
         pmPolicyIndex in the index specifies the policy tracked by
         this entry."
    INDEX       { pmPolicyIndex, pmTrackingPolicyToElementElement }
    ::= { pmTrackingPolicyToElementTable 1 }

PmTrackingPolicyToElementEntry ::= SEQUENCE {
    pmTrackingPolicyToElementElement          RowPointer,
    pmTrackingPolicyToElementInfo             BITS
}

pmTrackingPolicyToElementElement OBJECT-TYPE
    SYNTAX      RowPointer
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The element that is configured by the associated policy."





Various Authors      Expires June 3, 2001            [Page 72]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    ::= { pmTrackingPolicyToElementEntry 1 }

pmTrackingPolicyToElementInfo OBJECT-TYPE
    SYNTAX      BITS {
                    filterMatched(0),
                    actionSkippedDueToPrecedence(1),
                    filterRunTimeException(2),
                    filterUserSignal(3),
                    actionRunTimeException(4),
                    actionUserSignal(5)
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "This object returns information about the previous policy
         script executions.

         If the filterMatched(0) bit is set, the last execution of the
         associated policy filter returned TRUE.

         If the actionSkippedDueToPrecedence(1) bit is set, the last
         execution of the associated policy filter returned TRUE but
         the action is not active because it was trumped by a matching
         policy filter in the same policy group with a higher
         precedence value.

         If the filterRunTimeException(2) bit is set, the last
         execution of the associated policy filter encountered a
         run-time error and aborted.

         If the filterUserSignal(3) bit is set, the last
         execution of the associated policy filter called the
         signalException() function.

         If the actionRunTimeException(4) bit is set, the last
         execution of the associated policy action encountered a
         run-time error and aborted.

         If the actionUserSignal(5) bit is set, the last
         execution of the associated policy action called the
         signalException() function.

         Entries will only exist in this table of one or more bits are
         set. In particular, if an entry does not exist for a
         particular policy/element combination, it can be assumed that





Various Authors      Expires June 3, 2001            [Page 73]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


         the policy's filter did not match this element."
    ::= { pmTrackingPolicyToElementEntry 2 }

-- Element to Policy Table

pmTrackingElementToPolicyTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmTrackingElementToPolicyEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The pmTrackingElementToPolicyTable describes what policies
         are controlling an element. This table is indexed in
         order to optimize retrieval of the status of all policies
         active for a given element."
    ::= { policyMgt 10 }

pmTrackingElementToPolicyEntry OBJECT-TYPE
    SYNTAX      PmTrackingElementToPolicyEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "An entry in the pmTrackingElementToPolicyTable. The
         pmPolicyIndex in the index specifies the policy tracked by
         this entry."
    INDEX       { pmTrackingElementToPolicyElement, pmPolicyIndex }
    ::= { pmTrackingElementToPolicyTable 1 }

PmTrackingElementToPolicyEntry ::= SEQUENCE {
    pmTrackingElementToPolicyElement          RowPointer,
    pmTrackingElementToPolicyStatus           INTEGER
}

pmTrackingElementToPolicyElement OBJECT-TYPE
    SYNTAX      RowPointer
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The element this policy is configuring."
    ::= { pmTrackingElementToPolicyEntry 1 }

pmTrackingElementToPolicyStatus OBJECT-TYPE
    SYNTAX      INTEGER {
                    off(0),
                    on(1),
                    forceOff(2)





Various Authors      Expires June 3, 2001            [Page 74]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


                }
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
         "The status of this policy-element relationship. This value
         will be 1 if the associated policyFilter returned 1 for this
         element and if the calendar for the policy is active.

         Entries will not exist in this table if their status would be
         off(0).

         A policy can be forcibly disabled on a particular element
         by setting this value to forceOff(2). The agent should then
         act as if the policyFilter failed for this element. The
         forceOff(2) state will persist (even across reboots) until
         this value is set to on(1) by a management request. Even if
         the policyFilter later fails for this element, this value
         will stay in the forceOff(2) state."
    ::= { pmTrackingElementToPolicyEntry 2 }

-- Policy Debugging Table

-- Policies that have debugging turned on will generate a log entry in
-- the policy debugging table for every runtine error that occurs in
-- either the filter or action code.

pmDebuggingTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmDebuggingEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "The pmDebuggingTable logs debugging messages when
         policies experience runtime errors."
    ::= { policyMgt 11 }

pmDebuggingEntry OBJECT-TYPE
    SYNTAX      PmDebuggingEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "An entry in the pmDebuggingTable. The pmPolicyIndex in the
         index specifies the policy that encountered the error that
         led to this log entry."
    INDEX       { pmPolicyIndex, pmDebuggingElement,
                  pmDebuggingLogIndex }





Various Authors      Expires June 3, 2001            [Page 75]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    ::= { pmDebuggingTable 1 }

PmDebuggingEntry ::= SEQUENCE {
    pmDebuggingElement          RowPointer,
    pmDebuggingLogIndex         Unsigned32,
    pmDebuggingMessage          UTF8String
}

pmDebuggingElement OBJECT-TYPE
    SYNTAX      RowPointer
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The element the policy was executing on when it encountered
         the error that led to this log entry."
    ::= { pmDebuggingEntry 1 }

pmDebuggingLogIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "A unique index for this log entry amongst other log entries
         for this policy/element combination."
    ::= { pmDebuggingEntry 2 }

pmDebuggingMessage OBJECT-TYPE
    SYNTAX      UTF8String (SIZE (0..128))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "An error message generated by the policy execution environment."
    ::= { pmDebuggingEntry 3 }

-- Notification Registration Table

-- A management station may choose not to install policies to a
-- system that depend on roles or capabilities that don't exist on any
-- elements in the system. However, the management station must be able
-- to quickly learn if new roles or capabilities are added to the
-- system so that it can immediately install the policies that make
-- use of that new role or capability. This table allows a management
-- station to register itself so that it will receive
-- pmNewRoleNotifications and pmNewCapabilityNotifications whenever a
-- role or capability first appears on the system.





Various Authors      Expires June 3, 2001            [Page 76]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


--
-- pmNewRoleNotifications and pmNewCapabilityNotifications are sent in
-- Inform PDU's so they are automatically retransmitted if they are
-- not acknowledged.
--
-- The procedure to guarantee accurate knowledge of roles and
-- capabilities is as follows:
--
--   Step 1: The NMS registers itself in the pmNotificationRegTable
--           Whenever it receives a notification, it adds the new role
--           or capability to its internal database for that system.
--           Followed immediately by:
--   Step 2: The NMS retrieves the roles and capabilities from the
--           system from the pmRoleESTable (or pmRoleSETable) and the
--           pmCapabilitiesTable, adding this information to its
--           internal database.
--           Followed immediately by:
--   Step 3: The NMS installs policies on the system, potentially
--           skipping policies that depend on roles or capabilities
--           that haven't been inserted into the internal database.
--           Followed immediately by:
--   Step 4: Whenever a notification indicates a new role or
--           capability that requires new policies to be installed,
--           it will immediately install such policies. The NMS will
--           continue this step indefinitely.
--
-- Note that using this algorithm to avoid installing "unnecessary"
-- policies may result in delays in having the policy available when
-- the policy becomes necessary. This delay could become extensive if
-- an interruption of communications prevents the notification from
-- being delivered and/or the policy from being installed, causing
-- the sytem to not be in compliance with policy for a period of
-- time. In particular, if the policy is enforcing security rules,
-- this could open up security vulnerabilities during this period of
-- time.

pmNotificationRegTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PmNotificationRegEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "A manager that wishes to receive notifications about new
        roles or capabilities on an agent places an entry in the
        notification registration table. pmNewRoleNotifications and
        pmNewCapabilityNotifications will then be sent to the target





Various Authors      Expires June 3, 2001            [Page 77]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


        specified in the associated snmpTargetAddr entry. These
        notifications will be sent until the entry is removed from
        this table."
    ::= { policyMgt 12 }

pmNotificationRegEntry OBJECT-TYPE
    SYNTAX      PmNotificationRegEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "An entry in the pmNotificationRegTable."
    INDEX { pmNotificationRegIndex }
    ::= { pmNotificationRegTable 1 }

PmNotificationRegEntry ::= SEQUENCE {
    pmNotificationRegIndex                Unsigned32,
    pmNotificationRegSnmpTargetAddrName   SnmpAdminString,
    pmNotificationRegStatus               RowStatus
}

pmNotificationRegIndex OBJECT-TYPE
    SYNTAX      Unsigned32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
         "A unique index for this entry."
    ::= { pmNotificationRegEntry 1 }

pmNotificationRegSnmpTargetAddrName OBJECT-TYPE
    SYNTAX      SnmpAdminString
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The snmpTargetAddrName of an associated
         snmpTargetAddrEntry. When the following conditions are true,
         pmNewRoleNotifications and pmNewCapabilityNotifications
         should be sent to the specified target:

           1) The pmNotificationRegEntry is active
           2) The associated snmpTargetAddr entry is fully
              configured and active.
           3) The associated snmpTargetParams entry is fully
              configured and active."
    ::= { pmNotificationRegEntry 2 }






Various Authors      Expires June 3, 2001            [Page 78]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


pmNotificationRegStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
         "The status of this entry."
    ::= { pmNotificationRegEntry 3 }

-- Notifications

pmNotifications OBJECT IDENTIFIER ::= { policyMgt 13 }

pmNewRoleNotification NOTIFICATION-TYPE
    OBJECTS     { pmRoleESString }
    STATUS      current
    DESCRIPTION
        "The pmNewRoleNotification is sent when an agent is configured with
        its first instance of a previously unused role string (not
        every time a new element is given a particular role).

        An instance of the pmRoleESString object is sent containing
        the new roleString. In the event that two or more elements are
        given the same role simultaneously, it is an
        implementation-dependent matter as to which pmRoleESString
        instance will be included in the notification."
    ::= { pmNotifications 1 }

pmNewCapabilityNotification NOTIFICATION-TYPE
    OBJECTS     { pmCapabilitiesType }
    STATUS      current
    DESCRIPTION
        "The pmNewCapabilityNotification is sent when an agent
        gains a new capability that did not previously exist in any
        element on the system (not every time an element gains a
        particular role).

        An instance of the pmCapabilitiesType object is sent containing
        the identity of the new capability. In the event that two or
        more elements gain the same role simultaneously, it is an
        implementation-dependent matter as to which pmCapabilitiesType
        instance will be included in the notification."
    ::= { pmNotifications 2 }

-- Compliance Statements






Various Authors      Expires June 3, 2001            [Page 79]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    pmConformance   OBJECT IDENTIFIER ::= { policyMgt 20 }
    pmCompliances   OBJECT IDENTIFIER ::= { pmConformance 1 }
    pmGroups        OBJECT IDENTIFIER ::= { pmConformance 2 }

pmCompliance MODULE-COMPLIANCE
    STATUS  current
    DESCRIPTION
        "Describes the requirements for conformance to
        the Policy-Based Management MIB"
    MODULE  -- this module
        MANDATORY-GROUPS { pmPolicyManagementGroup, pmSchedGroup,
                           pmNotificationGroup }
    ::= { pmCompliances 1 }

pmPolicyManagementGroup OBJECT-GROUP
    OBJECTS { pmPolicyFilter, pmPolicySchedule, pmPolicyAction,
              pmPolicyParameters,
              pmPolicyFilterMaxLatency, pmPolicyActionMaxLatency,
              pmPolicyPrecedence, pmPolicyGroup,
              pmPolicyDescription, pmPolicyMatches,
              pmPolicyAbnormalTerminations,
              pmPolicyExecutionErrors, pmPolicyDebugging,
              pmPolicyAdminStatus, pmPolicyRowStatus,
              pmPolicyCodeText, pmPolicyCodeStatus,
              pmElementTypeRegOIDPrefix, pmElementTypeRegMaxLatency,
              pmElementTypeRegName, pmElementTypeRegRowStatus,
              pmRoleESString, pmRoleESStatus, pmRoleSEElement,
              pmCapabilitiesType, pmCapabilitiesSubType,
              pmCapabilitiesModificationOID,
              pmCapabilitiesModificationType,
              pmCapabilitiesModificationValue,
              pmCapabilitiesModificationString,
              pmTrackingPolicyToElementInfo,
              pmTrackingElementToPolicyStatus,
              pmDebuggingElement, pmDebuggingLogIndex,
              pmDebuggingMessage,
              pmNotificationRegSnmpTargetAddrName,
              pmNotificationRegStatus }
    STATUS  current
    DESCRIPTION
        "Objects that allow for the creation and management of
        configuration policies."
    ::=  { pmGroups 1 }

pmSchedGroup OBJECT-GROUP





Various Authors      Expires June 3, 2001            [Page 80]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


    OBJECTS { pmSchedLocalTime, pmSchedGroupIndex,
              pmSchedDescr, pmSchedInterval, pmSchedWeekDay,
              pmSchedMonth, pmSchedDay, pmSchedHour, pmSchedMinute,
              pmSchedDuration, pmSchedType, pmSchedAdminStatus,
              pmSchedOperStatus, pmSchedStorageType, pmSchedRowStatus
            }
    STATUS current
    DESCRIPTION
        "Objects that allow for the scheduling of policies."
    ::= { pmGroups 2 }

pmNotificationGroup NOTIFICATION-GROUP
    NOTIFICATIONS { pmNewRoleNotification,
                    pmNewCapabilityNotification }
    STATUS        current
    DESCRIPTION
        "Notifications sent by an Policy MIB agent."
    ::= { pmGroups 3 }

pmBaseFunctionLibrary OBJECT IDENTIFIER ::= { pmGroups 4 }

END




























Various Authors      Expires June 3, 2001            [Page 81]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


13.  Security Considerations

There are a number of management objects defined in this MIB
that have a MAX-ACCESS clause of read-write and/or read-
create.  Such objects may be considered sensitive or
vulnerable in some network environments.  The support for SET
operations in a non-secure environment without proper
protection can have a negative effect on network operations.

SNMPv1 by itself is not a secure environment.  Even if the
network itself is secure (for example by using IPSec), even
then, there is no control as to who on the secure network is
allowed to access and GET/SET (read/change/create/delete) the
objects in this MIB.

It is recommended that the implementors consider the security
features as provided by the SNMPv3 framework.  Specifically,
the use of the User-based Security Model RFC 2574 [12] and the
View-based Access Control Model RFC 2575 [15] is recommended.

It is then a customer/user responsibility to ensure that the
SNMP entity giving access to an instance of this MIB, is
properly configured to give access to the objects only to
those principals (users) that have legitimate rights to indeed
GET or SET (change/create/delete) them.

Some policies may be designed to ensure the security of a
network. If these policies have not been downloaded pending
the appearance of a role or capability, some delay will occur
in the activation of these policies when the role or
capability appears because a responsible manager must notice
the change and download the policy. This delay may expose the
device or the network to unacceptable security vulnerabilities
during this delay. If the role or capability appears during a
time of network stress or when the management station is
unavailable, this delay could be extensive, further increasing
the risk. It is recommended that management stations download
any security-related policy that could ever be needed on a
particular managed device.











Various Authors      Expires June 3, 2001            [Page 82]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


14.  References

[1]  Harrington, D., Presuhn, R., and B. Wijnen, "An
     Architecture for Describing SNMP Management Frameworks",
     RFC 2571, April 1999.

[2]  Rose, M., and K. McCloghrie, "Structure and
     Identification of Management Information for TCP/IP-based
     Internets", STD 16, RFC 1155, May 1990.

[3]  Rose, M., and K. McCloghrie, "Concise MIB Definitions",
     STD 16, RFC 1212, March 1991.

[4]  Rose, M., "A Convention for Defining Traps for use with
     the SNMP", RFC 1215, March 1991.

[5]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
     Rose, M., and S. Waldbusser, "Structure of Management
     Information Version 2 (SMIv2)", STD 58, RFC 2578, April
     1999.

[6]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
     Rose, M., and S. Waldbusser, "Textual Conventions for
     SMIv2", STD 58, RFC 2579, April 1999.

[7]  McCloghrie, K., Perkins, D., Schoenwaelder, J., Case, J.,
     Rose, M., and S. Waldbusser, "Conformance Statements for
     SMIv2", STD 58, RFC 2580, April 1999.

[8]  Case, J., Fedor, M., Schoffstall, M., and J. Davin,
     "Simple Network Management Protocol", STD 15, RFC 1157,
     May 1990.

[9]  Case, J., McCloghrie, K., Rose, M., and S. Waldbusser,
     "Introduction to Community-based SNMPv2", RFC 1901,
     January 1996.

[10] Case, J., McCloghrie, K., Rose, M., and S. Waldbusser,
     "Transport Mappings for Version 2 of the Simple Network
     Management Protocol (SNMPv2)", RFC 1906, January 1996.

[11] Case, J., Harrington D., Presuhn R., and B. Wijnen,
     "Message Processing and Dispatching for the Simple
     Network Management Protocol (SNMP)", RFC 2572, April
     1999.





Various Authors      Expires June 3, 2001            [Page 83]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


[12] Blumenthal, U., and B. Wijnen, "User-based Security Model
     (USM) for version 3 of the Simple Network Management
     Protocol (SNMPv3)", RFC 2574, April 1999.

[13] Case, J., McCloghrie, K., Rose, M., and S. Waldbusser,
     "Protocol Operations for Version 2 of the Simple Network
     Management Protocol (SNMPv2)", RFC 1905, January 1996.

[14] Levi, D., Meyer, P., and B. Stewart, "SNMPv3
     Applications", RFC 2573, April 1999.

[15] Wijnen, B., Presuhn, R., and K. McCloghrie, "View-based
     Access Control Model (VACM) for the Simple Network
     Management Protocol (SNMP)", RFC 2575, April 1999.

[16] McCloghrie, K. and M. Rose, Editors, "Management
     Information Base for Network Management of TCP/IP-based
     internets: MIB-II", STD 17, RFC 1213, Hughes LAN Systems,
     Performance Systems International, March 1991.

[17] McCloghrie, K. and F. Kastenholz, "The Interfaces Group
     MIB using SMIv2", RFC 2233, Cisco Systems, FTP Software,
     November 1997.

[18] Case, J., Mundy, R., Partain, D., and B. Stewart,
     "Introduction to Version 3 of the Internet-standard
     Network Management Framework", RFC 2570, April 1999.

[19] International Standards Organization, "Information
     Technology - Programming Languages - C++", ISO/IEC
     14882-1998

[20] Levi, D. and J. Schoenwaelder, "Definitions of Managed
     Objects for Scheduling Management Operations", RFC 2591,
     May 1999.

[21] ECMAScript, TBD


15.  Intellectual Property

The IETF takes no position regarding the validity or scope of
any intellectual property or other rights that might be
claimed to  pertain to the implementation or use of the
technology described in this document or the extent to which





Various Authors      Expires June 3, 2001            [Page 84]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


any license under such rights might or might not be available;
neither does it represent that it has made any effort to
identify any such rights.  Information on the IETF's
procedures with respect to rights in standards-track and
standards-related documentation can be found in BCP-11.
Copies of claims of rights made available for publication and
any assurances of licenses to be made available, or the result
of an attempt made to obtain a general license or permission
for the use of such proprietary rights by implementors or
users of this specification can be obtained from the IETF
Secretariat.

The IETF invites any interested party to bring to its
attention any copyrights, patents or patent applications, or
other proprietary rights which may cover technology that may
be required to practice this standard.  Please address the
information to the IETF Executive Director.


16.  Full Copyright Statement

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

This document and translations of it may be copied and
furnished to others, and derivative works that comment on or
otherwise explain it or assist in its implementation may be
prepared, copied, published and distributed, in whole or in
part, without restriction of any kind, provided that the above
copyright notice and this paragraph are included on all such
copies and derivative works.  However, this document itself
may not be modified in any way, such as by removing the
copyright notice or references to the Internet Society or
other Internet organizations, except as needed for the
purpose of developing Internet standards in which case the
procedures for copyrights defined in the Internet Standards
process must be followed, or as required to translate it into
languages other than English.

The limited permissions granted above are perpetual and will
not be revoked by the Internet Society or its successors or
assigns.

This document and the information contained herein is provided
on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR





Various Authors      Expires June 3, 2001            [Page 85]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE
USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR
ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE.














































Various Authors      Expires June 3, 2001            [Page 86]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


Table of Contents


1 Abstract ..............................................    1
2 The SNMP Management Framework .........................    2
3 Overview ..............................................    4
4 Policy-Based Management Architecture ..................    5
5 Policy Based Management Execution Environment .........    8
5.1 Element Discovery ...................................    8
5.1.1 Implementation Notes ..............................    9
5.2 Element Filtering ...................................   10
5.2.1 Implementation Notes ..............................   10
5.3 Policy Enforcement ..................................   11
5.3.1 Implementation Notes ..............................   11
6 Policy Language .......................................   12
6.1 Formal Definition ...................................   12
7 Variables .............................................   16
7.1 The var class .......................................   17
8 Address of `this element' .............................   21
9 Accessor Functions ....................................   22
10 Base Accessor Function Library .......................   22
10.1 SNMP Accessor Functions ............................   23
10.1.1 Convenience SNMP Functions .......................   24
10.1.1.1 getvar() .......................................   24
10.1.1.2 exists() .......................................   25
10.1.1.3 setvar() .......................................   25
10.1.1.4 searchcolumn() .................................   26
10.1.1.5 setRowStatus() .................................   27
10.1.2 General SNMP Functions ...........................   28
10.1.2.1 newPDU() .......................................   29
10.1.2.2 writeVar() .....................................   30
10.1.2.3 readVar() ......................................   30
10.1.2.4 snmpsend() .....................................   31
10.2 Constants ..........................................   32
10.3 Policy Configuration Accessor Functions ............   33
10.3.1 roleMatch() ......................................   33
10.3.2 capMatch() .......................................   34
10.3.3 elementName() ....................................   34
10.3.4 ic() .............................................   34
10.3.5 iv() .............................................   35
10.3.6 setScratchpad() ..................................   35
10.3.7 getScratchpad() ..................................   36
10.3.8 Constants ........................................   37
10.3.9 signalException() ................................   38
10.3.10 getParameters() .................................   38





Various Authors      Expires June 3, 2001            [Page 87]





Internet Draft    Policy-Based Management MIB      Jan 3, 2001


10.4 Utility Accessor Functions .........................   38
10.4.1 oidlength() ......................................   39
10.4.2 oidncmp() ........................................   39
10.4.3 subid() ..........................................   39
10.4.4 subidwrite() .....................................   39
10.4.5 oidsplice() ......................................   40
10.4.6 Integer() ........................................   40
10.4.7 String() .........................................   40
10.4.8 chr() ............................................   40
10.4.9 ord() ............................................   41
10.4.10 substr() ........................................   41
10.5 Library Accessor Functions .........................   41
11 Schedule Table .......................................   42
11.1 Periodic Schedules .................................   42
11.2 Calendar Schedules .................................   43
11.3 One-shot Schedules .................................   43
12 Definitions ..........................................   45
13 Security Considerations ..............................   82
14 References ...........................................   83
15 Intellectual Property ................................   84
16 Full Copyright Statement .............................   85





























Various Authors      Expires June 3, 2001            [Page 88]


--------------CBC5EA910B8DBA2A7FF6D9FE--



From owner-snmpconf@seymour39.SNMP.COM  Mon Feb 26 08:25:42 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id IAA08197
	for <snmpconf-archive@odin.ietf.org>; Mon, 26 Feb 2001 08:25:40 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id IAA23841
	for snmpconf-outgoing; Mon, 26 Feb 2001 08:09:32 -0500 (EST)
Message-Id: <200102261308.OAA05683@lmera.lmera.ericsson.se>
To: snmpconf@snmp.com
Subject: snmpconf update to the Diffserv Policy MIB
From: David Partain <David.Partain@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <11078.983192937.1@y5m638.lmera.ericsson.se>
Date: Mon, 26 Feb 2001 14:08:57 +0100
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Greetings,

At http://www.cs.utk.edu/~partain/draft-ietf-snmpconf-diffpolicy-PRE04.txt
you will find a PRELIMINARY version of the draft that Harrie
and I will be submitting prior to the deadline on Friday.
The only section that is new is 7.1, which is an example.  So,
if you care, that's where you should look.  Given the hairy
nature of the diffserv MIB, the example may not be perfect,
so comments are more than welcome.

Ignore for the moment the fact that the dates and such are
incorrect.  That will be corrected prior to submission.

With kind regards,

David Partain


From owner-snmpconf@seymour39.SNMP.COM  Mon Feb 26 21:14:31 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id VAA09455
	for <snmpconf-archive@odin.ietf.org>; Mon, 26 Feb 2001 21:14:30 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id UAA12073
	for snmpconf-outgoing; Mon, 26 Feb 2001 20:54:24 -0500 (EST)
Message-ID: <3A9AE28B.38E017BF@nextbeacon.com>
Date: Mon, 26 Feb 2001 15:11:07 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: Re: snmpconf Snapshot draft
References: <3A9A0563.E2A3E581@nextbeacon.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit


Much has been done in the last draft. I've included a list of notable
changes at the end of this message. 

The change most worthy of some attention is the addition of 
loosely-typed variables to the language. Loosely-typed variables 
are an attribute of every interpreted language I've been examining 
(Perl, TCL, Javascript, Python). With this we get automatic 
conversion as appropriate from integers to strings and back, no 
need to make size decisions and cast between different sizes of the 
same type, simpler accessor function APIs (also fewer functions 
needed), no need to declare type, etc. All of these culminate in the 
real goal: shorter, easier to write scripts.

For example, a popular idiom for us is to construct OIDs. So what once
was:

    char oid[STRINGLEN];
    sprintf(oid, "ifAdminStatus.%d", index);
    writeVar(pdu, 0, oid, INTEGER, 2, 4);

becomes

    writeVar(pdu, 0, "ifAdminStatus." + index, INTEGER, 2);


What this all looks like is:

declaration:
  var x, n = 5, str = "IETF";
      (declaration doesn't include type)

These are OK:
  x = "Hello World";
  x = 20;

Note the following:
"String" is of type string
55 is of type integer
"55" is of type string
Integer("55") is of type integer (the resulting value is 55)

If you perform A + B and either A or B is a string, it converts both
to strings and appends them. Hence:
   var index = 5;

   puts("ifAdminStatus." + index); ==> ifAdminStatus.5
   /* puts is just for demonstration. It's not in our library */

If both are integers, it adds them:
   var index = 5, num = 10;

   puts(index + num); ==> 15

All other arithmetic operators convert operands to integers, so:
    var str = "10", num = 5;

    puts(str * num); ==> 50

There's a detailed description of the conversion rules in the
description of "the var class".

The other changes include the following from Jon's todo list:
3, 5, 7, 9, 10, 15, 16, 17, 18, 19, 23, 24, 25, 28, 29, 35, 36,
37, 38, 39, 40, 48.

Here's a description of the changes:
- Added policyParameters and getParameters()
- Error to use a varbind that wasn't set
- Can we get a reference for the biblio for EBNF?
- Mention:
    implmentation specific limits on scratchpad variables per policy
    implmentation specific limits on global scratchpad may be lower
- Consider (in examples), having descriptor-style OIDs not in quotes so
  they aren't confused
- Be very explicit that examples are using descripters despite the fact
  that this is not the "over the wire" representation.
- More text about "this element" being index, context + address.
- policyGroup changes
    New "all at once" semantics
    When b trumps a, b runs for a while, b now terminates, we must
      re-execute a IMMEDIATELY
    Make things happen immediately when precedence changes
- incorporate (by value) schedule mib with changes
- Need to define element "0.0" for "this system" (think of it as
  policies for scalar elements
- Make changes for pass by reference
- Change to C++ reference
- Add automatic initialization
- Add newPDU()
- Explicit element addresses as varargs for roleMatch and capMatch
  for example, when processing DLCI, what is role of containing port?
- Add signalError() accessor function
    and enumeration per execution context (also for abnormalTermination)
    and pmSignalErrors gauge
- Define terms like execution context and "this element"
- Added loosely-typed variables
- Sscanf
- replace string "access functions" -> "accessor functions"
- Policy state object for showing inactive due to precedence.
- Security issue with deferring the loading of a policy based on
  lack of a role. Policy may not be able to be loaded in time to
  prevent havoc. Added in mib and in security considerations.
- PolicyAdminStatus
- iv() and ic()
- Integer() and String()
- chr() and ord()
- Delete strncpy(), strncat() and atoi().
- string substr(string s, int start, int len);
- string replace(string s1, int start, int len, string s2);
- reordered and renamed arguments to oidsplice
- reordered arguments in readVar/writeVar
- Fixed a few bugs in grammar for lexical elements and added octal
  encodings and escape sequences.
- Deleted getint() and setint() as unnecessary (getvar() is now just
  as simple)
- Updated declarations of many accessor functions
- Other typos, editorial changes, formatting, etc.


Steve


From owner-snmpconf@seymour39.SNMP.COM  Tue Feb 27 03:37:55 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id DAA01733
	for <snmpconf-archive@odin.ietf.org>; Tue, 27 Feb 2001 03:37:53 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id DAA24591
	for snmpconf-outgoing; Tue, 27 Feb 2001 03:19:40 -0500 (EST)
Date: Tue, 27 Feb 2001 09:19:03 +0100
Message-Id: <200102270819.JAA14554@henkell.ibr.cs.tu-bs.de>
From: Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
To: snmpconf@snmp.com
CC: snmpconf@snmp.com
In-reply-to: <3A9AE28B.38E017BF@nextbeacon.com> (message from Steve Waldbusser
	on Mon, 26 Feb 2001 15:11:07 -0800)
Subject: Re: snmpconf Snapshot draft
References: <3A9A0563.E2A3E581@nextbeacon.com> <3A9AE28B.38E017BF@nextbeacon.com>
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com


>>>>> Steve Waldbusser writes:

Steve> Much has been done in the last draft. I've included a list of
Steve> notable changes at the end of this message.

[...]

Are integer vars of arbitrary precision? Or how do you deal with
signed/unsigned arithmetics based on 32 or 64 bit numbers?

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>




From owner-snmpconf@seymour39.SNMP.COM  Tue Feb 27 09:17:27 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id JAA09088
	for <snmpconf-archive@odin.ietf.org>; Tue, 27 Feb 2001 09:17:26 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id IAA01874
	for snmpconf-outgoing; Tue, 27 Feb 2001 08:54:44 -0500 (EST)
Message-ID: <3A9B8B65.86066B2@nextbeacon.com>
Date: Tue, 27 Feb 2001 03:11:33 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: Re: snmpconf Snapshot draft
References: <3A9A0563.E2A3E581@nextbeacon.com> <3A9AE28B.38E017BF@nextbeacon.com> <200102270819.JAA14554@henkell.ibr.cs.tu-bs.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit



Juergen Schoenwaelder wrote:
> 
> >>>>> Steve Waldbusser writes:
> 
> Steve> Much has been done in the last draft. I've included a list of
> Steve> notable changes at the end of this message.
> 
> [...]
> 
> Are integer vars of arbitrary precision? Or how do you deal with
> signed/unsigned arithmetics based on 32 or 64 bit numbers?

The draft specifies the range of ints as from -9223372036854775808 to
18446744073709551615 (-2^63-1 to 2^64-1). 
What's missing so far is a simple set of rules on what to do in overflow
situations but that'll be in there by the end of the week.


Steve


From owner-snmpconf@seymour39.SNMP.COM  Tue Feb 27 13:53:36 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA23630
	for <snmpconf-archive@odin.ietf.org>; Tue, 27 Feb 2001 13:53:36 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id NAA08707
	for snmpconf-outgoing; Tue, 27 Feb 2001 13:23:06 -0500 (EST)
Message-Id: <4.2.2.20010227132054.00bcc300@localhost>
X-Sender: joel@localhost
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 
Date: Tue, 27 Feb 2001 13:22:02 -0500
To: snmpconf@snmp.com
From: "Joel M. Halpern" <joel@longsys.com>
Subject: Re: snmpconf Snapshot draft
In-Reply-To: <3A9AE28B.38E017BF@nextbeacon.com>
References: <3A9A0563.E2A3E581@nextbeacon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Thanks for describing how the overloaded variables are sorted out.
Yours,
Joel

PS: I know it is common, and we should probably use this overloading, but I 
am doubtful as to how much it is worth.

At 03:11 PM 2/26/01 -0800, you wrote:

>Much has been done in the last draft. I've included a list of notable
>changes at the end of this message.
>
>The change most worthy of some attention is the addition of
>loosely-typed variables to the language. Loosely-typed variables
>are an attribute of every interpreted language I've been examining
>(Perl, TCL, Javascript, Python). With this we get automatic
>conversion as appropriate from integers to strings and back, no
>need to make size decisions and cast between different sizes of the
>same type, simpler accessor function APIs (also fewer functions
>needed), no need to declare type, etc. All of these culminate in the
>real goal: shorter, easier to write scripts.
>
>For example, a popular idiom for us is to construct OIDs. So what once
>was:
>
>     char oid[STRINGLEN];
>     sprintf(oid, "ifAdminStatus.%d", index);
>     writeVar(pdu, 0, oid, INTEGER, 2, 4);
>
>becomes
>
>     writeVar(pdu, 0, "ifAdminStatus." + index, INTEGER, 2);
>
>
>What this all looks like is:
>
>declaration:
>   var x, n = 5, str = "IETF";
>       (declaration doesn't include type)
>
>These are OK:
>   x = "Hello World";
>   x = 20;
>
>Note the following:
>"String" is of type string
>55 is of type integer
>"55" is of type string
>Integer("55") is of type integer (the resulting value is 55)
>
>If you perform A + B and either A or B is a string, it converts both
>to strings and appends them. Hence:
>    var index = 5;
>
>    puts("ifAdminStatus." + index); ==> ifAdminStatus.5
>    /* puts is just for demonstration. It's not in our library */
>
>If both are integers, it adds them:
>    var index = 5, num = 10;
>
>    puts(index + num); ==> 15
>
>All other arithmetic operators convert operands to integers, so:
>     var str = "10", num = 5;
>
>     puts(str * num); ==> 50
>
>There's a detailed description of the conversion rules in the
>description of "the var class".
>
>The other changes include the following from Jon's todo list:
>3, 5, 7, 9, 10, 15, 16, 17, 18, 19, 23, 24, 25, 28, 29, 35, 36,
>37, 38, 39, 40, 48.
>
>Here's a description of the changes:
>- Added policyParameters and getParameters()
>- Error to use a varbind that wasn't set
>- Can we get a reference for the biblio for EBNF?
>- Mention:
>     implmentation specific limits on scratchpad variables per policy
>     implmentation specific limits on global scratchpad may be lower
>- Consider (in examples), having descriptor-style OIDs not in quotes so
>   they aren't confused
>- Be very explicit that examples are using descripters despite the fact
>   that this is not the "over the wire" representation.
>- More text about "this element" being index, context + address.
>- policyGroup changes
>     New "all at once" semantics
>     When b trumps a, b runs for a while, b now terminates, we must
>       re-execute a IMMEDIATELY
>     Make things happen immediately when precedence changes
>- incorporate (by value) schedule mib with changes
>- Need to define element "0.0" for "this system" (think of it as
>   policies for scalar elements
>- Make changes for pass by reference
>- Change to C++ reference
>- Add automatic initialization
>- Add newPDU()
>- Explicit element addresses as varargs for roleMatch and capMatch
>   for example, when processing DLCI, what is role of containing port?
>- Add signalError() accessor function
>     and enumeration per execution context (also for abnormalTermination)
>     and pmSignalErrors gauge
>- Define terms like execution context and "this element"
>- Added loosely-typed variables
>- Sscanf
>- replace string "access functions" -> "accessor functions"
>- Policy state object for showing inactive due to precedence.
>- Security issue with deferring the loading of a policy based on
>   lack of a role. Policy may not be able to be loaded in time to
>   prevent havoc. Added in mib and in security considerations.
>- PolicyAdminStatus
>- iv() and ic()
>- Integer() and String()
>- chr() and ord()
>- Delete strncpy(), strncat() and atoi().
>- string substr(string s, int start, int len);
>- string replace(string s1, int start, int len, string s2);
>- reordered and renamed arguments to oidsplice
>- reordered arguments in readVar/writeVar
>- Fixed a few bugs in grammar for lexical elements and added octal
>   encodings and escape sequences.
>- Deleted getint() and setint() as unnecessary (getvar() is now just
>   as simple)
>- Updated declarations of many accessor functions
>- Other typos, editorial changes, formatting, etc.
>
>
>Steve



From owner-snmpconf@seymour39.SNMP.COM  Wed Feb 28 02:16:35 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id CAA28959
	for <snmpconf-archive@odin.ietf.org>; Wed, 28 Feb 2001 02:16:34 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id CAA25335
	for snmpconf-outgoing; Wed, 28 Feb 2001 02:00:10 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
	<3A95CC7C.4C26D381@nextbeacon.com>
	<sdg0h5xmmp.fsf@wanderer.hardakers.net>
	<3A96E06E.8AECAAF3@nextbeacon.com>
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 27 Feb 2001 23:03:00 -0800
In-Reply-To: <3A96E06E.8AECAAF3@nextbeacon.com> (Steve Waldbusser's message of "Fri, 23 Feb 2001 14:13:03 -0800")
Message-ID: <sdelwjl26z.fsf@wanderer.hardakers.net>
Lines: 40
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

>>>>> On Fri, 23 Feb 2001 14:13:03 -0800, Steve Waldbusser <waldbusser@nextbeacon.com> said:

Steve>     "Policies are intended to express a notion of:
Steve>         if (an element has certain characteristics) then (apply an
Steve>             operation to that element)"

Steve> After fixing my notational blunder, would you agree that an
Steve> operation is more likely to apply to the same element?

Yes.

Steve> Second most likely to a related element?

Yes.

Steve> And unrelated elements are also possible but don't really draw
Steve> as many strengths from the architecture.

Yes, additional and non-related objects are possible.  I'd still argue
"an element" be the right wording in the action clause, but I
understand your point in wanting to point to the default case.

However, this would leave me to believe that this is not appropriate
for a policy, since the objects/elements/whatever are completely
independent (aside from being tied through this policy):

if (packet arrives with bit 12 set) then (blow up a building somewhere)

>> IMHO, it is a serious security issue not to enable a way for failed
>> actions to be run incorrectly and not have a way to inform an
>> administrator of this immediately.

Steve> Understood. Still thinking. And eager to hear others viewpoints.

Me too (on the view points idea, I'm done thinking about it ;-)

-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Wed Feb 28 02:22:00 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id CAA28977
	for <snmpconf-archive@odin.ietf.org>; Wed, 28 Feb 2001 02:21:59 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id CAA26198
	for snmpconf-outgoing; Wed, 28 Feb 2001 02:08:45 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
	<3A95CC7C.4C26D381@nextbeacon.com>
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 27 Feb 2001 23:11:38 -0800
In-Reply-To: <3A95CC7C.4C26D381@nextbeacon.com> (Steve Waldbusser's message of "Thu, 22 Feb 2001 18:35:40 -0800")
Message-ID: <sdae77l1sl.fsf@wanderer.hardakers.net>
Lines: 36
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com


Steve> So we've made it easy to poll but haven't achieved sub-second
Steve> notification (only possible with a notification). And it's here
Steve> that I'm a bit reluctant to say that a notification is a
Steve> requirement. To be honest, I really don't have a sense of this
Steve> yet. One more notification isn't that big a deal but I'm most
Steve> worried about getting into ratholes about how we can make sure
Steve> that floods of notifications don't occur.

Steve> All we would absolutely need would be to have a notification
Steve> that is sent whenever the abnormalTerminations gauge goes from
Steve> zero to non-zero and no more than 1 notification per 60 seconds
Steve> (or some similar non-configurable constant). If we could keep
Steve> it simple like this it might be worth it.

Throttling is a very very good thing, you're right.  They should be
throttled.  I wouldn't, however, base my notifications on the value 0
for the pmPolicyAbnormalTerminations object.  It implies that it won't
fire another notification till it wraps around to 0 again or until the
object is destroyed and recreated.  I'd say fire if it changes at all,
and don't fire another one till after the throttle factor.

And I disagree that it shouldn't be a configurable throttle value.  A
global notification throttle object (defaulting to, say, 60) should be
defined to deal with this.

(side note: I'd also really like to see multiple actions be available
per policy rule, and ideally fall back actions as well.  Or can a code
table call another code object in the same table? (hence making it
possible to write a function X that calls Y and Z, which could also be
called independently by another action).

-- 
Wes Hardaker
NAI Labs
Network Associates


From owner-snmpconf@seymour39.SNMP.COM  Wed Feb 28 02:47:58 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id CAA29161
	for <snmpconf-archive@odin.ietf.org>; Wed, 28 Feb 2001 02:47:57 -0500 (EST)
Received: by seymour39.SNMP.COM (8.9.3/m.000221) id CAA27667
	for snmpconf-outgoing; Wed, 28 Feb 2001 02:34:37 -0500 (EST)
Message-ID: <9505F6390AA7D311A2D500508B951BEF02F5ABC2@esealnt427>
From: "Jonas Olsson M (ERA)" <Jonas.M.Olsson@era.ericsson.se>
To: "'snmpconf@snmp.com'" <snmpconf@snmp.com>
Subject: RE: snmpconf update to the Diffserv Policy MIB
Date: Wed, 28 Feb 2001 08:29:02 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2651.58)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

Hi David,

Some remarks on the DiffServ Policy MIB.

(p. 11) In your policy: setvar("diffServDataPathStart" + $1 + "2", ... 
Should it not read: setvar("diffServDataPathStart." + $1 + ".2", ... ?

(p. 12, In diffPolicyDPCTable): 
Reads: diffServPolicyDPCConfiguration = diffServClfrElementId.1
Comment: diffServClfrElementId is not accessible!

(In diffPolicyDPCTable): diffPolicyDPCConfiguration points to an instance of diffServClfrElementEntry, but according to the specification on p. 17 it should point to an instance of one of:
	diffServClfrEntry
	diffServMeterEntry
	diffServActionEntry
	diffServAlgDropEntry
	diffServQEntry

(Sec. 7.1) You use the term "policy rule" for the IF-THEN command, while (as far as I know) SNMPConf uses the term "policy" (except in definition of pmRoleSEString in the Policy MIB).  

Best regards,

Jonas Olsson


-----Original Message-----
From: David Partain [mailto:David.Partain@ericsson.com]
Sent: den 26 februari 2001 14:09
To: snmpconf@snmp.com
Subject: snmpconf update to the Diffserv Policy MIB


Greetings,

At http://www.cs.utk.edu/~partain/draft-ietf-snmpconf-diffpolicy-PRE04.txt
you will find a PRELIMINARY version of the draft that Harrie
and I will be submitting prior to the deadline on Friday.
The only section that is new is 7.1, which is an example.  So,
if you care, that's where you should look.  Given the hairy
nature of the diffserv MIB, the example may not be perfect,
so comments are more than welcome.

Ignore for the moment the fact that the dates and such are
incorrect.  That will be corrected prior to submission.

With kind regards,

David Partain


From owner-snmpconf@seymour39.SNMP.COM  Wed Feb 28 13:20:25 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA17462
	for <snmpconf-archive@odin.ietf.org>; Wed, 28 Feb 2001 13:20:23 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id NAA06775
	for snmpconf-outgoing; Wed, 28 Feb 2001 13:04:01 -0500 (EST)
Message-ID: <3A9D1755.3BAE894A@nextbeacon.com>
Date: Wed, 28 Feb 2001 07:20:53 -0800
From: Steve Waldbusser <waldbusser@nextbeacon.com>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
		<3A95CC7C.4C26D381@nextbeacon.com> <sdae77l1sl.fsf@wanderer.hardakers.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com
Content-Transfer-Encoding: 7bit



Wes Hardaker wrote:
> 
> Steve> So we've made it easy to poll but haven't achieved sub-second
> Steve> notification (only possible with a notification). And it's here
> Steve> that I'm a bit reluctant to say that a notification is a
> Steve> requirement. To be honest, I really don't have a sense of this
> Steve> yet. One more notification isn't that big a deal but I'm most
> Steve> worried about getting into ratholes about how we can make sure
> Steve> that floods of notifications don't occur.
> 
> Steve> All we would absolutely need would be to have a notification
> Steve> that is sent whenever the abnormalTerminations gauge goes from
> Steve> zero to non-zero and no more than 1 notification per 60 seconds
> Steve> (or some similar non-configurable constant). If we could keep
> Steve> it simple like this it might be worth it.
> 
> Throttling is a very very good thing, you're right.  They should be
> throttled.  I wouldn't, however, base my notifications on the value 0
> for the pmPolicyAbnormalTerminations object.  It implies that it won't
> fire another notification till it wraps around to 0 again or until the
> object is destroyed and recreated.  I'd say fire if it changes at all,
> and don't fire another one till after the throttle factor.

Ack. That pesky troublesome abnormalTerminations object again. This has
confused people in the past so I recently rewrote it:

pmPolicyAbnormalTerminations OBJECT-TYPE
    SYNTAX      Gauge32
    UNITS       "elements"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
         "The number of elements that, in their most recent filter or
         action execution, have experienced a run-time exception and
         terminated abnormally. Note that if a policy was experiencing
         a run-time exception while processing a particular element
         but on a subsequent invocation it runs normally, this number
         can decline."
    ::= { pmPolicyEntry 12 }

Let's say we have 20 elements. If, when policy P processes those
elements, the first iteration through them 3 of them failed, this object
would be set to 7. If on a later iteration through them policy P failed
on only 1 of them, this object would be set to 1. If on a later
iteration through them policy P succeeded on all of them, this object
would be set to 0. This object is a gauge.

In other words, this should be 0 on most policies. Any nonzero value
indicates a policy that is currently failing on some elements. If you
fix a policy or it "fixes itself", the value will go back to zero.
pmPolicyExecutionErrors is a counter and shows all errors the policy has
ever experienced.

So that's why I'm thinking about the 0 to 1 transition as the noteworthy
one.

> And I disagree that it shouldn't be a configurable throttle value.  A
> global notification throttle object (defaulting to, say, 60) should be
> defined to deal with this.

The 0 to 1 transition should substantially limit the number of messages
and then all we need is some reasonable fixed interval to mop up any
issues regarding repetitively bouncing between 0 and 1.

Keep in mind that the MTTR of a broken script is fairly long because you
have to find a programmer, give him a few cokes, and wait. The reason we
want a notification is so that some automated remedial action can occur
instantly (disable the policy, install the last good version, shut down
the device, ...) until the repair is made some time later. So once we're
alerted, we're probably not going to find another notification
"interesting" for hours (until we think it's actually repaired). What
I'm trying to argue is that if we can guarantee an alert on the first 0
to 1 transition your pretty much done. Very little chance of
underreporting the problem. All that's left is to make sure you don't
overreport.

Regarding overreporting, we just need some protection from floods. I say
just pick a number. I realize it should be higher than I originally
said. Maybe 30-60 minutes. Why would you ever set it lower? In the
unlikely case that your programmer has instant response time and fixes
the problem in 10 minutes, why can't we just watch the error counters
for another 50 minutes?

I'm not saying it won't ever be useful, just that most of the time it
isn't useful and I can't see that it's ever necessary. I'm just trying
to avoid feature creep. It's easy to add objects now. It's easy to add
them later. But it's impossible to lower the cost after the fact.


> (side note: I'd also really like to see multiple actions be available
> per policy rule, and ideally fall back actions as well.  Or can a code
> table call another code object in the same table? (hence making it
> possible to write a function X that calls Y and Z, which could also be
> called independently by another action).

We only have one action. Fall-back actions are available through the use
of precedence:

Let's say I have a normal QOS, a gold QOS, and a videoconference QOS:
Filter                     Action                    Precedence
if(interface)              apply normal QOS          1
if (interface          
  && roleMatch("Gold"))    apply Gold QOS            2
if (interface #27
  && between 2 and 3 PM)   apply Videoconference QOS 3

So all interfaces get at least normal. Anything tagged with "Gold"
gets Gold QOS. If you delete the "Gold" tag, it reverts to normal. No
matter what the previous QOS was, at 2PM interface 27 gets set to
Videoconference. At 3PM interface 27 reverts back to whatever it 
deserves at that time.


Steve


From owner-snmpconf@seymour39.SNMP.COM  Wed Feb 28 18:10:39 2001
Received: from seymour39.SNMP.COM (seymour39.snmp.com [192.147.142.39])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id SAA00867
	for <snmpconf-archive@odin.ietf.org>; Wed, 28 Feb 2001 18:10:39 -0500 (EST)
Received: (from majordomo@localhost)
	by seymour39.SNMP.COM (8.9.3/m.000221) id RAA14419
	for snmpconf-outgoing; Wed, 28 Feb 2001 17:58:01 -0500 (EST)
X-Authentication-Warning: wanderer.hardakers.net: hardaker set sender to wes@hardakers.net using -f
To: snmpconf@snmp.com
Subject: Re: snmpconf-pm-04 notes
References: <sdlmrgpssl.fsf@wanderer.hardakers.net>
	<3A95CC7C.4C26D381@nextbeacon.com>
	<sdae77l1sl.fsf@wanderer.hardakers.net>
	<3A9D1755.3BAE894A@nextbeacon.com>
From: Wes Hardaker <wes@hardakers.net>
X-URL: http://dcas.ucdavis.edu/~hardaker
Organization: Network Associates - NAI Labs
X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA
 SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/
 IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4
Date: 28 Feb 2001 14:57:10 -0800
In-Reply-To: <3A9D1755.3BAE894A@nextbeacon.com> (Steve Waldbusser's message of "Wed, 28 Feb 2001 07:20:53 -0800")
Message-ID: <sdvgpuct6h.fsf@wanderer.hardakers.net>
Lines: 107
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Terspichore)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-snmpconf@snmp.com
Precedence: bulk
Reply-To: snmpconf@snmp.com

>>>>> On Wed, 28 Feb 2001 07:20:53 -0800, Steve Waldbusser <waldbusser@nextbeacon.com> said:

Steve> pmPolicyAbnormalTerminations OBJECT-TYPE
Steve>          "The number of elements that, in their most recent filter or
Steve>          action execution, have experienced a run-time exception and
Steve>          terminated abnormally. Note that if a policy was experiencing
Steve>          a run-time exception while processing a particular element
Steve>          but on a subsequent invocation it runs normally, this number
Steve>          can decline."
Steve>     ::= { pmPolicyEntry 12 }

Steve> Let's say we have 20 elements. If, when policy P processes
Steve> those elements, the first iteration through them 3 of them
Steve> failed, this object would be set to 7.

Ah, that makes more sense.  Sorry.  (up until you mix 3 and 7, which I
think was a typo).

Steve> What I'm trying to argue is that if we can guarantee an alert
Steve> on the first 0 to 1 transition your pretty much done.

True, though if the code changed I'd be tempted to want another one
but its certainly not necessary.

Now, if that trap goes un-received, though, then the broken script may
not be noticed for a while.  I'd still be tempted to send them out
every X number of seconds (defaulting to 60 minutes, say, as you would
like).  If X is 0, only send one (note that this is a different
configuration item than discussed below where throttling from toggling
is discussed):

Steve> Regarding overreporting, we just need some protection from
Steve> floods. I say just pick a number. I realize it should be higher
Steve> than I originally said. Maybe 30-60 minutes. Why would you ever
Steve> set it lower?

Never underestimate the desire for a sysadmin to want something
different than what the MIB designer figured would be good enough.
IMHO, everything should be configurable unless there is a good reason
to do otherwise and I don't see one here.  The reason for not making
it configurable is that you don't see a value other than yours being
useful (and its doubtful you ever will, seeing as that its your choice)!

Steve> In the unlikely case that your programmer has instant response
Steve> time and fixes the problem in 10 minutes, why can't we just
Steve> watch the error counters for another 50 minutes?

You could, and I'm not saying otherwise.  I'm saying it should be
configurable.  The type of interface I like when managing 10000 nodes
is for them to watch themselves, or nearby nodes, and notify me when
something goes wrong.  I'd rather not run software that continually
monitors something if I don't need the data itself (I'm only looking
for errors not collecting statistics).  I'm likely to fix code and
forget about it (while working on something new) until another error
notification comes my way from the same node again.

Steve> It's easy to add objects now. It's easy to add them later. But
Steve> it's impossible to lower the cost after the fact.

It's also annoying to have written code to support one architecture
that could have been done differently after the later addition.

>> (side note: I'd also really like to see multiple actions be available
>> per policy rule, and ideally fall back actions as well.  Or can a code
>> table call another code object in the same table? (hence making it
>> possible to write a function X that calls Y and Z, which could also be
>> called independently by another action).

Steve> We only have one action. Fall-back actions are available
Steve> through the use of precedence:

Right, I'd like to see more than one "successful" action.  (Take a
look at what we did in the draft-ietf-ipsp-ipsec-conf-mib if it ever
gets published (it hasn't made it through ID processing yet))

Steve> Let's say I have a normal QOS, a gold QOS, and a videoconference QOS:
Steve> Filter                     Action                    Precedence
Steve> if(interface)              apply normal QOS          1
Steve> if (interface          
Steve>   && roleMatch("Gold"))    apply Gold QOS            2
Steve> if (interface #27
Steve>   && between 2 and 3 PM)   apply Videoconference QOS 3

Steve> So all interfaces get at least normal. Anything tagged with
Steve> "Gold" gets Gold QOS. If you delete the "Gold" tag, it reverts
Steve> to normal. No matter what the previous QOS was, at 2PM
Steve> interface 27 gets set to Videoconference. At 3PM interface 27
Steve> reverts back to whatever it deserves at that time.

And if you wanted to do:

   if(interface)              apply normal QOS          1
   if (interface          
     && roleMatch("Gold"))    apply Gold QOS            2
                              && encrypt
   if (interface #27
     && between 2 and 3 PM)   apply Videoconference QOS 3
                              && encrypt

Then, the Videoconference QOS and the Gold QOS code must both
implement the exact same code to provide encryption?  With multiple
actions, you can separate functionality and promote reuse.

-- 
Wes Hardaker
NAI Labs
Network Associates


