smtnrhdb - manage entries in the tnrhdb database
/usr/sadm/bin/smtnrhdb subcommand [auth_args] -- subcommand_args]
The smtnrhdb command adds, modifies, deletes, and lists entries in the tnrhdb database.
smtnrhdb subcommands are:
add
delete
list
modify
The smtnrhdb authentication arguments, auth_args, are derived from the smc arg set. These arguments are the same regardless of which subcommand you use. The smtnrhdb command requires the Solaris Management Console to be initialized for the command to succeed (see smc(1M)). After rebooting the Solaris Management Console server, the first smc connection can time out, so you might need to retry the command.
The subcommand-specific options, subcommand_args, must be preceded by the -- option.
The valid auth_args are -D, -H, -l, -p, -r, and -u; they are all optional. If no auth_args are specified, certain defaults will be assumed and the user might be prompted for additional information, such as a password for authentication purposes. These letter options can also be specified by their equivalent option words preceded by a double dash. For example, you can use either -D or --domain.
-D | --domain domain
If you do not specify this option, the Solaris Management Console assumes the file default domain on whatever server you choose to manage, meaning that changes are local to the server. Toolboxes can change the domain on a tool-by-tool basis; this option specifies the domain for all other tools.
-H | --hostname host_name:port
-l | --rolepassword role_password
-p | --password password
-r | --rolename role_name
-u | --username user_name
--
Note: Descriptions and other arg options that contain white spaces must be enclosed in double quotes.
-h
-H hostname
-i ipaddress
-n templatename
-p prefixlen
-w ipaddress-wildcard
-H hostname -n templatename | -i ipaddress -n templatename | -w ipaddress-wildcard -n templatename [ -p prefixlen ] | -h
-H hostname -n templatename | -i ipaddress -n templatename | -w ipaddress-wildcard -n templatename [ -p prefixlen ] | -h
-H hostname | -i ipaddress | -w ipaddress-wildcard [ -p prefixlen ] | -h
-h
Example 1 Specifying the Template Name for a Wildcard IP Address
The admin role specifies the template name, cipso_lan, for a series of hosts that use the IP address wildcard 192.168.113.0 on the local file system. Since no authorization arguments were specified, the administrator connects to port 898 of the local host on the local server with the file domain type, which are the defaults. The administrator is prompted for the admin password.
$ usr/sadm/bin/smtnrhdb add -- -w 192.168.113.0 -n cipso_lan
Example 2 Deleting an Entry in the tnrhdb Database
The admin role connects to port 898 (which happens to be the default) of the LDAP server and deletes a host entry from the database by specifying its IP address, 192.168.113.8. Since the domain was not specified, the file domain type and local server are used by default. The administrator is prompted for the admin password.
/usr/sadm/bin/smtnrhdb delete -D ldap:/example.domain -i 192.168.113.8
The following exit values are returned:
0
1
2
The following files are used by the smtnrhdb command:
/etc/security/tsol/tnrhdb
See attributes(5) for descriptions of the following attributes:
|
smc(1M), attributes(5)
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |