[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

5457.0. "Map and Domain Association" by MSBCS::DOLAN () Tue Aug 10 1993 13:36

From:	MSBCS::DOLAN        "C. Lynn Dolan"  9-AUG-1993 19:06:37.40
To:	TOOK::LYONS
CC:	DOLAN
Subj:	associating maps and domain programmatically

hi - I have been trying to put together a director initialization
process  for our product.  I can programmatically generate map files and
programmatically create a command procedure to create domains and populate
with the correct entities, but I cannot figure out the magic incantation
that will allow the map file to be opened when the customer opens the
domain for the first time.

ex. a domain called dduts3_accessworks is created and populated with
12 other domains and 1 entity.  a map file is generated starting off
as follows;

 version 2
 domain .dduts3_accessworks
 last_x 0.000000 last_y 3.419959

 object_type 1
   icon_file mcc_domain_vaxcluster_icon.dat
......etc.


This mapfile is called MCC_TEST.MCC_MAP_DDUTS3_ACCESSWORKS.

When i open the domain dduts3_accessworks this map file is not read in by
the director.  how can i programmatically make the association between
the domain and its map?
				lynn
p.s. Note: because we have so many domains and maps that we are creating
automatically for the customer, it is unreasonable to ask them to go thru
the manual process that is used to insert a backdrop into a map file.
T.RTitleUserPersonal
Name
DateLines
5457.1About DOMAIN, MAP and MCC_UID (DNS)ZTOIS1::VISTARenato VISTA, MCS/SPS France/StrasbourgTue Aug 10 1993 13:4729
    
    Lynn,
    
    1)
    Have you tried to create a MAP file named...
    
    Let assume your domain is .domain.test
    
    map_<test>.mcc_map
    
    And then, the first time the domain .domain.test is read during an IMPM
    session, the file mcc_test.mcc_map (because no
    mcc_<MCC_DOMAIN_UID>.mcc_<DOMAIN_NAME> is found) is open ; 
    To create the mcc_<MCC_DOMAIN_UID>.mcc_<DOMAIN_NAME>, a "Save Map"
    menu option must be done.
    
    By the way, if you want to get the MCC_UID of the DOMAIN name instance,
    you can find it as an attribute of .domain.<DOMAIN_NAME> DNS object
    where DECmcc adds an MCC_UID attribute ; by doing some
    concatenation/reverting operations, you have the MCC_UID.
    
    Without DNS Full Product (ie using LOCAL Name Space), I don't know how
    to get the "DNS" MCC_UID.
    
    I hope this will help you
    
    2) 
    
    
5457.2using local namespaceMSBCS::DOLANTue Aug 10 1993 15:1312
Hi - thanks for the information.  Unfortunately I am using the local namespace.
when i manually save map files, I get names looking like the following;

MCC_7511000400AA000001CC94F693A2FDE0.MCC_MAP_DDUTS3_ACCESSWORKS;2

Is this being formed using the mcc_uid?  I could not find that as an
attribute of domain or mcc.

Unfortunately, the idea of naming the file without domain information
e.g. mcc_test.mcc_map did not work either but THANKS for the suggestions!

			lynn
5457.3More details about MCC_UID usage...ZTOIS1::VISTARenato VISTA, MCS/SPS France/StrasbourgWed Aug 11 1993 04:4048
    
    Lynn,
    
    In your case, for file
    
    MCC_7511000400AA000001CC94F693A2FDE0.MCC_MAP_DDUTS3_ACCESSWORKS;2
    
    the MCC_UID is 7511000400AA000001CC94F693A2FDE0 BUT to be read from
    right to left (to retrieve the MCC_UID attribute from DNS Domain
    Object).
    
    By the way, 7511000400AA, read as AA0004001175, is the DECnet IV physical 
    address of your DECmcc platform.
    
    Please also note that, when using domains named...
    
    .domain.test
    
    and 
    
    .test
    
    they are different DNS objects, so they have distinct MCC UID, that's
    why you may have 2 different map files, ie...
    
       		MCC_<MCC_UID_REVERSED_FOR_.domain.test>.MCC_MAP_TEST
    
    and  	MCC_<MCC_UID_REVERSED_FOR.test>.MCC_MAP_TEST
    
    Note the same postfix of those files... Consequently, without using
    MCC_UID within syntax files, you get...
    
    for .domain.test domain,	MCC_TEST.MCC_MAP file
    
    and for .test domain,	MCC_TEST.MCC_MAP file !!!!
    
    This kind of file naming confusion may occur when using LOCAL Name
    Space whose access is done WITHOUT checking on ONLY VIRTUAL
    DNS-LIKE directories...
    
    SO, be careful when reloading DECmcc Database (meaning new MCC_UID for
    all objects, even domains !!) and using old map files.
    
    Renato
    
    PS : The problem written above occurred on Customer Site...
    
    
5457.4There is a lookup orderTOOK::R_SPENCENets don&#039;t fail me now...Thu Aug 12 1993 17:3611
    Also, keep in mind that when mcc goes to open a domain, it
    - looks for a mapfile with the MCC_uidbasednumber.MCC_MAP_domainname
    - if not found
      looks for a file with MCC_domainname.MCC_MAP
    - if not found, autoplaces the default icons for the members in a blank
      map
    
    So, if you EVER saved the domain you have a UID based file and it will
    never read the domain name based file.
    
    s/rob