Forum Discussion

Senthil_7991's avatar
Senthil_7991
Icon for Nimbostratus rankNimbostratus
Sep 05, 2012

How to check Error Logs through CLI

 

Hi,

 

We are using F5 Load balancer i want to see the error logs through CLI but our device showing "tmos" mode i want to check through normal mode.

 

Otherwise tell me how to check error logs from "tmos" mode.

 

)

 

)

 

)

 

)

 

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    Senthil

     

     

    In TMOS shell then you can use the "show log" command to see the viewable logs and, for example, to see the LTM logs then use:

     

     

    show log ltm

     

     

    Or, you can quit the TMOS shell my typing quit and then viewing the /var/log/ltm, for example, using Cat, More or Less

     

     

    Hope this helps,

     

    N
  • Hi,

     

    Thanks for reply....

     

    Show log is not working.....showing syntex error...

     

    if i use quit command it's totally closed....

     

    Sorry...Please advice me any other way to see the logs...

     

     

     

     

    • jaikumar_f5's avatar
      jaikumar_f5
      Icon for MVP rankMVP
      Guess you've user account role been assigned the tmsh shell. In simple, when you log-in, your directly into the tmos mode. Hope that clears you. From tmos mode to come to bash mode, you need to run this command. run util bash Once your in bash mode, Run a tail command to see live logs or use less command. tail -f /var/log/ltm less /var/log/ltm Remember i've seen in some higher 11.x version, the bash will not be seen. Youre only choice is to use the tmos or login with root use to access bash mode. Or you can change your user role's shell access to bash again from tmsh.
  • You can login as the root user to the CLI and browse to /var/log/ or You can try run util bash

     

    This will put you in shell prompt and you should be able to browse to /var/log/

     

    Alternatively you could use show /sys log ltm

     

  • At the end of the logs , am getting "log file:" prompt to enter , how do i get rid of it?.