Forum Discussion

fcocquyt_104704's avatar
fcocquyt_104704
Icon for Nimbostratus rankNimbostratus
May 22, 2014

Copy local user accounts from one Big IP machine to anohter

Hi,

 

What is the best way to copy local defined users from one F5 machine to another. I have a list of more than 100 users. When lookig at the config in CLI, per user I got:

 

auth user example { description "example" encrypted-password "!!" group-id 500 home-dir "/home/example" partition Common partition-access all role guest shell none user-id 0 } ...

 

Will the account still work when copying this config just as we see it to another box ? (I'm worried about the password)

 

Thanks for the advice !

 

Frederik

 

3 Replies

  • Just tested on an 11.5 box and the following seems to work fine:

    1. From the source box:

      tmsh list auth user > users.exp
      

      This dumps the user list to a file. Edit out the accounts that you don't want to copy over. Example:

      auth user test.admin1 {
          description "test.admin1"
          encrypted-password "$6$...xjUuefL./n20"
          partition-access all
          role admin
          shell bash
      }
      auth user test.admin2 {
          description "test.admin2"
          encrypted-password "$6$...831d."
          partition-access all
          role resource-admin
          shell bash
      }
      
    2. Copy this file to the target system and merge it into the config:

      tmsh load sys config merge file users.exp
      
  • RajS's avatar
    RajS
    Icon for Nimbostratus rankNimbostratus

    Thanks Kevin.. that helped me too. on 11.4.1 the below worked for me:

     

    tmsh load sys config merge user-only file users.exp

     

  • command for ver. 13.0 (/Common)(tmos)load sys config merge from-terminal > press ENTER > Paste configration for auth users > Press Ctr+D to submit > Save sys config

     

    ENTER

     

    :-)