Time for action – importing users from the CLI

Now that you have created the import file, let's import it.

  1. Logon to the command line of your Cacti server.
  2. Go to the cli subdirectory under the Cacti directory:
    cd /Var/www/html/cact/cli
    
  1. Place the import_user.php script in this directory.
  2. Put the user_list.txt file in the /tmp directory.
  3. Run the following command to add the users to the Local Realm with the _CustomerA_user as the template user:
    php import_user.php /tmp/users_list.txt _CustomerA_user 0
    
Time for action – importing users from the CLI

What just happened?

You just imported all users from the import file to your Cacti installation. The users now also have the same permissions as the Template ...

Get Cacti 0.8 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.