PowerCLI: Detect in time a misconfiguration

Hi all

I'm looking for PowerCLI code to detect 'Bad Date & Time Settings'

We have a few servers ESXi 4.0 U1 (Dell blades) which the BIOS time has too much lag to the NTP server.

So it will never be synchronized time.

In vCenter the Date & Time Configuration is shown in red (differs too much from customer).

Is there a Powershell code to detect which host has a misconfigured date / time setting?

(I do not go through 200 hosts manually...  )

Thanks for your help.

Kind regards

Harold

Hello

VMHost.ExtensionData property is new in PowerCLI 4.1 and in order to run this script with PowerCLI 4.0 you must replace it with get - view

invocation:

Get-VMhost | Get-view |% {
    #get host datetime system
    $dts = get-view $_.ConfigManager.DateTimeSystem
...

Here is the final version of the script:

$allowedDifferenceSeconds = 20

get-view -ViewType HostSystem -Property Name, ConfigManager.DateTimeSystem | %{
    #get host datetime system
    $dts = get-view $_.ConfigManager.DateTimeSystem

    #get host time
    $t = $dts.QueryDateTime()

    #calculate time difference in seconds
    $s = ( $t - [DateTime]::UtcNow).TotalSeconds

    #check if time difference is too much
    if( $s -gt $allowedDifferenceSeconds){
        #print host and time difference in seconds
        $row = "" | select HostName, Seconds
        $row.HostName = $_.Name
        $row.Seconds = $s
        $row
    }
}

By using Get-View-ViewType HostSystem since it is the fastest way to get the view for each object VMhost

Kind regards

Yasen Kalchev

PowerCLI Dev Team

Tags: VMware

Similar Questions

  • Comprehensive detection of time

    Hi all

    I recently updated my logical X to the latest version and I found a tool that I used often when demoing new material is missing. Previously, I record my audio tracks scratch and use Edition/Tempo/Detect Tempo Global (or something close to that). I've see here in Star and the BPM counter plugin does not seem to recognize something in the channel strip, or in the main channel of band.

    I prefer to save zero, to find the overall pace of the song and build a beat with tool drummer before layering in the singing and a track finalized guitar. I did some research in the community and could not find anything for the latest logic version X. Someone at - it no work around for this tool?

    Thanks for your help!

    It's still there, it has just been consolidated a bit...

    check apply the tempo of the region to the project

  • Detected each time you start Driver Verifier

    I was updating my Nvidia GeForce software today and suddenly had a blue screen with the message above. What's really weird is that whenever I start my computer now, I get this message. The second, I connect the blue screen will go up. Does anyone have any suggestions?

    Hello

    Do back or uninstall your current nVidia Driver and install the previous version which worked without problems.

    Kind regards

    Patrick

  • Time Machine (on Mac) does not detect the airport Time Capsule

    Originally posted on the page of the airport, but seems to be the better question for this group. Sorry for the double post

    Looking for advice on how to get the Time Machine utility for access to my Time Capsule. I use an iMac in late 2012 with MAC OS 10.12 TimeCapsule is 2015 7.7.7 running latest firmware. Airport utility is the latest firmware 6.3.7.

    When I run the application Time Machine, Time Capsule is not detected. I tried the two WiFi and with cables connected Ethernet (not tried USB yet) and my Time Capsule doesn't have a lightning bolt or firewire ports.

    Open Airport utility & see the airport time capsule. I can see all connected devices, including the MAC, but no prompt activation Time Machine on the Time Capsule.

    I recently used TM on this iMac with a G-Technology drive. It auto detects the time machine and executes a back up. But airport Time Capsule will not.

    Any suggestions?

    Sierra has been problematic with the TC.

    1. make sure you don't have any charge virus protection software. In fact, I would say that disable all software 3rd part at the moment.

    2. make sure that you can actually write to disk of TC.

    Attach the TC disc in the finder and copy a file on disk, you can delete it later... It's just to ensure that you have full write permission. If it does not for the most part, you won't be able to use Time Machine... If you can then try TM immediately...

    Just to be clear, the TC is a network device. You have tested with ethernet and wireless... Ok.. They are only suitable methods. You cannot use USB. And clearly, TC has never had nor will never be ports Firewire or lightning.

    3. no chance that a reset complete TC. This will not delete the files on the hard drive, but you must make sure that the device is configured on the current computer.

    4. There are many positions in these days... read through them and do some research. Sierra is a bleeding edge new... So wait you to spend a lot of the precious liquid if you choose to be an early adopt.

  • Time Machine doesn't detect Time Capsule

    Looking for advice on how to get the Time Machine utility for access to my Time Capsule. I use an iMac in late 2012 with MAC OS 10.12 TimeCapsule is 2015 7.7.7 running latest firmware. Airport utility is the latest firmware 6.3.7.

    When I run the application Time Machine, Time Capsule is not detected. I tried the two WiFi and with cables connected Ethernet (not tried USB yet) and my Time Capsule doesn't have a lightning bolt or firewire ports.

    Open Airport utility & see the airport time capsule. I can see all connected devices, including the MAC, but no prompt activation Time Machine on the Time Capsule.

    I recently used TM on this iMac with a G-Technology drive. It auto detects the time machine and executes a back up. But airport Time Capsule will not.

    Any suggestions?

    We understand your current configuration of the network with the Time Capsule (TC). Is the TC the only router on your network? What is the brand and model of the modem Internet you have directly linked it by Ethernet?

    Normally you use a wired connection or wireless between the iMac and the TC? This always was a problem or just started to happen? If she just started, have you changed any software/firmware on the iMac or TC?

  • 15 - f039wm: BIOS does not detect hard drives until it performs a diagnostic search

    I was handed a 15-f039wm laptop to watch and I recognized immediately the hard drive was bad, complete failure - no detection and would not pass the built-in diagnostics. I have removed the drive from the laptop and confirmed that the car was bad on a separate system. I ordered a new drive, went with an SSD and put the new drive of the laptop. I checked the cable was sitting correctly on both ends and for good measure he reinstalled on the motherboard as well as on the drive itself.

    Then I tried to re - install Windows 8.1 with the laptop provided with Bing, but when it came time to select the hard disk in the Windows Installer screen, no disks have been detected. I tried to load the drivers for the drive recognized, but nothing has worked. I then tried to start other diskettes of Windows (7 & 10) and the same problem arose, no drive detected. For fun, I loaded Hiren's Boot Disk and tried to see what I could do, and oddly enough the drive detected several times.

    Then, I decided to go back to the integrated diagnostic tools (F2 at startup) and see what would happen. Hard drive has been detected and passed the Quick Test. I have a Windows install CD in and after that I left the screen he ended up launching the installation disc. I decided to try just a new set of drivers to see if the disc could be detected, but that the disc was already detected and just sitting there, ready for the installation of the software.

    I have installed 8.1 on it and did the upgrade of Windows 10 to the owner and I noticed something serious.  Whenever I restarted (key here being a full reboot), the drive was not detected and I would get an error in DEVICE of START-UP INACCESSIBLE when he tried to load Windows. I ended up to play with the drive and launch the troubleshooting menus command prompt.

    I tried to run diskpart, and when I typed "list disk" inside diskpart and he told me that there are no drives found. Large.

    I took once more apart from the laptop and reinstall the drive again and the same problem happens again. This is where it gets a little weird. I ran Diagnostics on the hard drive again and just canceled check out out and Quick Test and let it boot. It starts very well.

    I thought so at this stage it is a bug in the BIOS or something and decided to flash F.25 Rev.A to see if that would help. No, the problem persists after BIOS update flash. I decided to just go ahead and order a new cable to see if the cable is the issue. Is there anything else I can try? Anyone have this problem, it is rather strange to me, and I saw a lot of machines to act strangely.

    So, to summarize:

    Hard drive is not detected at least that I force diagnostic analysis of any type on the hard drive and come out and let it boot.

    What I tried:

    New hard drive

    Reconnect the hard drive

    BIOS settings - boot order, security keys allowed Secure Boot on / off, Legacy Boot on / off, (there no option of detection or ahci in the BIOS).

     

    Many windows install environments, non-windows - disk environments is ever detected by the BIOS, I guess

     

    Flashed the BIOS updated

    Reinstall Windows (back to 8.1 with Bing and question persists, persists on Windows 10 institutions)

     

    DiskPart on Windows Installer (shift + f10 - prompt "diskpart" command, then in diskpart: 'list disk' which wouldn't say no disk).

     

    Ordered a new cable (pending on this one)

    What gets me, is that it works whenever I have diagnostic scan before starting. Every time. It fails on a restart cold without doing so. I looked on the Board for the damage of physical strength and the liquid, but do not see anything to really. I'm guessing that it was abandoned. Any ideas on what else to try? I'm running out of ideas on this one.

    Try the new cable, but I think you look a very bad mother board it.

  • detect single-point XNET CAN timeout

    Hello

    I've implemented a CAN communication via Signal XNET single-point settings.

    I need to detect a time on the CAN line if a bus-elect is no longer active. I found this possibility for the parameters of FRAME CAN, but not single-point signal.

    How can I implement this timeout notification?

    Thank you very much

    Magnus

    Hello Magnus,

    first that I want to recommend the "single-point input Signal Mode" in the XNET help (first link in the XNET (single-point Signal) reading .vi) article for a better understanding of the feature.

    If you wish to set up an audit of the time-out period, you can use the function "XNET .vi (XY Signal) read", so that you get a delivery timestamp. When query you that you can build a lag.

    Best regards

    Christoph

  • The maximum time does not change if use .vi spectrum FFT (Mag-Phase)

    Hi all

    I test just a simple program to detect the time of peak of a FFT graph. the problem is when I use .vi spectrum FFT (Mag Phase), I can't get the value of the maximum duration. But if I used the spectrum measurement vi express, it can give me the value. How can I get the value using FFT (Mag Phase) .vi spectrum?

    It is not clear what you're asking. You say that you try "detect the time of peak of a FFT graph" which is nonsence unless you would apply condensers or some other processing of this type. FFT gives you orders of magnitude of the frequency vs. No time. So it seems to me that you are trying to get the frequency of harmonics with the magnitude of maximum, right? If so see little piece attached.

  • My Book 3.0 (1 TB, USB 3.0) detection with envy Phoenix 810-135qe problem

    I have a My Book 3.0 (1 TB, USB 3.0)... The older My Book not the newest one... "My Book Essential" or something like that.

    I used it with W7 x 64 backup utility on an older office of the HP (HP Pavilion a6560t) without problem until my new HP Envy 810-135qe happened. I downloaded the latest drivers from WD support and the PnPed thing very well off the non powered USB 3.0 at the rear of the 810. However, the 810 gives up the connection after sleep, hibernation, lock, or simply over time. I ran diagnostics on the WD and cables, all the beautiful removed. I tried cutting power saving s 3.0 to USB in device (just a guess) Manager, and that seemed to work for a few weeks, but I still have the problem of detection from time to time. All my drivers are up to date on the HP circuit. I completely reformat the WD now to see if that would solve the question somehow (I'll update in the next few days on how that worked).

    Someone has an idea what is wrong? I suspect something with the BIOS. HP chat support has been no help (they go through the same checks that I've done myself) and they got really scary on another cat when I asked about adding an SSD as boot drive (I knew it was a problem of here and other forums)... Set myself to second level support, and all what they told me it is that they could not tell me something... Basically, not support for a config except for how they were shipped because it's a "customized" version (Yes, time to chagrin of the buyer).

    Second, anyone running a similar config with a remote backup that works well? My WD is getting old so I thought one of the more recent portable USB 3.0 hard drives (2.5-3.5). My features to follow.

    HP Envy 810qe - Win 7 (810-135qe)

    Product number: F9A63AV #ABA

    • Windows 7 Home Premium 64
    • 4th generation Intel (r) Core i7 - 4770K processor quad-core [3.5 GHz, 8 MB of shared cache]
    • 4 GB Nvidia GeForce GT640 [DVI, DP, HDMI & VGA via adapter]
    • 12GB DDR3 1600 MHz [2 DIMMS]
    • 2 TB hard drive 7200 RPM SATA
    • MSATA SSD Cache 16 GB
    • Microsoft Office trial
    • The trial security software
    • Blu - ray player & SuperMulti DVD burner
    • 15-in-1 slot Multi Media Card Reader, 4 USB Ports (front/Top), Audio [before 2USB2.0, 2USB3.0 top of the page]
    • No TV Tuner card
    • Integrated sound, Envy Audio; Audio beats
    • HP USB keyboard and optical mouse
    • HP Wireless 802.11 a/g/n with Bluetooth (R) (2 x 2)
    • Envelope of Wineskins HP Home & Personal store

    I moved... I tried updating the BIOS and implement a server/cloud storage media a router more than capable of handling, but it is always odd. Thanks for the replies OG.

  • "no audio device not detected" with the other oddities

    I'm a form of error message 'no audio device detected' each time than trying to use a program with sound.  ITunes, for example, says "Itunes has detected a problem with your sound configuration."  No sound works on the computer at all.  I have a dell Inspiron E1505 with I think it's the integrated audio system.  I tried to reinstall the drivers and that sound showcases are activated and similar these fixes.  Another oddity: sometimes my laptop speakers do weird sounds like it is a kind of bad connection inside, but I opened the computer to check and nothing seems to be wrong.  In addition, once a week ago, I turned on the computer and everything works fine until I closed the computer and opened again to find nothing works again.  Ideas?

    See these:

    iTunes for Windows: iTunes cannot run because it detects a problem with QuickTime
    http://support.Apple.com/kb/ts1371

    Tips for solving common audio problems
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

  • Timer does not

    Hello world. I'm trying to push a screen when my application has been idle for some time. I use the code here: http://supportforums.blackberry.com/t5/Java-Development/Detect-Idle-time-of-device/m-p/536925

    First of all, the downtime of the device detecting your application vs. idle time are two totally different things.

    You application can if run in the background doing nothing for days, while other things occur in other applications, such as electronic control, surfing the web, managing phone calls, etc., so maybe this isn't the best solution for you.

    I suggest you set a timer on your onExposed set for 60 seconds, then whenever the screen is exposed check you this timer and re-updated the time within which it must be launched.

    Finally, I do not think the way you call the function timer work properl

    See the JavaDoc for more information on how to properly build a timer http://www.blackberry.com/developers/docs/5.0.0api/java/util/Timer.html

    You're most likely going to want to use this

    schedule(TimerTask task, long delay) 
    
  • Detection by program password lock in blackberry.

    HII guys,

    I want to detect this time the screen is locked with password or not in my code when the call is received.

    y at - it someone who can share his knowledge... is there any available method or anything that can help me to know.

    any kind of help is much appreciated...

    Thanks in advance

    Vishal

    Is ApplicationManager.isSystemLocked () what you are looking for?

  • Photoshop detects no GPU even after trying the solutions of the forum

    Hello

    I just downloaded Photoshop cc 2015.1.2 and this message appears,Capture2.JPG

    I've checked the performance tab and gpu is not detected

    Capture.JPG

    I tried many solutions but nothing works,

    Data sheet: HP dv6 ENVY

    Windows pro 8.1

    GeForce gt 630M - 1 GB

    Intel i7-3630QM

    12 GB of ram

    256 GB SSD

    Thanks in advance for any help I could get!

    The only thing that worked for me was deleting the sniffer.exe file in the folder Adobe Photoshop CC 2015 (I made a copy that I keep on my desk). This allows the NVidia card to be detected each time you start upward but slow down Photoshop starts.  I hope that the new Nvidia driver expects daily now will not solve the problem, but I doubt it will be as the problem is long-standing - video to this thread from 2014 date.

  • Detect if the video is loaded

    Hello

    I want to detect each time the video is loaded

    because I display a png of the first frame of the video, when the video starts to play I want to delete the image, try to make a smooth effect

    Here is my code to load the video

    var netLoader:NetLoader = new NetLoader();
    var resource = new URLResource (url)
    var metadata:Metadata = new Metadata();

    metadata.addValue (CaptioningPluginInfo.CAPTIONING_METADATA_KEY_URI, CAPTION_URL);
    resource.addMetadataValue (CaptioningPluginInfo.CAPTIONING_METADATA_NAMESPACE, metadata);
    mediaFactory.addItem (new MediaFactoryItem ("org.osmf.elements.video", netLoader.canHandleResource, createVideoElement));
    mediaElement = mediaFactory.createMediaElement (resource);

    I do not know where to add the listener to know if the video is ready

    Thanks for your help

    I believe that you also use a MediaPlayer instance and it is the object you need to listen to his

    the MediaPlayerStateChangeEvent mediaPlayerStateChange

    The values of the State of the player can be found at PlayState.as.

    -Zhang Wei

    Senior computer scientist

    Adobe Systems, Inc..

    [email protected]

  • Siebel & Disqualification - what happens in case of failure of the Disqualification?

    Hello

    We think about how monitor the Disqualification and its communication with Siebel, to be notified in case of problems.

    The best possibility would be monitoring web services Disqualification, just to see the availability of http, or even with sample data. However, this would not cover communication between the Disqualification and Siebel. Are there best practices on how to monitor this part? Perhaps with something like logcheck?

    Or, as a more general question: how exactly Siebel reacting if Disqualification is not accessible or if there are problems in the communication of the Disqualification, the generation of keys, either for verification of duplicates? The Siebel Data Quality provider running several web service against Disqualification request, so I see potentially several points of failure - even if caused by a misconfiguration.

    Best regards

    Daniel

    Hello

    Customers generally adopt one of the following strategies here:

    1 set up so that they should still be running if the application server is running, and let's assume they are if it's jobs in real time. This leaves a window of risk as specific web services are not monitored and it is possible that he could have not detected the time if the job fails, but the application server is not.

    2 ping the web services with dummy data that are not consumed to verify that they are available. Gives good control, even if it may pollute the logs a bit.

    3 monitor web services by using a script that checks via JMX of Disqualification interface - the path to check is disqualification/Runtime/data/buckets/realtime/projects / [project name] /readers/ [name of web service] and opening check = 1 (for the race) not 0 (no not running).

    The behavior in Siebel web service Disqualification is not reachable is configurable in the dnd.properties file that controls the connector. By default, each service call "integrated security" that is set to true, which means an error is generated in the newspapers if the service cannot be called but the end users see no error. Change the failsafe to false indicates the user will see an error if the service is not available.

    Kind regards

    Mike

Maybe you are looking for

  • Hi team Apple, my Iphone 6s have the envelope problem

    Hi team. My 6 s 64 GB iphone using IOS 9.3.1 and I have my phone camera have problem... I'm from VietNam so English is not good. I send you photo I don't know how my iphone was that...? Thank you and I hope you rep for me Quan.

  • Laptop HP 2000 - disabled system - 98390809

    HI, my sister has a PC of 2000 HP laptop that in some way she managed to add a passwor BIOS and I forgot about it, she says she never used a password, but the computer requires a and the administrator password does not work. You can type only 8 digit

  • HALO 2 graphics card

    I have windows Vista Home Basic. I try to run halo2 and it wont where can I get the necessary graphics card for free?

  • How can I restore sleepmode after disk cleanup

    The "sleep mode" has always worked for me in Vista.  After a disk cleanup, I can no longer put the computer to sleep.  He sleeps for 5 seconds and goes on.

  • Reference Dell place 11 Pro 7130, how to activate the quick start Intel?

    Hello. I found that the system supports the Intel Quick start feature. The setting is enabled in the BIOS. On the support page of drive you, I downloaded the driver. First of all, it can be installed as a separate partition must be prepared for it. M