HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

UAF migration for some users

 
mrityunjoy
Advisor

UAF migration for some users

Hi ,

 

I need to create one command procedure which will scan the sysuaf and genarate a file with command procedure to create the same user in another system. This command procedure will include the granted identifier as well.

 

This is required as my requirement is to migrate some of users to another system,not all.

 

 

Regards.

Mrityunjoy Kundu -AST (TCS)
6 REPLIES
Bob Blunt
Respected Contributor

Re: UAF migration for some users

Why make it more difficult than you need to?  Make a BACKUP saveset of SYSUAF.DAT and RIGHTSLIST.DAT from your source system and move that to the second system.  Then either mark the unneeded accounts as DISUSER or remove them.

 

bob

mrityunjoy
Advisor

Re: UAF migration for some users

Hi Bob,

 

We have almost 700 accounts in the server, out of which I need to migrate 65 accounts.

 

Regards.

Mrityunjoy Kundu -AST (TCS)
John Gillings
Honored Contributor

Re: UAF migration for some users

If you don't want to delete the records you don't need, create an empty UAF and copy the ones you want. SYSUAF is just an RMS file.

 

$ OPEN/READ UAF SYSUAF

$ OPEN/READ/WRITE NEWUAF YOURUAF

 

   repeat for each key you want (build a procedure to do it)

$ READ/KEY="SOMEUSER" UAF UAFRECORD

$ WRITE NEWUAF UAFRECORD

 

$ CLOSE UAF

$ CLOSE NEWUAF

 

now take the new UAF file to the target system and use MERGE to merge it with the UAF over there.

A crucible of informative mistakes
mrityunjoy
Advisor

Re: UAF migration for some users

Thanks..how shall I merge newuaf with existing one in another system.
Mrityunjoy Kundu -AST (TCS)
Kris Clippeleyr
Honored Contributor

Re: UAF migration for some users

You might want to have a look at QUAI

at http://www.quadratrix.be/quai.html

 

If properly installed

 

QUAI/EXTRACT user1

 

will extract the information about "user1" from the SYSUAF into a file ( user1.quai )

 

Copying the file "user1.quai" to the target system and using QUAI thus:

 

QUAI/INSERT user1

 

will insert the necessary info in the SYSUAF of the target system

 

Hope this helps.

 

Regards.

 

I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Hein van den Heuvel
Honored Contributor

Re: UAF migration for some users

 

>> how shall I merge newuaf with existing one in another system

 

$ CONVERT /MERGE /STAT /EXCEP=bad.dat  new.dat SYSUAF

 

 

Note 1)  you also want to do this for RIGHTSLIST

Note 2) I like the DCL OPEN/READ loop, but you can probably also just use SEARCH/STAT/OUT user1,user2,

You may want to use [user1], [user2] or "user1 ", "user2 " to avoid false matches

 

Hein.