Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winfiol Macros

Status
Not open for further replies.

GandhiII

IS-IT--Management
Feb 23, 2002
37
DE
Hi!
I need to do submit some print commands to several MDs every night and would like to have this done without supervision. I guess the best way would be using a macro, having Winfiol run on a Pc and using the scheduler for submitting the commands.
Anybody got any experience with tasks like mine? I´d be really grateful!
 
Hi sorry by my bad english first.
I have many Experience about it.
what´s your problem?
Do you know the scripts commands?

chao
Félix
 
Hi

I need to do the same task. Have you figured it out? if so please email me at terrygoliath@yahoo.com
 
Hi,

Using Extension Manager this is really easy to setup. You have both a scheduling and a command-file function, also you can send it to several nodes as you wish.

/mk
 
Hi

I am not really familiar with Extension Manager- is this an Ericsson application/windows?

Thanks

Terry
 
Hi, I have a script file which I used to start and stop a trace in the night. There is a problem with it however.

You must use a script file in the scheduler (macro's cannot be scheduled), in this script file I start a macro.
The problem is now that if the macro contains a pause (command Wait(x)) the script file never goes on with the next line after the macro is finished, it hangs at the line which started the macro. It think this is a fault in Winfiol. If you remove all the Wait(x) commands the script will go on. To do the remote login however I need to use the Wait(x) command to be able to send the SSSS;

Because of this problem there are a few restrictions on what you can do with the remote login.
1 Since the script file nevers ends I close and open the port of the channel at the end in order to stop the script file. Because I do this you cannot repeat this script in case it fails, you will have to schedule the file a few times.
2 I also cannot determine in the script if the login has failed or not, for this reason I also schedule the same script a few times hoping the login will work at least once.

For this script you have open a RS232 channel, mode=TTY.
Best is to have the channel already open when the schedule starts transmitting the file. An open channel has a different name then the closed channel, #1 is placed in front of the name when the channel is open (depends on how Winfiol is configured I think).


The script file contains these 2 lines:

@COMMENT START MACRO
@MACRO SBB_Stop_Trace.wfm


The compiled Macro file is called SBB_Stop_trace.wfm

The .mac file contains these lines (change the called number and passwords):

MACRO ("SBB Stop Trace","SBB_Stop_Trace.wfm");

! wait 30 seconds for connect attempt to finish
Wait(300);

! set TTY mode for controling modem
SetMode(0);
Wait(10);

! send modem commands
Send("AT^M");
Wait(10);
Send("AT^M");
Wait(20);
Send("ATQ0V1E1S0=0^M");
Wait(20);
! change the telnr
Send("ATDT0123456789^M");

! Wait 30 seconds for modem to answer
Wait(300);

! send S's with 0,1 second delay between characters
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S");
Wait(1);
Send("S;^M");
Wait(10);

! send the MD110 password, wait 5 seconds for login to finish
Send("Password;^M");
Wait(50);

! send commands, 1 second delay between commands
! here commands are send twice since the modem at this site sometimes has disturbance on the line
Send("sttse:tri=1;^M");
Wait(10);
Send("sttse:tri=1;^M");
Wait(10);


! release and logoff terminal
Release();
Wait(10);

! send modem command +++ to release modem
Send("+");
Send("+");
Send("+");
Wait(20);

! send +++ again since the first time +++ is not always accepted
Send("+");
Send("+");
Send("+");
Wait(20);

! send modem command to hangup modem
Send("ATH^M");
Wait(20);

! Close and open the port, this causes the transmit file to close afterwards
ClosePort();
OpenPort();

END;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top