PACKAGE MANAGEMENT
pkgadd -d [device | pathname] pkg_name pkgchk [-p path1 [path2...]] pkgrm pkgname1 pkgname2 … NIS MANAGEMENT ypmake ---– rebuild NIS database nispopulate ---– populate the NIS+ tables in a NIS+ domain BOOT ARCHIVE When you install the Solaris OS, two boot archives are created, one primary archive and one failsafe archive. RESTORE OS - Maintenance Mode /lib/svc/method/fs-root /lib/svc/method/fs-usr /lib/svc/bin/restore_repository RDAC FILE - man it /etc/user_attr /etc/security/auth_attr /etc/security/prof_attr /etc/security/exec_attr NAME SERVICE SCOPE /etc/nsswitch.conf USER AUTH FILES /etc/passwd ------------------------- username : password : uid : gid : comment : home - directory : login-shell jarvis:x:100:100::/export/home/jarvis:/bin/bash ------------------------- /etc/shadow ------------------------- username : password : lastchg : min : max : warn : inactive : expire jarvis:JGA/FIryYxFUE:14631:::::: ------------------------- /etc/group ------------------------- group-name : group-password : gid : user-list oracle::103:oracle ------------------------- RUN LEVEL ■ Run level 3 – All system resources are available and users can log in. By default, booting a system brings it to run level 3, which is used for normal day-to-day operations. This run level is also known as multiuser level with NFS resources shared. ■ Run level 6 – Stops the operating system and reboots to the state that is defined by the initdefault entry in the /etc/inittab file. ■ Run level 0 – The operating system is shut down, and it is safe to turn off power. You need to bring a system to run level 0 whenever you move a system, or add or remove hardware. KERNEL PARAMETER /etc/system
COMPRESS/UNCOMPRESS ROOT ARCHIVE
/boot/solaris/bin/root_archive
SERVICES
svcs --- list services
svcadm --- admin services
svccfg
svcs -p --- relationships between services and processes
svcs -x --- explanation of why a process isn't running
/var/svc/log/ --- boot log of each services
■ Services are automattically restarted if possible, a service process refuse to die
■ FMRI --- Fault Management Resource Identifier
■svc://localhost/system/system-log:default
■ Service Category ■ application
■ Service States ■ degraded – The service instance is enabled, but is running at a limited capacity.
/var/svc/profile/ --- SMF Profiles
svcprog --- Retrieves property values from the service configuration repository with a output format appropriate for use in shell scripts svcs -l FMRI --- list the status of services svcs -a --- show all the processes' status svcs -D FMRI --- show services dependent on this service svcs -d FMRI --- show services this service dependent on
svcadmin enable svcadmin disable
RUN LEVEL
0/5 Power Down State s Single User State 1 Admin State 2 Multiuser State -- All Service except NFS 3/4 Mutiuser State with NFS 6 Reboot
who -r -- see run level
/etc/inittab
id : rstate : action : process
id --- Is a unique identifier for the entry. Possible values include: sysinit , boot , bootwait , wait , and respawn .
example: p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog h1:3:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null
Adding a Run Control Script
# cp xyz /etc/init.d
|
08-17