cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2049
Views
0
Helpful
2
Replies

CLI output redirection to http results in error 'Bad file number'

Magnus2
Level 1
Level 1

When using following command ...

 show run | redirect http://1.1.1.1/test.php

... it returns immediately to the promt. However the log shows following entry:

%SYS-3-URLWRITEFAIL: redirection url write failed 'Bad file number'

No ip packets arrive on the target server. When using

copy running-config http://1.1.1.1/test.php

everythings works as expected (interactively).

Tested with Cisco IOS XE 03.16.04b.S

2 Replies 2

Diana Karolina Rojas
Cisco Employee
Cisco Employee