cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2006
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

Hello!

 

Maybe this post can help you, the user change the "show run" by " "show configuration" and this works for him, try this way and tell me the result. https://supportforums.cisco.com/t5/lan-switching-and-routing/sys-3-urlwritefail-error/td-p/2049987

---Do not forget to rate useful answers.---

 

Best Regards,

Unfortunately this does not help. I get the same error. "show run" is just a placeholder for a "show flow monitor ..." embedded in an eem script, but the error messages are the same.

Review Cisco Networking for a $25 gift card