HPUNIX daily maintenance command record

xiaoxiao2021-03-06  80

This article mainly describes your own daily maintenance and commands used in maintenance and diagnosis of HP engineers and some file configurations.

Hardware environment: RP8400 VA7400 DS2405 LTO Library HP FC Switch 8b

OS: HP UNIX 11i

Software environment: SANMGR HP OmniBack

Last -R -10 & LASTB -R -10

2. Use of what command (if you want to see the cause of a Core file) What core

3. TSM Use Ctrl W to switch the screen by Ctrl W in the TSM state;

4. How to change Hostname, ip land? NBSP; #set_parms

Can be the following: Hostname (Change Host Name) IP_Address (Change IP Address)

5. Use finger -r command for the finger command (see the client information currently logged in to the host)

6. Use of the ESC key to match the only file name in the current directory by hitting the ESC key in the command line, so that the time saver in the long file name

7. Use the use of the col command Man cp | col -b> cp.txt This command outputs the online help manual of the CP command as a text file called cp.txt

8. Use of which command (see absolute path of a command) Which command name

9. View language set installed in the system (locale -a)

10. How long does it take to display the system? Who will log in, what is it?

W & Uptime

11. View system current init level (WHO -R)

12. Display some information from the system (uname -a)

13. What should I do if the super user forgot the password? * Repel the machine, after the self-test, this line will appear "To Discontinue, Press Any Key In 10 Seconds", then you will stop starting, enter the main menu. * Type "Bo", in the system Inquiry "Interact with IPL (Y OR N?)", Enter "Y". * After the prompt isl>, enter "HPUX - IS" and the system enters the single user status. * Type "Passwd" and enter the new password. * Type "INIT 3" and restore the system to run.

14. Change the host IP address A. First use the "Lanscan" and "ifconfig" commands to detect the Net card's device name B. Edit the /etc/rc.config.d/netconf file using the vi command. Find interface_name [0] = lan1 ip_address [0] = "" Subnet_Mask [0] = "" Broadcast_address [0] = "" change the original IP address and SUBNET_MASK to a new value C. Use VI command editing / etc / hosts Document, change the IP address corresponding to the host name Note: Do not change the IP address directly, you should exit the CDE environment and complete the modification process.

15. Common log file monitoring

转载请注明原文地址:https://www.9cbs.com/read-94127.html

New Post(0)