Look for vCenter VM error message with special events

Greetings,

I am wanting to look through the events of multiple vCenters (4.x 5.x) mode, for events with a particular sentence (lock lost on *.vmdk)

I was looking at Alan Renouf vCheck to try out of the room that would allow me just to search for events in logs vCenters VM.

His VI Events.ps1 #23 file contains the following:

$Result = @(get-VIEvent-maxsamples 10000-Start ($Date).) AddDays(-$VCEventAge)-error | Select @{N = 'Host'; {E = {$_.host.name}}, Createduserid, @{N = 'User'; "E={($_. ({{UserName.Split("\")) [1]}}, fullFormattedMessage)
$Result

I'm looking to search for a specific text string in the events of the VM, and I was wondering if there was any ideas on the best way to do it.

I want to be able to specify the number of days back to back as shown above.  I want to show the host on the virtual machine is running, (s) Lun, it is located, the date and time of the message.

Can I just add a search string in the script above?   If so what setting would be to clarify?

Any suggestion would be appreciated.  Thank you.

I do not know the eventtype, but perhaps this can help.

The following tries to find the event by checking the message for text.

$daysBack = 7
$tgtMsg = "The lock protecting" Get-VIEvent -maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(-$daysBack) |
where {$_.fullFormattedMessage -match $tgtMsg} | Select @{N="Type";E={$_.GetType().Name}}, @{N="Host";E={Get-View $_.Host | Select -ExpandProperty Name}},
@{N="VM";E={Get-View $_.VM | Select -ExpandProperty Name}}, @{N="Message";E={$_.FullFormattedMessage}}

If this does not work, you can just list any events that have occurred in the last 7 days.

$daysBack = 7
$tgtMsg = "The lock protecting"
Get-VIEvent -maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(-$daysBack) |
Group-Object -Property {$_.GetType().Name}

Tags: VMware

Similar Questions

  • receive the error message with every new open tab

    Whenever I open a new tab, I get a popup error message. I have screen shots that can be granted.

    At first, I thought it was a mistake to Java, but I've uninstalled and reinstalled Java.

    There are two error messages which read:

    [JavaScript application]
    evalInSandbox:Error: Permission denied for <https://facebook.com> create a wrapper for the object of class UnnamedClass.

    [JavaScript application]
    Error: Permission denied for <https://facebook.com> create a wrapper for the object of class UnnamedClass

    So I clicked on help > troubleshooting information and choose Reset Firefox.
    Now I get a new error message with every new tab open.

    [JavaScript application]
    Error: syntax error

    Please tell us how to do this.
    Thank you
    JudyLeeThurber

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. Type browser.newtab.url
    4. Double click on the first result, a new window should now display.
    5. Type of topic: newtab in the area.
    6. Click ok and load a new tab. It now works of mireille?
  • Tecra 9000 - error message with Windows XP SP3 home edition

    Hello

    I have a Tecra 9000 in very good condition, until yesterday, I have no problem!
    After updating my Windows XP service pack 2 on the "service pack 3", everything works fine but when I press the button 'TOSHIBA controls' and 'mouse' for setting, Windows error message occure: "run a dll as an app"!

    Even if I go to "Start" and "Control Panel" and press the mouse, after setting close icon, or just simply do nothing (cancel), the same message! I did not notice any other problem with the TOSHIBA utility!
    My driver for mouse is "Logitech mouse ware, 9.40! Can you help me?

    This oldie works well with Windows XP SP2 home edition and in my opinion you should use without SP3. Try to remove the SP3, and I hope that everything will work properly again. Problem is that the old tools and utilities designed for Toshiba probably aren't tested and updated to SP3.

    I have more Satellite M70 and use sill with SP3. I don't want to risk anything and have problems.

  • I have Windows XP Media Center Edition Version 2002 with Service Pack 3 and I tried to run Media Center but I get an error message with ehshell.exe.

    original title: error with ehshell.exe

    I have Windows XP Media Center Edition Version 2002 with Service Pack 3 and I tried to run Media Center but I get an error message with ehshell.exe. Could you help me?

    This problem exists since the 1st Media Center. SP2 and SP3 had a difficulty, but it is obvious that it doesn't always. The same problem still exists in Vista today with a lot of other carried over from XP. System restore would work, but you do not have any good restore points so reinstall an operating system seems to be your only option.

    You probably don't want to do an OS reinstall you need for Media Center, but since it does not at all, you might want to play then remove the Media Center updates and or SP3 and reinstall them.

  • I get this error message with my DVD player: "Windows cannot start this hardware device because its configuration (in the registry) information are incomplete."

    I get this error message with my DVD player: "Windows cannot start this hardware device because its configuration (in the registry) information are incomplete." I tried to reinstall the driver when the computer prompted me to do it, but there was an error with this as well. My computer will not all read the disks.

    Original title: Matshita DVD-R UJ 890

    Hi AJordanMiller,

    Try these methods.

    Method 1

    Run the fix - it from the link below.

    Hardware devices not detected or does not
    http://support.Microsoft.com/GP/hardware_device_problems

    Method 2

    See the help article:

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/314060

    Registry warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    It will be useful.

  • You are looking for a new graphics card with 1 GB of memory for Satellite Pro A10

    I am looking for a new video card with 1 GB of memory, preference but is RIMM memory ram in my office, but has a different type of memory in the description of the video cards.

    Is it important at all, the video card would work always?
    Thanks 1million
    Stephen

    I put t know exactly what you want to do, but I assume that you need this card for an upgrade.
    New bad guy! Laptop graphics cards are often fixed on the motherboard and cannot be deleted!
    In addition, you must know that the mobile graphics cards are simply different and you can't compare these chips with adapters for desktop PCs.

    Best regards

  • Displaying an error message with a link to the error field

    By default, validation of the ADF has usually shows an alert with an error message and a link to the field of the error.

    I have some custom validations where I finally to display the error message with this:

    public static void MessageError (String messageText) {}

    String messageText = "" No. is han sown estos datos '; "

    FacesMessage fm = new FacesMessage (messageText);

    /**

    * set the type of the message.

    * Valid types: error, fatal, information, warning

    */

    fm.setSeverity (FacesMessage.SEVERITY_ERROR);

    FacesContext context = FacesContext.getCurrentInstance ();

    context.addMessage (null, fm);

    }

    My client application displaying a link to the field in error in this kind of error alerts as do the standard deviations.

    Is it possible to achieve this?

    Try setting the first parameter to the addMessage (which has the value null in your case) on the id of the component whose validation failed. That's what part.

    Timo

  • error message with 'learn more' (need admin rights)

    I'm on a new mac and I have creative cloud on my desk - when I try to download acrobat pro, dreamweaver, etc. - I get an error message with "more" stating I need administrator rights and the download fails

    Hi sky4uo,

    If your user account is a Standard account then you could get this kind of questions. If please, raise your account rights to an Admin account and try to download the software again.

    Please let us know if it helps.

    Kind regards

    Abhijit

  • Smartphones from blackBerry Desktop Manager for Mac KB19454 error message

    Hi all

    I am new to the community and would appreciate any help. I have two recent problems for which I'm looking for troubleshooting tips. The priority problem is first mentioned below.

    I just met this error message, "For help to resolve this problem, refer to KB19454 in the Knowledge Base of BlackBerry Desktop Manager" when trying to sync my Curve 8320. I use a Mac and I've not met difficulties of synchronization for downloading the new version of Desktop Manager for Mac in December/January. I was not able to download the last updated however. I saw a post initially by a user who has the same problem, but I didn't know the question, and so I am hopeful of possible suggestions for resolution.

    The other problem I have experienced recently, it's that I can't compose an SMS/MMS message. I can only answer to someone's message. When I try to send just one, by default back to the list of messages.

    Please Note: I don't have wireless on my phone. I use Blackberry Desktop Manager Version 1.0.1

    Also note that I am not able to access e-mail messages per day, but will try to return answers / inquires as quickly as possible.

    Thanks in advance for the help.

    Hi and welcome to the Forums!

    For your first question, I can't tell if you still worked through the reference KB... If not, you can find it here.

    For your second question, I'm not sure... but maybe it will help you:

    • Each time a random strange behavior or slow creeps, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    Best!

  • Error message with gobbledygook window at startup - Mac

    For the last 6 months or more, at startup to keep get this window error message when I start my iMac. A gibberish in it: "Bookmark88" (then symbols/gibberish).
    Below this line: "ApplicationsThunderbird.app" (and then the symbols/gibberish).
    Below this line: 'Macintosh HD' (then symbols/gibberish).
    Below this line: "Thunderbird" (then gibberish). Pages and pages when I try to scroll to get a clue as to what it is literally in order to solve the problem and stop making this window.

    Thunderbird fell down during this period. I reinstalled and still get this window - have OS YOSEMITE 10.10.4, iMac 2009; 2.8 GHz Intel Core i7 processor. Thanks for your help.

    All I can say is that this is not normal. It is also not something that I've never heard of support either.

    If you are looking for the Thunderbird executable on the hard disk and double-click it, this dialog box appears? I wonder if this is the link that OSX is the use which might be scammer

  • Constant 'App Hang"no error message with Beta V38 responsive.

    I am running the latest version of beta v 38, and when you download messages, at least half the time of any platform goes "refractory" with the Windows error message in Task Manager advising «hang app» For example, this happened almost a dozen times yesterday and it took three computer restarts, restart Thunderbird five and nine attempts to download to download successfully less than 10 messages. Number of messages have been downloaded more than once (some up to four times). When it works, it works well, but it works not so much of the time.

    When this happens, all the operations of my computer slow to a crawl and hard drive turn right and Manager tasks Windows indicates that Thunderbird CPU usage is 0%.

    I am running a Dell Vostro laptop computer with processor i5, 8 GB of RAM and the latest version of Windows 7 Pro. Internet service provider is Yahoo.

    Help, please. I'm ready to get off the beta channel and return to the standard string, if that's what I live with.

    Steven, do you have good results with safe mode?

  • Error message with program battery bluetooth and tecra 9100 XP SP2

    When I try to start program battery bluetooth the following error message appears:
    the instruction at "0x1000bf18" uses the address "0x0015d000". memory don't pet not be "read".

    Is someone can tell me, what kind of question is this and how to fix it?

    Thank you very much in advance

    Hi Patrick,

    For the benefit of other users of the forum please let me translate your error message: -.

    ""The Instruction at "0x1000bf18" uses the memory address"0x0015d000". Cannot read memory.

    This indicates that the broadcast program has stored the second addresses two memory as a place in which it writes data and now cannot read the data at this location memory.

    It may be because some other routine wrote too much memory or reported to this place as "in use".

    Windows will normally prevent such a situation from occurring, but being Microsoft is not infallible and errors may occur from time to time.

    If you get this message every time that you start your battery Bluetooth, it is more likely to be a problem with the Bluetooth program badly to access its memory cache, so I recommend reinstalling the Bluetooth program.

    Good luck

    HTH

    Post edited by: NickyNoogle

  • Custom: error message with brand new computer

    I took my brand new computer.  Did everything that could be transferred from my old computer to new computer.  I get an error message when I turn on this new computer first.  This is a 2 part message.

    Error message #1: there is a problem starting C:\Program HP Photosmart HP 7520 series\bin\HPstatus BL.dll

    message 2 appears on the screen of the notebook:

    [. ShellClassInfo]

    LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787

    What should I do to fix this?

    I would like to uninstall everything that touches on the printer series HP Photosmart 7520. Condition monitoring program is configured to run at startup, and something is not compatible between the old computer and the new. The last 7520 driver package and utility for Windows 8 and does not say it is compatible with Windows 10 If you want to try to reinstall on Windows 10 using compatibility mode.

    http://support.HP.com/us-en/drivers/selfservice/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5199462#Z7_3054ICK0KGTE30AQO5O3KA30R1

  • Error message with nwiz.exe [mod nview.dll AppVer 6.13.10.3190 name] C:DOCUME~1\ADMINI~1\LOCALS~1\Temp\bdec_appcompat.txt

    Windows XP Pro, crashed, took shop, had to be wiped (cleared all updates for several years). Reloaded from the original disks. Added a few other updates since then. When turned on, get the error message and Web site NVIDIA Graphics Driver. I have download long, then a message that it's not compatible with my hardware. Why I get this now? It works, but I get this message every time I turn it on.

    Hello karenfedway,

    Thank you for visiting the Microsoft answers community.

    Try to uninstall then reinstall the Nvidia software.

    First of all, make sure you know material real th so that you can download the drivers and the correct software.

    -Click Start > Control Panel > Add Remove programs
    -Uninstall any software related to Nvidia

    Rebooting and using the Nvidia software for your hardware reinstall.

    Hope this helps

    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Work around the Error Message with an encrypted hard drive?

    I have an external hard drive using Truecrypt encrypted. AutoPlay (at least I thought it was Autoplay) kept asking if I wanted to format when I tried to mount it after encryption.

    I've renamed the reader. TrueCrypt mounted, which means some... put in Windows enabled him to be recognized. But after entering the password, Windows wouldn't let me open it. First of all, asked me again if I wanted to format the drive. When I chose still cancel, a long error message appeared.

    Hello

    In dealing with the problem with Truecrypt application, I suggest you to publish the query on the Truecrypt forums for assistance.

    http://forums.TrueCrypt.org/

    In Windows, we have a built-in feature to the disc, called BitLocker encryption. You can use it too. Check out the link for more on this topic.

    BitLocker Drive Encryption

    http://Windows.Microsoft.com/en-us/Windows7/products/features/BitLocker

    Feel free to get back to us for any information related to Windows.

Maybe you are looking for

  • Lost password, I reset to the factory default value, but...

    Not very computer, but following the recommendations in the FAQ, I have reset my WRT54G router to the default settings by hitting the reset buttong and entering into the Web site. I got a new computer and I forgot the old password. After reset to def

  • my laptop does not work correctly

    I have laptop Acer Aspire 5733 I bought 1 year back. I also bought Win 7 Home premium to my laptop now my laptops get slower treatment. I have only 160 GB of data stored in the TI and the internet access watch esclamation brand icon that there is no

  • How to load the file name in the table target. ?

    Hi Expertise,I load the data of 100 files of same schema using packages,It is a variable stores the names of files. I used this link for reference: ODI gurus: SEVERAL FILES - TARGET SINGLE TABLE - SINGLE INTERFACE & several files simple single interf

  • Positional key and Wiggle expression images

    Hi, let explain me my problem;I have a px 5000 x 5000. PNG that I want to show a little at a time in a1920x1080 comp.The .png layer moves to the left of x-amount holds it is the position, then left again once, holds, then moves diagonally to the left

  • Missing device driver - PCI Serial Port

    The machine is a HP Compaq Elite 8000 LTS Windows XP SP3 In the device under "Other Deives" Manager there is a yellow? mark it as "PCI Serial Port" The Details tab shows that its Instance ID of device is: PCI\VEN_8086 & DEV_2E17 & SUBSYS_3646103C & R