I tried to follow that post previously but the problem is that I can't even get CatTools to initiate session from Cisco2851. Log shows "LoginCV Unknown connection method: Session". Kindly advise. Thanks!
My apologies. I didn't spot that you are using the Cisco.Router.noenable script on the Cisco2851 device. The Cisco.Router.noenable script does not support the connect via session method. Does the Cisco.Router.General script not work for the Cisco2851 device?
I'm now able to establish session to CUE through Cisco.Router.General, but it won't proceed further after. I believe the problem is that after the session is established, CatTools needs to send a couple line breaks to get to the prompt. Info Log shows "1-Error: Did not receive VTY entry prompt from Cisco Other CUE". How can I make CatTools to send these line breaks? Thanks!
This is how I access CUE from Cisco2851 CLI via SSH. Note step 4.
login as: user1
Using keyboard-interactive authentication.
Cisco2851#service-module service-engine0/1 session
Trying 10.189.1.2, 2258 ... Open
1. Input username then press Enter.
2. Input password then press Enter.
3. Input "service-module service-engine0/1 session" then press Enter.
4. Press Enter couple times until prompt appears.
5. Input enable then press Enter.
6. Press Enter (blank Enable password).
This is the debug output. Note how it kept waiting for the prompt.
<CONNECTVIA SESSION 7/31/2009 9:00:57 AM>
<CONNECT-FROM DEVICE FILENAME="2851_for_CUE_Session">
<ACTIVITY TYPE=Device.Backup.Running Config>
<ACTIVITY SCRIPT=C:\Program Files\CatTools3\Scripts\Client.Device.Backup.Running Config.txt>
<USERS NAME FOR DEVICE=CUE>
WFMDRetVal=1 Waiting for: "Username:"
WFMDRetVal=2 Waiting for: "Password:"
WFMDRetVal=3 Waiting for: "Password required, but none set"
WFMDRetVal=4 Waiting for: ">"
WFMDRetVal=5 Waiting for: "#"
WFMDBuffer="service-module service-engine0/1 sessiontrying 10.189.1.2, 2258 ... open"
It looks like the script should send a cr if no response is gained.
Could you also post the relevant section of the infolog for this please.
Here's the Info Log. Thanks!
CUE: Did not receive VTY entry prompt from Cisco Other CUE
Kiwi CatTools Service: Stopping Activity.
Kiwi CatTools Service: All threads have finished. Now processing results...
Kiwi CatTools Service: No devices have changed. Not sending report via e-mail.
Kiwi CatTools Service: Error notification e-mail has been sent to: email@example.com
Kiwi CatTools Service: Run Now activity has completed
CUE: Login Cisco Other CUE: CUE
CUE: ConnectViaDo - getting all fields CUE
CUE: Login to 2851 for CUE Session was successful
CUE: DeviceHostnameID: Cisco2851
CUE: ConnectViaDo - Connecting to CUE
CUE: Issuing commands to connect from 2851 for CUE to CUE via Session
CUE: Connected to xxx.xxx.xxx.xxx
CUE: Login CiscoRouter: 2851 for CUE Session
CUE: ConnectViaDo - getting all fields 2851 for CUE Session
CUE: ConnectViaDo - Connecting directly to: 2851 for CUE Session
Kiwi CatTools Service: Marshaller - Running script. Device: CUE
CUE: ConnectViaGet - Device: CUE says to connect via device: 2851 for CUE Session
Kiwi CatTools Service: Performing activity - Run Now
CUE: Loading activity: CUE Backup. Schd: 1
Thanks for the infolog. The script should send a cr if it doesn't get a prompt but because you have connected via a session the buffer contains the session connection response which is preventing this from happening.
I have attached an updated script to try and resolve this. Backup your existing script first then copy the one attached into your scripts folder and please try again.
Please let me know how you get on and if you still have problems please post the debug and infolog again (** out anything sensitive)
Cisco.Other.CUE.txt 98.4 KB