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

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

984.0. "An invalid device was specified when RNA option used" by GIDDAY::SETHI (Man from Downunder) Fri Jul 03 1992 07:45

    G'day,
    
    The largest site in the Southern Hemisphere for ALL-IN-1 have come
    across a feature that is going to cause them a problem.  When they 
    upgrade they will not be able to use rooted logical see Stars Article
    "RNA Fails In V3.0 When Rooted Logical In User Profile".
    
    On one site they have 5,000 users and thousands more on other sites
    that they want to upgrade.  The suggestions made in the Stars article
    are fine if you have a few users.  They want to know why the change was
    made and do we have a script or command that is capable of making the
    changes suggested ?
    
    Unfortunately we have an unhappy customer and I am wondering if you
    have any suggestions to help them out.  I can understand to some extent
    why the change was made especially when deleting an account the Delete
    from field is useful.  I have tried to sell the virtues of the changes
    but it cut no ice.
    

    Thanks for your help
    
    Sunil
T.RTitleUserPersonal
Name
DateLines
984.1not an "approved" answer but...OASS::VALDEZ_CA smile is the same in any languageTue Jul 07 1992 00:0747
Hi Sunil,

I don't know if this will help, and it is definitely crude, but the following 
script and command file will change a specified group of users.

Let's say the logical MYGROUP translates to "disk1:[mygroup.".  The script 
asks for the group directory to be changed and you would answer "MYGROUP:".  
The script then asks what it should be changed to and you would answer 
"DISK1:[MYGROUP.".  You can add troubleshooting and change it to whatever 
suits your needs.  

HTH.

Cindy

! MODIFY_DIRECTORY.SCP
! changes from rooted logical
PROMPT "WHAT IS THE GROUP DIRECTORY TO BE CHANGED? "
GET #OLD_DIR=OA$PROMPT_TEXT
PROMPT "CHANGE IT TO? (EXAMPLE, DISK:[DEPART.) " 
GET #NEW_DIR=OA$PROMPT_TEXT
FOR PROFIL WITH .DIRECT = #OLD_DIR DO -
    GET #DIR=.DIRECT\\ -
    GET #NDIR=#NEW_DIR\\ -
    GET_SYMBOL #DIR,#PARSED_DIR,"["\\ -
    WRITE CHANGE PROFIL USER=.USER,DIRECT=#NEW_DIR -
        #DIR,DELETE_FROM=#NEW_DIR .VMSUSR "]"\\ -
    GET_SYMBOL #NDIR,#PARSED_NEW_DIR,"["\\ -
    COMMAND MODIFY_DIRECTORY
! end of script

$! MODIFY_DIRECTOYR.COM
$! CHANGE DEVICE & DIRECTORY FIELD IN AUTHORIZE
$ UAF = "$AUTHORIZE"
$ WRITE OAMAILBOX "OA GET .VMSUSR"
$ @DCLMAILBOX:
$ VMSUSER = RESULT
$ WRITE OAMAILBOX "OA GET #PARSED_NEW_DIR"
$ @DCLMAILBOX:
$ DEVICE = RESULT
$ WRITE OAMAILBOX "OA GET #NDIR"
$ @DCLMAILBOX:
$ GROUP_DIR = RESULT
$ SET DEF SYS$SYSTEM
$ UAF MOD 'VMSUSER'/DEV='DEVICE'/DIRECT=['GROUP_DIR''VMSUSER']
$ EXIT

984.2GIDDAY::SETHIMan from DownunderTue Jul 07 1992 01:5121
    G'day Cindy,
    
    Thanks for your suggestion I have been thinking about a script to make
    the changes.  All of this could be done from within the script and
    there is not need to r authorize.
    
    The new DSAB UAI$ can be used to update the users SYSUAF record.  I
    have suggested this to the customer.  The topdown design would be as
    follows :-)
    
    1. Read profile and get details of the users directory specification
    2. Translate the rooted logical for the user group directory ie
       user_g_dir
    3. change the directory spec to disk:[groupg.user.a1] in profile
    4. change the directory spec in sysuaf making use of the dsab
       ie uai$defdev[oa$profil_vmsusr] and uai$defdir[oa$profil_vmsusr]
    
    Just an idea, the customer will investigate it
    
    Sunil  
                                                  
984.3OASS::VALDEZ_CA smile is the same in any languageTue Jul 07 1992 21:519
Hey Sunil,

Thanks for the reminder about the UAI$ DSAB.  (I'll never remember all these 
new features!)  I rewrote mine using that to give myself practice.

Good luck with the customer.

Cindy