[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3233.0. "New partition ?" by ANNECY::ROUX (Denis @AEO (887-4059)) Tue Jun 23 1992 13:22

Hi,

	Is it possible to create a new partition (in addition of
	those already existing (IDENT,CHAR,STAT,COUN,REF,and INITIAL ATTRIBUTES
	as defined in Node4 class ) ?

	Are there some "reserved" partition which could be used for our own
	purpose ?

rgds 
Denis
T.RTitleUserPersonal
Name
DateLines
3233.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Tue Jun 23 1992 15:1413
    Yes, in fact its the whole idea behind all the work that went into
    MCC.
    
    You may add partitions and then support access to them by writing
    an AM that is dispatched to only for class NODE4 <new_partition>. In
    fact a single AM may do this on behalf of an added partition for
    any number or all classes.
    
    The existing REFERENCE partition is an example of such a partition.
    It is supported for the REGISTRATION FM (acting as a reference AM).
    Thus all classes get references attributes and no code is written
    in their existing AMs.
    
3233.2I don't think so.TOOK::MCPHERSONLife is hard. Play short.Tue Jun 23 1992 16:3115
Jim, I don't think what you explained is possible with MCC right now. Attribute
partitions are bounded.

You *can* specify an EVENT partition (e.g. Configuration Events, Notification
Events, etc), but not any other partitions.  The SRM was ECO'd to include
support for event partitions, but there is no capability (yet) to arbitrarily
add any other new partitions for dispatching.   I'm pretty sure that the MSL
translator will barf.

In other words, "There is nothing inherent in the architecture that would
preclude this, but the actual product capabilities do not allow this."

Prove that I'm wrong and large 3-letter DECmcc OEM will be ecstatic...

/doug
3233.3TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Tue Jun 23 1992 17:0011
    There's actually nothing inherent in the implementation either that
    stops this with the exception of MSL.
    
    I just went into the dictionary with DAP and added attribute partition
    FOOBAR to class SNMP.   FCL parses it and it comes up under the SHOW
    submenu on the iconic map, (it gets an unsupported V,E,P combination
    trying to dispatch to it, as I would expect since I didn't enroll an MM
    to field it).
    
    I'll look into expediting what should be a trivial ECO.
    
3233.4I'd be interested to *see* this one... ;^)TOOK::MCPHERSONLife is hard. Play short.Tue Jun 23 1992 17:2317
<conversation w/Jim deleted>

If you gotta, here's a gameplan:

You can hack a new partition into the dictionary with DAP, no prob.
Write up the new partition into your existing MSL but USE A PRE-DEFINED
ATTRIBUTE PARTITION. MSL xlator will BARF if it sees any ATTRIBUTE partitions
other than the pre-defined ones it knows about (Ident, status, char etc).

Once the DAP .COM file is produced, go into it and replace any occurrences of
the PRE-DEFINED partition you used with the NEW partition you zapped into the
dictionary via DAP.

It's not pretty; it's not supported, but it should work.

Good luck.
/doug
3233.5It should be supported !CCIIS1::ROGGEBANDWed Jun 24 1992 08:2325
3233.6Known bug in MSL TranslatorTOOK::GUERTINIt fall down, go boomWed Jun 24 1992 10:345
    The inability of the MSL translator to allow the developer/architect to
    define new attribute partitions is a known bug.  I thought it was to be
    supported (via a different syntax) in V1.2, I guess it didn't make it in.
    
    -Matt.
3233.7TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Wed Jun 24 1992 13:063
    Yes, this is taking on more of the aspects of a bug rather than
    a restriction.
    
3233.8CCIIS1::ROGGEBANDWed Jun 24 1992 14:057
3233.9new partition ?ANNECY::ROUXDenis @AEO (887-4059)Thu Jul 02 1992 06:587
Thanks to all of you Jim/Doug/Matt/Phil

	We are going to use this proposed workaround and create a new partition.
	Anyway, I'm now more confident in the fact that It's seen more as a bug
	as a restriction. I have an another customer who wants to use this
	feature.
Denis
3233.10Ok. Let us know how it works.TOOK::MCPHERSONLife is hard. Play short.Thu Jul 02 1992 12:1320
>	We are going to use this proposed workaround and create a new partition.
>	Anyway, I'm now more confident in the fact that It's seen more as a bug
>	as a restriction. I have an another customer who wants to use this
>	feature.

    Ok, but please remember to proceed with caution....  Remember that
    attribute partitions must use UNIQUE codes and are supposed to be
    registerd through the DECmcc Registrar, same as Global Entity codes.  
    If you mess up and choose one that's already in use by some other
    application, then you may run into some probably 'non-obvious'
    problems.

    Unless you really need to change dispatching behavior, then the easiest
    way for you to proceed may be by defining a new ATTRIBUTE GROUP
    (something that's been supported for a while and  is used by several
    AMs.)

    /doug