DMS500Tech
Technical User
Guys I am stumped.
I am gathering alarms from equipment. There is no way to get it to scroll continously. It displays about 9 entries then displays a "More..." above a right caret ">" . Because I never know how many pages there will be I can't hard code so many carriage returns without pages of garbage when there are few or no alarms.
I know this is a simple IF or While statement.
here is a sample of the data:
34 SPE MS1 HEM 12-1 HEM Facility Fail clear
Cleared: 20:14:40 07/04/2006
33 SPE MS1 CP 16 Minimum Upstream Protection Band Limit clear
Cleared: 20:14:40 07/04/2006
34 SPE MS1 HEM 12-1 HEM Facility Fail m,SA
Raised: 20:14:15 07/04/2006
33 SPE MS1 CP 16 Minimum Upstream Protection Band Limit m,nsa
Raised: 20:14:03 07/04/2006
32 SPE MS1 CP 16 Minimum Upstream Protection Band Limit clear
Cleared: 20:10:40 07/04/2006
32 SPE MS1 CP 16 Minimum Upstream Protection Band Limit m,nsa
Raised: 20:10:23 07/04/2006
More...
>
The help is needed in writing a loop that will look for the "More..." (line 23) and send a "^M" at the right caret ">" (line 24) below it and keep doing it until the right caret ">" appears without the "More..." above it or keep sending "^M" until "CVALRM CI:" (line 23) appears above the right caret ">".
CVALRM CI:
>
I have already looked thru Tek-Tips past and looked thru aspectscripting.com that Knob always suggest and did not come across anything that I thought would help. This seems like it would be a simple task and I have been using Aspect for over a decade I just can't figure this one out. In the past I have always been able to use a simple "waitfor" and got by just fine but since what is being searched for is not at the prompt figuring out how to use "termgets" from the one sample in Aspect is not enough.
(One more thing, this script goes into 74 different machines and the alarms very from none to 20 or more pages)
This script is almost a 1000 lines long and this is the only part that does not work.
Thanks for any suggestions.
I am gathering alarms from equipment. There is no way to get it to scroll continously. It displays about 9 entries then displays a "More..." above a right caret ">" . Because I never know how many pages there will be I can't hard code so many carriage returns without pages of garbage when there are few or no alarms.
I know this is a simple IF or While statement.
here is a sample of the data:
34 SPE MS1 HEM 12-1 HEM Facility Fail clear
Cleared: 20:14:40 07/04/2006
33 SPE MS1 CP 16 Minimum Upstream Protection Band Limit clear
Cleared: 20:14:40 07/04/2006
34 SPE MS1 HEM 12-1 HEM Facility Fail m,SA
Raised: 20:14:15 07/04/2006
33 SPE MS1 CP 16 Minimum Upstream Protection Band Limit m,nsa
Raised: 20:14:03 07/04/2006
32 SPE MS1 CP 16 Minimum Upstream Protection Band Limit clear
Cleared: 20:10:40 07/04/2006
32 SPE MS1 CP 16 Minimum Upstream Protection Band Limit m,nsa
Raised: 20:10:23 07/04/2006
More...
>
The help is needed in writing a loop that will look for the "More..." (line 23) and send a "^M" at the right caret ">" (line 24) below it and keep doing it until the right caret ">" appears without the "More..." above it or keep sending "^M" until "CVALRM CI:" (line 23) appears above the right caret ">".
CVALRM CI:
>
I have already looked thru Tek-Tips past and looked thru aspectscripting.com that Knob always suggest and did not come across anything that I thought would help. This seems like it would be a simple task and I have been using Aspect for over a decade I just can't figure this one out. In the past I have always been able to use a simple "waitfor" and got by just fine but since what is being searched for is not at the prompt figuring out how to use "termgets" from the one sample in Aspect is not enough.
(One more thing, this script goes into 74 different machines and the alarms very from none to 20 or more pages)
This script is almost a 1000 lines long and this is the only part that does not work.
Thanks for any suggestions.