The following is out of my head and untested so may need some tweaking DO var=trim(view(row:=0, column:=column of NMI mnemonic, length:=10)) IF var = mnemonic of interface to check THEN var2=trim(view(row:=0, column:=column of NMI date/time, length:=15)) other processing ENDIF down arrow stable(0.5) LOOP UNTIL var = mnemonic of interface to check
Bill Palmer Financial Coordinator, Information Sys Mid-Columbia Medical Center The Dalles, OR 97058 541-296-7417 >>> [EMAIL PROTECTED] 01/07/05 08:10AM >>> Thank you John. That is a better way of keying down 9 times. Much appreciated. A method we used to use in the old days (Microscript) was to search the second column in (6 chars.) for a specific value "PWR-IN". We would then gather info next to the interface. The problem with me "hard-coding" the 9 down arrows to get to PWR-IN is that when we add another interface I'll probably forget to update the script. The search method would be dynamic. Any ideas on that method? Thanks again, Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Friday, January 07, 2005 10:04 AM To: [email protected] Subject: Re: [Talk] Search for specific text in list of interfaces intCounter = 0 do while intCounter < 9 key "{DOWN}" intCounter = intCounter+1 loop strVariable=View(Row:=row, Col:=81, Length:=11) ' although I would prefer strVariable=trim(View(Row:=row, Col:=81, Length:=11)) John John Curtiss Hutchinson Area Health Care 1095 Highway 15 South Hutchinson MN 55350 320-234-4967 [EMAIL PROTECTED] "White, Scott A" <[EMAIL PROTECTED] To: [email protected] ORG> cc: Sent by: Subject: [Talk] Search for specific text in list of interfaces [EMAIL PROTECTED] STATION.COM 01/07/2005 08:14 AM Please respond to Talk Good morning all, Has anyone already dabbled with a script that will search your list of NMI (interfaces) in MAGIC. Upon locating a specific interface (like PWR-ADT) perform a View(Row:=11, Col:=81, Length:=11) like command to evaluate if the interface is behind? I can think of a very inefficient way of having my script perform a down arrow about 9 times, then view the contents at whatever row it ends up at. Any ideas? Thank you in advance for any tips. Scott CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify Saratoga Hospital immediately by e-mail at [EMAIL PROTECTED] and destroy all copies of this communication and any attachments. *************************************************************************************** CONFIDENTIALITY NOTICE: This e-mail communication and any attachmentsmay contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify Saratoga Hospital immediately by e-mail at [EMAIL PROTECTED] and destroy all copies of this communication and any attachments.
