ESXi command

Please let me know how to know the reboot logs in ESXi
Command to dispaly the last reboot time
kbjijoAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you want exact information you need to set logging to a syslog server

ESXi only logs to memory, and that you need to set logging to a syslog server to preserve logs between reboots.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
/var/log/messages: Core VMkernel logs, including device discovery, storage and networking device and driver events, virtual machine startup, and a merged copy of the hostd and vpxa management service logs.

/var/log/vmware/hostd.log: Host management service logs, including virtual machine and host Tasks and Events, communication with the vSphere Client and vCenter Server vpxa agent, and SDK connections.

/var/log/sysboot.log: Early VMkernel startup, module loading, and host initialization.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you could also use uptime, which will report

17:33:15 up 1 day,  5:13, load average: 0.00, 0.00, 0.00
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
othwerwise it's probably best to use Syslog, to send the alerts to a syslog server, ass events are overritten, but if you check the /var/log/sysboot.log you will see the dates and times of server start.
0
 
kbjijoAuthor Commented:
Messages, hostd, will not retaing the logs in ESXi, also tough to find the multiple reboot events from these logs ( Even from vMA)

uptime will only give the last reboot details

var/log/sysboot.log doesnt have any time stamp details, only file modified date is the reference

Please let me know any command to find the reboot details & command for last reboot (other than uptime)

0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
uptime will only give the last reboot details

your question:- Command to dispaly the last reboot time

I've got timestamps in our /var/log/sysboot.log!

Again, Setup a syslog server, to retain this data.

If you want to display ALL the reboot times, you will need to setup a Syslog server.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ESXi only logs to memory, and that you need to set logging to a syslog server to preserve logs between reboots.


0
 
kbjijoAuthor Commented:
I can see the timestamp in sysboot.log file and they are in teh phase of booting.But no events for when shutdown the system.
The below timestamps only i  can see in the sysboot.log file
[2011-10-06 07:48:18 'NetworkInfoImpl' warning] Fail
[2011-10-06 07:48:18 'IpSecConfig' warning] Ipv6 not Enable
[2011-10-06 07:48:18 'esxcfg-init-eesx' warnin
[07:56:47.924976] sysboot: Instrumentation

-rw-r--r--    1 root     root              10695 Oct  6 07:56 sysboot.log

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.