?
Solved

ESXi command

Posted on 2011-10-10
8
Medium Priority
?
1,657 Views
Last Modified: 2012-05-12
Please let me know how to know the reboot logs in ESXi
Command to dispaly the last reboot time
0
Comment
Question by:kbjijo
  • 6
  • 2
8 Comments
 
LVL 125
ID: 36943725
/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
 
LVL 125
ID: 36943738
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
 
LVL 125
ID: 36943762
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
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 

Author Comment

by:kbjijo
ID: 36943852
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
 
LVL 125
ID: 36943875
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
 
LVL 125
ID: 36943919
ESXi only logs to memory, and that you need to set logging to a syslog server to preserve logs between reboots.


0
 

Author Comment

by:kbjijo
ID: 36944427
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
 
LVL 125

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 36944456
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question