1*0Sstevel@tonic-gate# 2*0Sstevel@tonic-gate# CDDL HEADER START 3*0Sstevel@tonic-gate# 4*0Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate# with the License. 8*0Sstevel@tonic-gate# 9*0Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate# See the License for the specific language governing permissions 12*0Sstevel@tonic-gate# and limitations under the License. 13*0Sstevel@tonic-gate# 14*0Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate# 20*0Sstevel@tonic-gate# CDDL HEADER END 21*0Sstevel@tonic-gate# 22*0Sstevel@tonic-gate# Copyright 1999 Sun Microsystems, Inc. All rights reserved. 23*0Sstevel@tonic-gate# Use is subject to license terms. 24*0Sstevel@tonic-gate# 25*0Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate# 28*0Sstevel@tonic-gate# Example configuration file for SLP. This file lists and explains 29*0Sstevel@tonic-gate# each property you can set for SLP. No properties are acutally set, 30*0Sstevel@tonic-gate# so uncomment and edit any properties you wish to change. The 31*0Sstevel@tonic-gate# file /etc/inet/slp.conf must exist in order for slpd(1m) to start, 32*0Sstevel@tonic-gate# so copy this file to /etc/inet/slp.conf to enable SLP. See 33*0Sstevel@tonic-gate# slp.conf(4), slpd(1m), or RFC 2614 for more information. 34*0Sstevel@tonic-gate# 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate# Specifies if slpd should act as a DA. Default is false. 37*0Sstevel@tonic-gate# 38*0Sstevel@tonic-gate# net.slp.isDA=true 39*0Sstevel@tonic-gate# 40*0Sstevel@tonic-gate 41*0Sstevel@tonic-gate# Static scope configuration 42*0Sstevel@tonic-gate# 43*0Sstevel@tonic-gate# Determines the set of scopes which this SA or DA supports. These scopes 44*0Sstevel@tonic-gate# will also be included in the list returned from a find scopes query. 45*0Sstevel@tonic-gate# This example simply sets the property to the default: 46*0Sstevel@tonic-gate# net.slp.useScopes=default 47*0Sstevel@tonic-gate# 48*0Sstevel@tonic-gate# This example sets the property to a site-specific list: 49*0Sstevel@tonic-gate# net.slp.useScopes=building17,building18,admin 50*0Sstevel@tonic-gate# 51*0Sstevel@tonic-gate 52*0Sstevel@tonic-gate# Static DA Configuration 53*0Sstevel@tonic-gate# 54*0Sstevel@tonic-gate# Forces UAs and SAs to use a set of DAs. 55*0Sstevel@tonic-gate# 56*0Sstevel@tonic-gate# This example specifies two DAs: 57*0Sstevel@tonic-gate# net.slp.DAAddresses=192.168.1.20,192.168.2.20 58*0Sstevel@tonic-gate# 59*0Sstevel@tonic-gate 60*0Sstevel@tonic-gate# Serialized Proxy Registrations 61*0Sstevel@tonic-gate# 62*0Sstevel@tonic-gate# Specifies a file containing a set of registrations to be processed 63*0Sstevel@tonic-gate# when slpd starts up, written as an URL. 64*0Sstevel@tonic-gate# To load a proxy-registration file at /etc/inet/slpd.reg: 65*0Sstevel@tonic-gate# net.slp.serializedRegURL=file:/etc/inet/slpd.reg 66*0Sstevel@tonic-gate# 67*0Sstevel@tonic-gate 68*0Sstevel@tonic-gate# Tracing and Logging 69*0Sstevel@tonic-gate# 70*0Sstevel@tonic-gate# By default, all tracing and logging is disabled. 71*0Sstevel@tonic-gate# 72*0Sstevel@tonic-gate# Display messages about traffic with DAs: 73*0Sstevel@tonic-gate# net.slp.traceDATraffic=true 74*0Sstevel@tonic-gate# 75*0Sstevel@tonic-gate# Display details about SLP messages: 76*0Sstevel@tonic-gate# net.slp.traceMsg=true 77*0Sstevel@tonic-gate# 78*0Sstevel@tonic-gate# Display details whenever a message is dropped: 79*0Sstevel@tonic-gate# net.slp.traceDrop=true 80*0Sstevel@tonic-gate# 81*0Sstevel@tonic-gate# Dump service table upon registration or deregistration: 82*0Sstevel@tonic-gate# net.slp.traceReg=true 83*0Sstevel@tonic-gate# 84*0Sstevel@tonic-gate 85*0Sstevel@tonic-gate# 86*0Sstevel@tonic-gate# Set this property to change the default DA Heartbeat (10800 seconds). 87*0Sstevel@tonic-gate# This example sets it to 7200 seconds (two hours): 88*0Sstevel@tonic-gate# net.slp.DAHeartBeat=7200 89*0Sstevel@tonic-gate# 90*0Sstevel@tonic-gate 91*0Sstevel@tonic-gate# 92*0Sstevel@tonic-gate# Use this property to configure special attributes for DAs; these 93*0Sstevel@tonic-gate# will be included in the attrs field in a DAAdvert. Currently 94*0Sstevel@tonic-gate# the only useful property is min-refresh-interval, which allows 95*0Sstevel@tonic-gate# you to set the minimum interval for which a DA will accept 96*0Sstevel@tonic-gate# registration refreshes. This example sets the minimum interval 97*0Sstevel@tonic-gate# to 3 hours (10800 seconds): 98*0Sstevel@tonic-gate# net.slp.DAAttributes=(min-refresh-interval=10800) 99*0Sstevel@tonic-gate# 100*0Sstevel@tonic-gate 101*0Sstevel@tonic-gate# 102*0Sstevel@tonic-gate# Use this property to configure special attributes for SAs; these 103*0Sstevel@tonic-gate# will be included in the attrs field in a SAAdvert. This example 104*0Sstevel@tonic-gate# sets the attribute "special-features" to "none": 105*0Sstevel@tonic-gate# net.slp.SAAttributes=(special-features=none) 106*0Sstevel@tonic-gate# 107*0Sstevel@tonic-gate 108*0Sstevel@tonic-gate# 109*0Sstevel@tonic-gate# Force SLP agents to use broadcast only (instead of the default multicast): 110*0Sstevel@tonic-gate# net.slp.isBroadcastOnly=true 111*0Sstevel@tonic-gate# 112*0Sstevel@tonic-gate 113*0Sstevel@tonic-gate# 114*0Sstevel@tonic-gate# Disable passive DA detection. Default is enabled. 115*0Sstevel@tonic-gate# net.slp.passiveDADetection=false 116*0Sstevel@tonic-gate# 117*0Sstevel@tonic-gate 118*0Sstevel@tonic-gate# 119*0Sstevel@tonic-gate# Change the multicast time-to-live (TTL). Default is 255. This example 120*0Sstevel@tonic-gate# limits SLP multicast to the local subnet only: 121*0Sstevel@tonic-gate# net.slp.multicastTTL=1 122*0Sstevel@tonic-gate# 123*0Sstevel@tonic-gate 124*0Sstevel@tonic-gate# 125*0Sstevel@tonic-gate# Set this property to change the default interval between DA discoveries. 126*0Sstevel@tonic-gate# Default is 900 seconds (15 minutes). This example changes it to 2 minutes 127*0Sstevel@tonic-gate# (at the risk of increasing network congestion): 128*0Sstevel@tonic-gate# net.slp.DAActiveDiscoveryInterval=120 129*0Sstevel@tonic-gate# 130*0Sstevel@tonic-gate 131*0Sstevel@tonic-gate# 132*0Sstevel@tonic-gate# Set this property to change the maximum amount of time to wait until 133*0Sstevel@tonic-gate# multicast convergance completes. Default is 15000 ms (15 seconds). This 134*0Sstevel@tonic-gate# example changes it to 20000 ms (20 seconds), which may be desirable on 135*0Sstevel@tonic-gate# congested networks with many SAs: 136*0Sstevel@tonic-gate# net.slp.multicastMaximumWait=20000 137*0Sstevel@tonic-gate# 138*0Sstevel@tonic-gate 139*0Sstevel@tonic-gate# 140*0Sstevel@tonic-gate# Set this property to control the intervals used in multicast convergance. 141*0Sstevel@tonic-gate# The default is 3000,3000,3000,3000,3000 (all 3 seconds). The following 142*0Sstevel@tonic-gate# example reduces the initial intervals, which may be increase responsiveness 143*0Sstevel@tonic-gate# on fast networks: 144*0Sstevel@tonic-gate# net.slp.multicastTimeouts=1000,1250,1500,2000,4000 145*0Sstevel@tonic-gate# 146*0Sstevel@tonic-gate# This example sets it to an aggressively short value; this may be useful 147*0Sstevel@tonic-gate# for increased responsiveness on fast, reliable networks: 148*0Sstevel@tonic-gate# net.slp.multicastTimeouts=1000 149*0Sstevel@tonic-gate 150*0Sstevel@tonic-gate# 151*0Sstevel@tonic-gate# This property works in a manner similar to net.slp.multicastTimeouts, 152*0Sstevel@tonic-gate# but acts on DA discovery multicast convergance instead. Default is 153*0Sstevel@tonic-gate# 2000,2000,2000,2000,3000,4000. This example increases the intervals, 154*0Sstevel@tonic-gate# which may help to discovery DAs which are slow, heavily loaded, or on 155*0Sstevel@tonic-gate# congested networks: 156*0Sstevel@tonic-gate# net.slp.DADiscoveryTimeouts=3000,3000,4000,4000,4000,4000 157*0Sstevel@tonic-gate# 158*0Sstevel@tonic-gate 159*0Sstevel@tonic-gate# 160*0Sstevel@tonic-gate# This property controls the retransmission intervals used for datagram 161*0Sstevel@tonic-gate# unicast. Default is 3000,3000,3000. This example decreases the 162*0Sstevel@tonic-gate# intervals for more aggressive retransmission, to 2 seconds: 163*0Sstevel@tonic-gate# net.slp.datagramTimeouts=2000,2000,2000 164*0Sstevel@tonic-gate# 165*0Sstevel@tonic-gate 166*0Sstevel@tonic-gate# 167*0Sstevel@tonic-gate# Set this property to change the maximum random wait bound (used with 168*0Sstevel@tonic-gate# initial DA discovery, for instance). Default is 1000 ms (1 second). 169*0Sstevel@tonic-gate# This example changes it to 2 seconds: 170*0Sstevel@tonic-gate# net.slp.randomWaitBound=2000 171*0Sstevel@tonic-gate# 172*0Sstevel@tonic-gate 173*0Sstevel@tonic-gate# 174*0Sstevel@tonic-gate# Change this property to change the maximum size of any datagram to 175*0Sstevel@tonic-gate# send (MTU), in bytes. Default is 1400. This example changes it to 176*0Sstevel@tonic-gate# 1500 bytes: 177*0Sstevel@tonic-gate# net.slp.MTU=1500 178*0Sstevel@tonic-gate# 179*0Sstevel@tonic-gate 180*0Sstevel@tonic-gate# 181*0Sstevel@tonic-gate# Set this property to restrict SLP to specific interfaces. Default is 182*0Sstevel@tonic-gate# empty, which causes SLP to use the the default interface. 183*0Sstevel@tonic-gate# 184*0Sstevel@tonic-gate# net.slp.interfaces=192.168.1.5,192.168.3.5 185*0Sstevel@tonic-gate# 186*0Sstevel@tonic-gate 187*0Sstevel@tonic-gate# 188*0Sstevel@tonic-gate# This property specifies the language tag to use for all messages. 189*0Sstevel@tonic-gate# Default is "en". This example changes it to "de": 190*0Sstevel@tonic-gate# net.slp.locale=de 191*0Sstevel@tonic-gate# 192*0Sstevel@tonic-gate 193*0Sstevel@tonic-gate# 194*0Sstevel@tonic-gate# Set this property to limit the total number of results for any 195*0Sstevel@tonic-gate# SLP query. Default is all results (-1). This example limits it 196*0Sstevel@tonic-gate# to 100: 197*0Sstevel@tonic-gate# net.slp.maxResults=100 198*0Sstevel@tonic-gate# 199*0Sstevel@tonic-gate 200*0Sstevel@tonic-gate# 201*0Sstevel@tonic-gate# A type hint will be used if an agent needs to discover scopes with 202*0Sstevel@tonic-gate# service agent solicitations. If the type hint is set, only service 203*0Sstevel@tonic-gate# agents which support those types will respond. In effect, this poses 204*0Sstevel@tonic-gate# the query: "find me all scopes which contain these service types." 205*0Sstevel@tonic-gate# 206*0Sstevel@tonic-gate# This sets the type hint to service:foo and service:bar: 207*0Sstevel@tonic-gate# net.slp.typeHint=service:foo,service:bar 208*0Sstevel@tonic-gate# 209