<?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: Help writing a com file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840613#M80840</link>
    <description>Miles,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Every now and then, we experience some bugcheck dumps where the users are exceeding their ENQLM.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;If your systems are crashing, could you provide some more information, like - for OpenVMS Alpha - the output of $ TYPE CLUE$HISTORY or even a full CLUE file from CLUE$COLLECT:CLUE$node_ddmmyy_hmm.LIS ?&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
    <pubDate>Fri, 11 Aug 2006 02:42:41 GMT</pubDate>
    <dc:creator>Volker Halle</dc:creator>
    <dc:date>2006-08-11T02:42:41Z</dc:date>
    <item>
      <title>Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840587#M80814</link>
      <description>I need to put together a SPECIAL_SUB procedure to parse out the ENQLM of ALL our accounts nationwide and return a list of those with 32767 or greater (including our system-level accounts.) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone help me to write a simple com file so I can use it on all of our 90+ nodes? Is it as simple as that? Your help would be greatly appreciated! &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 14:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840587#M80814</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T14:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840588#M80815</link>
      <description>I would use the freeware package SCANUAF.  It can search multiple SYSUAF.DATs for user fields &amp;lt;,=,&amp;gt; to a given value.</description>
      <pubDate>Wed, 09 Aug 2006 15:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840588#M80815</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2006-08-09T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840589#M80816</link>
      <description>Isn't there a simple dcl procedure that someone could write to do these things and execute them ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840589#M80816</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840590#M80817</link>
      <description>I would suggest looking into using the GETUAI tool.  You could then call each account and evaluate the output.&lt;BR /&gt;&lt;BR /&gt;Another simple way could also be to do the following search:&lt;BR /&gt;mc authorize list */full&lt;BR /&gt;sea  sysuaf.lis username,Enqlm&lt;BR /&gt;&lt;BR /&gt;That output then has the Username and Enqlm values.  You could output the data to a file and read 2 lines at a time.  Then use string manipulations to pull out the values on enqlm &amp;gt; 32767.&lt;BR /&gt;&lt;BR /&gt;Quick example:&lt;BR /&gt;mc authorize list */full&lt;BR /&gt;sea  sysuaf.lis username,Enqlm/out=x.x&lt;BR /&gt;&lt;BR /&gt;Create file: x.com&lt;BR /&gt;$ set noon&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt; enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767 &lt;BR /&gt;$  then &lt;BR /&gt;$   username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$   write sys$output "''username' - ''enq'"&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840590#M80817</guid>
      <dc:creator>Peter Zeiszler</dc:creator>
      <dc:date>2006-08-09T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840591#M80818</link>
      <description>Can you be more speific? Sorry I am still learning. &lt;BR /&gt;&lt;BR /&gt;I created a come file called enqlm_fix.com&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$ Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt;  enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767&lt;BR /&gt;$ then&lt;BR /&gt;$ username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$ write sys$output "''username' - ''enq'"&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;What file name do I put in for the x.x&lt;BR /&gt;&lt;BR /&gt;Also, when I am done can I run it and how? &lt;BR /&gt;If this works I plan to copy thos to all our nodes?&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840591#M80818</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840592#M80819</link>
      <description>The in_file x.x is the output file I created when I did the search. Is that correct?&lt;BR /&gt;&lt;BR /&gt;Once I finish do I do an @enqlm_fix.com&lt;BR /&gt;or a submit? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840592#M80819</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840593#M80820</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;Here is what I did on our Test Server. &lt;BR /&gt;&lt;BR /&gt;In my home directory USRDSK1:[BLS]&lt;BR /&gt;I did a mc authorize list */full&lt;BR /&gt;Which produced a sysuaf.lis &lt;BR /&gt; &lt;BR /&gt;Directory DUA1:[BLS] &lt;BR /&gt;SYSUAF.LIS;1 201/210       9-AUG-2006 15:24&lt;BR /&gt;&lt;BR /&gt;Then I did a:&lt;BR /&gt;sea sysuaf.lis username,Enqlm/out=x.x&lt;BR /&gt;Which produced a x.x file in my home directory as well&lt;BR /&gt;&lt;BR /&gt;I created a come file called enqlm_fix.com&lt;BR /&gt;which is also in my home directory as well. &lt;BR /&gt;&lt;BR /&gt;typ enqlm_fix.com&lt;BR /&gt;$ set noon&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$ Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt;  enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767&lt;BR /&gt;$ then&lt;BR /&gt;$ username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$ write sys$output "''username' - ''enq'"&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;Now, what do I do? Do I @enqlm_fix.com&lt;BR /&gt;&lt;BR /&gt;or submit it? &lt;BR /&gt;&lt;BR /&gt;Let me know!&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840593#M80820</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840594#M80821</link>
      <description>&lt;!--!*#--&gt;Miles,&lt;BR /&gt;&lt;BR /&gt;     Welcome to VMS.  Since nobody has replied yet.  I will try to answer your last question:&lt;BR /&gt;&lt;BR /&gt;"Once I finish do I do an @enqlm_fix.com or a submit?"&lt;BR /&gt;&lt;BR /&gt;You can execute it either way.  The way the command procedure is currently written, it will expect the file X.X to be in the default directory.  You can combine the external commands into the command procedure as follows:&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ mc authorize list */full&lt;BR /&gt;$ sea sysuaf.lis username,Enqlm/out=x.x&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$ Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt;$ enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767&lt;BR /&gt;$ then&lt;BR /&gt;$ username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$ write sys$output "''username' - ''enq'"&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;     If you submit the procedure, then the output will be in the log file.  By default it is created in the Sys$Login directory of the user with the same name as the command procedure and an extension of .Log.  If you wish to direct it elsewhere or change the name, you can specify /Log=disk:[directory]filename.ext on the submit command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Wed, 09 Aug 2006 15:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840594#M80821</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2006-08-09T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840595#M80822</link>
      <description>Fantastic! Thanks! I will try it now! &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840595#M80822</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840596#M80823</link>
      <description>Sorry, &lt;BR /&gt;&lt;BR /&gt;One more question? What will this com file do exactly? Is it going to chane the values of the enqlm or just do a listing? &lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2006 15:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840596#M80823</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840597#M80824</link>
      <description>It will just give a listing of usernames and enqlm where the enqlm is greater than the 32767.</description>
      <pubDate>Wed, 09 Aug 2006 16:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840597#M80824</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2006-08-09T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840598#M80825</link>
      <description>Oh, &lt;BR /&gt;&lt;BR /&gt;I think I am missing an else in the command procedure? Where does that go? &lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ mc authorize list */full&lt;BR /&gt;$ sea sysuaf.lis username,32767/out=x.x&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$ Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt;$ enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767&lt;BR /&gt;$ then&lt;BR /&gt;$ username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$ write sys$output "''username' - ''enq'"&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$ close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit</description>
      <pubDate>Wed, 09 Aug 2006 16:32:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840598#M80825</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-09T16:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840599#M80826</link>
      <description>&lt;!--!*#--&gt;Actually, it was an endif that was missing.  I have inserted it in the code below and indented the lines between the if and endif.&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ mc authorize list */full&lt;BR /&gt;$ sea sysuaf.lis username,32767/out=x.x&lt;BR /&gt;$ open/read/err=close_file in_file x.x&lt;BR /&gt;$ Next_record:&lt;BR /&gt;$ read/end_of_file=close_files in_file user_rec&lt;BR /&gt;$ read/end_of_file=close_files in_file record1&lt;BR /&gt;$ enq = f$element(3," ",f$edit(record1,"compress"))&lt;BR /&gt;$ if enq .ge. 32767&lt;BR /&gt;$ then&lt;BR /&gt;$   username = f$element(1," ",f$edit(user_rec,"compress"))&lt;BR /&gt;$   write sys$output "''username' - ''enq'"&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto next_record&lt;BR /&gt;$!&lt;BR /&gt;$ close_files:&lt;BR /&gt;$ close in_file&lt;BR /&gt;$ exit</description>
      <pubDate>Wed, 09 Aug 2006 16:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840599#M80826</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2006-08-09T16:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840600#M80827</link>
      <description>Miles,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  What will this com file do exactly? &lt;BR /&gt;&lt;BR /&gt;  It will parse your SYSUAF listing and reveal the usernames with ENQLM = 32767&lt;BR /&gt;&lt;BR /&gt;No offence intended, but if you can't work that out, you really shouldn't be downloading random command procedures from strangers and executing them. Especially from privileged accounts when the apparent purpose is to manipulate authorization data. Who knows what they might do?&lt;BR /&gt;&lt;BR /&gt;I'd suggest rather than writing command procedures for such a specific request, you find a more generic solution to your overall issue of user management. For example, if you have 90+ nodes, perhaps you should be using the OpenVMS Management Station to manage your users? A nice GUI interface which can potentially show you all your users across all systems in one window. I think the version I'm using is fairly old - it can sort users on various fields, maybe a later one can do it on ENQLM?&lt;BR /&gt;&lt;BR /&gt;Another option is to export your UAF data into a CSV file, then you can load it into Excel, sort on ENQLM, and you've answered your specific question easily. You can also answer a huge variety of similar questions, without having to write another procedure. &lt;BR /&gt;A google search "SYSUAF EXCEL" will quickly find several possibilities.</description>
      <pubDate>Wed, 09 Aug 2006 16:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840600#M80827</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-08-09T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840601#M80828</link>
      <description>Thanks for all your help. Just one more question. How do I parse all those output file I created from all of our nodes into one file. &lt;BR /&gt;&lt;BR /&gt;I have about 70 file here is an example&lt;BR /&gt;&lt;BR /&gt;TEAM07_ENQLM_32767.DOC&lt;BR /&gt;TEAM08_ENQLM_32767.DOC&lt;BR /&gt;NASHVI_ENQLM_32767.DOC&lt;BR /&gt;   ETC...&lt;BR /&gt;&lt;BR /&gt;I know how to append them to one file, the problem is, how do I include the node names for each file in the appended file. What I will have is a list like this. Here is an example&lt;BR /&gt;&lt;BR /&gt;Username: SIKORSKIK                        Owner:&lt;BR /&gt;Username: SOLLERSD                         Owner:&lt;BR /&gt;Username: SQLSRV$SRV                       Owner:&lt;BR /&gt;Username: SUPUSER                          Owner:&lt;BR /&gt;Username: SYSTEM                           Owner:  SYSTEM MANAGER&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYSTEST                          Owner:  SYSTEST-UETP&lt;BR /&gt;Username: SYSTEST_CLIG                     Owner:  SYSTEST-UETP&lt;BR /&gt;Username: SYS_ANDYW                        Owner:  Sys - Andy Winter&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYS_DAVIDP                       Owner:  Sys - David Plowman&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYS_KURTH                        Owner:  Sys - Kurt Hyde&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYS_MILESO                       Owner:  Sys - Miles Ostojic&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYS_PAULP                        Owner:  Sys - Paul Putong&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: SYS_STEVEO                       Owner:  Sys - Steve Olson&lt;BR /&gt;CPU:        (none)  Enqlm:     32767  Pgflquo:     750000&lt;BR /&gt;Username: TAYLORE                          Owner:&lt;BR /&gt;Username: UPLOAD                           Owner:&lt;BR /&gt;&lt;BR /&gt;This doesn't give the name of the Node???&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Aug 2006 08:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840601#M80828</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-10T08:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840602#M80829</link>
      <description>Okay, I got a listing in one file. It is attached. Now what I have to do is the following:&lt;BR /&gt;&lt;BR /&gt;I need to bump them down.  They should at least be bumped down to (value-1).&lt;BR /&gt;&lt;BR /&gt;Do I have to login eacf of our systems and do this manually or is there a quicker and better way to do this? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Aug 2006 11:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840602#M80829</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-10T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840603#M80830</link>
      <description>I know the command to chage the enqlm is &lt;BR /&gt;&lt;BR /&gt;mcr authorize &lt;BR /&gt;modify sys_miles/enqlm=32766&lt;BR /&gt;&lt;BR /&gt;How do I automate this to execute on all nodes without having to login on every node and doing this command manually? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840603#M80830</guid>
      <dc:creator>vmsserbo</dc:creator>
      <dc:date>2006-08-10T12:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840604#M80831</link>
      <description>Miles,&lt;BR /&gt;&lt;BR /&gt;you could write DCL procedures for each node, which contain the necessary MODIFY user/ENQLM=nnn commands for each user on that node. You can generate those .COM files from your user listing.&lt;BR /&gt;&lt;BR /&gt;You can then COPY these command files to each individual node and use SUBMIT/REMOTE to submit that command file to the SYS$BATCH queue on that node.&lt;BR /&gt;&lt;BR /&gt;Example: xxx_ENQLM.COM (for node XXX)&lt;BR /&gt;&lt;BR /&gt;$ SET DEF SYS$SYSTEM&lt;BR /&gt;$ RUN AUTHORIZE&lt;BR /&gt;MOD user1/ENQLM=32766&lt;BR /&gt;MOD user2/ENQLM=32766&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;$ COPY xxx_enqlm.com xxx"priv_user pwd"::&lt;BR /&gt;$ SUBMIT/REMOTE xx"priv_user pwd"::xxx_ENQLM.COM&lt;BR /&gt;&lt;BR /&gt;If appropriate DECnet proxies have been set up on the remote nodes, you could do all that without having to provide username/pwd.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 10 Aug 2006 12:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840604#M80831</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-08-10T12:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840605#M80832</link>
      <description>&lt;!--!*#--&gt;You should know what mechanisme you have to start something on the other nodes (decnet task, batch job, management console software, plop a file in an NFS direcory, whatever).&lt;BR /&gt;Probably the same mechanisme you used to get the data.&lt;BR /&gt;&lt;BR /&gt;Now I would create a DCL or PERL script to read the list you attached and generated a script for each node.&lt;BR /&gt;&lt;BR /&gt;In perl that would be something like:&lt;BR /&gt;&lt;BR /&gt;$create per_node.pl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;&lt;BR /&gt;my ($node,$user, $enq, $file, %files, %records);&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;  ($node,$user, $enq) = split /\s+-\s+/;&lt;BR /&gt;  if ($enq) {&lt;BR /&gt;     if (!defined ($files{$node})) {&lt;BR /&gt;        $file = $node . ".tmp";&lt;BR /&gt; open $files{$node}, "&amp;gt;$node.tmp" or die "could not create $file";&lt;BR /&gt; print {$files{$node}} "MCR AUTORIZE\n";&lt;BR /&gt;     }&lt;BR /&gt;     $records{$node}++;&lt;BR /&gt;     $enq--;&lt;BR /&gt;     print {$files{$node}} "MODIFY $user/ENQL=$enq\n";&lt;BR /&gt;     }&lt;BR /&gt;  }&lt;BR /&gt;$enq = 0;&lt;BR /&gt;foreach $node (sort keys %files) {&lt;BR /&gt;  close $files{$node};&lt;BR /&gt;  print "Node $node, $records{$node} records.\n";&lt;BR /&gt;  $enq++;&lt;BR /&gt;  }&lt;BR /&gt;print "$enq scripts generated.\n";&lt;BR /&gt;$&lt;BR /&gt;$perl per_node.pl all_nodes_all_users.txt&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;Node VANCOU, 28 records.&lt;BR /&gt;Node VENTUR, 28 records.&lt;BR /&gt;Node VISALI, 28 records.&lt;BR /&gt;Node WASHIN, 28 records.&lt;BR /&gt;Node WHITEP, 28 records.&lt;BR /&gt;68 scripts generated.&lt;BR /&gt;&lt;BR /&gt;btw 1....&lt;BR /&gt;&lt;BR /&gt;You can run that script on your windoze or unix box if your VMS system does not (yet) have perl. I did! :-)&lt;BR /&gt;&lt;BR /&gt;btw 2....&lt;BR /&gt;&lt;BR /&gt;In perl it would be trival to make sure the ENQ was the same for the same username (min or max) accross all nodes. &lt;BR /&gt;As you read, only remember node-user combos and remember the max(enq) for each unique user.&lt;BR /&gt;When all is read cull the data from the array and write the output files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840605#M80832</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-08-10T12:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help writing a com file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840606#M80833</link>
      <description>You've gotten decent information on how to perform your task.&lt;BR /&gt;&lt;BR /&gt;I'm interested in knowing *why* you are interested in dealing with ENQLM.  What problem are you trying to solve?&lt;BR /&gt;&lt;BR /&gt;(I am aware of some potential reasons, and why you may be interested specifically in accounts where ENQLM &amp;gt;= 32767, but I'd like to hear what misbehaviour you have observed).&lt;BR /&gt;&lt;BR /&gt;                -- Rob</description>
      <pubDate>Thu, 10 Aug 2006 13:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/help-writing-a-com-file/m-p/3840606#M80833</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2006-08-10T13:08:52Z</dc:date>
    </item>
  </channel>
</rss>

