上QQ阅读APP看书,第一时间看更新
Importing a list of users
To reduce the manual work needed to create a large group of users within Cacti, you are going to create a small PHP-based script that takes a list of users as input and creates the users based on a template user within Cacti.
First, create a file called users_list.txt with the following content:
user1;User Name1 user2;User Name2 user3;User Name3 user4;User Name4
This will be the basis for the import. The first part is the actual user name of the new user, and the last part in the file is going to be the full name for that user.