David Powell wrote: > Roland Mainz wrote: > > Is it a bug or a feature that /usr/bin/svcprop reports "astring_list" as > > an "astring" ? > > Neither :) There's no such thing as an "astring_list".
Groan... and how can I figure out whether a property has multiple values ? > > For example "nss_mdns_config/domain" is declared as "astring_list" in > > > http://src.opensolaris.org./source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/multicast.xml > > but /usr/bin/svcprop returns: > > -- snip -- > > $ /usr/bin/svcprop '*multicast*' | fgrep local > > nss_mdns_config/domain astring local b.e.f.ip6.arpa a.e.f.ip6.arpa > > 9.e.f.ip6.arpa 8.e.f.ip6.arpa 254.169.in-addr.arpa > > -- snip -- > > nss_mdns_config/domain is defined to be of type astring in > multicast.xml: > > <property name='domain' type='astring'> > > "astring_list" is simply how a list of multiple astrings is > represented in our XML schema. > > We don't have separate "XXX" and "XXX array" types in SMF. A > property of type XXX can have multiple values; for most properties, > the number of values is 1. Ok... two questions: 1. How can a Bourne[1] shell script get the number of values in a property ? 2. How can I get value number <n> from a Bourne[1] shell script ? [1]=Yes, yes... this is half a devilish question... I already know a solution for ksh93 but I'm trying to figure out whether the _design_ of SMF covers these parts... ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)