<?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: Bash History in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782158#M640971</link>
    <description>Hi,&lt;BR /&gt;don't know if this is possible, you should be thinking about implementing Auditing to achieve something similar:&lt;BR /&gt;&lt;BR /&gt;See audsys(1m), audevent(1m), audomon(1m) and audit.conf(4).</description>
    <pubDate>Thu, 28 Apr 2011 05:29:15 GMT</pubDate>
    <dc:creator>g3jza</dc:creator>
    <dc:date>2011-04-28T05:29:15Z</dc:date>
    <item>
      <title>Bash History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782157#M640970</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I want to configure my commands history with time stamp, IP of machine from where HP-UX is accessed and username.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2011 05:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782157#M640970</guid>
      <dc:creator>Ghazanfar_2</dc:creator>
      <dc:date>2011-04-28T05:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782158#M640971</link>
      <description>Hi,&lt;BR /&gt;don't know if this is possible, you should be thinking about implementing Auditing to achieve something similar:&lt;BR /&gt;&lt;BR /&gt;See audsys(1m), audevent(1m), audomon(1m) and audit.conf(4).</description>
      <pubDate>Thu, 28 Apr 2011 05:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782158#M640971</guid>
      <dc:creator>g3jza</dc:creator>
      <dc:date>2011-04-28T05:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782159#M640972</link>
      <description>You are right. I have already checked the four options but I want the precise information with no extra details thats why I think that through bash history I can get the required information.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 28 Apr 2011 05:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782159#M640972</guid>
      <dc:creator>Ghazanfar_2</dc:creator>
      <dc:date>2011-04-28T05:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782160#M640973</link>
      <description>One more thing, that I can get the timestamp and username .... but the issue is with remotely accessing system IP.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2011 05:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782160#M640973</guid>
      <dc:creator>Ghazanfar_2</dc:creator>
      <dc:date>2011-04-28T05:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782161#M640974</link>
      <description>&lt;!--!*#--&gt;Is it that you run a Bash on an HP-UX box from which you require this data?&lt;BR /&gt;&lt;BR /&gt;You could possibly tinker up your command prompt as a wild mixture of Bash PROMPTING (see man bash) and the HP-UX implementation of the "who" command (note, the GNU/Linux who has different syntax).&lt;BR /&gt;Maybe something like this (where I haven't converted the login's originating remote hostname into its IP as demanded (you could use HP-UX's getip command, or dig, host, nslookup etc to this end) would do?&lt;BR /&gt;&lt;BR /&gt;PS1='[\t '$(who -mR|awk '{sub("\(","",$NF);sub("\)","",$NF);print$1"&amp;lt;="$NF}')']\n\$ '</description>
      <pubDate>Thu, 28 Apr 2011 06:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash-history/m-p/4782161#M640974</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-04-28T06:30:08Z</dc:date>
    </item>
  </channel>
</rss>

