Arthur Foster

Hillman House,  4, Madeira Road,

Parkstone,  Poole,  Dorset   BH14 9ET

UK

Description of GDMO
Attribute Example

e-mail:

arthur@arthurfoster.com

tel: 

+44 (01202) 469468

fax:

+44 (01202) 469861

  

Home Site Map Search

Home Up Action Example Attribute Example Attribute Group Example Behaviour Example Managed Object Example Name Binding Example Notification Example Package Example Parameter Example

 

Attribute Template
Get Operation
Set Operation

 

This example of an attribute template is taken from the Network Management Forum OMNIPoint 1 specifications.

The attribute defined is the naming attribute of the forumTestObject called toID. Naming attributes are used in name bindings to uniquely identify a managed object instance.

 

Attribute Example

    toID ATTRIBUTE
        WITH ATTRIBUTE SYNTAX 
            FORUM-ASN1-1.SimpleNameType;
        MATCHES FOR EQUALITY,SUBSTRINGS;
        BEHAVIOUR toIDBehaviour;
        REGISTERED AS {forum-attribute 311};
    toIDBehaviour BEHAVIOUR
        DEFINED AS !                         
            !;                         
 
The WITH ATTRIBUTE SYNTAX field specifies an ASN.1 data structure that will be used to carry in the arguments of the ATTRIBUTE operations. In this example the source of the ASN.1 data structure specification is identified as:

FORUM-ASN1-1.SimpleNameType

This is known as a type referenceThe type reference has two parts: 

  1. an ASN.1 module name, which identifies the ASN.1 containing the data structure to be employed; and,

  2. an ASN.1 type identifier which must be defined in that module (although it could be imported).

In this particular case the ASN.1 module is named "FORUM-ASN1-1" and the type identifier is "SimpleNameType".  In this case the attribute is either a graphical string or an integer.

The MATCHES FOR field specifies the possible ways in which the attribute could be matched in scoping and filtering operations. In this case the EQUALITY and SUBSTRINGS indicate that the filters will be able to process attribute value assertions against managed object instance that have this attribute that can match for equality and that include operations on strings.

 

 
Author: Arthur Foster
28 May 2002

Arthur Foster is a

founder member of

 
 

Hosted by