保护并注册模型
作者想要保护一个名为 supernet 的模型。为此,运行“op_manfile -protect -m <model>”。程序会提示输入口令(pass phrase),并由此生成一个唯一的加密密钥。op_manfile 使用该密钥对模型文件进行加密。(此时,程序同时也授予作者“full”访问权限。)
% op_manfile -protect -m supernet
In order to generate information which will be used
to encrypt the file and uniquely identify it, enter
at least sixteen characters at the following prompt;
the actual value is not important and need not be retained.
> |
>als;Im*cS&@jaf(1j1-4
Enter a descriptive name for the model or model suite.
Model (suite) name> The SuperNet protocol
Enter one or more lines of additional information
(e.g. copyright, contact info, general comments, etc.);
enter a line containing only a period (.) to finish.
Implementation of the SuperNet protocol for Modeler
Copyright 1996 SuperNet, Inc.
.
--- op_manfile issued the following command: ---
/bin/cp /usr/author/op_models/supernet.pr.m
/usr/author/op_admin/bk/supernet_v1.pr.m
Success.
现在作者将该模型分发给客户端。
客户端通过运行“op_manfile -register -m <model>”来注册该模型。op_manfile 检测到该客户端尚未注册,并打印出一个交易代码,客户端将该交易代码连同模型名称一起发送给作者。
% op_manfile -register -m supernet
Send the following transaction code to the model vendor:
Transaction code> 91DB.AB08.DBA8.861E
作者也在加密的模型上运行“op_manfile -register -m <model>”(该模型必须是所分发的受保护版本的一份副本)。op_manfile 在文件中找到作者的站点信息,并提示输入交易代码。然后它显示客户端的站点 ID,并询问所需的访问级别以及可选的到期日期。基于这些信息,op_manfile 生成一个批准代码,作者将其发送给客户端。
% op_manfile -register -m supernet
Enter the transaction code sent by the client:
Transaction code> 91DB.AB08.DBA8.861E
The client's group ID is 9999.
Enter the desired access level (full, inspect, or use):
Access level> use
Enter the desired access expiration date
Expiration date (m/d/y)> 0
Send the following approval code to the client:
Approval code> 68E0.CB27.DE56.0D3F.A73B.5D8D
客户端在 op_manfile 会话中输入批准代码,op_manfile 随即在模型中添加一条授权记录。
% op_manfile -register -m supernet
Send the following transaction code to the model vendor:
Transaction code> 91DB.AB08.DBA8.861E
Enter the approval code sent by the model vendor:
Approval code> 68E0.CB27.DE56.0D3F.A73B.5D8D
--- op_manfile issued the following command: ---
/bin/cp /usr/client/op_models/test3.0/supernet.pr.m
/usr/client/op_admin/bk/supernet_v2.pr.m
Success.
现在客户端可以按照作者确定的访问级别使用该模型。(不需要确认代码。如果需要,付款需另行安排。)