ada yang teriak² di shout out SHL .... saya cuma mau bantu ya gan... :D :D :D
klo saya maapin aku.... :P :P ;P
Informative Commands
svcs -a # State of all the services on the system
svcs -l <FMRI> # Detailed info about a service instance
svcs -d <FMRI> # Show the dependencies for a given service instance
svcs -D <FMRI> # Show the dependents for a given service instance
svcs -p <FMRI> # Show the process ID for a given service instance
svcs -x [FMRI] # Explain why a service instance has failed
svcs -v [FMRI] # Show verbose information for a given service instance
inetadm -l <FMRI> # Show detailed information about an inetd service
* FMRI: Fault Management Resource Identifier
Administrative Commands
svcadm enable <FMRI> # Attempts to enable the service
svcadm disable [-t] <FMRI> # Disable a given service (temporarily until the next reboot when -t specified)
svcadm restart <FMRI> # Restart a given service
svcadm refresh <FMRI> # Re-read the config info
svcadm mark <state> <FMRI> # Manually put a service in maintenance or degraded state
svcadm clear <FMRI> # To clear the maintenance or degraded state
# after rectifying the fault
svcadm milestone <mstone>|all # Enable/disable the services for the milestone
inetadm -e <FMRI> # Attempt to enable a given inetd-based service
inetadm -d <FMRI> # Disable a given inetd-based service
Configuration Commands
svccfg # To manipulate the data in the repository
svcprop # To display info about a service
inetadm # To display/modify inet related services
The svccfg sub-commands are:
svccfg select <FMRI>
list
listprop
setprop <property> = <value>
delete <FMRI>
validate <manifest.xml>
import <manifest.xml>
unselect
listsnap
selectsnap
revert [<snapshot>]
Files
* Logs: /var/svc/log and /etc/svc/volatile
* Manifests: /var/svc/manifest/
* Methods: /lib/svc/method/
To see the log file location :
svcs -l <FMRI> | grep logfile
[edit]
Zones
http://opensolaris.org/os/community/zones
[edit]
Commands
zoneadm
zonecfg
zonename
Creating a zone
# zonecfg -z myzone1
myzone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:myzone1> create
zonecfg:myzone1> add fs
zonecfg:myzone1:fs> set dir=/mnt/local
zonecfg:myzone1:fs> set special=/opt/sfw
zonecfg:myzone1:fs> set type=lofs
zonecfg:myzone1:fs> set options=[ro,nodevices]
zonecfg:myzone1:fs> end
zonecfg:myzone1> add rctl
zonecfg:myzone1:rctl> set name=zone.cpu-shares
zonecfg:myzone1:rctl> add value (priv=privileged, limit=1,action=none)
zonecfg:myzone1:rctl> end
zonecfg:myzone1> add attr
zonecfg:myzone1:attr> set name=comment
zonecfg:myzone1:attr> set type=string
zonecfg:myzone1:attr> set value="firstzone"
zonecfg:myzone1:attr> end
zonecfg:myzone1> set autoboot=true
zonecfg:myzone1> set zonepath=/export/home/zone/myzone1
zonecfg:myzone1> add net
zonecfg:myzone1:net> set address=10.6.49.141
zonecfg:myzone1:net> set physical=hme0
zonecfg:myzone1:net> end
zonecfg:myzone1> verify
zonecfg:myzone1> commit
zonecfg:myzone1> exit
Now let us install and boot the zone:
# zoneadm -z myzone1 install
# zoneadm -z myzone1 boot
hmm...kira² seperti itu yak nlack_nation
=============================================================
Author :
http://opensolaris.org