Solaris Commands Interview Preparation Guide
Strengthen your Solaris Commands interview skills with our collection of 55 important questions. Each question is designed to test and expand your Solaris Commands expertise. Suitable for all experience levels, these questions will help you prepare thoroughly. Dont miss out on our free PDF download, containing all 55 questions to help you succeed in your Solaris Commands interview. Its an invaluable tool for reinforcing your knowledge and building confidence.55 Solaris Commands Questions and Answers:
1 :: How to unfreeze the svcgroup, (enable onl. & offl.)?
#haconf -makerw
#hagrp -unfreez SG -persistent
#haconf -dump -makero
#hagrp -unfreez SG -persistent
#haconf -dump -makero
2 :: How to check the connectivity between 2 nodes?
Get the mac address from both the nodes
#getmac /dev/qfe:0
Sv from server side
Cv from client side
#./dlpiping –sv /dev/qfe:0 macaddresss
#./dlpiping –cv /dev/qfe:0 macaddresss
#getmac /dev/qfe:0
Sv from server side
Cv from client side
#./dlpiping –sv /dev/qfe:0 macaddresss
#./dlpiping –cv /dev/qfe:0 macaddresss
3 :: How to stop the VCS?
Stop the cluster on the local server but leave the
application/s running, do not failover the application/s
#hastop -local
Stop cluster on local server but evacuate (failover) the
application/s to another node within the cluster
#hastop -local -evacuate
Stop the cluster on all nodes but leave the application/s
running
#hastop -all -force
application/s running, do not failover the application/s
#hastop -local
Stop cluster on local server but evacuate (failover) the
application/s to another node within the cluster
#hastop -local -evacuate
Stop the cluster on all nodes but leave the application/s
running
#hastop -all -force
4 :: Explain What are the service group dependence?
4types
Online local
Online remote
Online global
Offline global
Online local
Online remote
Online global
Offline global
5 :: Explain SUN CLUSTER offline cluster resources on smslu131?
verify resources are online on tgui1-svc
# scstat
Take all resources offline
# scswitch –F –g smsweb-rg
verify resources are offline on both tgui1 & tgui2
# scstat
verify resources are offline on tgui1-svc & tgui2-svc
# scstat
switch resources online on smslu131
#scswitch –Z –g smsweb-rg
verify resources are online on tgui1-svc
#scstat
verify resources are online on tgui1-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui2-svc
verify resources are online on tgui2-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui1-svc
verify resources are online on tgui1-svc
# scstat
# scstat
Take all resources offline
# scswitch –F –g smsweb-rg
verify resources are offline on both tgui1 & tgui2
# scstat
verify resources are offline on tgui1-svc & tgui2-svc
# scstat
switch resources online on smslu131
#scswitch –Z –g smsweb-rg
verify resources are online on tgui1-svc
#scstat
verify resources are online on tgui1-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui2-svc
verify resources are online on tgui2-svc
# scstat
switch resources from smslu131 to smslu132
# scswitch –z –g smsweb-rg –h tgui1-svc
verify resources are online on tgui1-svc
# scstat
6 :: How to delete a service group?
1. Check the Service Group dependancy with other service
group
#hares -dep <Service Group>
2.to make the cluster configuration to read write mode.
haconfig -dump ro
3.Switch the online Service groups to the other system.
#hagrp -switch <Service group> -to <host2>
4.Make the Service group stable on other Host or freez them
on other node:
#hares -freeze <Service group> -sys <host2>
5.Make the service group offline on host1
#hagrp -disable <service group> -sys <host1>
group
#hares -dep <Service Group>
2.to make the cluster configuration to read write mode.
haconfig -dump ro
3.Switch the online Service groups to the other system.
#hagrp -switch <Service group> -to <host2>
4.Make the Service group stable on other Host or freez them
on other node:
#hares -freeze <Service group> -sys <host2>
5.Make the service group offline on host1
#hagrp -disable <service group> -sys <host1>
7 :: How to add a server group?
#haconf –makerw
#hagrp –add groupname
#hagrp –modify groupname systemList –add node1 node2
#haconf –dump -makero
#hagrp –add groupname
#hagrp –modify groupname systemList –add node1 node2
#haconf –dump -makero
8 :: Suppose main.cf files corrupted how will you rectify?
We can recreate a corrupt main.cf configuration file using the below two files.
1)main.cf.previous
2)main.cmd
1)main.cf.previous
2)main.cmd
9 :: How to identify VXVM version?
If running on solaris use following command to get vxvm version-
pkginfo -l packagename
pkginfo -l packagename
10 :: What the path of scconf in cluster?
/usr/cluster/bin/scconf is the path in suncluster