Terminal Adapter (Telnet) to Console Port Server?

Unanswered Question
Apr 3rd, 2012
User Badges:
  • Cisco Employee,

Has anyone been able to connect to a device on a console port server?

Problem: the telnet session needs a crlf to be sent upon initial connect in order to trigger the device to send its login prompt. CPO cannot see the prompt and therefore times-out waiting for it to arrive



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Michael Whiteley Tue, 04/03/2012 - 10:19
User Badges:
  • Cisco Employee,

solved - thanks to Shaun Roberts. Define \W as a user response in the target logon expects. This causes a crlf to be sent thus triggering a prompt string to be sent by the device

Sent from Cisco Technical Support iPad App

Christopher Roberts Tue, 04/03/2012 - 10:20
User Badges:
  • Cisco Employee,

I'll give you the solution I used to do this.

On your expect template for the Terminal connection use the regular expression "\{W}{0}" and when it detects that send a User Response of a carriage return to the terminal.

That worked when I used it

shiva.hari.om.15 Thu, 06/21/2012 - 04:22
User Badges:

For sending user response, what string do we need to add?

I am creating a new Expect property, putting regular expression which it will match for.

Then selecting operation type as úser response'.

After this - user response text box is enabled. What do we enter here for carriage return/Enter key?

I have tried \n, \r etc and it didnt help.

Christopher Roberts Thu, 06/21/2012 - 05:39
User Badges:
  • Cisco Employee,

You can just leave it blank. The blank line user response will be sufficient. If you need further help you can open a TAC case.

Michael Whiteley Tue, 06/26/2012 - 19:15
User Badges:
  • Cisco Employee,

We've found quite a few flavours of behaviour in ConsolePort servers. Some require crlf, others don't, while some require a password before it gives you access to the requested device. The CNOAS team has just produced a console port server workflow that presents a real time web page showing activity across ports, auto-recognition of devices etc., and allows user-written CPO provisioners and configurators to be launched to service the device. Please drop me an email for more info


Sent from Cisco Technical Support iPad App


This Discussion