[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxaxp::vmsnotes

Title:VAX and Alpha VMS
Notice:This is a new VMSnotes, please read note 2.1
Moderator:VAXAXP::BERNARDO
Created:Wed Jan 22 1997
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:703
Total number of notes:3722

333.0. "Submit changing file name for [sys0.] directory???" by UCXAXP::ZIELONKO () Fri Mar 14 1997 12:26

Hi,

I am doing this on an AXP running VMS V6.1.

Can anyone explain why the submit command seems to be munging the filename I
submit?

First I submit a job to a queue. Take note of the filename I am submitting:

$ submit /que=UCX$SMTP_UCXAXP_00/user=SYSTEM -
$_ UCXAXP$DKA0:[SYS0.SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Job 97031412015145_SYSTEM (queue UCX$SMTP_UCXAXP_00, entry 376) pending

Now let's look at the job in the queue:

$ sqsmtp	! SHOW  QUEUE/ALL/FULL UCX$SMTP_UCXAXP_*
Generic server queue UCX$SMTP_UCXAXP_00
  /GENERIC=(UCX$SMTP_UCXAXP_01) /OWNER=[SYSTEM] /PROTECTION=(S:M,O:D,G:R,W:S)
/SCHEDULE=(NOSIZE)

  Entry  Jobname         Username     Blocks  Status
  -----  -------         --------     ------  ------
    376  97031412015145_SYSTEM
                         SYSTEM            5  Pending (check execution queues)
         Submitted 14-MAR-1997 12:16:14.74 /FORM=DEFAULT /PRIORITY=100
         File: _UCXAXP$DKA0:[SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP;1
                            ^^^^^^^^^^^^^^^^^^^^^^^
					|
  It munged the filename  --->----->----+

The submit command seeems to have munged the directory part of the filename from
[SYS0.SYSCOMMON.SYSMGR.MAIL] to [SYSCOMMON.SYSMGR.MAIL]. Now the file that it
thinks it needs to run is non-existant because there is no such directory.

$ dir UCXAXP$DKA0:[SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP
%DIRECT-E-OPENIN, error opening UCXAXP$DKA0:[SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP;* as input
-RMS-E-DNF, directory not found
-SYSTEM-W-NOSUCHFILE, no such file

But the *real* directory/file do exist:

$ dir UCXAXP$DKA0:[SYS0.SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP

Directory UCXAXP$DKA0:[SYS0.SYSCOMMON.SYSMGR.MAIL]

97031412015145_SYSTEM.UCX_UCXAXP;1
                           5  14-MAR-1997 12:01:51.55

Total of 1 file, 5 blocks.


Can anyone explain this? Is this a bug or a feature?

If you reply could you please forward your reply to me via email. I'm at

   ucxaxp::zielonko
or
   [email protected]
or
   [email protected]

Whichever is easiest for you.

Thanks in advance,

Karol Z.
T.RTitleUserPersonal
Name
DateLines
333.1SYS$COMMON:[sysmgr.mail] fails in the same wayUCXAXP::ZIELONKOFri Mar 14 1997 12:3316
I just tried it by doing the submit like this:

$ submit /que=UCX$SMTP_UCXAXP_00/user=SYSTEM -
$_ sys$common:[sysmgr.mail]97031412015145_SYSTEM.UCX_UCXAXP

and got the same result. The filename that you see when you do a SHOW QUEUE is

"_UCXAXP$DKA0:[SYSCOMMON.SYSMGR.MAIL]97031412015145_SYSTEM.UCX_UCXAXP;1"

Oh yeah, I forgot to say:

UCXAXP> sho log sys$common/full
   "SYS$COMMON" [exec] = "UCXAXP$DKA0:[SYS0.SYSCOMMON.]" [concealed,terminal]
(LNM$SYSTEM_TABLE)

Karol
333.2BSS::JILSONWFH in the Chemung River ValleyFri Mar 14 1997 12:374
See your nearest friendly STARS database or DSNlink and look for this
[OpenVMS] Incorrect File Specs Returned After BACKUP/IMAGE Restore 

Jilly
333.3AUSS::GARSONDECcharity Program OfficeSun Mar 16 1997 18:2221
    re .*
    
    More specifically, when you submit a file for printing or execution the
    only thing that the queue system stores is the name of the device
    containing the file and unique (per device) file identifier. It derives
    that information from the file spec that you supply.
    
    When you do the SHOW command it attempts to translate the device + fileid
    back into a file specification. This translation may fail  - no result or
    incorrect result - and SHOW QUEUE doesn't identify the latter case.
    
    When the file comes to execute or print all should work regardless -
    unless e.g. a command procedure relies on f$envi("PROCEDURE").
    
    This feature has been discussed in previous incarnations of this notes
    conference many times. (q.v.)
    
    The problem, particularly as it applies to files in SYS$COMMON, can be
    caused by BACKUP and a STARS article exists to tell you how to fix the
    problem manually. (Note that you can also cause the problem manually if
    you particularly try to.)
333.4SMTP symbiont needs to read submitted fileUCXAXP::ZIELONKOMon Mar 17 1997 06:2425
Derek,

>    When the file comes to execute or print all should work regardless -
>    unless e.g. a command procedure relies on f$envi("PROCEDURE").

Thanks. As it turns out the UCX SMTP symbiont (which is processing the file)
needs to use that file specificaton. In the case of an SMTP queue the file that
is submitted is  the UCX SMTP "control file" and contains the mail message to be
sent. The symbiont process gets the name of the file from the job controller in
the "start task" message and uses that filespec to open the file. Since the
filespec doesn't translate the symbiont signals an error.

>    The problem, particularly as it applies to files in SYS$COMMON, can be
>    caused by BACKUP and a STARS article exists to tell you how to fix the
>    problem manually. (Note that you can also cause the problem manually if
>    you particularly try to.)

I have heard of STARS but have no access to it. I will try to find someone with
access and ask them to dig this article up. I assume it not only says how to fix
the problem but also how to use BACKUP in a way so as not to cause it to happen
again.

Thanks again,

Karol
333.5EVMS::MORONEYMon Mar 17 1997 11:507
If I remember correctly, this is often a backlink problem on the file
[000000]VMS$COMMON.DIR.  If this is the problem, the fix was simple:

$ RENAME SYS$SYSDEVICE:[000000]VMS$COMMON.DIR SYS$SYSDEVICE:[000000]SYSCOMMON.DIR
$ RENAME SYS$SYSDEVICE:[000000]SYSCOMMON.DIR SYS$SYSDEVICE:[000000]VMS$COMMON.DIR

-Mike
333.6CSC64::BLAYLOCKIf at first you doubt,doubt again.Mon Mar 17 1997 12:1011
Instead of relying on the SMBMSG$K_FILE_SPECIFICATION, use
SMBMSG$K_FILE_IDENTIFICATION.  This will provide you with a
Device name and File ID that you can use to open the file.
This will also prevent the user from 'spoofing' your symbiont
into using a name they have no access to (done by modifying
the file name in the headers).

Documentation on using the file identification can be found
with the FAB$V_NAM (in FAB$L_FOP) and with the NAM$T_DVI fields
in the RMS documentation.
333.7AUSS::GARSONDECcharity Program OfficeMon Mar 17 1997 16:3210
re .4
    
>I have heard of STARS but have no access to it.
    
    Sure you do.(?) It's available via the Web.
    
    http://aztech.cxo.dec.com:1999/stars
    
    I would assume that BACKUP will not cause this problem unless you
    restore. If you use a defragger then that isn't going to be very often.
333.8See note 10.*XDELTA::HOFFMANSteve, OpenVMS EngineeringMon Mar 17 1997 17:0214
:>    The problem, particularly as it applies to files in SYS$COMMON, can be
:>    caused by BACKUP and a STARS article exists to tell you how to fix the
:>    problem manually. (Note that you can also cause the problem manually if
:>    you particularly try to.)

:I have heard of STARS but have no access to it. I will try to find someone with
:access and ask them to dig this article up. I assume it not only says how to fix
:the problem but also how to use BACKUP in a way so as not to cause it to happen
:again.

    Please see note 10.* for all sorts of good stuff...
    COMET, STARS, various search engines, etc...

333.9MOVIES::WIDDOWSONRodTue Mar 18 1997 04:139
    As a general warning, with an element of forward knowledge.  It is
    probably a bad idea to rely too much on LIB$FID_TO_SPEC, even now it
    can produce files which may give RMS indigestion (as you have
    discoverred).  Device and FID is usually a better bet, use FID_TO_SPEC
    to just display the name.
    
    (As background, when files are printed from RMS or from the XQP
    FID_TO_SPEC is used, and my memory is that this is how the print
    command works....)