[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

1550.0. "show single attribute in the mcc_call_access ?" by RIVAGE::WEBER () Wed Sep 25 1991 15:30

    
	I am actually giving a course on DECmcc Am development (V1),
	and one of the client asked a question I was not able to respond.

	These people (who have been working a quite long time on the product)
	would like to be able, through the FCL, to show a single attribute at
	a time.
	Provided the MSL contains an atribute list as a input argument
	of the show directive, is it possible that the in_p passed to the 
	mcc_call_access receives as argument of the show, the single attribute ?
	(in a similar manner as it is, for a SET directive).

	They have observed that when specifying a single attribute in the show
	command, the ALL CHAR partition is passed to the access module.
	They would like to have a single attribute in the in_p,
	to avoid exchange of the whole data with the entity agent (remote),
	instead of gathering the whole that is sorted out by the PM.

	Could you please give me more details, if this is possible ?

	Thanks to answer
	Florence 
	
T.RTitleUserPersonal
Name
DateLines
1550.1Designed, but not yet implemented in the PMsTOOK::STRUTTManagement - the one word oxymoronWed Sep 25 1991 15:3618
    MCC is defined to allow a single attribute to be passed back, but
    neither of the PMs we have built to date format the request that way.
    
    If you look at the SRM definition of the standardised directive SHOW
    (p893) you will see that there is a request argument [Attributes Wanted]
    of the datatype AttributeIdList. It is optional. If your AM is able to
    return only the requested attributes (rather than the default which is
    the whole partition), then you will be ready for when the PMs are
    enhanced. 
    
    Note that the user still gets the desired behaviour from the FCL PM, as
    it filters out the requested attribute(s) from the returned data.
    
    Note also, that FMs as well as PMs could make a SHOW request and make
    use of Attributes Wanted, so you shouldn't wait for just the PMs to be
    changed
    
    Colin
1550.2Please, elaborate on FM calling AMsSWORD1::ESEugene ShvartsmanThu Oct 03 1991 17:1922
I have related questions. We are working on a FM, which calls AMs, using SHOW
verb and we need to request one or more attributes.

The first question is how to contstruct attribute list for IN_P, i.e. what
values should be passed for individual attribute? Or no value at all, i.e
mcc_a_pointer field should be NULL?

The second one: is it possible to request more than one attribute?

And the last: is it possible to request more than one attribute from different
partitions? For example, in PM you may do that:

	MCC> SHOW NODE4 <name> ADDRESS, TYPE

where ADDRESS belongs to the indentifier partition, and type to the
characteristic partition.

What should be specified as ATTRIBUTE parameter in this case for
MCC_CALL_ACCESS?

Thank you,
Gene
1550.3FM's calling AM'sNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Oct 04 1991 08:3734
>> The first question is how to contstruct attribute list for IN_P, i.e. what
>> values should be passed for individual attribute? Or no value at all, i.e
>> mcc_a_pointer field should be NULL?

All MM's support showing all attributes of a single Partition.  This is
what the current PM's do.  The In-P buffer is passed as NULL - the MM returns
all attributes (of the single partition) in Out-P

>> The second one: is it possible to request more than one attribute?

I don't know (off hand) of any MM's which allow you to request a subset
of attributes in a single partition.  In the SRM for the SHOW directive,
it indicates that (optionally) the MM can have a request argument for
In-P.  This would be an Attribute List containing the list of attributes
that you want returned.

>> And the last: is it possible to request more than one attribute from
>> different partitions?

Sorry, but No.  The DECmcc Call is dispatched on three components:

  o Verb
  o Entity
  o (Attribute) Partition

You can only specify a single Attribute Partition.

>>  in PM you may do that: SHOW NODE4 <name> ADDRESS, TYPE

The PM expands your single command into multiple (in this case, two) requests
for the appropriate Partitions.

/keith

1550.4My 2 ...TENERE::LAVILLATFri Oct 04 1991 09:4848
>
>>> The second one: is it possible to request more than one attribute?
>
>I don't know (off hand) of any MM's which allow you to request a subset
>of attributes in a single partition.  In the SRM for the SHOW directive,
>it indicates that (optionally) the MM can have a request argument for
>In-P.  This would be an Attribute List containing the list of attributes
>that you want returned.
>

It is a bit unclear to me here, since attribute list is a list of attribute
*values* and not a list of attribute id_code (what is needed here). I think SRM
defines the Attribute_Id_list which should be used, but all the SHOW directives
I know use Attrib_list (as you say) as request argument data type.

>>> And the last: is it possible to request more than one attribute from
>>> different partitions?
>
>Sorry, but No.  The DECmcc Call is dispatched on three components:
>
>  o Verb
>  o Entity
>  o (Attribute) Partition
>
>You can only specify a single Attribute Partition.
>
>>>  in PM you may do that: SHOW NODE4 <name> ADDRESS, TYPE
>
>The PM expands your single command into multiple (in this case, two) requests
>for the appropriate Partitions.
>

We have a trick for that !!! We (PNMP) have defined a directive SUMMARIZE whith
DIRECTIVE_TYPE=ACTION that send back some "critical" or "interesting" attributes
across multiple partition in a single response.

It does not violate the MCC architecture since we use :

Verb = Summarize
Entity = ours
Partition = Null


So if this can give you some ideas...

Regards.

Pierre.
1550.5SWORD1::ESEugene ShvartsmanFri Oct 04 1991 14:0845
Thank you for your replies.

>I don't know (off hand) of any MM's which allow you to request a subset
>of attributes in a single partition.

Neither do I, but it have been mostly theoretical question: if such beast exist
or will be writen, how the IN_P should be constructed on the call to it from
FM.

As Pierre pointed out 

>It is a bit unclear to me here, since attribute list is a list of attribute
>*values* and not a list of attribute id_code (what is needed here). I think SRM
>defines the Attribute_Id_list which should be used, but all the SHOW directives
>I know use Attrib_list (as you say) as request argument data type.

If it would be the case I wouldn't have my first 2 questions.

As to the third one

>Sorry, but No.  The DECmcc Call is dispatched on three components:
>
>  o Verb
>  o Entity
>  o (Attribute) Partition
>
>You can only specify a single Attribute Partition.
>
>>  in PM you may do that: SHOW NODE4 <name> ADDRESS, TYPE
>
>The PM expands your single command into multiple (in this case, two) requests
>for the appropriate Partitions.

Sure, I know all that, but in SRM the definition of the show just talk about
attribute list and nowhere there that all attribute should belong to the single
partition.

So the question basically is: what will happen if I construct the IN_P in FM
which will be Attribute_Id_list or Attribute_list with attributes from the
different partitions and call AM with such IN_P? What should be set as attribute
parameter on such call?

Thank you
Gene

1550.6refere to event id list for exampleTOOK::CALLANDERMCC = My Constant CompanionThu Oct 17 1991 19:208
we will (as the SRM syas we should) allow requests for specific attributes
to go over the call interface (when is simply the question). It wil be
done using the attribute_id_list that is already defined. If you want to
start coding to , the getevent on specific events will show you a good
example of just how it will look (except that it uses the event_id_list
instead ofthe attribute one).

jill