在 CLI 中指定值的规则

大多数命令包含一个或多个必需或可选参数。许多参数要求您为其指定一个值。 在 CLI 中指定值时需要遵守一定的规则。

在下面的示例中,创建了一个具有文本注释的 SVM。然后,修改该 SVM 以删除注释:

cluster1::> vserver create -vserver vs0 -subtype default -rootvolume root_vs0 
-aggregate aggr1 -rootvolume-security-style unix -language C.UTF-8 -is-repository false -ipspace ipspaceA -comment "My SVM" 
cluster1::> vserver modify -vserver vs0 -comment ""

在下面的示例中,使用“#”符号的命令行注释用于指示命令的用途。

cluster1::> security login create -vserver vs0 -user-or-group-name new-admin 
-application ssh -authmethod password #This command creates a new user account