1)to check service
root@solaris1:~# svcs node
STATE STIME FMRI
online Dec_07 svc:/system/identity:node
2)change servie properties
root@solaris1:~# svccfg -s svc:/system/identity:node
svc:/system/identity:node> listprop config/nodename
config/nodename astring solaris1
svc:/system/identity:node> listprop private_data/mapped_hostname
private_data/mapped_hostname astring solaris1
svc:/system/identity:node> listprop
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/loopback astring
config/nodename astring solaris1
private_data application
private_data/mapped_hostname astring solaris1
private_data/mapped_addresses astring 10.66.10.108
milestoneconfig_system_identity_node dependency
milestoneconfig_system_identity_node/entities fmri svc:/milestone/config
milestoneconfig_system_identity_node/external boolean true
milestoneconfig_system_identity_node/grouping astring optional_all
milestoneconfig_system_identity_node/restart_on astring none
milestoneconfig_system_identity_node/type astring service
identitynode_milestone-config dependency
identitynode_milestone-config/entities fmri svc:/milestone/config:default
identitynode_milestone-config/grouping astring optional_all
identitynode_milestone-config/restart_on astring none
identitynode_milestone-config/type astring service
dependents framework
dependents/identitynode_self-assembly-complete fmri svc:/milestone/self-assembly-complete
general framework
general/complete astring
general/enabled boolean true
start method
start/exec astring "/lib/svc/method/identity-node start"
start/timeout_seconds count 60
start/type astring method
refresh method
refresh/exec astring "/lib/svc/method/identity-node refresh"
refresh/timeout_seconds count 60
refresh/type astring method
unconfigure method
unconfigure/exec astring "/lib/svc/method/identity-node unconfigure"
unconfigure/timeout_seconds count 60
unconfigure/type astring method
sysconfig sysconfig
sysconfig/group astring identity
sysconfig/reconfigurable boolean false
tm_common_name template
tm_common_name/C ustring "system identity (nodename)"
tm_man_nodename4 template
tm_man_nodename4/manpath astring /usr/share/man
tm_man_nodename4/section astring 4
tm_man_nodename4/title astring nodename
tm_pgpatnt_config template_pg_pattern
tm_pgpatnt_config/description_C ustring "Properties that control the configuration of the node"
tm_pgpatnt_config/name astring config
tm_pgpatnt_config/required boolean false
tm_pgpatnt_config/target astring this
tm_pgpatnt_config/type astring application
tm_proppat_nt_config_nodename template_prop_pattern
tm_proppat_nt_config_nodename/description_C ustring "Network name of the computer"
tm_proppat_nt_config_nodename/name astring nodename
tm_proppat_nt_config_nodename/pg_pattern astring tm_pgpatnt_config
tm_proppat_nt_config_nodename/required boolean false
tm_proppat_nt_config_nodename/type astring astring
tm_proppat_nt_config_loopback template_prop_pattern
tm_proppat_nt_config_loopback/description_C ustring "Hostname mapped to loopback"
tm_proppat_nt_config_loopback/name astring loopback
tm_proppat_nt_config_loopback/pg_pattern astring tm_pgpatnt_config
tm_proppat_nt_config_loopback/required boolean false
tm_proppat_nt_config_loopback/type astring astring
tm_proppat_nt_config_ignore_dhcp_hostname template_prop_pattern
tm_proppat_nt_config_ignore_dhcp_hostname/description_C ustring "Ignore hostname returned by DHCP"
tm_proppat_nt_config_ignore_dhcp_hostname/name astring ignore_dhcp_hostname
tm_proppat_nt_config_ignore_dhcp_hostname/pg_pattern astring tm_pgpatnt_config
tm_proppat_nt_config_ignore_dhcp_hostname/required boolean false
tm_proppat_nt_config_ignore_dhcp_hostname/type astring boolean
restarter framework NONPERSISTENT
restarter/logfile astring /var/svc/log/system-identity:node.log
restarter/start_pid count 566
restarter/start_method_timestamp time 1386419141.514872000
restarter/start_method_waitstatus integer 0
restarter/transient_contract count
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1386419141.544821000
>
>
svc:/system/identity:node> setprop config/nodename = solaris2
svc:/system/identity:node> listprop config/nodename
config/nodename astring solaris2
svc:/system/identity:node> setprop private_data/mapped_hostname=solaris2
svc:/system/identity:node> listprop private_data/mapped_hostname
private_data/mapped_hostname astring solaris2
3)NO use service disable & enable with out refresh ???????????
root@solaris1:~# svcadm restart node
root@solaris1:~# svcadm disable node
root@solaris1:~# svcs node
STATE STIME FMRI
disabled 18:40:58 svc:/system/identity:node
root@solaris1:~# svcadm enable node
root@solaris1:~# svcs node
STATE STIME FMRI
online 18:41:06 svc:/system/identity:node
root@solaris1:~# su -
Oracle Corporation SunOS 5.11 11.1 September 2012
You have new mail.
root@solaris1:~#
4)once i refresh service then changes happens
root@solaris1:~# svcadm refresh node
root@solaris1:~# su -
Oracle Corporation SunOS 5.11 11.1 September 2012
You have new mail.
root@solaris2:~#
No comments:
Post a Comment