[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

3158.0. "Unable to redirect alarm files" by STRAS4::EBLE () Wed Jun 10 1992 07:00

Hi,

	under DECmcc 1.2.7 Ultrix we define the environmental variable 
    MCC_ALARMS_LOCATION to /usr/mcc/mcc_mir. However we get in partition 
    /var/mcc the 4 alarms MIR files :

	mcc_alarms_attribute_mir.dir
	mcc_alarms_attribute_mir.pag
	mcc_alarms_instance_mir.dir
	mcc_alarms_instance_mir.pag

	The mcc_alarms_attribute_mir.pag file went up to 20 Mbytes. The /var 
    partitions is full. So, the  MCC_ALARMS_LOCATION variable is not used. 
    Why ? This variable is not referenced in exhibit 3-3 page 3-7 of 
    documentation "Planning and installation for ULTRIX". 

	Another question is : how could we rebuild this mcc_alarms_attribute 
    file to reduce its size ? Now it increases each time you add new alarms and
    it does not reduce when you delete them. The workaround we use is to
    delete those files and to rebuild our rules with FCL scripts ... 

Fran�ois.
    
T.RTitleUserPersonal
Name
DateLines
3158.1Probably not as bad as you thinkTOOK::MINTZErik Mintz, dtn 226-5033Wed Jun 10 1992 07:5113
I suspect that to move the alarms MIR, you must:

1) Shut down the alarms FM
2) Remove the old alarms MIR
3) Define MCC_ALARMS_LOCATION
4) RE-ENROLL the alarms FM

If this does not work, then we have a bug.

Also, when examining the size of the MIR files, do not rely on "ls -l"
These are sparse files, which are really not as large as their apparent
size.  You can use "du" to get an accurate indictation.

3158.2Bug ...STRASB::EBLEFran�ois EBLE. EIS Strasbourg France.Thu Jun 25 1992 07:1017
    
    Hi,
    
    	as you said we try to :

1) Shut down the alarms FM
2) Remove the old alarms MIR
3) Define MCC_ALARMS_LOCATION
4) RE-ENROLL the alarms FM by stopping the mcc_alarms_fm processus

This does not work so I think that we have a bug. I will QAR it.
    
    About the file size. What is the real file size, I mean the real space
    used ? Is it possible to reduce it with the mcc_ndbm utility ? 
    
    Fran�ois.
             
3158.3Use "du"TOOK::MINTZErik Mintz, dtn 226-5033Thu Jun 25 1992 09:095
>    About the file size. What is the real file size, I mean the real space
 
Use "du" to find out how much space is actually being used.


3158.4Bug is still there ...STRAS4::EBLEFran�ois EBLE. EIS Strasbourg France.Mon Jul 13 1992 06:198
Hi,

	QAR number is 448. I update it today. The bug is still there on the new 
kit V1.2.0. Did you reproduce it ? Will it be solved in the official version ?
In the documentation the MCC_ALARMS_LOCATION is still not referenced...
It should be a good idea to have a table in this installation documentation
listing the file names linked to each environment variables.

3158.5V1.2 is as frozen as it getsTOOK::MINTZErik Mintz, dtn 226-5033Mon Jul 13 1992 07:377
The V1.2 kit currently on the network IS the "official version".
It has been in SSB for over a week, and the documentation has
been frozen for longer than that.

I'll forward your note to the supervisor responsible for alarms.

-- Erik
3158.6Pb ULTRIX/Variables Length ??ZTOIS1::VISTARenato VISTA, SIS Strasbourg, FranceFri Jul 17 1992 11:2250
Hi,

I've tried to use MCC_ALARMS_LOCATION...

I've done an ENROLL ALARMS after having done firstly a
#setenv MCC_ALARMS_LOCATION /var/mcc_copy command... (of course, I've delete 
*alarms* file in default /var/mcc directory).

When I've created a rule via iconic map, the *alarms* files are re-created in 
default /var/mcc directory...

BUT, I've done another interesting tests :

1) First test :

#setenv MCC_ALARMS_LOCATION /var/mcc_copy	<-- new definition for var.
#ls $MCC_ALARMS_LOCATION			<-- directory via variable
Variable syntax					<-- syntax error !

Please note that MCC_ALARMS_LOCATION has 19 characters long...


2) Second test :

#setenv AAAAAAAAAAAAAAAAAAA /var/mcc_copy	<-- var. with 19 charac...
#ls $AAAAAAAAAAAAAAAAAAA			
Variable syntax

Same problem...

3) Third test :

#setenv BBBBBBBBBBBBBBBBBB /var/mcc_copy 	<-- var. with 18 charac...
#ls $BBBBBBBBBBBBBBBBBB
It works !!!

4) Fourth test :

#setenv MCC_ALARMS_LOCATIO /var/mcc_copy	<-- 18 char., name truncated
#ls $MCC_ALARMS_LOCATIO
It works too !!!

What do you think about that problem ? Is there any limit to environment 
variables length ? Is it possible to change that limit ?


Thanks for your help.
Renato

                         
3158.7a possible problem with csh in UltrixHERON::PATEL_ALoLo-AQIC-I82Q-B4IP, - LMFTue Jul 28 1992 04:4140
    can this problem have anything to do with the csh prob noted in the
    tools notes file...
    
From:	HERON::PATEL_A "LoLo-AQIC-I82Q-B4IP, - LMF  28-Jul-1992 0933" 28-JUL-1992 09:34:14.82
To:	patel_a
CC:	PATEL_A
Subj:	csh prob - help for puegot



         <<< NOTED::DISK$NOTES5:[NOTES$LIBRARY_5OF5]MCC-TOOLS.NOTE;1 >>>
                             -< MCC tools and MMs >-
================================================================================
Note 11.1                 ULTRIX problems and solutions                   1 of 2
RACER::dave "Attending The School of Comparative Ir" 21 lines  22-JUL-1992 09:56
                          -< Shell selection problem >-
--------------------------------------------------------------------------------
From Eric Mintz:

Glitch warning:

The C-shell documentation defines a shell variable as
"consisting of up to 20 letters and digits starting with a letter".
In fact, it appears that the limit is 18 characters. Variables with
longer names (eg $MCC_NOTIFICATION_FM_STACK, MCC_ALARMS_LOCATION) will
result in the error "Variable syntax" when used from csh, and
will appear undefined to a "getenv" call in code.

This restriction does not appear to be present in Bourne shell (sh, sh5)
or Korn Shell (ksh), which are supplied with ULTRIX.  Nor does it appear
in tcsh (a popular unsupported shell).

Unfortunately, this makes a number of our environmental variables
useless to a large number of users.  The only work-arround is for the
users to switch shells.




    
3158.8More informationTOOK::MINTZErik Mintz, dtn 226-5033Tue Jul 28 1992 10:0812
The information in the cross posted note is incomplete.

"setenv" from csh works fine.
"getenv" from code works regardless of which shell is running.
Other shell commands may show the symptom described in .6 and .7.

The end result is that while you may see some odd behavior with the
long variable names, they will still work correctly when used to control
DECmcc.

-- Erik