svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
nscd.conf(5)
nscd.conf(5) File Formats nscd.conf(5)
NAME
nscd.conf - name service cache daemon configuration
SYNOPSIS
svc:/system/name-service/cache
/etc/nscd.conf
DESCRIPTION
The SMF service svc:/system/name-service/cache contains the configura‐
tion information for nscd(8).
Do not edit the /etc/nscd.conf file as it is private.
Service configuration is applied from built-in defaults or from the
config property group. Provide Individual Cache configuration proper‐
ties from within their specific property group, or when unspecified by
the default property group.
Service Configuration Properties
The following table shows the service configuration properties that are
in the config property group:
tab(); lw(2.75i) lw(2.75i) lw(2.75i) lw(2.75i) PROPERTYUSAGE _ con‐
fig/enable_per_user_lookupEnable per-user lookups con‐
fig/per_user_nscd_time_to_livePer-user nscd time to live config/log‐
fileLog file location config/debug_levelDebugging/Log level flags con‐
fig/debug_componentsSubsystem debugging con‐
fig/global_check_smf_state_intervalSMF status check interval
enable_per_user_lookup value
Explicitly enable or disable nscd per-user mode, see nscd(8). By
default, the value is unset in SMF, which causes nscd to determine
whether the following conditions are true at startup:
o ldap is configured in nsswitch.conf(5)
o svc:/network/ldap/client (ldap_cachemgr(8)) is enabled
o ldapclient(8) has credentialLevel set to self.
Valid values for this property are true and false.
When enabled, multiple nscd processes exist. Two nscd processes
that have a UID of 0 (the parent and a forker) are always running,
while other per-user nscd processes that have a non-0 UID only run
as needed.
Using per-user lookups might not be possible if the corresponding
name service switch backends do not support those lookups or if the
backends are not configured to do so. Currently, ldap(7) is the
only applicable backend, see ldapclient(8) for information about
the credentialLevel and the authenticationMethod properties.
per_user_nscd_time_to_live value
Sets the idle time-to-live value for the non-0 UID per-user nscd
processes. The value, in seconds, is based on the last time the
per-user nscd was active. The default value is 120 seconds.
logfile filename
Specifies name of the file in which to write debug information. By
default, the file is /dev/null. Logging depends on the debug_level
and debug_components settings. Note that the log file can grow to
multiple gigabytes very quickly.
global_check_smf_state_interval value
Interval between checking the status of dependent SMF services such
as ldap(7), nis(7) and mdns(8). The default value is 120 seconds.
debug_level value
Specifies the desired debug level. The default value is "None". Use
the svccfg describe command to list available levels. Note that the
configuration values and the debug level output can change at any
time, so do not depend upon this information in scripts.
debug_components value
Specifies the nscd components that should generate debug messages.
The default value is "None". Use the svccfg describe command to
view the available components and a brief description of each. Note
that the configuration values and the component output can change
at any time, so do not depend upon this information in scripts.
Cache Configuration Groups
You can configure a specific cache in its individual property group.
The following table summarizes the supported databases, their respec‐
tive SMF service property group names, and the entities that use them.
The Database column shows the form used by nscd usage output, while the
Group column shows the name used for the SMF property group.
tab(); lw(1.03i) lw(1.03i) lw(3.44i) lw(1.03i) lw(1.03i) lw(3.44i)
DatabaseGroupUsed By _ auth_attrauth_attrgetauthnam(3C) automountauto‐
mountautomount(8)bootparamsbootparamrpc.bootparamd(8) ether‐
setherethers(3C)exec_attrexec_attrexec_attr(5)groupgroupgetgrnam(3C)
hostshostT{ getaddrinfo(3C), getnameinfo(3C), gethostent(3C). T} ipn‐
odeshostT{ getaddrinfo(3C), getnameinfo(3C), getipnodebyaddr(3C). T}
netgroupnetgroupinnetgr(3C)netmasksnetmaskipadm(8) networksnetworkget‐
netbyname(3C)passwdpasswordgetpwnam(3C), getspnam(3C) prof_attr‐
prof_attrgetprofnam(3C), getexecprof(3C) projectprojectT{ getpro‐
jent(3PROJECT), getdefaultproj(3PROJECT), inproj(3PROJECT), newtask(1),
setproject(3PROJECT) T} protocolsprotocolgetprotobyname(3C) rpcrpcgetr‐
pcbyname(3C)servicesservicegetservbyname(3C)tnrhtptnrhtptnctl(8)tnrhdbtnrhdbtnctl(8)user_attruser_attrgetuserattr(3C)
Note that the ipnodes cache uses host group properties while being
cached independently.
Cache Configuration Properties
The following cache configuration properties are available within a
Group or the default property group:
check_file_interval value
Specifies an interval, in seconds, for the minimum time between
check_files checks. The default value is 0, which performs a check
each time the associated database is queried.
check_files value
Enables or disables the periodic checking of the corresponding
cache file. The time period is based on the number of seconds spec‐
ified by the check_file_interval property. By default, the periodic
check is enabled. The checks include the file's modified date,
size, and inode number. In addition, the check invalidates the
cache if any of the checked values differ from when the file was
last read. If you disable these checks you might experience a
slight performance boost. Disable these checks when you do not mod‐
ify the file and run the nscd -i cachename command as needed. Valid
values are true and false.
enable_cache value
Enables or disables the specified cache. The value can be either
true or false.
keep_hot_count value
Use this attribute to specify the number of entries that nscd(8)
keeps current in the specified cache. The value is an integer that
approximates the number of entries that are used frequently during
the day.
negative_time_to_live value
Specifies the time-to-live, in seconds, for unsuccessful queries
(negative entries) of the specified cache. Keep this value small to
reduce cache coherency issues.
positive_time_to_live value
Specifies the time-to-live, in seconds, for successful queries
(positive entries) of the specified cache. Larger values increase
cache hit rates and reduce mean response times and might increase
problems with cache coherence. Set the value to at least 43200 sec‐
onds (12 hours) to improve performance for sites that update NIS
maps nightly. When DNS is the source, use the DNS-returned TTL
value unless it is greater than the positive_time_to_live property
value. See nsswitch.conf(5).
EXAMPLES
Example 1 Setting the passwd Cache's negative_time_to_live Property
Value to Ten Seconds.
Specifying a larger value might result in significant performance
improvements if several files are owned by user IDs (UIDs) that are not
in system databases.
example# svccfg -s name-service/cache
svc:/system/name-service/cache> addpg password application
svc:/system/name-service/cache> setprop password/negative_time_to_live = 10
svc:/system/name-service/cache> refresh
Note that you must add a property group before you can set the group's
properties.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/core-os _ Interface StabilityCommit‐
ted
SEE ALSO
auth_attr(5), bootparams(5), ethers(5), exec_attr(5), group(5),
hosts(5), netmasks(5), networks(5), nsswitch.conf(5), passwd(5),
prof_attr(5), project(5), protocols(5), rpc(5), services(5),
user_attr(5), attributes(7), ldap(7), nis(7), ldap_cachemgr(8),
mdns(8), nscd(8), svccfg(8)
HISTORY
The Solaris 2.5 OS introduced the /etc/nscd.conf file as the nscd
administrative configuration file.
The Oracle Solaris 10 OS introduced the svc:/system/name-service-cache
service. Having this service enabled has been recommended since Solaris
10 8/07.
The Oracle Solaris 11.0 OS introduced the svc:/system/name-ser‐
vice/cache service and replaced the /etc/nscd.conf administrative con‐
figuration file. Starting with Oracle Solaris 11.4, the service must be
enabled and be online with the nscd daemon running for certain configu‐
rations to function correctly.
Oracle Solaris 11.4 5 Nov 2021 nscd.conf(5)