<?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: rng failure in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274534#M179250</link>
    <description>Are there any errors reported in the swagent.log file? Also are you getting the same error with /dev/random?</description>
    <pubDate>Wed, 12 May 2004 16:12:05 GMT</pubDate>
    <dc:creator>Navin Bhat_2</dc:creator>
    <dc:date>2004-05-12T16:12:05Z</dc:date>
    <item>
      <title>rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274533#M179249</link>
      <description>the strong random number generator is not working on one of our HP-UX 11i servers following a reboot.  Attempts to get random numbers from/dev/urandom fails.  For example, if I do "cat /dev/urandom" instead of a string of random characters I get the error message "Cat: Cannon open /dev/urandom: Invalid argument"  I have unloaded and reloaded the rng module to no effect.&lt;BR /&gt;&lt;BR /&gt;This is the output from kmadmin -Q rng:&lt;BR /&gt;&lt;BR /&gt;Module Name             rng&lt;BR /&gt;Module ID               2&lt;BR /&gt;Module Path             /stand/dlkm/mod.d/rng&lt;BR /&gt;Status                  LOADED&lt;BR /&gt;Size                    57344&lt;BR /&gt;Base Address            0x178e000&lt;BR /&gt;BSS Size                0&lt;BR /&gt;BSS Base Address        0x0&lt;BR /&gt;Hold Count              1&lt;BR /&gt;Dependent Count         0&lt;BR /&gt;Unload Delay            0 seconds&lt;BR /&gt;Description             rng - random number generator for the /dev/[u]random interface&lt;BR /&gt;Type                    WSIO&lt;BR /&gt;Block Major             -1&lt;BR /&gt;Character Major         95&lt;BR /&gt;Flags                   b5&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2004 15:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274533#M179249</guid>
      <dc:creator>Joe Long</dc:creator>
      <dc:date>2004-05-12T15:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274534#M179250</link>
      <description>Are there any errors reported in the swagent.log file? Also are you getting the same error with /dev/random?</description>
      <pubDate>Wed, 12 May 2004 16:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274534#M179250</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-05-12T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274535#M179251</link>
      <description>Also try to tusc the cat aommand maybe we can see something useful there.</description>
      <pubDate>Wed, 12 May 2004 16:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274535#M179251</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-05-12T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274536#M179252</link>
      <description>I get a somewhat different error with /dev/random:&lt;BR /&gt;&lt;BR /&gt;jlong@bp-prod: /home/jlong # cat /dev/random &amp;gt; random.txt&lt;BR /&gt;cat: read error: No such file or directory&lt;BR /&gt;&lt;BR /&gt;However, the directory is there:&lt;BR /&gt;&lt;BR /&gt;jlong@bp-prod: /home/jlong # ll /dev/random&lt;BR /&gt;cr--r--r--   1 bin        bin         79 0x000000 Aug 27  2003 /dev/random&lt;BR /&gt;&lt;BR /&gt;But I believe your suggestion of checking the swagent.log provided the answer.  The depot I installed at the time of the reboot recreated the rng module.  I have another maintenance window coming up, and I'll remove and reinstall the KRMG11i depot and see if that corrects the problem.  Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2004 16:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274536#M179252</guid>
      <dc:creator>Joe Long</dc:creator>
      <dc:date>2004-05-12T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274537#M179253</link>
      <description>I see what is wrong. You kmadmin -Q rng reports a Character Major device number of 95 but your /dev/urandom and /dev/random have a major device number of 79. &lt;BR /&gt;&lt;BR /&gt;rm /dev/random&lt;BR /&gt;rm /dev/urandom&lt;BR /&gt;&lt;BR /&gt;mknod /dev/random c 95 0x00&lt;BR /&gt;mknod /dev/random c 95 0x01&lt;BR /&gt;&lt;BR /&gt;You can also simply cd to /sbin/init.d and&lt;BR /&gt;./krng stop&lt;BR /&gt;./krng start&lt;BR /&gt;&lt;BR /&gt;By the way, these devices do not produce random strings but rather random binary data so you might want to do something like this:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/random bs=4 count=1 | od -c&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2004 17:12:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274537#M179253</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-12T17:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274538#M179254</link>
      <description>That did it  ... thank you.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2004 17:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274538#M179254</guid>
      <dc:creator>Joe Long</dc:creator>
      <dc:date>2004-05-12T17:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: rng failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274539#M179255</link>
      <description>Ooops, &lt;BR /&gt;&lt;BR /&gt;I just noticed that&lt;BR /&gt;mknod /dev/random c 95 0x01&lt;BR /&gt;&lt;BR /&gt;should be:&lt;BR /&gt;mknod /dev/urandom c 95 0x01&lt;BR /&gt;&lt;BR /&gt;but you probably spotted that. The other mknod was correct. &lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2004 20:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rng-failure/m-p/3274539#M179255</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-12T20:11:01Z</dc:date>
    </item>
  </channel>
</rss>

