<?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: unix command sanity check in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213941#M465433</link>
    <description>To Steven S: The company I'm doing this temp job for requires that I be as non-specific as I have been. It is NOT how I would like to present and talk about the issue. When working for someone else, I simply respect their wishes, even if it means it's that much harder to solve a problem. I asked a simple question, "please run a cmd and copy me with what your output looks like". Instead you answered my question with more questions. Not helpful, but thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;To Dennis H: Yes Dennis, I know there's a missing single quote. One of the hazards of typing too fast, but you've never done that, correct?&lt;BR /&gt;&lt;BR /&gt;Your reply could have been much more helpful if you had attached whatever output you were getting from a screenshot or cut-and-paste, whether it was good, bad or otherwise. But thanks, as it was more helpful than some of the other replies in terms of actually trying the cmd to get some output.&lt;BR /&gt;</description>
    <pubDate>Sat, 12 Dec 2009 12:24:56 GMT</pubDate>
    <dc:creator>john guardian</dc:creator>
    <dc:date>2009-12-12T12:24:56Z</dc:date>
    <item>
      <title>unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213922#M465414</link>
      <description>could someone please look at the attached text doc and execute the awk command I placed in the attachment and let me know what you get for screen output.&lt;BR /&gt;&lt;BR /&gt;Greatly appreciated. Thanks.</description>
      <pubDate>Fri, 11 Dec 2009 12:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213922#M465414</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T12:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213923#M465415</link>
      <description>No attachment</description>
      <pubDate>Fri, 11 Dec 2009 12:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213923#M465415</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-12-11T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213924#M465416</link>
      <description>Sorry. The attachment was there. Let's try this again.&lt;BR /&gt;&lt;BR /&gt;Thx.</description>
      <pubDate>Fri, 11 Dec 2009 13:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213924#M465416</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213925#M465417</link>
      <description>&lt;!--!*#--&gt;I tried this command on a test server, below is the exact o/p I got:&lt;BR /&gt;&lt;BR /&gt;root# cmd=`which java`&lt;BR /&gt;root# echo `/usr/bin/awk '/assemblyIdentity version=/ {print $2} $cmd`&lt;BR /&gt;&lt;BR /&gt;awk: Field $() is not correct.&lt;BR /&gt; The input line number is 1.&lt;BR /&gt; The source line number is 1.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 13:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213925#M465417</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-12-11T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213926#M465418</link>
      <description>OK. So if that's an incorrect usage, what would be the correct form?&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 13:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213926#M465418</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T13:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213927#M465419</link>
      <description>&lt;!--!*#--&gt;Hi Again,&lt;BR /&gt;&lt;BR /&gt;Looks like the command is meant to find line containing "assemblyIdentity version=" from the output of "which java".&lt;BR /&gt;&lt;BR /&gt;# which java &amp;gt; /tmp/a1&lt;BR /&gt;# awk '/assemblyIdentity version=/ {print $2}' /tmp/a1&lt;BR /&gt;# rm /tmp/a1&lt;BR /&gt;&lt;BR /&gt;This should give same results.</description>
      <pubDate>Fri, 11 Dec 2009 13:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213927#M465419</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-12-11T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213928#M465420</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] what would be the correct form?&lt;BR /&gt;&lt;BR /&gt;What are you trying to do?</description>
      <pubDate>Fri, 11 Dec 2009 13:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213928#M465420</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-11T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213929#M465421</link>
      <description>I'm attempting to acquire the application major/minor version number w/o having to execute the java -version cmd.</description>
      <pubDate>Fri, 11 Dec 2009 14:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213929#M465421</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213930#M465422</link>
      <description>Note to RK:&lt;BR /&gt;&lt;BR /&gt;Did you actually try to run the cmd you sent?&lt;BR /&gt;&lt;BR /&gt;I'm getting nothing back from it?&lt;BR /&gt;&lt;BR /&gt;If you did, can you send me the cmd used along with the screen output?</description>
      <pubDate>Fri, 11 Dec 2009 14:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213930#M465422</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T14:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213931#M465423</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I'm attempting to acquire the application&lt;BR /&gt;&amp;gt; major/minor version number w/o having to&lt;BR /&gt;&amp;gt; execute the java -version cmd.&lt;BR /&gt;&lt;BR /&gt;Huh?  What is "the application"?  Java&lt;BR /&gt;itself, or some Java program?  If you want&lt;BR /&gt;the Java version, what's wrong with "java&lt;BR /&gt;-version"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What are you trying to do?&lt;BR /&gt;&lt;BR /&gt;Still a mystery.  What, exactly, are you&lt;BR /&gt;trying to do?</description>
      <pubDate>Fri, 11 Dec 2009 14:19:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213931#M465423</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-11T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213932#M465424</link>
      <description>Why not run the java cmd for the version?&lt;BR /&gt;&lt;BR /&gt;That's a very good question. Long story short is that some cellar-dweller mushroom-head of a Solaris Admin in the Montgomery, AL area reported a potential security issue (root priv escalation) when running ANY command, not just JAVA with the -v, -V, -version or version arg options, etc. So management all over the company is jumping on this OMIGOD bandwagon and all the admins here need to find a reliable alternative to check apps, like java, for versioning across our entire enterprise. Not just HP-UX though. We also have other vendor 'Nix products as well.&lt;BR /&gt;&lt;BR /&gt;I just happen to have responsibility for the JAVA app(s) that run across all computer systems.&lt;BR /&gt;&lt;BR /&gt;Thx.</description>
      <pubDate>Fri, 11 Dec 2009 14:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213932#M465424</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213933#M465425</link>
      <description>&lt;!--!*#--&gt;Still rivaling mud in the clarity department.&lt;BR /&gt;&lt;BR /&gt;So, you're trying to determine the versions&lt;BR /&gt;of some set of programs of some type or other&lt;BR /&gt;without actually running those programs?&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;This whole thing sounds like nonsense, by the&lt;BR /&gt;way.  If you're worried about, say, a&lt;BR /&gt;non-root user running, say, "java -version",&lt;BR /&gt;and blowing up the world, then you may as&lt;BR /&gt;well just turn off all your computers.&lt;BR /&gt;&lt;BR /&gt;      man strings&lt;BR /&gt;&lt;BR /&gt;(On the bright side, "strings" doesn't seem&lt;BR /&gt;to have a "-v"-like option, at least on&lt;BR /&gt;HP-UX.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] reported [...]&lt;BR /&gt;&lt;BR /&gt;Sounds like an interesting report.  Goofy,&lt;BR /&gt;but interesting.</description>
      <pubDate>Fri, 11 Dec 2009 14:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213933#M465425</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-11T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213934#M465426</link>
      <description>No. The worry isn't that a normal user would do this. Just that root would. The thought is that the binary might actually be a malicious root toolkit that root activates when running the cmd to interrogate it for the version.</description>
      <pubDate>Fri, 11 Dec 2009 14:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213934#M465426</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T14:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213935#M465427</link>
      <description>BTW: strings might work great for "some" of our systems. But others use backporting to update the executable, so strings wouldn't pick that up as most if not all vendors who use backporting don't bother to update the version, and thus the version string reported by the strings command.&lt;BR /&gt;&lt;BR /&gt;That's why I'm looking for a single "best" approach to making the job easier and more generic.</description>
      <pubDate>Fri, 11 Dec 2009 14:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213935#M465427</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T14:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213936#M465428</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] Just that root would. [...]&lt;BR /&gt;&lt;BR /&gt;So, not really a "root priv escalation"&lt;BR /&gt;problem, more of a root priv exploitation&lt;BR /&gt;problem.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] don't bother to update the version,&lt;BR /&gt;&amp;gt; and thus the version string reported by the&lt;BR /&gt;&amp;gt; strings command.&lt;BR /&gt;&lt;BR /&gt;And if someone patches a program to insert&lt;BR /&gt;this greatly feared exploit, then you _would_&lt;BR /&gt;expect to find a changed version?  Really?&lt;BR /&gt;&lt;BR /&gt;It sounds to me as if your actual concern is&lt;BR /&gt;(or should be) the integrity of your files.&lt;BR /&gt;This can sometimes be verified using&lt;BR /&gt;checksums or direct comparison with&lt;BR /&gt;known-good files.  I can't imagine how&lt;BR /&gt;extracting some kind of version string from&lt;BR /&gt;any executable will reveal anything of any&lt;BR /&gt;great value.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; That's why I'm looking for a single "best"&lt;BR /&gt;&amp;gt; approach to making the job easier and more&lt;BR /&gt;&amp;gt; generic.&lt;BR /&gt;&lt;BR /&gt;Again, good luck.  Unless I completely&lt;BR /&gt;misunderstand your goal, you would seem to be&lt;BR /&gt;doomed.  (To either hard work, or meaningless&lt;BR /&gt;results.  Probably both.)</description>
      <pubDate>Fri, 11 Dec 2009 15:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213936#M465428</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-11T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213937#M465429</link>
      <description>we have to check versions from time to time when upgrading OTHER apps.&lt;BR /&gt;&lt;BR /&gt;Checksums are great, but that requires ALOT of manual labor locally on every machine. &lt;BR /&gt;&lt;BR /&gt;Look, I can't go into detailed explanations here because there's a book's worth of info I'd have to tell you.&lt;BR /&gt;&lt;BR /&gt;Rather than knocking or wondering why I'm trying to get this info w/o using the above described method, could you offer any other positive, tried and true means of doing so?&lt;BR /&gt;&lt;BR /&gt;I'm looking for solutions, not discussions within an encounter group.&lt;BR /&gt;&lt;BR /&gt;Thx&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 15:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213937#M465429</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-11T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213938#M465430</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Checksums are great, but that requires ALOT&lt;BR /&gt;&amp;gt; of manual labor locally on every machine. &lt;BR /&gt;&lt;BR /&gt;Why "manual" labor?  Why not a shell script,&lt;BR /&gt;or some other automated scheme?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Look, I can't go into detailed explanations&lt;BR /&gt;&amp;gt; here [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] could you offer any other positive,&lt;BR /&gt;&amp;gt; tried and true means of doing so?&lt;BR /&gt;&lt;BR /&gt;So, you want precise solutions, but you don't&lt;BR /&gt;want to provide a precise description of the&lt;BR /&gt;problem?  My psychic powers are too weak to&lt;BR /&gt;be of much use in such a situation.&lt;BR /&gt;&lt;BR /&gt;From your description so far, it's unclear to&lt;BR /&gt;me exactly what you want, partly because what&lt;BR /&gt;you seem to be looking for would seem to me&lt;BR /&gt;to have approximately no value.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I'm looking for solutions, not discussions&lt;BR /&gt;&amp;gt; within an encounter group.&lt;BR /&gt;&lt;BR /&gt;You may need what you're not seeking more&lt;BR /&gt;than what you are.</description>
      <pubDate>Fri, 11 Dec 2009 21:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213938#M465430</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-11T21:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213939#M465431</link>
      <description>&amp;gt;If you did, can you send me the cmd used along with the screen output?&lt;BR /&gt;&lt;BR /&gt;After fixing the missing single quote I get more awk errors:&lt;BR /&gt;awk '/assemblyIdentity version=/ {print $2}' $(whence java)&lt;BR /&gt;awk: Input line  cannot be longer than 3,000 bytes.&lt;BR /&gt; The input line number is 61. The file is /opt/java1.4/jre/bin/java.&lt;BR /&gt; The source line number is 1.</description>
      <pubDate>Sat, 12 Dec 2009 06:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213939#M465431</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-12T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213940#M465432</link>
      <description>&amp;gt;If you did, can you send me the cmd used along with the screen output?&lt;BR /&gt;&lt;BR /&gt;After fixing the missing single quote I get more awk errors:&lt;BR /&gt;awk '/assemblyIdentity version=/ {print $2}' $(whence java)&lt;BR /&gt;awk: Input line  cannot be longer than 3,000 bytes.&lt;BR /&gt; The input line number is 61. The file is /opt/java1.4/jre/bin/java.&lt;BR /&gt; The source line number is 1.&lt;BR /&gt;&lt;BR /&gt;strings -a doesn't find anything either.</description>
      <pubDate>Sat, 12 Dec 2009 06:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213940#M465432</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-12T06:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: unix command sanity check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213941#M465433</link>
      <description>To Steven S: The company I'm doing this temp job for requires that I be as non-specific as I have been. It is NOT how I would like to present and talk about the issue. When working for someone else, I simply respect their wishes, even if it means it's that much harder to solve a problem. I asked a simple question, "please run a cmd and copy me with what your output looks like". Instead you answered my question with more questions. Not helpful, but thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;To Dennis H: Yes Dennis, I know there's a missing single quote. One of the hazards of typing too fast, but you've never done that, correct?&lt;BR /&gt;&lt;BR /&gt;Your reply could have been much more helpful if you had attached whatever output you were getting from a screenshot or cut-and-paste, whether it was good, bad or otherwise. But thanks, as it was more helpful than some of the other replies in terms of actually trying the cmd to get some output.&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Dec 2009 12:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-command-sanity-check/m-p/5213941#M465433</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2009-12-12T12:24:56Z</dc:date>
    </item>
  </channel>
</rss>

