Narendra Kumar S.S writes:
> Hi,
> 
>      By default the value of 'local_only' property is set to false for
> "svc:/network/rpc/bind:default".
>      But, if that is changed to 'true', the user will not be able to reset
> it back to 'false'.
> *bash# *svcprop svc:/network/rpc/bind:default | grep local
> config/local_only boolean false
> *bash# *svccfg -s svc:/network/rpc/bind
> svc:/network/rpc/bind> setprop config/local_only=true
> svc:/network/rpc/bind> end
> *bash# *svcprop svc:/network/rpc/bind:default | grep local
> config/local_only boolean true
> *bash# *svccfg -s svc:/network/rpc/bind
> svc:/network/rpc/bind> setprop config/local_only=false
> svc:/network/rpc/bind> end
> *bash# *svcadm refresh svc:/network/rpc/bind:default
> *bash#*
> *bash# *svcprop svc:/network/rpc/bind:default | grep local
> config/local_only boolean true
> 
>      Anybody know how to resolve this problem?
> -- 
> Warm Regards,
> Narendra
> 
> Visit my blogs at:
> http://ssnarendrakumar.blogspot.com/
>   ___    ___    __    _
>  /  __/  /  __/  /     | / /
> _\   \   _ \   \   /   /| |/ /
> \___/ \___/   /_/ |__/

Narendra,

I tried a procedure similar to yours.  The only difference is that I added
a "svcadm refresh" after setting config/local_only to true.  This seemed to
work for me.  Here is a log of my steps:

    # svcprop svc:/network/rpc/bind:default | grep local
    config/local_only boolean false
    # svccfg -s svc:/network/rpc/bind
    svc:/network/rpc/bind> listprop config/local_only
    config/local_only  boolean  false
    svc:/network/rpc/bind> setprop config/local_only = true
    svc:/network/rpc/bind> quit
    # svcadm refresh svc:/network/rpc/bind:default
    # svcprop svc:/network/rpc/bind:default | grep local
    config/local_only boolean true
    # svccfg -s svc:/network/rpc/bind
    svc:/network/rpc/bind> listprop config/local_only
    config/local_only  boolean  true
    svc:/network/rpc/bind> setprop config/local_only = false
    svc:/network/rpc/bind> listprop config/local_only
    config/local_only  boolean  false
    svc:/network/rpc/bind> end
    # svcadm refresh svc:/network/rpc/bind:default
    # svcprop svc:/network/rpc/bind:default | grep local
    config/local_only boolean false

I ran my experiment on Nevada build 79.  You did not mention which release
of Solaris you are using.

tom

Reply via email to