Forum Discussion

Tom_K_185554's avatar
Tom_K_185554
Icon for Nimbostratus rankNimbostratus
May 07, 2018

would like to log tmsh output to /var/log/ltm

Hello - is there a way to log the output to /var/log/ltm of a tmsh command like tmsh show sys connection cs-server-addr 12.12.12.12 |grep -i 3128

 

instead of it just going to the screen ?

 

1 Reply

  • Login bash instead of tmsh and use following command

     

    tmsh show sys connection cs-server-addr 12.12.12.12 |grep -i 3128 >> /var/tmp/connections.log

     

    If you want to save it in /var/log/ltm file, I don’t know what are consequences of writing on the same file as another process!