nnmsecurity.ovpl — NNMi Security Management
nnmsecurity.ovpl -help
nnmsecurity.ovpl
-assignNodeToSecurityGroup ((-node <name or hostname or management address or uuid> -securityGroup <name or uuid>) | -file <name>) |
-assignNodeToTenant ((-node <name or hostname or management address or uuid> -tenant <name or uuid>) | -file <name>) |
-assignSecurityGroupToTenant (-tenant <name or uuid> -securityGroup <name or uuid>) |
-assignUserGroupToSecurityGroup ((-userGroup <name> -securityGroup <name or uuid> -role <role>) | -file <name>) |
-assignUserToGroup ((-user <name> -userGroup <name>) | -file <name>)
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-createSecurityGroup ((<name> [-securityGroupUuid <uuid>] [-description <description>]) | -file <name>) |
-createTenant (<name> [-tenantUuid <uuid>] [-securityGroupUuid <uuid>] [-description <description>]) |
-createUserAccount ((<username> -role <role> [-password <password>] [-directoryServiceAccount <true|false>]) | -file <name>) |
-createUserGroup ((<name> [-displayName <user friendly group name>] [-description <description>] [-directoryServiceName <dn>]) | -file <name>)
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-deleteSecurityGroup (<groupName or uuid> | -file <name>) |
-deleteUserAccount (<name> | -file <name>) |
-deleteUserGroup <name>
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-displayConfigReport [<report>[, <report>]]
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-listNode <nodeName> |
-listNodesInSecurityGroup <groupName or uuid> |
-listSecurityGroupForTenant <uuid> |
-listSecurityGroups |
-listTenants |
-listUserGroupMembers <groupName> |
-listUserGroups <user> |
-listUserGroupsForSecurityGroup <groupName or uuid>
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-removeUserFromGroup ((-user <name> -userGroup <name>) | -file <name>) |
-deleteUserGroup (<name> | -file <name>) |
-removeUserGroupFromSecurityGroup ((-userGroup <groupName> -securityGroup <groupName or uuid> [-role <role>]) | -file <file>) |
-updateUserGroup ((<name> [-displayName <user friendly group name>] [-description <description>] [-directoryServiceName <dn>]) | -file <name>)
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
nnmsecurity.ovpl
-reloadAuthConfig
[-u <username> -p <password>]
[-jndiHost <hostname> Default: localhost]
[-jndiPort <port> Default: 1099]
If you frequently run NNMi command line tools, create an nnm.properties file
containing your username and password. Doing so permits you to run many NNMi command line tools and scripts
without entering a username and password. Place the nnm.properties file in a
.nnm subdirectory within your home directory. For example, you might place the
nnm.properties file you create in the
drive:\Documents and Settings\username\.nnm\
(Windows) or ~/.nnm (UNIX) directory.
nnmsecurity.ovpl is used to manage NNMi security configuration. It provides commands to
create, update, and remove security objects such as user accounts, user groups, and security groups as well as to configure
the relationships among these objects. This command replaces the deprecated nnmprincipalconfig.ovpl command.
nnmsecurity.ovpl supports the following commands:
-assignNodeToSecurityGroup
(-node <name or hostname or management address or uuid> -securityGroup <name or uuid>)
| -file <name>
Assigns nodes to security groups using either command line arguments or an input file.
-nodeIdentifies a node by name, hostname, management address, or UUID.
-securityGroupIdentifies a security group by name or UUID.
-filePath to a CSV-formatted file containing lists of node to security group assignment with the format: securitygroup, node
-help
Prints the usage statement.
-assignNodeToTenant
(-node <name or hostname or management address or uuid> -tenant <name or uuid>)
| -file <name>
Assigns a node to a tenant using either command line arguments or an input file. The node-to-tenant assignment must be done on an NNMi management server that directly manages both objects. Global node-to-tenant assignments are unsupported.
-nodeIdentifies a node by name, hostname, management address, or UUID.
-tenantIdentifies a tenant by name or UUID.
-filePath to a CSV-formatted file containing lists of node to tenant assignments with the format: node,tenant
-assignSecurityGroupToTenant
-tenant <name or uuid> -securityGroup <name or uuid>
Changes the default security group for a tenant. The default security group for a tenant is used to specify which security group to use when new nodes are seeded for the tenant. Changing this value does not affect existing nodes.
-tenantThe name or UUID of the tenant to modify.
-securityGroupThe name or UUID of the security group to set as the default for the tenant.
-assignUserGroupToSecurityGroup
(-userGroup <name>
-securityGroup <name or uuid>
-role <role>)
| -file <name>
Assigns user groups to security groups. User groups are assigned to security groups to give the users in the group access to the nodes in the security group. Each assignment includes a role as part of the assignment which controls which actions are available to the users on the nodes.
-userGroupIdentifies the user group to assign by name.
-securityGroupIdentifies by name or UUID the security group to receive the user group.
-roleIdentifies the role to use in the assignment by key. Available roles are: admin, level2, level1, guest
-filePath to a CSV-formatted file containing lists of assignments with the format: userGroup, securityGroup, role
-assignUserToGroup
(-user <name> -userGroup <name>)
| -file <name>
Assigns users to user groups. Users are assigned to groups which are then given access to objects. A user can be assigned to multiple groups and has access to all objects from all of their groups. The default groups of admin, client, level2, level1 and guest also give the users assigned to them the matching role of the same name on NNMi itself.
-userIdentifies the user to assign by name.
-userGroupIdentifies the user group to assign by name.
-filePath to a CSV-formatted file containing lists of assignments with the format: user, userGroup
-createSecurityGroup
(<name>
[-securityGroupUuid <uuid>]
[-description <description>])
| -file <name>
Creates a new security group. Security groups group similar topology objects to simplify the security configuration. Each security group consists of a name, UUID, and description.
-securityGroupUuidOptional UUID for the new security group. If this parameter is not supplied, NNMi generates the value.
-descriptionOptional description for the new security group.
-filePath to a CSV-formatted file containing lists of security groups with the format: name, uuid, description
-createTenant
<name>
[-tenantUuid <uuid>]
[-securityGroupUuid <uuid>]
[-description <description>]
Creates a new tenant along with a matching security group of the same name.
-tenantUuidOptional UUID for the new tenant. If this parameter is not supplied, NNMi generates the value.
-securityGroupUuidOptional UUID for the new security group. If this parameter is not supplied, NNMi generates the value.
-descriptionOptional description for the new tenant.
-createUserAccount
(<username>
-role <role>
[-password <password>]
[-directoryServiceAccount <true|false>])
| -file <name>
Creates a new user account.
-roleInternal accounts require that a role be specified. NNMi automatically assigns the new user to the matching user group. External accounts do not require a role because the directory service might supply the roles.
-passwordThe password for the new user. Only used for internal accounts.
-directoryServiceAccountSpecifies whether an external directory service manages this user account. Use false for an
account that is stored internally in the NNMi database. Use true for an external account
that is stored in a directory service. The default value is false.
-filePath to a CSV-formatted file containing lists of user accounts with the format: username, password, role, directoryServiceAccount
-createUserGroup
(<name>
[-displayName <user friendly group name>]
[-description <description>]
[-directoryServiceName <dn>])
| -file <name>
Creates a new user group.
-displayNameOptional friendly name for the user group.
-descriptionOptional description of the new group.
-directoryServiceNameOptional for directory service users. Use this option to pair a directory service distinguished name with this user group.
-filePath to a CSV-formatted file containing lists of user groups with the format: name, displayName, description, directoryServiceName
-deleteSecurityGroup
<groupName or uuid> | -file <name>
Removes a security group by name or UUID. The security group must not have any nodes or tenants assigned to it.
-filePath to a CSV-formatted file containing lists of security groups with the format: name, uuid, description.
This format is the same as for createSecurityGroup however only the name (or UUID if present) is used.
-deleteUserAccount
<name> | -file <name>
Removes a user account by name.
-filePath to a CSV-formatted file containing lists of user accounts with the format: username, role, password, directoryServiceAccount.
This format is the same as for createUserAccount however only the username is used to match the accounts to remove.
-deleteUserGroup <name>
Removes a user group by name.
-displayConfigReport [<report>[, <report>]]
Displays security configuration reports.
Available reports are: unusualRoleCombinations, emptySecurityGroups, emptyUserGroups, securityGroupsWithSameName,
usersWithoutGroups, tenantsWithSameName, usersWithoutRoles
If no reports are specified, all available reports are run.
-listNode <node name>
Displays the UUIDs of the security group and tenant associated with the specified node. The node can be specified as name, hostname, or UUID. The output lists node UUID and name; security group UUID and name; and tenant UUID and name on separate lines.
-listNodesInSecurityGroup <groupName or uuid>
Lists nodes in a security group by security group name or UUID.
-listSecurityGroupForTenant <uuid>
Displays the configured default security group for the specified tenant.
-listSecurityGroups
Lists the names of all configured security groups.
-listTenants
Lists the names of all configured tenants.
-listUserGroupMembers <groupName>
Lists users in the specified user group.
-listUserGroups <user>
List all configured user groups.
-listUserGroupsForSecurityGroup <groupName or uuid>
Lists user groups associated with the specified security group.
-removeUserFromGroup
(-user <name>
-userGroup <name>)
| -file <filename>
Removes mappings between user accounts and user groups.
-userThe username of the user account to modify.
-userGroupThe name of the user group to unmap from the specified user account.
-filePath to a CSV-formatted file containing lists of user to user group mappings with the format: user, userGroup
-deleteUserGroup
<name>
| -file <name>
Removes user groups by name. Mappings between the user group and user accounts and security groups are also removed.
-filePath to a CSV-formatted file containing lists of user to user group mappings with the format:
usergroup, description. This format is the same as createUserGroup; however, only the name is used
to match the groups to be removed.
-removeUserGroupFromSecurityGroup
(-userGroup <groupName>
-securityGroup <groupName or uuid>
[-role <role>])
| -file <name>
Removes mappings between user groups and security groups.
-userGroupThe name of the user group.
-securityGroupThe name or UUID of the security group.
-roleAn optional role. If no role is specified, mappings for all roles are removed.
-filePath to a CSV-formatted file containing lists of user to user group mappings with the format: userGroup, securityGroup, role
-updateUserGroup
<name>
([-displayName <user friendly group name>]
[-description <description>]
[-directoryServiceName <dn>])
| -file <name>
Updates a user group. All user group attributes except name can be updated.
-displayNameOptional friendly name for the user group.
-descriptionOptional description of the group.
-directoryServiceNameOptional for directory service users. Use this option to pair a directory service distinguished name with this user group.
-filePath to a CSV-formatted file containing lists of user groups with the format: name, displayName, description, directoryServiceName
-reloadAuthConfig
Reloads the contents of the nms-auth-config.xml file.
-u <username>
Supply the NNMi administrator username to run the script. This script requires
the NNMi administrator username unless you use an nnm.properties file.
See the nnm.properties.4 reference page for more information.
-p <password>
Supply the NNMi administrator password to run the script. This script requires
the NNMi administrator password unless you use an nnm.properties file.
See the nnm.properties.4 reference page for more information.
-jndiHost <hostname>
The server jndi host; default is localhost.
-jndiPort <port>
The server jndi port; default is 1099.
nnmsecurity.ovpl -createTenant myTenant
Creates a tenant named myTenant.
nnmsecurity.ovpl -listTenants
Lists all configured tenants.
nnmsecurity.ovpl -createTenant "Tenant with a space"
,
nnmsecurity.ovpl -createTenant \!Tenant
Depending on the shell you use, you can use quotation marks around the tenant name to create a tenant with spaces in the name, or you can use the escape character to create a tenant with a special character in its name.
nnmsecurity.ovpl -createSecurityGroup mySecurityGroup
Creates the security group mySecurityGroup.
nnmsecurity.ovpl -createSecurityGroup "Group with a space"
,
nnmsecurity.ovpl -createSecurityGroup \!MyGroup
Depending on the shell you use, you can use quotation marks around the security group name to create a security group with spaces in the name, or you can use the escape character to create a security group with a special character in its name.
nnmsecurity.ovpl -listSecurityGroups
Lists all configured security groups.
nnmsecurity.ovpl -listNode myNode
Lists the associated security group and tenant for the supplied node.
nnmsecurity.ovpl returns the following exit codes:
0
Operation was successful.
1
An error occurred; see error message for details.