保护并注册一组模型
后来,当单个模型发展为一组模型时,作者将这组模型作为一个整体进行保护和注册。首先,组中的所有模型必须位于同一目录中。作者在该目录中运行“op_manfile -protect -dir”。
% op_manfile -protect -dir
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.
> |
>aj-12PJp01q224)^aj19
Enter a descriptive name for the model or model suite.
Model (suite) name> The SuperNet protocol suite
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.
Suite of models implementing the SuperNet protocol for Modeler
Copyright 1996 SuperNet, Inc.
--- op_manfile issued the following command: ---
/bin/cp /usr/author/op_models/supernet/supernet.nt.m
/usr/author/op_admin/bk/supernet_v1.nt.m
--- op_manfile issued the following command: ---
/bin/cp /usr/author/op_models/supernet/supernet.nd.m
/usr/author/op_admin/bk/supernet_v1.nd.m
--- op_manfile issued the following command: ---
/bin/cp /usr/author/op_models/supernet/supernet.pr.m
/usr/author/op_admin/bk/supernet_v1.pr.m
--- op_manfile issued the following command: ---
/bin/cp /usr/author/op_models/supernet/supernet.pk.m
/usr/author/op_admin/bk/supernet_v1.pk.m
4 model files successfully protected.
这会用同一个密钥加密所有模型,并为它们打上唯一的组 ID 编号。在客户端一侧,使用“op_manfile -register -suite -m <model>”可以同时注册客户端 mod_dirs 中所有与所指定模型具有相同组 ID 的模型。首先获取一个交易代码。
% op_manfile -register -suite -mf supernet.nt.m
Send the following transaction code to the model vendor:
Transaction code> 0A5B.5BFD.8E5B.861D
作者使用该交易代码获得批准代码。
% op_manfile -register -suite -mf supernet.nt.m
Enter the transaction code sent by the client:
Transaction code> 0A5B.5BFD.8E5B.861D
The client's group ID is 9999.
Enter the desired access level (full, inspect, or use):
Access level> full
Enter the desired access expiration date
(enter "0" for indefinite access):
Expiration date (m/d/y)> 0
Send the following approval code to the client:
客户端使用批准代码完成注册。
% op_manfile -register -suite -mf supernet.nt.m
Send the following transaction code to the model vendor:
Transaction code> 0A5B.5BFD.8E5B.861D
Enter the approval code sent by the model vendor:
Approval code> 7EB0.CFE7.F277.341F.A775.09DC
--- op_manfile issued the following command: ---
/bin/cp /usr/client/op_models/supernet.nt.m
/usr/client/op_admin/bk/supernet_v2.nt.m
--- op_manfile issued the following command: ---
/bin/cp /usr/client/op_models/supernet.nd.m
/usr/client/op_admin/bk/supernet_v2.nd.m
--- op_manfile issued the following command: ---
/bin/cp /usr/client/op_models/supernet.pr.m
/usr/client/op_admin/bk/supernet_v2.pr.m
--- op_manfile issued the following command: ---
/bin/cp /usr/client/op_models/supernet.pf.m
/usr/client/op_admin/bk/supernet_v2.pf.m
4 model files successfully registered.