cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2034
Views
1
Helpful
3
Replies

Nano editor not working on asr9k

mialtime
Level 1
Level 1

Hello,

 

Im trying to edit a rpl using nano editor but its throwing an error

#edit route-policy test nano

Error  opening  terminal:xterm

is there a way to enable nano editor on the asr9k version 5.4.3?

 

thankx

3 Replies 3

smilstea
Cisco Employee
Cisco Employee

Can you try changing the terminal type from xterm to vt100?

The issue is with your terminal emulation program not the router, the terminal application doesn't know how to read nano but if you change to vt100 that should fix it. I'd also recommend upgrading your terminal software or trying a different application as the experience with this issue can widely vary based.

 

Sam

 

filopeter
Level 1
Level 1

Hello, I have similar issue on NCS 540 (N540X-16Z4G8Q2C-D, IOS XR 7.9.1, but it has been observed also on different versions).

RP/0/RP0/CPU0:NCS540#edit route-policy PASS nano 
Tue Aug 15 10:02:38.280 CEST
[OK]
posix_spawnp(): No such file or directory (2)
Continue editing? [no]:

TERM is set to VTY100. The same behaviour is also with emacs editor. Only vim works.

Any suggestions?  

Peter

for NCS540 that runs XR7 only VIM works. see this bug CSCwd26838

 

<B>Symptom:</B>
In XR7 the only available editor to be used with 'edit route-policy' or 'edit prefix-set' commands is VIM. Hence NANO and EMACS should be removed from CLI. Also default editor of NANO should be removed and replaced by VIM.

<B>Conditions:</B>
XR7 and NANO

<B>Workaround:</B>
1 - Change the default editor to VIM using the config 'rpl editor vim'
2 - use either 'inline add/remove' to edit RPL
3 - Use VIM editor with manual specification 'edit prefix-set <name> vim' and use ":set nocompatible" (without quotes) to allow usage of up/down arrow keys without issues.