<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Write to EventLog (lotsof points !!!) in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449559#M5605</link>
    <description>From Gary Cooper's first post, the second link go to page 3.&lt;BR /&gt;&lt;A href="http://www.windowsitpro.com/WindowsScripting/Articles/ArticleID/16404/pg/3/3.html" target="_blank"&gt;http://www.windowsitpro.com/WindowsScripting/Articles/ArticleID/16404/pg/3/3.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;WriteEventLog() is the function discussed.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
    <pubDate>Wed, 12 Jan 2005 16:28:03 GMT</pubDate>
    <dc:creator>Jon Finley</dc:creator>
    <dc:date>2005-01-12T16:28:03Z</dc:date>
    <item>
      <title>Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449549#M5595</link>
      <description>Hello experts,&lt;BR /&gt;&lt;BR /&gt;I'm working on script which I want to write a message to the Windows EventLog when it runs into a serious error. Is there any utility to do that, maybe in the resource kit ? Or is there a way to do it in perl. The Win32::EventLog only allows to read the Log.&lt;BR /&gt;&lt;BR /&gt;Merry Xmas</description>
      <pubDate>Thu, 23 Dec 2004 04:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449549#M5595</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-23T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449550#M5596</link>
      <description>Hi Georg,&lt;BR /&gt;&lt;BR /&gt;Check out:&lt;BR /&gt;&lt;A href="http://support.microsoft.com/?kbid=154576" target="_blank"&gt;http://support.microsoft.com/?kbid=154576&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/16404/16404.html" target="_blank"&gt;http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/16404/16404.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Thu, 23 Dec 2004 04:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449550#M5596</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2004-12-23T04:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449551#M5597</link>
      <description>Isn't there something similar to the logger command on UNIX ? Thought I had seen something like that in the past.</description>
      <pubDate>Thu, 23 Dec 2004 05:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449551#M5597</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-23T05:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449552#M5598</link>
      <description>Hi Georg,&lt;BR /&gt;&lt;BR /&gt;How about &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;315410" target="_blank"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;315410&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Thu, 23 Dec 2004 05:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449552#M5598</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2004-12-23T05:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449553#M5599</link>
      <description>Regarding perl, as I said already Win32::EventLog doesn't write to the EventLog. But could there be a way to do it with Win32::OLE ???</description>
      <pubDate>Thu, 23 Dec 2004 06:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449553#M5599</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-23T06:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449554#M5600</link>
      <description>u wanna try this code??&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/16404/16404.html" target="_blank"&gt;http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/16404/16404.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Ganesh</description>
      <pubDate>Thu, 23 Dec 2004 10:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449554#M5600</guid>
      <dc:creator>Ganesh Babu</dc:creator>
      <dc:date>2004-12-23T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449555#M5601</link>
      <description>Thanks Ganesh,&lt;BR /&gt;&lt;BR /&gt;But if you look closely you'll see that Gary had posted that one already. Maybe, I read it a bit in a hurry, but I don't see how I could write directly with Perl to the Windows EventLog.&lt;BR /&gt;&lt;BR /&gt;I've now implemented a system call to logevent, works fine.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Georg</description>
      <pubDate>Thu, 23 Dec 2004 11:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449555#M5601</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-23T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449556#M5602</link>
      <description>This is the code Gary has written in the query.pl file he had in the zip file..&lt;BR /&gt;&lt;BR /&gt;use vars qw( %Log );&lt;BR /&gt;use strict;&lt;BR /&gt;use Win32::EventLog;&lt;BR /&gt;&lt;BR /&gt;my %EVENT_TYPES = (&lt;BR /&gt;  error   =&amp;gt;  EVENTLOG_ERROR_TYPE,&lt;BR /&gt;  warning =&amp;gt;  EVENTLOG_WARNING_TYPE,&lt;BR /&gt;  info    =&amp;gt;  EVENTLOG_INFORMATION_TYPE,&lt;BR /&gt;  success =&amp;gt;  EVENTLOG_AUDIT_SUCCESS,&lt;BR /&gt;  failure =&amp;gt;  EVENTLOG_AUDIT_FAILURE&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;foreach my $Key ( qw( Computer&lt;BR /&gt;                      Source&lt;BR /&gt;                      EventType&lt;BR /&gt;                      EventID ) )&lt;BR /&gt;{&lt;BR /&gt;  $Log{$Key} = shift @ARGV;&lt;BR /&gt;}&lt;BR /&gt;$Log{Strings} = join( "\0", @ARGV );&lt;BR /&gt;if( my $Event = Win32::EventLog-&amp;gt;new( $Log{Source}, $Log{Computer} ) )&lt;BR /&gt;{&lt;BR /&gt;  $Log{EventType} = $EVENT_TYPES{$Log{EventType}};&lt;BR /&gt;  if( $Event-&amp;gt;Report( \%Log ) )&lt;BR /&gt;  {&lt;BR /&gt;    print "Log was successfully sent.\n";&lt;BR /&gt;  }&lt;BR /&gt;  else&lt;BR /&gt;  {&lt;BR /&gt;    print "Unable to submit log.\n";&lt;BR /&gt;  }&lt;BR /&gt;  $Event-&amp;gt;Close();&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;   print "Unable to connect to $Log{Computer}.\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Ganesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 12:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449556#M5602</guid>
      <dc:creator>Ganesh Babu</dc:creator>
      <dc:date>2004-12-23T12:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449557#M5603</link>
      <description>\\computername-s severity-c categorynumber-r source-e eventID-t timeout"event text"&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2005 02:53:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449557#M5603</guid>
      <dc:creator>lowster</dc:creator>
      <dc:date>2005-01-06T02:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449558#M5604</link>
      <description>Hi Ganesh,&lt;BR /&gt;&lt;BR /&gt;Call me stupid (you probably do) but I don't see anything in that code that writes to the EventLog. I guess that's why the script is called query.pl&lt;BR /&gt;&lt;BR /&gt;But, don't mind. I needed it only for some exeptionnal error handling and a system call with logevent does the job nicely.&lt;BR /&gt;&lt;BR /&gt;Thanx&lt;BR /&gt;Georg</description>
      <pubDate>Wed, 12 Jan 2005 05:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449558#M5604</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2005-01-12T05:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Write to EventLog (lotsof points !!!)</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449559#M5605</link>
      <description>From Gary Cooper's first post, the second link go to page 3.&lt;BR /&gt;&lt;A href="http://www.windowsitpro.com/WindowsScripting/Articles/ArticleID/16404/pg/3/3.html" target="_blank"&gt;http://www.windowsitpro.com/WindowsScripting/Articles/ArticleID/16404/pg/3/3.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;WriteEventLog() is the function discussed.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Wed, 12 Jan 2005 16:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/write-to-eventlog-lotsof-points/m-p/3449559#M5605</guid>
      <dc:creator>Jon Finley</dc:creator>
      <dc:date>2005-01-12T16:28:03Z</dc:date>
    </item>
  </channel>
</rss>

