批量用户打印储值卡/身份更新

在PaperCut NG中一个唯一的卡/身份证号可以联合到每个用户。这些数目可以代表学生或职工人数,并能使用快速查找协助搜索一个特定的用户。(不要把这些号与TopUp/Pre-Paid储值卡混淆。) 这些数目在软件打印审批或在影印机硬件终端也可以用来作为替代用户名/密码验证。

一批用户卡/ID升级更新允许管理员更新用户卡/ID号,并选择性的从一个简单的文本文件由读出数据导入或更新PINs。用户卡/ID号使用导入和更新一批用户功能也可以被输入 (查看 “导入和更新一批用户”) 或从一个目录服务器,例如Active Directory或LDAP (查看 “从Active Directory或LDAP输入卡/身份证号”).

例如:对windows系统在import.txt文件更新/导入所有用户卡/ID号或PINs。

            C:\> cd C:\Program Files\PaperCut NG\server\bin\win
            server-command batch-import-user-card-id-numbers "C:\card numbers\import.txt"
            

注意:如果输入路径包含空格应当加引号。

重点

卡/ID号必须识别唯一的用户,所以应该注意并确保没有两个用户有相同的卡/ID号。 这意味着卡/ID号的定义在导入文件中应该是独一无二的。如果PaperCut NG遇到一个非唯一的卡/ID号,该用户将不会更新。

一批用户卡/ID更新可以通过 batch-import-user-card-id-numbers服务器命令执行。 Use of server-command is detailed in the section called “Server Commands (server-command)”. The import file format is detailed in the section called “Batch User Card/Identity Update File Format”.

Caution

Batch updates are a major operation modifying data en massse. Best practise suggests:

  • Always run a backup before proceeding with the import.

  • First experiment/test the update process with a small batch of users before moving onto the full batch.

Batch User Card/Identity Update File Format

The import file is in tab delimited format and contains the following fields in the given order.

No.FieldDescriptionOptional?Limitations

1.

Username

The user's username.

Mandatory

Max. 50 characters

2.

User Card/ID Number

A unique card/ID number for this user.

Optional (card/ID number not set if blank)

Max. 100 characters. To specify that the number should be set to blank, enter a hyphen (-).

3.

User Card/ID PIN

The user's card/ID PIN.

Optional (card/ID PIN not set if blank)

To specify that the PIN should be set to blank, enter a hyphen (-).

Table 6.3. User Card/Identity Update File Format

Other limitations: Although any actual limit to the size of an update file should be large enough for any purpose, we recommend keeping the file size below 10MB.

Tip

A simple way to create a tab delimited file is to create a spreadsheet in Microsoft Excel, then save it in the Text (Tab delimited) format.