1598N/A# The contents of this file are subject to the terms of the 98N/A# Common Development and Distribution License (the "License"). 98N/A# You may not use this file except in compliance with the License. 919N/A# See the License for the specific language governing permissions 919N/A# and limitations under the License. 919N/A# When distributing Covered Code, include this CDDL HEADER in each 919N/A# If applicable, add the following below this CDDL HEADER, with the 919N/A# fields enclosed by brackets "[]" replaced with your own identifying 919N/A# information: Portions Copyright [yyyy] [name of copyright owner] 919N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 1368N/A echo "SMF framework variables are not initialized." 1598N/A # Empty astring_list values show up as "" - do not return this. 98N/A # get debug property value # expand_prop "prop_name" "var_name" [ argflag ] # prop_name FMRI property name # var_name variable where result is stored; initialized # argflag The flag to be prepended to each property # value; optional argument # This function will retrieve the properties for "prop_name" via a call # to get_prop(). It will split-up the property values; it assumes that # the delimiter is whitespace. It will then prepend "argflag" to each # property value. The results will be stored in "var_name" which is if [ $# -lt 2 ] || [ -z $2 ]; then errlog "Internal error - expand_prop() has incorrect arguments" errlog "The property, \"${prop_name}\", is empty" # get listen_ifname property value. # get common config file properties errlog "No config_file specified, exiting" # If a leasefile does not exist, create an empty file. errlog "No lease_file specified, exiting" # Get append_agent_option V4 property value # get listen_ifname property value and modify it. # If listen_ifnames property value is "e1000g01 iprb0" then the # command line option will look like "-i e1000g0 -i iprb0" # Get servers V4 property value - command line option will look # like "1.2.3.5" "4.5.6.7". # NOTE: By default server property value is empty. User must # before enabling service. errlog 'Must specify at least one "servers" property value, exiting' # Get receivelinks V6 property value and modify it: # Given property values of "1.2.3.4%bge0#1 bge2,1.2.3.4%iprb", # the command line option will look like "-l 1.2.3.4%bge0#1 -l # NOTE: By default receivelinks value is empty. User must # before enabling service. # Get forwardlinks V6 property value and modify it: # Given forward_query_links property value is "1.2.3.4%bge0 bge2," # then the command line option will look like "-u 1.2.3.4%bge0 -u # NOTE: By default forwardlinks value is empty. User must # before enabling service. # get omapi_conn_limit property value. echo "isc-dhcp must be invoked from within SMF"