<?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: ANAL/AUDIT for AUTHORIZE PRIV and DEFPRIV changes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486959#M30597</link>
    <description>Craig,&lt;BR /&gt;&lt;BR /&gt;  The selection qualifiers for ANALYZE/AUDIT and ACCOUNTING are somewhat useful, but, as you've found, it's not always easy to work out the exact combination that gets the information you want, or even work out if it exists. Often it's easier to just dump the whole time window you're interested in and SEARCH the text.&lt;BR /&gt;&lt;BR /&gt;If you have a longer, or regular task, it's fairly simple to build a DCL parser that can discriminate the start and end of audit records, outputting whole records which match your search strings.&lt;BR /&gt;&lt;BR /&gt;PIPE comes in handy here:&lt;BR /&gt;&lt;BR /&gt;$ PIPE ANALYZE/AUDIT/OUT=SYS$OUTPUT ... | @yourparser string string...&lt;BR /&gt;&lt;BR /&gt;If the records aren't too big, you can glue them together into a single string and output as CSV, or something sortable. Parsing the text can be very simple, just split the lines on the first ":", collapse the left hand side to form a symbol name, and replace the : with =" to turn each record into a symbol assignment which you can then execute (though you'll need some continuation line logic). So, for example, convert:&lt;BR /&gt;&lt;BR /&gt;Event time:               28-AUG-2009 00:00:38.16&lt;BR /&gt;&lt;BR /&gt;into:&lt;BR /&gt;&lt;BR /&gt;Eventtime="28-AUG-2009 00:00:38.16"&lt;BR /&gt;&lt;BR /&gt; This makes it easy to throw away fields you're not interested in, even if you don't know their names. Just run the event through the symbolizer then output what you're interested in:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT Auditableevent,",",Eventtime,",",Username</description>
    <pubDate>Thu, 27 Aug 2009 21:36:19 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2009-08-27T21:36:19Z</dc:date>
    <item>
      <title>ANAL/AUDIT for AUTHORIZE PRIV and DEFPRIV changes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486957#M30595</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I would like to run a report that only shows me those users that have used AUTHORIZE to change the privileges (default or authorised) of other users. &lt;BR /&gt;&lt;BR /&gt;ANAL/AUDIT/EVENT and ANAL/AUDIT/SELECT doesn't *appear* to be able to offer this. &lt;BR /&gt;&lt;BR /&gt;I'm aware that I could generate a generic AUTHORIZE changes report and then parse it for what I need:&lt;BR /&gt;&lt;BR /&gt;$SEARCH &lt;FILE&gt; - &lt;BR /&gt;"Privileges","New" /MATCH=AND /WIND=(x,y) &lt;BR /&gt;&lt;BR /&gt;but that approach is messy if multiple changes to an accout have occured. &lt;BR /&gt;&lt;BR /&gt;I was just wondering if I was missing something blindingly obvious.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Craig A&lt;/FILE&gt;</description>
      <pubDate>Thu, 27 Aug 2009 07:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486957#M30595</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-08-27T07:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: ANAL/AUDIT for AUTHORIZE PRIV and DEFPRIV changes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486958#M30596</link>
      <description>Not blindingly obvious but:&lt;BR /&gt;&lt;BR /&gt;/SELECT=(FIELD=("DEFAULT PRIVILEGES", "PRIVILEGES"))</description>
      <pubDate>Thu, 27 Aug 2009 08:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486958#M30596</guid>
      <dc:creator>Richard Brodie_1</dc:creator>
      <dc:date>2009-08-27T08:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: ANAL/AUDIT for AUTHORIZE PRIV and DEFPRIV changes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486959#M30597</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;  The selection qualifiers for ANALYZE/AUDIT and ACCOUNTING are somewhat useful, but, as you've found, it's not always easy to work out the exact combination that gets the information you want, or even work out if it exists. Often it's easier to just dump the whole time window you're interested in and SEARCH the text.&lt;BR /&gt;&lt;BR /&gt;If you have a longer, or regular task, it's fairly simple to build a DCL parser that can discriminate the start and end of audit records, outputting whole records which match your search strings.&lt;BR /&gt;&lt;BR /&gt;PIPE comes in handy here:&lt;BR /&gt;&lt;BR /&gt;$ PIPE ANALYZE/AUDIT/OUT=SYS$OUTPUT ... | @yourparser string string...&lt;BR /&gt;&lt;BR /&gt;If the records aren't too big, you can glue them together into a single string and output as CSV, or something sortable. Parsing the text can be very simple, just split the lines on the first ":", collapse the left hand side to form a symbol name, and replace the : with =" to turn each record into a symbol assignment which you can then execute (though you'll need some continuation line logic). So, for example, convert:&lt;BR /&gt;&lt;BR /&gt;Event time:               28-AUG-2009 00:00:38.16&lt;BR /&gt;&lt;BR /&gt;into:&lt;BR /&gt;&lt;BR /&gt;Eventtime="28-AUG-2009 00:00:38.16"&lt;BR /&gt;&lt;BR /&gt; This makes it easy to throw away fields you're not interested in, even if you don't know their names. Just run the event through the symbolizer then output what you're interested in:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT Auditableevent,",",Eventtime,",",Username</description>
      <pubDate>Thu, 27 Aug 2009 21:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486959#M30597</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-08-27T21:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: ANAL/AUDIT for AUTHORIZE PRIV and DEFPRIV changes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486960#M30598</link>
      <description>Richard: Thanks - Perfect!&lt;BR /&gt;&lt;BR /&gt;John: Very useful. Many thanks.&lt;BR /&gt;&lt;BR /&gt;Craig A</description>
      <pubDate>Fri, 28 Aug 2009 11:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/anal-audit-for-authorize-priv-and-defpriv-changes/m-p/4486960#M30598</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-08-28T11:04:42Z</dc:date>
    </item>
  </channel>
</rss>

