Forum Discussion
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.
)
)
)
)
7 Replies
- nathe
Cirrocumulus
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 - Senthil_7991
Nimbostratus
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
Noctilucent
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.
- nathe
Cirrocumulus
Try:
show / sys log ltm
N - Dayal_141213
Nimbostratus
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
- Mck9_190625
Nimbostratus
At the end of the logs , am getting "log file:" prompt to enter , how do i get rid of it?.
- Ephraim_Mani_21
Nimbostratus
Just hit the "Q" button once on your key board
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
