[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

3709.0. "enrolling on VMS" by MICROW::LANG () Wed Sep 09 1992 15:42

    
    	I'm trying to enroll an AM on VMS and I must be doing
    	something fairly basic wrong, because the error is
    	file not found even though it is there.
    
    	The init procedures match the name (mcc_tps_am_init, etc)
     	I setup an logical for the MM, and the exe exists as follows.
    
    
    $ show log mcc_tps_am
       "MCC_TPS_AM" = "BUILD1$:[REL.WRK]MCC_TPS_AM.EXE" (LNM$SYSTEM_TABLE)
    $ dir mcc_tps_am/prot
    
    Directory BUILD1$:[REL.WRK]
    
    MCC_TPS_AM.EXE;1     (RWED,RWED,RWED,RE)
    
    Total of 1 file.
    $ manage/enterprise
    DECmcc (V1.2.0)
    
    MCC> enroll mcc_tps_am
    %RMS-E-FNF, file not found
    MCC> exit
T.RTitleUserPersonal
Name
DateLines
3709.1can you enroll anything else?MOLAR::ROBERTSKeith Roberts - Network Management ApplicationsWed Sep 09 1992 18:3717
re .0

  Bonnie .. can you enroll anything else?  Like Alarms, Bridge, ...

  You could also try (and its kinda ugly) from DCL before running MCC:

	set watch/class=all file

  You'll get a lot of output - all the file access (open, read, write ...)
  You should see the file which is trying to get opened, and the error *code*
  returned (not the error text) - pretty low level but it might help.

  To turn this off, after running MCC type:

	set watch/class=none file

  /keith
3709.2set watch outputMICROW::LANGWed Sep 09 1992 20:4132
    
    	Hi Keith,
    
    	Yes, I can enroll the mcc_sample_am.
    
    	I set that on, and got the following...is it SQL?
    	Is that part of the standard work performed during enrollment?
    
    	(This is just the last part of the output)
    
    
    %XQP-I-FUNCTION, Read only directory access (3430,225,0)
    %XQP-I-FUNCTION, Directory scan for: SQL$MSG.EXE;0, Status: 00000001
    %XQP-I-FUNCTION, Read attributes: Access mode SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: Access mode SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: Journal flags SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: RU active SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: Statistics block SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: Find ACE by type SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: Record attributes SQL$MSG.EXE;7
    (4864,53754,0)
    %XQP-I-FUNCTION, Read attributes: User file characteristics
    SQL$MSG.EXE;7 (4864,
    53754,0)
    %XQP-I-FUNCTION, Access SQL$MSG.EXE;7 (4864,53754,0) Status: 00000001
    %RMS-E-FNF, file not found
3709.3The status code indicates that SQL$MSG.EXE was foundMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Sep 11 1992 13:3515
  Bonnie,

>>    %XQP-I-FUNCTION, Access SQL$MSG.EXE;7 (4864,53754,0) Status: 00000001
>>    %RMS-E-FNF, file not found

  The status code (00000001) indicates that accessing SQL$MSG.EXE was
  successful.  Did the RMS-E-FNF come out directly after this in the
  output ?

  Does sys$message:sql$msg.exe exist? and properly unprotected?

  I'm a little surprised that the SQL file is even getting accessed.
  I didn't think MCC used it.

  /keith
3709.4The file protections are OK for sql$msg.exe...howeverMICROW::RAOFri Sep 11 1992 14:1914
Hi Keith,

I work with Bonnie. Here's what I found...The messages appear as shown -

%XQP-I-FUNCTION, Access SQL$MSG.EXE;7 (4864,53754,0) Status: 00000001
%RMS-E-FNF, file not found

When I tried to enroll the MCC_SAMPLE_FM (available in the directory
MCC_EXAMPLES), I get the same error -

%RMS-E-FNF, file not found


/Ravi
3709.5MOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Sep 11 1992 14:5315
>When I tried to enroll the MCC_SAMPLE_FM (available in the directory
>MCC_EXAMPLES), I get the same error -
>
>%RMS-E-FNF, file not found

  There is not MCC_SAMPLE_FM .. its either 

	o MCC_SAMPLE_AM, or
	o MCC_EXAMPLE_FM

  Ah .. is it possible that your MM is getting enrolled and your MM is
  returning this status code as a result of your INIT, LOG, or PROBE routine?

  /keith
	
3709.6more infoMICROW::LANGFri Sep 11 1992 15:2043
    
    
    	Hi Keith,
    
    	>Ah .. is it possible that your MM is getting enrolled and your MM is
        >returning this status code as a result of your INIT, LOG, or PROBE
        >routine?
    
    	I don't think so, we're not doing any type of file open, and
    	the same error occurs when you try to enroll something that
    	isn't there (doesn't exist)
    
    	Like:
    
    	MCC> enroll mclkkjlkj
    %RMS-E-FNF, file not found
    
    	Ravi tried enrolling the mcc_example_fm, but was in
    	SYS$COMMON:[SYSHLP.EXAMPLES.MCC], it was not found. Declaring
    	the logical solves that problem, but declaring the logical for
    	our AM doesn't give us the enrollment, as follows:
    
    $ define mcc_example_fm 
    			SYS$COMMON:[SYSHLP.EXAMPLES.MCC]MCC_EXAMPLE_FM.EXE;2
    $ manage/enterprise
    DECmcc (V1.2.0)
    
    MCC> enroll mcc_example_fm
    %MCC-I-ENRDUPLENTRY, enrollment successful; duplicate entries found and
    replaced
    MCC> exit
    Directory SYS$COMMON:[SYSLIB]
    
    MCC_TPS_AM.EXE;1
    
    Total of 1 file.
    $ define mcc_tps_am SYS$COMMON:[SYSLIB]MCC_TPS_AM.EXE;1
    $ manage/enterprise
    DECmcc (V1.2.0)
    
    MCC> enroll mcc_tps_am
    %RMS-E-FNF, file not found
    
