T.R | Title | User | Personal Name | Date | Lines |
---|
3709.1 | can you enroll anything else? | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Wed Sep 09 1992 15:37 | 17 |
| 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.2 | set watch output | MICROW::LANG | | Wed Sep 09 1992 17:41 | 32 |
|
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.3 | The status code indicates that SQL$MSG.EXE was found | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Fri Sep 11 1992 10:35 | 15 |
| 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.4 | The file protections are OK for sql$msg.exe...however | MICROW::RAO | | Fri Sep 11 1992 11:19 | 14 |
| 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.5 | | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Fri Sep 11 1992 11:53 | 15 |
| >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.6 | more info | MICROW::LANG | | Fri Sep 11 1992 12:20 | 43 |
|
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.7 | wow | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Fri Sep 11 1992 14:08 | 20 |
| 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.8 | making some progress... | OLCROW::LANG | | Fri Sep 11 1992 17:55 | 57 |
|
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.9 | At last - getting somewhere ! | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Mon Sep 14 1992 09:53 | 21 |
| 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.10 | Finally...the AM can be enrolled | MICROW::RAO | | Tue Sep 15 1992 12:39 | 20 |
| 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.11 | about the psects: WRT,SHR | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Tue Sep 15 1992 16:05 | 34 |
|
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.12 | Thanks...I will use the _GLOBALDEF and _GLOBALREF macros. /Ravi | MICROW::RAO | | Wed Sep 16 1992 11:38 | 0
|