Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing load sys config verify errors to a file

jlarger
Cirrus
Cirrus

If I pipe tmsh load sys config verify to file, and an error is generated, the system message for that error is not captured to the file.  

I am simply using:

tmsh load sys config verify >> /path/name.txt

This is piped to the file:

Validating system configuration...
/defaults/asm_base.conf 

etc etc 

But not this system message:

01070585:3: Virtual server (/Common/somevs) cannot reference rule (/Common/somerule) more than once (check persistence, auth and rules).
Unexpected Error: Validating configuration process failed.

How can I pipe the error to the file also?

1 ACCEPTED SOLUTION

iaine
MVP
MVP

Try using

tmsh load sys config verify &> /path/name.txt

to get both standard error and command output

View solution in original post

1 REPLY 1

iaine
MVP
MVP

Try using

tmsh load sys config verify &> /path/name.txt

to get both standard error and command output