[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

3629.0. "How to restore entity instances ?" by TAEC::WEBER () Wed Aug 26 1992 13:17


    Hello,
    
    I have 2 questions from my customer about local repository files.
    
    They have TeMIP installed at a site (DECmcc Ultrix/ssb),
    to test the connection to the real Equipements.
    They do not want to loose their configuration in case of a crash
    with subsequent corruptions. They want to be able to restore the network
    data from the configuration known, at least, the day before.
    They ask how they should handle the recovery.

    1) The V1.2.0 BMS release notes have a chapter about Repository files.

<<    3.9.2  Copying DECmcc Instance Repository Files

     The ULTRIX MCC dictionary files mcc_fdictionary.dat and
     mcc_fdictionary.dat.dir are based on the ndbm data base library
     which maintain data in a key/content pairs data base...............
>>
    This section only speaks only about the dictionnary files.
    
    What about the real Local MIR Files, and especially
	mcc_dns_att.dir
	mcc_dns_att.pag
	mcc_dns_ent.dir
	mcc_dns_ent.pag   ?

     Can I use the  mcc_ndbm utility for those and how ?
     


    2)	What if I store those files on a tape ?
	How could I do that, and how to re-use the files ?


    Thanks to answer
    Florence    

T.RTitleUserPersonal
Name
DateLines
3629.1mcc_ndbm works w/ MIR filesMOLAR::BLACKThu Aug 27 1992 00:333
    Although the mcc_ndbm utility is primarily for use with the dictionary,
    it will work on MIR files as well.  The syntax is the same as for
    dictionary files.
3629.2to tape, from tapeMOLAR::BLACKThu Aug 27 1992 00:375
    To store on tape:  unload the files using mcc_ndbm then copy the
    variable-length record files to tape.
    
    To restore from tape:  copy the variable-length record files to
    disk and then load them using mcc_ndbm.
3629.3Cannot use mcc_ndbm on mcc_dns_ent.pag file TAEC::WEBERFri Aug 28 1992 12:4225
    Sorry but I cannot make it work. May be I am wrong somewhere, but
    several trials gave the following (being or not being an SU)
    I also tried on a private MIR file and the same error appeared.
    

Script started on Fri Aug 28 14:33:36 1992
#cd /var/mcc
# mcc_ndbm -u mcc_dns_ent.pag mcc_dns_ent.cmp
Creating variable length record file, mcc_dns_ent.cmp
  based on ndbm file, mcc_dns_ent.pag
Unable to open mcc_dns_ent.pag
Encountered error while creating mcc_dns_ent.cmp
# 
script done on Fri Aug 28 14:33:55 1992


    The real question behind all this is to be able to backup the system
    regularly, and retreive the data if required. Because it is said that
    cp or tar commands cannot be used, I thought this one would work.
    Any idea ?

    
    Thanks to answer
    Florence
    
3629.4Command incorrectMOLAR::BLACKFri Aug 28 1992 13:3236
    Florence,
    
    The command you typed is incorrect--for ndbm files the extension is
    explicit.  Note that the mcc_ndbm command is documented in the Toolkit
    Reference.  Also, if you type mcc_ndbm you will get some help text.
    
    Regards,
    
    Darryl
    
    I just tried the following--it worked fine.
    
    hamma.mcc.dec.com> cd /var/mcc
    /var/mcc>mcc_ndbm -u mcc_dns_ent /usr/users/black/mcc_dns_ent.cmp
    Creating variable length record file, /usr/users/black/mcc_dns_ent.cmp
      based on ndbm file, mcc_dns_ent
    Finished creating /usr/users/black/mcc_dns_ent.cmp
    /var/mcc>
    
    /var/mcc>mcc_ndbm
    mcc_ndbm V1.2 MRU: 04/10/92
    
    mcc_ndbm is a simple utility that unloads (-u) and
    loads (-l) sparsely populated databases (ndbm files).
    
    mcc_ndbm requires three arguments:
      mcc_ndbm -[u,l] <source> <destination>
      mcc_ndbm -u ndbmfile outfile
      mcc_ndbm -l infile ndbmfile
    
    In and out files are variable length record files.
    Variable length record files may have any extension.
    ***By default .dir/.pag are appended to all ndbm
    file specifications.***
    If a .dat extension is present on a ndbm file,
    .dat/.dat.dir files are expected/created.