3709.7wowMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Sep 11 1992 17:0820
  Bonnie ..

  This is sure one-for-the-books!

  I can't imagine why the MM isn't "found".  

  Oh wait a minute here ... I got an idea.

  I bet your MM is linked with a shared library or something which
  isn't found.  Try this:

	run mcc_tps_am

  If the image-activator has a probleming loading the image .. including
  linking all the shared images together .. you'll get the FNF error **and**
  the file which isn't found.

  Let me know !

  /keith 8)
3709.8making some progress...OLCROW::LANGFri Sep 11 1992 20:5557
    
    	Thanks Keith,
    
    	That was a great idea. We got somewhere... The following error
    	occurred...
    
    	$ run [lang]mcc_tps_am
    %DCL-W-ACTIMAGE, error activating image DECC$SHR
    -CLI-E-IMAGEFNF, image file not found
    $200$DUS0:[SYS6.SYSCOMMON.][SYSLIB]DECC$SHR.EXE;
    
        I found then that the following logicals needed to be defined:
    
      $ define/job cma$tis_shr dectpv1:[xpgirtl]cma$tis_shr
      $ define/job decc$shr dectpv1:[xpgirtl]decc$shr
      $ define/job vaxcrtl dectpv1:[xpgirtl]vaxcrtl
      $ define/job vaxcrtlg dectpv1:[xpgirtl]vaxcrtlg
    
      AFter enrolling this time, I got the following error:
    
    	MCC> enroll mcc_tps_am
    %MCC-E-ENRFILREADERR, enrollment failed: management module file read
    error
    
    (But when I run I get an access violation)
    
    	I checked prot on the file, its ok:
    
    $ sh log mcc_tps_am
       "MCC_TPS_AM" = "USER3$:[LANG]MCC_TPS_AM.EXE" (LNM$PROCESS_TABLE)
    $ dir/prot mcc_tps_am
    
    Directory USER3$:[LANG]
    
    MCC_TPS_AM.EXE;1     (RWE,RWED,RWE,)
    
    Total of 1 file.
    $ set prot=w=(REWD) MCC_TPS_AM.EXE;1
    $ dir/prot mcc_tps_am
    
    Directory USER3$:[LANG]
    
    MCC_TPS_AM.EXE;1     (RWE,RWED,RWE,RWED)
    
    Total of 1 file.
    $ manage/enterprise
    DECmcc (V1.2.0)
    
    MCC> enroll mcc_tps_am
    %MCC-E-ENRFILREADERR, enrollment failed: management module file read
    error
    
    
    	thanks a lot for your help!!
    
    			Bonnie	
    	
3709.9At last - getting somewhere !MOLAR::ROBERTSKeith Roberts - Network Management ApplicationsMon Sep 14 1992 12:5321
  Bonnie,

  Glad to see progress!  8)

  I ran into this same problem (needing to run the MM to get the FNF resolved)
  before - just took a while to recall the details.

  This new error:

>>	%MCC-E-ENRFILREADERR,
>>	enrollment failed: management module file read error

  seems specific to DECmcc and the Information Manager/Dispatcher.  Someone
  from the kernel team should be able to easily identify this one.

>>  (But when I run I get an access violation)

  This might be causing the problem .. you could try building your MM
  with Debug .. then running it

/keith
3709.10Finally...the AM can be enrolledMICROW::RAOTue Sep 15 1992 15:3920
Hi,

Finally I was able to get the AM to enroll.

The MCC message
 >>	%MCC-E-ENRFILREADERR,
 >>	enrollment failed: management module file read error

told me that there was something wrong in reading the file.

The problem was that the build procedure was not bulding a sharable image.
On building the sharable image, I had to use the PSECT_ATTR = psect_name, NOSHR 
statements in the options file to get rid of the shrable writable psects in the
image.

Once this was done, the enrollment was successful.

Thanks for your prompt answers and help in tracking this problem.

/Ravi
3709.11about the psects: WRT,SHRMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsTue Sep 15 1992 19:0534
  Ravi,

  Were these Psects set to WRT & SHR due to global data?

  You might want to use the Design Framework macros:

	_GLOBALDEF  and  _GLOBALREF

  These macros do the "right thing" on VMS and ULTRIX .. that is:

  (from sys$library:mcc_desframe.h)

/*  -----------------------------------------------------------------
 *   Macro:  _GLOBALDEF
 *   Macro:  _GLOBALREF
 *    Used to declare global / extern variables
 *
 *    For VMS, the globaldef & globalref are used because they
 *    produce a more efficient PSECT -- also, this macro ensures
 *    that the global data is 'noshare', which is manditory if you
 *    are building a shared image library (like a management module)
 */

#ifdef unix
#define _GLOBALREF extern
#define _GLOBALDEF
#else
#define _GLOBALDEF noshare globaldef
#define _GLOBALREF globalref
#endif


  /keith
3709.12Thanks...I will use the _GLOBALDEF and _GLOBALREF macros. /RaviMICROW::RAOWed Sep 16 1992 14:380