[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
4697.0. "RECORDING on SCRIPT-data ?" by STKHLM::BERGGREN (Nils Berggren EIS/Project dpmt, Sweden DTN 876-8287) Tue Mar 16 1993 07:53
Hi,
I'm experiencing some problem on recording data from a SCRIPT COMMAND entity.
Testing the script from IMPM or FCL (except what I mention in 4530.4)
works OK.
If I start recording the STATUS-partition with poll-interval = 2 minutes
and wait a couple of minutes and do a SHOW STATUS on historical data, I get
some funny output....
The script I use is a dummy which writes out "UP" or "DOWN" and the time.
To summarize the attached LOG:
MCC> show script NMS command random all status, in domain tvt-sverige
Script MALEN_NS:.NMS COMMAND MCC_RANDOM
AT 16-MAR-1993 13:09:47 Status
Examination of attributes show:
Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
arg1 = "UP"
arg2 = "1993-03-16 13:09:46.33"
Start recording the script, and after a while I do
MCC> show script NMS command random all status, for start -0:6:0, -
in domain tvt-sverige
Script MALEN_NS:.NMS COMMAND random
AT 16-MAR-1993 13:14:13 Status
Examination of attributes show:
Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
arg1 = "exit"
Script MALEN_NS:.NMS COMMAND random
AT 16-MAR-1993 13:16:01 Status
Examination of attributes show:
Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
arg1 = "define/nolog"
arg2 = "sys$error"
arg3 = "SYS$SCRATCH:mcc_script_am_73228775952
4298.error"
Am I doing something wrong (which is not to unusual...) or what?
regards,
Nils
Here's a log to show what I am doing.....
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
show script NMS, in domain tvt-sverige
!Using default ALL IDENTIFIERS
!
!Script MALEN_NS:.NMS
!AT 16-MAR-1993 13:08:13 Identifiers
!
!Examination of attributes shows
! Name = MALEN_NS:.NMS
!
creat script NMS command random command=@mcc_scripts:RANDOM_UP_OR_DOWN, -
in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:09:07
!
!Script created successfully.
!
show script NMS command random all status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND MCC_RANDOM
!AT 16-MAR-1993 13:09:47 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "UP"
! arg2 = "1993-03-16 13:09:46.33"
!
show script NMS command random all status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND MCC_RANDOM
!AT 16-MAR-1993 13:09:53 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "DOWN"
! arg2 = "1993-03-16 13:09:53.08"
!
show script NMS command random all status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND MCC_RANDOM
!AT 16-MAR-1993 13:09:58 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "DOWN"
! arg2 = "1993-03-16 13:09:57.92"
!
record script NMS command random partition = status , poll period = 00:02:00, -
in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:11:36
!
!Recording of "Status" partition started
!
!
sho record script NMS command random partition = status , in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:12:33
!
!Recording parameters for the partition "Status" :
! Recording state = ACTIVE,
! State since = 16-MAR-1993 13:11:47.00,
! Polling period = 0 00:02:00.00,
! Begin time = 16-MAR-1993 13:11:36.25,
! End time = 25-MAY-2012 00:00:00.00,
! Keep age = 45 00:00:00.00,
! Request time = 16-MAR-1993 13:11:36.25,
! Requested by = "BERGGREN",
! Time of last successful poll = "16-MAR-1993 13:12:04.21",
! Number of successful polls = 11,
! Time of last failed poll = "NONE",
! Last poll failure reason = "N/A",
! Number of failed polls = 0,
! Last historical expiration time = "16-MAR-1993 13:12:04.21",
! Time of last expiration failure = "NONE",
! Last expiration failure reason = "N/A",
! Number of expiration failures = 0
!
!
!-----------------------------------------------------------------
! wait a couple of minutes to record some values....
!-----------------------------------------------------------------
!
!
!
show script NMS command random all status, for start -0:6:0, -
in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:14:13 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "exit"
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:16:01 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "define/nolog"
! arg2 = "sys$error"
! arg3 = "SYS$SCRATCH:mcc_script_am_73228775952
! 4298.error"
!
sho recording script NMS command random part=status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:22:34
!
!Recording parameters for the partition "Status" :
! Recording state = ACTIVE,
! State since = 16-MAR-1993 13:11:47.00,
! Polling period = 0 00:02:00.00,
! Begin time = 16-MAR-1993 13:11:36.25,
! End time = 25-MAY-2012 00:00:00.00,
! Keep age = 45 00:00:00.00,
! Request time = 16-MAR-1993 13:11:36.25,
! Requested by = "BERGGREN",
! Time of last successful poll = "16-MAR-1993 13:22:02.49",
! Number of successful polls = 66,
! Time of last failed poll = "NONE",
! Last poll failure reason = "N/A",
! Number of failed polls = 0,
! Last historical expiration time = "16-MAR-1993 13:22:02.49",
! Time of last expiration failure = "NONE",
! Last expiration failure reason = "N/A",
! Number of expiration failures = 0
!
susp recor script NMS command random part=status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:28:11
!
!Recording of "Status" partition is disabled
!
!
del recor script NMS command random part=status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND random
!AT 16-MAR-1993 13:28:19
!
!Recording of "Status" partition stopped
!
!
exit
!
T.R | Title | User | Personal Name | Date | Lines |
---|
4697.1 | Another Strange Script happening | MOLAR::ROBERTS | Keith Roberts - Network Management Applications | Wed Mar 17 1993 15:28 | 25 |
| Nils,
The output you are seeing:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "define/nolog"
! arg2 = "sys$error"
! arg3 = "SYS$SCRATCH:mcc_script_am_73228775952
! 4298.error"
looks like it is coming from the 'container' script that gets created
to execute your script. This was necessary because there is some
setup needed before your script can run; namely the sys$error logical
needs to get defined.
The output from your script is written to an .OUTPUT file ... the Script
AM reads this file.
Your output above comes from the .COMMAND file .. I can't think of how
the files could get messed up this way.
I imagine that you tried this a number of times and always got the same
results. I'll try recording script data too and see what happens.
/keith
|
4697.2 | | TOOK::SHMUYLOVICH | | Thu Mar 18 1993 11:52 | 16 |
|
I'm not familiar with Script but from the above examples it seems
to me that In Domain qualifier is required for the "Show script.." command.
If this is true the problem could be in the Historian FM.
When In domain qualifier is specified in the Record command the Historian
FM uses it to define the historical repositories to store recorded data but
it does NOT pass it to the Show command which polls data.
Could you, please, try from the FCL the "Show script.." command without
In Domain qualifier? If I'm right the result will be the same as from
Past Time Show and you should file a QAR against Historian.
Sam
|
4697.3 | in domain qualifier makes no difference | STKHLM::BERGGREN | Nils Berggren EIS/Project dpmt, Sweden DTN 876-8287 | Thu Mar 18 1993 16:28 | 28 |
| re .1
>>> Could you, please, try from the FCL the "Show script.." command without
>>> In Domain qualifier? If I'm right the result will be the same as from
>>> Past Time Show and you should file a QAR against Historian.
tried it. no differrence with or without the in domain qualifier.
sho script NMS command random all status
!
!Script MALEN_NS:.NMS COMMAND MCC_RANDOM
!AT 18-MAR-1993 22:22:37 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "UP"
!
sho script NMS command random all status, in domain tvt-sverige
!
!Script MALEN_NS:.NMS COMMAND MCC_RANDOM
!AT 18-MAR-1993 22:22:50 Status
!
!Examination of attributes show:
! Command Executed = "@mcc_scripts:RANDOM_UP_OR_DOWN"
! arg1 = "UP"
!
!
|