Actually,
Maybe it is operator error.
Not sure why raw -p options doesn't work though.
-Paul

bash-3.2# svcprop -cp options/logging 
restarter                                
debug                                                                           

bash-3.2# svcprop -Cp options/logging 
restarter                                
debug                                                                           

bash-3.2# svcprop -p options/logging 
restarter                                 
svcprop: Couldn't find property group `options' for instance 
`svc:/system/svc/restarter:default'.



On 05/11/09 12:36, Paul Neary wrote:
> On 05/08/09 19:15, David Bustos wrote:
>> Quoth Paul Neary on Thu, May 07, 2009 at 05:41:14PM +0100:
>>   
>>> Does the repository get updated each time I use an svccfg command though 
>>> (before doing a refresh)? 
>>>     
>>
>> Yes.  Changes are stored on the directly attached properties, and
>> refresh updates the running snapshot.
>>
>>   
>>> I'm still not seeing this working on Nevada 113 however.  I'm running 
>>> an  svccfg script to add the options and do a refresh (see attached).
>>> svccfg -f ./svccfg_add
>>>
>>> o The -p seems not to work
>>> # svcprop -p options/logging svc:/system/svc/restarter:default
>>> svcprop: Couldn't find property group `options' for instance 
>>> `svc:/system/svc/restarter:default'.
>>>     
>>
>> It works for me on 109.  What does
>>
>>      truss -t \!all -u libscf svcprop -p options/logging ...
>>
>> report?
>>
>>   
> See truss output below on Nevada 109.   instance_to_fmri seems to fail.
> If it works for you is it just operator error on my part?
> -p
>>> Is this unusual behavior something to do with sv.startd being the master 
>>> SMF service?
>>>     
>>
>> Yes and no.  svc.startd knows that instance is special and avoids
>> operating on it to prevent strange things from happening.  This includes
>> updating, or even creating, a running snapshot.  However, svcprop and
>> svc.startd know to fall back to the current properties if the running
>> snapshot doesn't exist, so that svcprop should work anyway.
>>
>>
>> David
>>   
>  more /etc/release
>                  Solaris Express Community Edition snv_109 SPARC
>            Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
>                         Use is subject to license terms.
>                            Assembled 23 February 2009
>
> o Adding the options/logging property
> bash-3.2# svccfg -f ./svccfg_add
> options/logging  astring  debug
>
> o using svcprop
> bash-3.2# svcprop -p options/logging restarter
> svcprop: Couldn't find property group `options' for instance 
> `svc:/system/svc/restarter:default'.
>
> o using truss
> bash-3.2# truss -t \!all -u libscf svcprop -p options/logging  restarter
> /1 at 1:   -> libscf:scf_limit(0xfffff830, 0xffbffe5c, 0x14688, 0xffffffff)
> /1 at 1:   <- libscf:scf_limit() = 119
> /1 at 1:   -> libscf:scf_limit(0xfffff82f, 0xffbffe5c, 0x14688, 0xffffffff)
> /1 at 1:   <- libscf:scf_limit() = 4095
> /1 at 1:   -> libscf:scf_limit(0xfffff82d, 0xffbffe5c, 0x14688, 0xffffffff)
> /1 at 1:   <- libscf:scf_limit() = 628
> /1 at 1:   -> libscf:scf_handle_create(0x1, 0xffbffe5c, 0x14688, 0xffffffff)
> /1 at 1:   <- libscf:scf_handle_create() = 0x27880
> /1 at 1:   -> libscf:scf_handle_bind(0x27880, 0xff09c000, 0x14688, 
> 0xff09d1d4)
> /1 at 1:   <- libscf:scf_handle_bind() = 0
> /1 at 1:   -> libscf:scf_walk_fmri(0x27880, 0x1, 0xffbffe68, 0x2d)
> /1 at 1:     -> libscf:scf_pg_create(0x27880, 0x0, 0x0, 0x0)
> /1 at 1:     <- libscf:scf_pg_create() = 0x26998
> /1 at 1:     -> libscf:scf_property_create(0x27880, 0x0, 0x0, 0x0)
> /1 at 1:     <- libscf:scf_property_create() = 0x269b8
> /1 at 1:     -> libscf:scf_snapshot_create(0x27880, 0x0, 0x0, 0x0)
> /1 at 1:     <- libscf:scf_snapshot_create() = 0x269d8
> /1 at 1:     -> libscf:scf_instance_get_snapshot(0x26898, 0x265bc, 
> 0x269d8, 0x0)
> /1 at 1:     <- libscf:scf_instance_get_snapshot() = 0
> /1 at 1:     -> libscf:scf_instance_get_pg_composed(0x26898, 0x269d8, 
> 0xffbfff17, 0x26998)
> /1 at 1:     <- libscf:scf_instance_get_pg_composed() = -1
> /1 at 1:     -> libscf:scf_error(0xffffffff, 0xffbfff17, 0x6, 0x26998)
> /1 at 1:     <- libscf:scf_error() = 1003
> /1 at 1:     -> libscf:scf_instance_get_pg_composed(0x26898, 0x0, 
> 0xffbfff17, 0x26998)
> /1 at 1:     <- libscf:scf_instance_get_pg_composed() = 0
> /1 at 1:     -> libscf:scf_pg_get_flags(0x26998, 0xffbffb90, 0x6, 0x26998)
> /1 at 1:     <- libscf:scf_pg_get_flags() = 0
> /1 at 1:     -> libscf:scf_instance_to_fmri(0x26898, 0x2b128, 0x275, 0x274)
> /1 at 1:     <- libscf:scf_instance_to_fmri() = 33
> svcprop: Couldn't find property group `options' for instance 
> `svc:/system/svc/restarter:default'.
> /1 at 1:     -> libscf:scf_property_destroy(0x269b8, 0x26f98, 0x2764c, 0x0)
> /1 at 1:     <- libscf:scf_property_destroy() = 0
> /1 at 1:     -> libscf:scf_pg_destroy(0x26998, 0x1c00, 0xff358300, 
> 0xff354000)
> /1 at 1:     <- libscf:scf_pg_destroy() = 0
> /1 at 1:     -> libscf:scf_snapshot_destroy(0x269d8, 0x0, 0x0, 0x2b128)
> /1 at 1:     <- libscf:scf_snapshot_destroy() = 0
> /1 at 1:   <- libscf:scf_walk_fmri() = 0
> /1 at 1:   -> libscf:scf_handle_destroy(0x27880, 0x1, 0x26898, 0x26fb0)
> /1 at 1:   <- libscf:scf_handle_destroy() = 0
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090511/1595b4cb/attachment.html>

Reply via email to