[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

4600.0. "Passing parameters to a program or procedure" by CUJO::HILL (Dan Hill-Net.Mgt.-Customer Resident) Thu Feb 25 1993 01:16

    I have not looked into this much, so please excuse my ignorance, but is
    it possible to pass the parameters written to the MCC_ALARM_xxxxxx.DAT
    file by the ALARMS_FM  directly to a command procedure or program
    without first writing the .DAT file?
    
    -DaN
T.RTitleUserPersonal
Name
DateLines
4600.1the Alarms .DAT files is a superset of arguments p1 - p7MOLAR::ROBERTSKeith Roberts - Network Management ApplicationsThu Feb 25 1993 10:4715
  DaN,

  If memory serves me correctly, no promises 8), the Alarms Data file
  is named by Argument P8 .. and contains the values of arguments 
  P1 to p7 plus other information; like Event Arguments.  If what you
  need is in p1 - p7, then have your script or .EXE work them.

  If you what you need is in the data file (p8), the script or .EXE must
  open and read the file.

  The Data File is written to disk before your Script is executed.

  Check with the Alarms Use Manual for the exact definition of the arguments.

  /keith
4600.2What's the mechanism that produces the p8-datafile?CUJO::HILLDan Hill-Net.Mgt.-Customer ResidentFri Feb 26 1993 01:159
    Keith,
    
    What I really mean to ask:
    
    How does the ALARMS FM write the data to the log file?  
    Is there a way to pass the data directly to a program or procedure
    without plopping it in a log file first?
    
    -Dan
4600.3Thats easy ... NoMOLAR::ROBERTSKeith Roberts - Network Management ApplicationsFri Feb 26 1993 12:4817
    >How does the ALARMS FM write the data to the log file?  
    >Is there a way to pass the data directly to a program or procedure
    >without plopping it in a log file first?
    
    Oh - thats easy - No.  Alarms creates the data file then starts the
    Alarms Security Procedures .. which then calls your procedure .. which
    can then execute your .EXE program.
    
    If the information you need is in p1-p7, then you don't have to read
    the data file .. But, the data file contains additional information;
    like event arguments.  It had to be this way because DCL only allows
    256 characters per "P" argument...and the event report information
    could get very large.  Also, There are only 8 "P" arguments, so using
    the data file makes the mechanims extensible.
    
    /keith