| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- add entries to allocation databases
/usr/sbin/add_allocatable [-f] [-s] [-d]-nname-ttype-ldevice-list [-aauthorization] [-cclean] [-okey=value]
add_allocatable creates new entries for user allocatable devices that are to bemanaged by the device allocation mechanism.add_allocatable can also be used toupdate existing entries of such devices.
add_allocatable can also create and update entries for non-allocatable devices, such asprinters, whose label range is managed by the device allocation mechanism.
add_allocatable can be used in shell scripts, such as installation scripts fordriver packages, to automate the administrative work of setting up a newdevice.
Uselist_devices(1) to see the names and types of allocatable devices, theirattributes, and device paths.
Force an update of an already-existing entry with the specified information.add_allocatable exits with an error if this option is not specified when an entry with the specified device name already exists.
Turn on silent mode.add_allocatable does not print any error or warning messages.
If this option is present,add_allocatable updates the system-supplied default attributes of the device type specified with-t.
Adds or updates an entry for device that is specified byname.
Adds or updates device entries that are of a type that are specified bytype.
Adds or updates device paths to the device that is specified with-n. Multiple paths indevice-list must be separated by white spaces and the list must be quoted.
Adds or updates the authorization that is associated with either the device that is specified with-n or with devices of the type that is specified with-t. When more than one authorization is specified, the list must be separated by commas and must be quoted. When the device is not allocatable,authorization is specified with an asterisk (*) and must be quoted. When the device is allocatable by any user,authorization is specified with the at sign (@) and must be quoted. Default authorization is '@'.
Specifies thedevice_clean(5) programclean to be used with the device that is specified with-n or with devices of the type that is specified with-t. The default clean program is/bin/true.
Accepts a string of colon-separatedkey=value pairs for a device that is specified with-n or with devices of the type that is specified with-t. The following keys are currently interpreted by the system:
The minimum label at which the device can be used.
The maximum label at which the device can be used.
Specifies a logical grouping of devices. For example, all Sun Ray devices of all device types is a logical grouping. Theclass keyword has no default value.
Specifies the display name of the X session. This keyword is used to identify devices that are associated with the X session. Thexdpy keyword has no default value.
When successful,add_allocate returns an exit status of0 (true).add_allocate returnsa nonzero exit status in the event of an error. The exitcodes are as follows:
Invocation syntax error
Unknown system error
An entry already exists for the specified device. This error occurs only when the-f option is not specified.
Permission denied. User does not have DAC or MAC access record updates.
Seeattributes(5) for descriptions of the following attributes:
|
The invocation is Uncommitted. The options are Uncommitted. The output is Not-an-Interface.
allocate(1),deallocate(1),list_devices(1),remove_allocatable(1M),attributes(5),device_clean(5)
The functionality described on this manual page is available only if thesystem is configured with Trusted Extensions.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |