VMware Cloud Community
MihirP
Enthusiast
Enthusiast
Jump to solution

Reading VMware ESXi logs

Hello Guys,

Very simple question, but I find it difficult hence asking here Smiley Happy

1) We can SSH to a particular host > go to etc logs directory > cat particular log

But how to scroll up the window to see above lines that is not listed in the window?

I changed the buffer size of window, but that is not the solution I guess

2) How to make vmkernel.log and other logs in a proper readable format. If we open these logs in notepad, then it is very scrambled and very hard to read.

Thanks,

Mihir

Reply
0 Kudos
1 Solution

Accepted Solutions
kunaludapi
Expert
Expert
Jump to solution

get-content c:\vmware.log | more

or use notepad++ to read it

how they look when you change applications.

pastedImage_0.png

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

View solution in original post

Reply
0 Kudos
9 Replies
LucD
Leadership
Leadership
Jump to solution

Did you already try with the Get-Log cmdlet ?

You can first check what logs are available with the Get-LogType cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
kunaludapi
Expert
Expert
Jump to solution

get-content c:\vmware.log | more

or use notepad++ to read it

how they look when you change applications.

pastedImage_0.png

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
MihirP
Enthusiast
Enthusiast
Jump to solution

Thanks Kunal. But still 1 answer is remaining;

"1) We can SSH to a particular host > go to etc logs directory > cat particular log

But how to scroll up the window to see above lines that is not listed in the window?

I changed the buffer size of window, but that is not the solution I guess"

Thanks,

Mihir

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you try the Get-Log cmdlet I mentioned earlier ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
kunaludapi
Expert
Expert
Jump to solution

You will need to append "| more" at the last of the command.

get-content c:\vmkernel.log | more


As LucD said try Get-log as well.  

http://www.virtu-al.net/2009/08/17/powercli-reading-host-log-files/

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
MihirP
Enthusiast
Enthusiast
Jump to solution

Hello Kunal,

Sorry for replying very late.

Thanks for the command you gave me, but this is for Windows powershell or vSphere powerCLI.

Actually my question is for directly connected to ESXi host through "PUTTY" SSH session. So in this case my question remains the same;

" We can SSH to a particular host > go to etc logs directory > cat particular log

But how to scroll up the window to see above lines that is not listed in the window?

I changed the buffer size of window, but that is not the solution I guess"

Thanks,

Mihir

Reply
0 Kudos
Zsoldier
Expert
Expert
Jump to solution

This forum is for PowerCLI specific questions.  I might recommend that your question is directed to the general vSphere forum.

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Reply
0 Kudos
MihirP
Enthusiast
Enthusiast
Jump to solution

Oh ok, sorry for this. Will open a new case in relevant group. Thanks.

Reply
0 Kudos
kunaludapi
Expert
Expert
Jump to solution

use like this, i hope this will be helpful

/var/log/vmkernel.log | less

or

less /var/log/vmkernel.log

with this you will be able to scroll up and down both side, to quit, press q.

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".