I. Sam
Sam logfile:/var/SAM/log/samlog
Use/usr/SAM/bin/samlog_viewer to view
Sam-r specifies Sam access restrictions
Sam-F Verification
Ii. Install HPUX
Iii. System Startup Process:
The boot process is divided into Boot ROM and HPUX boot processes.
1. Power up or restart
2. the PDC executes and conducts self-check, including memory and CPU detection, and the peripherals connected to the host.
3. the PDC initializes the console and displays information to find the primary boot path.
4. the PDC is loaded from the boot path and isl is executed, so far the ROM boot phase has ended.
5. The isl loads HPUX in the boot area of the disk.
6. HPUX loads the HPUX kernel/STAND/vmunix to the memory, and gives control to the kernel
7. Run the Swapper process and INIT process in the kernel.
8. The INIT process reads the initialization file/etc/inittab, starts to initialize the operating system daemon process, and runs the system to a suitable available state.
PDC:
The PDC resides in the ROM of the system. If there are different PDC instances on different machines, the PDC is executed after the system is added or restarted. It mainly performs self-check and peripheral check, after the memory check is completed, it initializes the control terminal, copies the terminal path to the memory, and copies the boot path and autoboot ID to the path. If autoboot disable, it displays a command menu, if the Enable is enabled, a message indicating autoboot start appears. If you press any key within 10 seconds, the PDC menu appears.
Select Start Device
Search
Boot ×
Single User Guide:
For V-class machines
Boot pri-Is boot to single user
Other machines can use boot PRI to execute HPUX-is from ISL.
Boot area:
It mainly includes:
1. LIF volume header ID
2. a file containing the HP-UX volume name
3. A directory containing files contained in the boot Area
4. isl
5. HPUX
6. Auto File
View lifls-L/dev/DSK/c0t6d0
Lifcp view auto File Content
Mkboot rmboot is used to install, configure, and delete the LIF region.
Isl:
Setboot
Single User Mode: HPUX-is
Specify the kernel: HPUX/STAND/vmunix. Old
HPUX-ll/stand
HPUX show autofile
HPUX set autofile filename
HPUX-V
PDC --> isl --> HPUX -->/STAND/vmunix --> Swapper -->/sbin/pre_init_rc -->/sbin/init
Init:
Main completed actions:
1. Read the initdefault parameter in/etc/inittab.
2. initialize the kernel data structure/sbin/ioinitrc
3. Run/sbin/bcheckrc
4. Run/sbin/RC to run the system at the default level.
/Etc/inittab file format:
ID: rstate: Action: Process
Rstate can be in the following states:
Boot: when the system is started, it runs without waiting for it to end and does not restart when the system is interrupted.
Bootwait: Run at system startup and wait for it to end without restarting.
Initdefault: Default runlevel
Respawn: if the process does not exist or is interrupted, restart it.
Sysinit: This process accesses the console earlier than init and is often used to initialize devices.
Wait: initializes the process and waits for completion.
Initialize IO Device ioinit:
After initdefault is read, The INIT process starts to execute the command or script in the rstat column "sysinit, the most important one is that/sbin/ioinitrc uses the/etc/ioconfig file to call the ioinit command to check and maintain the integrity of the data structure between/etc/ioconfig and the kernel, specify the instance number for the new device and run the insf command to create the device file.
/Sbin/bcheckrc:
If the system uses LVM to activate LVM, use fsck to check and fix the file system and load the appropriate keyboard map before mounting, if the system has an EISA device, run eisa_config to automatically configure and initialize them.
/Sbin/RC:
At any time, the system runs a new runlevel or the system runs from a low runlevel to a high runlevel.
Running level:
0 system shutdown
S single-user mode. Only one physical console is available. In the/etc/inittab, The sysinit daemon and it are directly available by the HPUX kernel START process.
The only difference between S and S is that the login terminal is regarded as the system console
1. Start some important processes and mount the file system, but add them to the single-user mode for System Management
2-User Mode
3 network service startup, NFS export, CDE start
4. Activate the GUI in the environment where the old HP vue is used
5. All user-defined services are available
6. All user-defined services are available
Change the running level:
Init n
It can be from low to high, not from high to the end, shutdown to a single user, reboot = init 0
View the current running level:
Who-R
To add a program that runs at startup, follow these steps:
The script is generally located in the/sbin/init. d directory, which contains all the daemon and services. The executable script generally includes four parts:
Start_msg
Stop_msg
Start
Stop
The script configuration file is located in the/etc/rc. config. d directory, with the same name as the script
After the script is created, you need to decide to start it at that running level. For example, in level2, you must create a link file under/sbin/rc2.d to point to the script, and the link file starts with S or K, followed by the number of running times
System shutdown:
Shutdown
-R reboot
-H halt
-Y: Do not interfere.
You must use this command in the/directory to add the delay time in seconds,
Log recorded in/etc/shutdown. Log
The/etc/shutdown. allow file configures those users with the permission to issue Shutdown
4. Software and Patch Management
Software in SD-UX is divided into the following hierarchical components:
Filesets --> subproducts --> Products --> Bundles
The location where these components are placed is called software depot.
Filesets: at the lowest layer of SD-UX, A filesets belongs to only one product, but it can be included in a series of subproducts and bundles.
Subproducts: subset of Products
Products: SD-UX operations based on products
Bundles: a collection of some products
View:
Swlist displays bundles and products without bundle by default.
You can use:
-L bundle
-L Products
-L fileset
-D @/var/spool/SW
-L file X11
-D @ Hp1:/mydepot
Software installation:
Swinstall
Swinstall-S/sd_cdrom
Log:/var/adm/SW/swinstall. Log
Codeword:
Save in/var/adm/SW/. codewords
Start and Stop the SD-UX daemon:
/Sbin/init. d/swagentd start
/Sbin/init. d/swagentd stop
The/var/adm/SW/products directory stores IPD (installed Product Database) information.
Uninstall software:
Swremove
Log:/var/adm/SW/swremove. Log
Find and delete useless file sets:
Freedisk
Software Verification:
Swverify
Manage Software depot:
The default value of software depots is/var/spool/SW.
Add
Swcopy-S source @/var/spool/SW
Remove
Swremove-D * @/var/spool/SW
List
Swlist-d @/dev/RMT/0 m
Patch:
All Patches start with Ph. The next two digits indicate the type, followed by the patch number.
There are four common types:
CO command
This type of patch is installed on the KL kernel and the system needs to be restarted.
Ne Network
SS Subsystem
View installed patches:
Swlist-l product Ph *
Swlist-l patch '*. *, c = patch'
Swlist-l patch
Patch installation process:
1. download the patch
2. Create a patch Depots
Swcopy-s phco_15220.depot phco_15220 @/var/spool/SW
3. Install the patch
Swinstall-S/var/spool/SW