I am currently evaluating Cat Tools but am running into problems with a custom device definition. we are using Alcatel-Lucent GPON equipment that uses TL1, the returned system prompts often span multiple lines causing problems in defining the proper prompts.
When I define a Device SendCLI Commands the defined instruction itself is executed properly but the scripts is waiting for the wrong prompt resulting in no data being captured although it is available.
<NEWSESSION CatTools 3.6.0 10-3-2011 12:28:58>
<PROTOCOL=SSH2>
<DEVICE TYPE=Alcatel.Lucent.OLT.TL1>
<ACTIVITY TYPE=Device.CLI.Send commands>
<ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.CLI.Send commands.txt>
<USERS NAME FOR DEVICE=Albrandswaard OLT>
<C OK 12:29:00><R-12:29:04>[27][;r[00][00][27][?6l[00][27][?7l[00][27][20l[00][27][4h[00][00][00][00][27][?3l[00][00][00][00][00][00][00][00][00][00][00][17][13][10]< <W-12:29:04>[13]<R-12:29:04>[13][10]<R-12:29:05>[13][10]IP 0[13][10][13][10]Welcome to FTTU[13][10][13][10][13][10] /* A L C A T E L - L U C E N T <R-12:29:05> */[13][10][13][10][13][10] OONO-ALBW-0001 11-03-10 12:29:13[13][10]M 0 COMPLD[13][10] /* act-user */[13][10] /* Alcatel-Lucent FTTU : This is a private computer system. */[13][10] /* Unauthorized access or use may lead to<R-12:29:05> prosecution. */[13][10] /* last successful login: 10/03/11 12:25:29 */[13][10] /* 2 User(s) Logged On */[13][10];[13][10]<R-12:29:05>[13][10][13][10]/* HELP MENU[13][10][13][10] HELP or ? Type HELP or ? for this menu.[13][10] MENU Type MENU for menu mode.[13][10] <UP ARROW> or '^B' Recall previous commands.[13][10] <DOWN ARROW> or '^N' Recall successive <W-12:29:05>RTRV-ONT::ONT-1-1-1-2-63::<R-12:29:05>commands.[13][10] <LEFT ARROW> or '^D' Move cursor left one space.[13][10] <RIGHT ARROW> or '^F' Move cursor right one space.[13][10]<R-12:29:06> '^E' Move cursor to end of line.[13][10] '^A' Move cursor to start of line.[13][10] <CAN> or '^X' Reset command input processing.[13][10] <BS> or '^H' Delete previous input character.[13][10] <DEL> <R-12:29:06> Restart current line input. */[13][10][13][10]< [13][10]<R-12:29:06>[13][10]/* No command code entered. */[13][10]Enter Verb[13][10] (ACT, ALW, CANC, DGN, DL, DLT, ED, ENT, INH, INIT,[13][10] LOGOFF, OPR, RD, REPT, RLS, RST, RTRV, SEND, SET, STA,[13][10] STP, SW, UL) : R<R-12:29:06>TRV-ONT::ONT-1-1-1-2-63::<W-12:29:06>[13]<R-12:29:07>[13][10][13][10]RTRV-ONT::ONT-1-1-1-2-63:: [13][10]Execute ? (Y,N) [Y] : <W-12:29:07>y[13]<R-12:29:07>y[13][10]<R-12:29:07>[13][10]<R-12:29:07>IP 0[13][10][13][10]< <W-12:29:08> <R-12:29:08>[13][10][13][10] OONO-ALBW-0001 11-03-10 12:29:16[13][10]M 0 COMPLD[13][10] /* RTRV-<R-12:29:08>ONT::ONT-1-1-1-2-63:: */[13][10] "ONT-1-1-1-2-63::BTRYBKUP=NO,BERINT=8000,DESC1=\"50MBInet\",[13][10] DESC2=\"Slotvdijk3A\",PROVVERSION=\"*\",SERNUM=ALCLF9AD56B9,[13][10] SUBSLOCID=\"WILDCARD\",SWVERPLND=\"3FE52258AFYA12\",FECUP=ENABLE,[13][10] SCHEDPROFID=1,SCHEDPROFNM=\<R-12:29:08>"defSubSchedProf\",POWERSHEDPROFID=0,[13][10] POWERSHEDPROFNM=\"NULL\",ONTENABLE=AUTO,P2PENABLE=DISABLE,[13][10] RATELIMITOPT=ENABLE,OPTICSHIST=DISABLE,PLNDVAR=\"\",[13][10] DLSW=\"3FE52258AHCA27\",EQPTVERNUM=3FE51880AAAB01,SWVERACT=3FE52258AFYA12,[13][10] SWVERPSV=3FE522<R-12:29:08>58AHCA27,VENDORID=ALCL,EQUIPID= I241GB,NUMSLOTS=3,[13][10] NUMTCONT=31,NUMTRFSCH=31,NUMPQ=31:IS-NR"[13][10];[13][10][13][10]< <R-12:29:09>
================================================================================
WFMDRetVal=1 Waiting for: "IP 0"
WFMDRetVal=2 Waiting for: "/* The command code entered is not a valid command code. */"
WFMDRetVal=3 Waiting for: "/* The command code entered is not a valid command code. */"
WFMDRetVal=4 Waiting for: "Execute ? (Y,N) [Y] :"
Below is the prompt that the script is waiting for but that will never occur
WFMDRetVal=8 Waiting for: " <DOWN ARROW> or '^N' Recall successiv<"
Below is the returned data that is in essence entirely correct!
WFMDBuffer="[13][10][13][10] oono-albw-0001 11-03-10 12:29:16[13][10]m 0 compld[13][10] /* rtrv-ont::ont-1-1-1-2-63:: */[13][10] "ont-1-1-1-2-63::btrybkup=no,berint=8000,desc1=\"50mbinet\",[13][10] desc2=\"slotvdijk3a\",provversion=\"*\",sernum=alclf9ad56b9,[13][10] subslocid=\"wildcard\",swverplnd=\"3fe52258afya12\",fecup=enable,[13][10] schedprofid=1,schedprofnm=\"defsubschedprof\",powershedprofid=0,[13][10] powershedprofnm=\"null\",ontenable=auto,p2penable=disable,[13][10] ratelimitopt=enable,opticshist=disable,plndvar=\"\",[13][10] dlsw=\"3fe52258ahca27\",eqptvernum=3fe51880aaab01,swveract=3fe52258afya12,[13][10] swverpsv=3fe52258ahca27,vendorid=alcl,equipid= i241gb,numslots=3,[13][10] numtcont=31,numtrfsch=31,numpq=31:is-nr"[13][10];[13][10][13][10]< "
================================================================================
<W-12:29:39>logoff;[13]<D 12:29:39>
<SCRIPT VALUES>
<HOSTNAME=" <DOWN ARROW> or '^N' Recall successiv">
<PROMPT VTY=" <DOWN ARROW> or '^N' Recall successiv<">
<PROMPT ENABLE="">
<PROMPT CONFIG="">
The prompt that the script is waiting for is inadvertedly picked up during logging in to the system, reason is that the default system prompt is "<" that is also returned as part of the logon banner.
Below the propperly formatted systembanner after successful logon:
<
IP 0
Welcome to FTTU
/* A L C A T E L - L U C E N T */
OONO-ALBW-0001 11-03-10 12:58:44
M 0 COMPLD
/* act-user */
/* Alcatel-Lucent FTTU : This is a private computer system. */
/* Unauthorized access or use may lead to prosecution. */
/* last successful login: 10/03/11 12:58:08 */
/* 1 User(s) Logged On */
;
/* HELP MENU
HELP or ? Type HELP or ? for this menu.
MENU Type MENU for menu mode.
<UP ARROW> or '^B' Recall previous commands.
<DOWN ARROW> or '^N' Recall successive commands.
<LEFT ARROW> or '^D' Move cursor left one space.
<RIGHT ARROW> or '^F' Move cursor right one space.
'^E' Move cursor to end of line.
'^A' Move cursor to start of line.
<CAN> or '^X' Reset command input processing.
<BS> or '^H' Delete previous input character.
<DEL> Restart current line input. */
<
Is there a way arround this problem? Additionally, a lot of the returned prompts contain the current date/time making testing for specific prompts difficult if not impossible, is it possible to use wildchards in the prompt definitions or otherwise instruct Cat Tools to ignore specific parts of the returned prompts?
Regards,
Henk