[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

1654.0. "REGISTER doesn't work" by BALZAC::MARKOWSKI () Tue Oct 15 1991 11:48

	Hello,


	I have a problem with the REGISTER directive.
	I think I have a correct MSL file with the ERASE, REGISTER, DEREGISTER,
	SET and SHOW directives and a correct dispatch table with the 
	specification of the SHOW ALL IDENT entry point. I have no entry 
	point for the REGISTER operation.

	Here is what I get at the registration of any instance of the
	entity ARC :


MCC> register arc .arc_node.orlan


*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      29
PARTITION code: 10
AES dump of ENTITY IN:

depth=1 class code= 30 instance = �

ILV dump of IN_P: in_p is NULL
ILV dump of IN_Q: in_q is NULL
TIME SPEC is: 0, NOW
  
**********************************************
FCL PM Arguments on return from call_function:

CVR returned:
%MCC-S-COMMON_EXCEPTIO, success with common exception reply

ILV dump of OUT_P:

[  2 ] (
    [  16 ] (
        [  1 ]         03 26 80 49
        [  2 ]         01
        [  3 ] (
            [  0 ] (
                [  1 ]                 01
                [  2 ]                 1e
                [  3 ]                 0a
                [  4 ]                 05
                [  5 ]                 aa 00 04 00 26 bc 60 c3 c6 09 48 e6 91 00
 14 00 01 08 61 72
                63 5f 6e 6f 64 65 01 06 63 6f 75 6c 6f 6e 00 00
                )
            )
        [  4 ] (
            [  20 ] (
                [  21 ] (
                    [  10 ] (
                        [  1 ]                         05
                        [  2 ]                         aa 00 04 00 26 bc 60 c3 c
6 09 48 e6 91 00 14 00 01 08 61 72
                        63 5f 6e 6f 64 65 01 06 63 6f 75 6c 6f 6e 00 00
                        [  3 ]                         00
                        )
                    )
                )
            )
        )
    )
AES dump of ENTITY OUT:

depth=1 class code= 30 instance = �


arc PRSTRA_NS:.arc_node.orlan
AT 15-OCT-1991 15:08:41

The requested operation cannot be completed
            MCC Unhandled Service Reply = ARC Show Successful
                               Username = PRSTRA_NS:.arc_node.orlan
MCC> 
            

	Thanks,
    
	sylviane.
T.RTitleUserPersonal
Name
DateLines
1654.1something new but not betterBALZAC::MARKOWSKIWed Oct 16 1991 13:2058


	Hello,


	My REGISTER operation still doesn't work.

	I have investigated furthermore my problem and looked in the DNS 
	direction. I have created my specific directories :
		. a .arc_node directory,
		. a .arc_BackTranslation directory,
		. a arc_Registrar group,
	and now at registration of the entity instance, I have the
	following messages :


	MCC> register arc .arc_node.orlan
        %MCC-S-NORMAL, normal successful completion

        arc PRSTRA_NS:.arc_node.orlan
        AT 16-OCT-1991 16:43:08

        The requested operation cannot be completed

        %MCC-E-NOENTITY,  no corresponding entity instance exists
        MCC>


	Some more informations :

	The command : 
		MCC> show arc .arc_node.orlan all ident
	works fine.


	Here is a piece of the definition of the entity ARC :


	GLOBAL ENTITY arc = 30 :
		IDENTIFIER = (Nodename),
		SYMBOL = CLASS_ARC,


	     IDENTIFIER ATTRIBUTES
		ATTRIBUTE Nodename = 10 : FullName
                    DNS_IDENT = PRIMARY_NAME,
		    ACCESS = NONSETABLE,
		    DISPLAY = TRUE,
		    CATEGORIES = (CONFIGURATION),
		    SYMBOL = ATTR_Nodename
	        END ATTRIBUTE Nodename;
	     END ATTRIBUTES;


	Thanks in advance for any help,
	sylviane.
		
1654.2Have you included the Registration FM MS files?NANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamThu Oct 17 1991 11:10250
In your MSL, have you included the Registration FM MS files?

The Register command is intercepted by the Registration FM - But the
data it returns in Out-Entity & Out-P is looked up in the dictionary
under *YOUR* entity.  You have to put into your MS file, the replies
for the Register directive ... I will include the file here.

/keith

------------------------------------------------------------------------------

(************************************************************************
 *                                                                      *
 *                 MCC_REGISTER_DIRECTIVE.MS                            *
 *                                                                      *
 ************************************************************************
 * ******************************************************************** *
 * *                                                                  * *
 * *   ************************************************************   * *
 * *   *                                                          *   * *
 * *   *   Copyright (c) Digital Equipment Corporation, 1991      *   * *
 * *   *   All Rights Reserved.  Unpublished rights reserved      *   * *
 * *   *   under the copyright laws of the United States.         *   * *
 * *   *                                                          *   * *
 * *   *   The software contained on this media is proprietary    *   * *
 * *   *   to and embodies the confidential technology of         *   * *
 * *   *   Digital Equipment Corporation.  Possession, use,       *   * *
 * *   *   duplication or dissemination of the software and       *   * *
 * *   *   media is authorized only pursuant to a valid written   *   * *
 * *   *   license from Digital Equipment Corporation.            *   * *
 * *   *                                                          *   * *
 * *   *   RESTRICTED RIGHTS LEGEND   Use, duplication, or        *   * *
 * *   *   disclosure by the U.S. Government is subject to        *   * *
 * *   *   restrictions as set forth in Subparagraph (c)(1)(ii)   *   * *
 * *   *   of DFARS 252.227-7013, or in FAR 52.227-19, as         *   * *
 * *   *   applicable.                                            *   * *
 * *   *                                                          *   * *
 * *   ************************************************************   * *
 * *                                                                  * *
 * ******************************************************************** *
 ************************************************************************)


(************************************************************************
 *                                                                      *
 *  FACILITY:                                                           *
 *                                                                      *
 *    DECmcc - Management Control Center                                *
 *                                                                      *
 *    Registration FM directive:  Register                              *
 *                                                                      *
 *  ABSTRACT:                                                           *
 *                                                                      *
 *    This management specification defines the Management Interface    *
 *    for the Registration FM                                           *
 *                                                                      *
 *    The following directive is supported:                             *
 *                                                                      *
 *      Register <entity>                                               *
 *                                                                      *
 *        This directive will register the Entity and store the         *
 *        Orphaned Attributes (software emulated) in DNS.               *
 *                                                                      *
 *        Entities that do not have orphaned attributes may use this    *
 *        file as is.                                                   *
 *                                                                      *
 *        Entities which already have orphaned attributes must add a    *
 *        Request section defining arguments for each new orphaned      *
 *        attribute.                                                    *
 *                                                                      *
 *  USE:                                                                *
 *                                                                      *
 *    To add the this directive to your Management Specification,       *
 *    add the following command *after* defining your Entity:           *
 *                                                                      *
 *      INCLUDE MCC_REGISTER_DIRECTIVE.MS                               *
 *                                                                      *
 *  AUTHOR:                                                             *
 *                                                                      *
 *    DECmcc Registration FM Team                                       *
 *                                                                      *
 *  EDIT HISTORY:                                                       *
 *                                                                      *
 *    01-Oct-1991  v1.2-001  Created                                    *
 *                                                                      *
 ************************************************************************)


(************************************************************************
 *
 *  Define Directive:  REGISTER
 *
 *  Arguments:
 *
 *    o  none
 *
 *  Responses:
 *
 *    o  REGISTER_SUCCESS
 *    o  REGISTER_DUP
 *    o  PARTIAL_REGISTER
 *    o  ARG_PARTIAL
 *    o  PARTIAL_FULLNAME
 *    o  REGISTER_SUCCESS_CHANGED
 *    o  PARTIAL_REGISTER_CHANGED
 *    o  PARTIAL_FULLNAME_CHANGED
 *
 *  Exceptions:
 *
 *    o  REG_UNREC_ID
 *    o  REG_BAD_ID
 *    o  REG_BAD_DUP
 *    o  REG_ID_IN_USE
 *    o  REG_NS_NOACCESS
 *    o  REG_NS_PROT
 *    o  REG_NS_NODIR
 *    o  REQ_ARGUMENT_MISSING
 *    o  REQ_ARG_MISSING
 *    o  (any common exception)
 *)

	
  DIRECTIVE Register = 29 :
    DIRECTIVE-TYPE = ACTION,
    DISPLAY        = TRUE,
    SYMBOL         = REGISTRATION_REGISTER,
    CATEGORIES     = (CONFIGURATION),

    RESPONSE REGISTER_SUCCESS = 1 : 
      SYMBOL = REGISTER_SUCCESS,
      TEXT   = "Registration successful.",
    END RESPONSE REGISTER_SUCCESS;

    RESPONSE REGISTER_DUP = 2 : 
      SYMBOL = REGISTER_DUP,
      TEXT   = "The entity is already registered with MCC.",
    END RESPONSE REGISTER_DUP;
	
    RESPONSE PARTIAL_REGISTER = 3 : 
      SYMBOL = PARTIAL_REGISTER,
      TEXT   = "Partial registration success. Please retry later to complete 
the registration.",
      ARGUMENT Reason for Partial Registration = 1 : MccMessage
        DISPLAY = TRUE,
        SYMBOL	= ARG_REASON_PARTIAL
      END ARGUMENT Reason for Partial Registration;
    END RESPONSE PARTIAL_REGISTER;

    RESPONSE ARG_PARTIAL = 4 :
      SYMBOL = ARG_PARTIAL,
      TEXT   = "Partial registration success, required class specific 
arguments were not supplied.",
    END RESPONSE ARG_PARTIAL;

    RESPONSE PARTIAL_FULLNAME = 5 :
      SYMBOL = PARTIAL_FULLNAME,
      TEXT   = "Partial registration success. The registration name has 
been registered with MCC.",
    END RESPONSE PARTIAL_FULLNAME;
 
    RESPONSE REGISTER_SUCCESS_CHANGED = 6 : 
      SYMBOL = REGISTER_SUCCESS_CHANGED,
      TEXT   = "Registration successful. Previously partially registered 
arguments were changed.",
    END RESPONSE REGISTER_SUCCESS_CHANGED;

    RESPONSE PARTIAL_REGISTER_CHANGED = 7 :
      SYMBOL = PARTIAL_REGISTER_CHANGED,
      TEXT   = "Partial registration success. Previously partially 
registered arguments were changed. Please retry later to complete the 
registration.",
      ARGUMENT Reason for Partial Registration = 1 : MccMessage
        DISPLAY	= TRUE,
        SYMBOL  = ARG_REASON_PARTIAL
      END ARGUMENT Reason for Partial Registration;
    END RESPONSE PARTIAL_REGISTER_CHANGED;

    RESPONSE PARTIAL_FULLNAME_CHANGED = 8 :
      SYMBOL = PARTIAL_FULLNAME_CHANGED,
      TEXT   = "Partial registration success. Previously partially 
registered arguments were changed. The registration name has been 
registered with MCC.",
    END RESPONSE PARTIAL_FULLNAME_CHANGED;

    EXCEPTION REG_UNREC_ID = 1 :
      SYMBOL = REG_UNREC_ID,
      TEXT   = "Unrecognized registration name. The namespace name must 
be a fullname, include a leading ""."".",
    END EXCEPTION REG_UNREC_ID;

    EXCEPTION REG_BAD_ID = 2 :
      SYMBOL = REG_BAD_ID,
      TEXT   = "The registration name is already used by the class 
!<Registered Entity Class>.",
      ARGUMENT Registered Entity Class = 1 : Latin1String
        DISPLAY	= FALSE,
        SYMBOL  = ARG_REG_ENTITY_CLASS
      END ARGUMENT Registered Entity Class;
    END EXCEPTION REG_BAD_ID;

    EXCEPTION REG_BAD_DUP = 3 :
      SYMBOL = REG_BAD_DUP,
      TEXT   = "Inconsistent duplicate registration: entity already 
registered, but ID information is inconsistent with existing 
registration of this or another entity.",
    END EXCEPTION REG_BAD_DUP;

    EXCEPTION REG_ID_IN_USE = 4 :
      SYMBOL = REG_ID_IN_USE,
      TEXT   = "Duplicate registration identifier, identifier 
already in use by another entity.",
      ARGUMENT Identifier Already Used = 1 : Attrib_List
        DISPLAY = TRUE,
        SYMBOL  = ARG_DUP_IDENTIFIER
      END ARGUMENT Identifier Already Used;
    END EXCEPTION REG_ID_IN_USE;

    EXCEPTION REG_NS_NOACCESS = 5 :
      SYMBOL = REG_NS_NOACCESS,
      TEXT   = "Unable to register name, problem while accessing the 
namespace.",
    END EXCEPTION REG_NS_NOACCESS;

    EXCEPTION REG_NS_PROT = 6 :
      SYMBOL = REG_NS_PROT,
      TEXT   = "Unable to register name, protection violation in 
the namespace.",
    END EXCEPTION REG_NS_PROT;

    EXCEPTION REG_NS_NODIR = 7 :
      SYMBOL = REG_NS_NODIR,
      TEXT   = "Unable to register name, required namespace directory 
does not exist.",
    END EXCEPTION REG_NS_NODIR;

    EXCEPTION REQ_ARGUMENT_MISSING = 8 :
      SYMBOL = REQ_ARGUMENT_MISSING,
      TEXT   = "Required argument is not supplied.",
    END EXCEPTION REQ_ARGUMENT_MISSING;

    EXCEPTION REQ_ARG_MISSING = 9 :
      SYMBOL = REQ_ARG_MISSING,
      TEXT   = "Required argument !<Required Class Argument> is not supplied.",
      ARGUMENT Required Class Argument = 1 : Latin1String
        DISPLAY		= FALSE,
        SYMBOL		= ARG_REQ_CLASS_ARG
      END ARGUMENT Required Class Argument;
    END EXCEPTION REQ_ARG_MISSING;

  END DIRECTIVE Register;
1654.3It's a little bit better BUT ...BALZAC::MARKOWSKIThu Oct 17 1991 13:0929
	Hello Keith,


	Thanks for your answer and your full definition of the Register
	directive. I already had a Register definition in my MS file but 
    	not so complete.
	So I have modified my MS file with your Register definition
	and I still get the same message :

		%MCC-E-NOENTITY,  no corresponding entity instance exits

	BUT if I modify the status that is returned by the function
	ARC_SHOW_IDENT (the one that performs the SHOW ARC ALL IDENTIFIERS),
	I replace MCC_S_RESPONSE by MCC_S_NORMAL, I get a "Registration
	Successful" and my instance is registered in the DNS dictionary.

	BUT now if I do a SHOW ARC <instance> ALL IDENTIFIERS, nothing
	more is displayed...

	If I follow your explanations, I have to modify the definition of
	the RESPONSE REGISTER_SUCCESS to fit the type and format of datas
	returned by the ARC_SHOW_IDENT function, haven't I ?


	Thanks again for help.
	Best regards,

	sylviane.
1654.4will need an FCL PM dump of the call argumentsMOLAR::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Oct 18 1991 08:3830
    sylviane,
    
    It has just occured to me that I gave you the V1.2 Register Directive
    MS file... 8(
    
    Could you define the FCL PM logical such that the DECmcc Call Arguments
    are displayed - and post the results here?  Thanks
    
    	$ define mcc_fcl_pm_log 8
    
    Then run your tests.
    
    Also, do the command that the Registration FM does ..
    
    	$ show arc all identifiers
    
> BUT if I modify the status that is returned by the function
> ARC_SHOW_IDENT (the one that performs the SHOW ARC ALL IDENTIFIERS),
> I replace MCC_S_RESPONSE by MCC_S_NORMAL, I get a "Registration
> Successful" and my instance is registered in the DNS dictionary.
    
    Do you mean that you returned MCC_S_NORMAL as the CVR to the DECmcc
    Call Access (the call that the Registration FM made to your AM)?  This
    is not correct at all.  I don't think that MCC_S_NORMAL is even one of
    the valid CVR's to 'mcc_call_access' -- MCC_S_RESPONSE is the correct
    value - if the call succeeds properly
    
    /keith

    
1654.5check your backtranslation directory nameKAJUN::NELSONFri Oct 18 1991 09:4322
This is a shot in the dark, but...

You might want to check one thing.  In .1, you listed the entries you 
have in your namespace as:

	.arc_node
	.arc_BackTranslation
	.arc_Registrar

The format of the Backtranlation directory name is:

	.MCC_arc_BackTranslation

If your note was a typo, then that's not the problem.  

But if you don't have the correct name for the backtranslation
directory, the problem may be in the namespace.  The Registration FM
will return a MCC-E-NOENTITY error when you reference an object in the
namespace that is not there.  Check your namespace and make sure you
have the correct directory names. 

...kjn
1654.6My Registration works !BALZAC::MARKOWSKIMon Oct 21 1991 07:0916
    
    
    	Hello,
    
    	This morning I have modified the returned status of the SHOW ALL
    	IDENTIFIERS to MCC_S_RESPONSE and I have rebuild my DNS directories
    	and ... it works !
    
    	Thank's again for your help, it has been very appreciated.
    
    	Best regards,
    
    	sylviane.