1 Reply Latest reply on Oct 16, 2019 3:56 AM by iiliev

    NTP Info from VRO

    orian Enthusiast



      how can i find the next ESXI info from VRO:


      NTP Service Status

      NTP Servers

      Current time and date


      thank you

        • 1. Re: NTP Info from VRO
          iiliev Champion
          VMware EmployeesCommunity Warriors



          var hostServiceSystem = host.configManager.serviceSystem;
          for each (var svc in hostServiceSystem.serviceInfo.service) {
            if (svc.label == "NTP Daemon") {
              System.log("NTP Daemon service found");
              System.log("    is running: " + svc.running);
          var dts = host.configManager.dateTimeSystem;
          var ntp = dts.dateTimeInfo.ntpConfig;
          System.log("NTP servers: "  + ntp.server);
          System.log("Current date/time: "  + dts.queryDateTime());
          1 person found this helpful