<?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: System Serial Number in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081721#M87352</link>
    <description>What version of the OS are you running?  If the serial number is properly registered in the console variable for it there are a couple of ways to get it from DCL:&lt;BR /&gt;&lt;BR /&gt;$SERIAL_NUMBER: subroutine&lt;BR /&gt;$ set noon&lt;BR /&gt;$ synum = f$getsyi("SERIAL_NUMBER")&lt;BR /&gt;$ serial_number = synum&lt;BR /&gt;$ if version.lts."V7.3-1"&lt;BR /&gt;$then&lt;BR /&gt;$ if f$type(synum).nes.""&lt;BR /&gt;$ then&lt;BR /&gt;$ if synum.nes.""&lt;BR /&gt;$ then&lt;BR /&gt;$ byte = 1&lt;BR /&gt;$ serial_number = " "&lt;BR /&gt;$Byte_Loop:&lt;BR /&gt;$ nxt_byte = f$extract(2*(byte-1),2,synum)&lt;BR /&gt;$ byte = 1+byte&lt;BR /&gt;$ if nxt_byte.eqs."00" then $ goto Byte_Loop&lt;BR /&gt;$ if nxt_byte.nes.""&lt;BR /&gt;$ then ! non-null byte&lt;BR /&gt;$ nxt_byte_char[0,8] = %X'nxt_byte'&lt;BR /&gt;$ serial_number = nxt_byte_char+serial_number&lt;BR /&gt;$! show symbol serial_number&lt;BR /&gt;$ goto Byte_Loop&lt;BR /&gt;$ endif ! non-null byte&lt;BR /&gt;$ endif ! synum not null&lt;BR /&gt;$ endif ! synum exists&lt;BR /&gt;$endif  ! version number&lt;BR /&gt;$&lt;BR /&gt;$ serial_number == f$edit(serial_number,"TRIM")&lt;BR /&gt;$EXIT:&lt;BR /&gt;$ exit&lt;BR /&gt;$endsubroutine&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Nov 2007 18:17:57 GMT</pubDate>
    <dc:creator>Robert_Boyd</dc:creator>
    <dc:date>2007-11-27T18:17:57Z</dc:date>
    <item>
      <title>System Serial Number</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081719#M87350</link>
      <description>I have a Digital PWS 500au running OpenVMS. Is there a simple command that can be run to display the serial number of the system?</description>
      <pubDate>Tue, 27 Nov 2007 17:49:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081719#M87350</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2007-11-27T17:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: System Serial Number</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081720#M87351</link>
      <description>Yes:  "Hey, you!  Turn that thing over and&lt;BR /&gt;show me what it says on the label!"&lt;BR /&gt;&lt;BR /&gt;This assumes that you have a competent&lt;BR /&gt;assistant, but you could also do it yourself.&lt;BR /&gt;&lt;BR /&gt;Some systems can do things from the console,&lt;BR /&gt;but the label is authoritative.</description>
      <pubDate>Tue, 27 Nov 2007 18:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081720#M87351</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-27T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: System Serial Number</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081721#M87352</link>
      <description>What version of the OS are you running?  If the serial number is properly registered in the console variable for it there are a couple of ways to get it from DCL:&lt;BR /&gt;&lt;BR /&gt;$SERIAL_NUMBER: subroutine&lt;BR /&gt;$ set noon&lt;BR /&gt;$ synum = f$getsyi("SERIAL_NUMBER")&lt;BR /&gt;$ serial_number = synum&lt;BR /&gt;$ if version.lts."V7.3-1"&lt;BR /&gt;$then&lt;BR /&gt;$ if f$type(synum).nes.""&lt;BR /&gt;$ then&lt;BR /&gt;$ if synum.nes.""&lt;BR /&gt;$ then&lt;BR /&gt;$ byte = 1&lt;BR /&gt;$ serial_number = " "&lt;BR /&gt;$Byte_Loop:&lt;BR /&gt;$ nxt_byte = f$extract(2*(byte-1),2,synum)&lt;BR /&gt;$ byte = 1+byte&lt;BR /&gt;$ if nxt_byte.eqs."00" then $ goto Byte_Loop&lt;BR /&gt;$ if nxt_byte.nes.""&lt;BR /&gt;$ then ! non-null byte&lt;BR /&gt;$ nxt_byte_char[0,8] = %X'nxt_byte'&lt;BR /&gt;$ serial_number = nxt_byte_char+serial_number&lt;BR /&gt;$! show symbol serial_number&lt;BR /&gt;$ goto Byte_Loop&lt;BR /&gt;$ endif ! non-null byte&lt;BR /&gt;$ endif ! synum not null&lt;BR /&gt;$ endif ! synum exists&lt;BR /&gt;$endif  ! version number&lt;BR /&gt;$&lt;BR /&gt;$ serial_number == f$edit(serial_number,"TRIM")&lt;BR /&gt;$EXIT:&lt;BR /&gt;$ exit&lt;BR /&gt;$endsubroutine&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Nov 2007 18:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081721#M87352</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2007-11-27T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: System Serial Number</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081722#M87353</link>
      <description>That is the number I keep giving to HP but they can't find it in the db.  Maybe its not eligible for maintenance...</description>
      <pubDate>Tue, 27 Nov 2007 18:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081722#M87353</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2007-11-27T18:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: System Serial Number</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081723#M87354</link>
      <description>question answered</description>
      <pubDate>Tue, 27 Nov 2007 18:26:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-serial-number/m-p/5081723#M87354</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2007-11-27T18:26:05Z</dc:date>
    </item>
  </channel>
</rss>

