Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of AIX- daily operation and maintenance orders

2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

View the system IP address: netstat-in

1. View the physical construction information of the AIX server, including the server network configuration information

# prtconf

# ifconfig-a

# lsattr-E-l mem0: view system memory size

# netstat-in: displays the configuration information of each network card in the system

2. Turn on and off the AIX server

# shutdown-F: fast shutdown

# shutdown-I: shut down the system in interactive mode

# shutdown-K: avoid shutting down the system

# shutdown-m: install and run in maintenance mode after shutting down the AIX system service

# shutdown-r: restart immediately after shutting down the server

3. Set the network IP

# smit tcpip

4. View the device information in the system (board, adapter, disk, tape drive, optical drive, network card, processor, etc.)

# lscfg

5. View a device information, such as disk information

# lscfg-l hdisk0

6. Check the AIX host model

# uname-M

7. To view the product part number, serial number and design change level, you can use the-v option

# lscfg-v | more

8. View device information and display title line at the same time

# lsdev-P-H

9. Check the network card information

# lsdev-Cc adapter

# lsdev-Cc adapter | grep ent

Check the number of CPU:

Smtctl

10. View the device properties and other information of the tape drive

# lsattr-l tmt0-D

11. system version information and running environment and other information

# uname-a

# oslevel-r

# oslevel-s

12. Check what software is installed on the system

# lslpp-l

13. View system installation patch information

# instfix-I

# lslevel-s

# oslevel-rq

14. View disk information

# lspv

15. Activate the volume group

# varyonvg datavg

16. View the information of the volume group

# lsvg-o

14. View the details of the volume group

# lsvg rootvg

15. View the setting information of logical volumes in the volume group

# lsvg-l rootvg

16. View the details of logical volumes

# lslv oraclelv

17. View the information of the system's paging space

# lsps-a

18. View system process information, including user ID and process ID,cpu usage

# ps-ef

19. View information about users and processes they own

# ps-fu

20. View the information of a process, such as ssh

# ps-ef | grep ssh

21. Check the disk usage of the system

# df-g

# df-m

# df-k

22. View the status of the system service system

# lager thanks c-a

23. To check whether the ssh service is started, you can use ps-ef | grep sshd, or you can use the following:

# lager thanks c-a | grep sshd

24. Common commands for disk management are as follows:

①: used to list and modify PV related attributes

Lspv chpv

②: used to create and modify VG related properties

Mkvg chvg

③: used to add and reduce disks to a volume group.

Extendvg reducevg

④: used to create, modify, delete, and view LV

Mklv chlv rmlv lslv

⑤: used to create, modify, delete, and list file systems

Crfs chfs rmfs lsfs

25. Common commands for user and group management

①: commands for generating, modifying, deleting, and viewing users

Mkuser chuser rmuser lsuser

Set up oracle users to access the system remotely

# chuser rlogin=true oracle

②: common commands for generating, modifying groups, deleting, and viewing groups.

Mkgroup chgroup rmgroup lsgroup

26. SRC management commands are as follows

①: view the current status of services and service groups

Lhasa, please.

②: used to start and stop src processes

Startsrc stopsrc

③: used to reread the / etc/inittab configuration file and redeploy the startup status of the service.

Telinit

27. Common commands for paging space:

①: used to create, modify, and delete paging spaces

Mkps chps rmps

②: view the usage status of paging operations

Vmstat topas svmon

28. Common commands for host fault identification:

①: used to display system hardware and software errors

Errpt

②: used to add some custom message to the log

Errlogger

③: used to clear previous error messages from the system

Errclear

④: for interactive diagnostic server artifacts

# diag

⑤: used to collect host information and system statistics

Snap

29. View common commands for system installation software

# Lslpp-an is used to display information about the specified fileset.

# lslpp-e shows temporary patches that have been installed.

# lslpp-h displays the history of the specified fileset installed in the update.

# lslpp-l displays the installation of a specified file, including name, version, etc.

# lslpp-L displays all the information about installing a fileset.

30. View the network IP information of the specified interface

# ifconfig en0

31. Activate the en0 interface (up is activated, down is disabled)

# ifconfig en0 up

32. Activate the en0 network port and give the IP address:

# ifconfig en0 10.0.144.1 netmask 255.255.255.0 up

33. Bind ip to the network card to make a network interface have multiple IP addresses, as follows:

# ifconfig en0 10.0.144.1 netmask 255.255.255.0 alias

34. Check user login status

# who

35. Check who I am

# who am i

36. Equipment management of AIX system

In the first example, the letter b: indicates that it is a block device file

In the first example, the letter c: indicates that it is a character device file

37. View the device definition information of the system customization library

# lsdev-C

# lsdev-P | more

38. Scan AIX devices

# cfgmgr: force updates and add new devices

# cfgmgr-l scsi0: used to configure devices connected to the scsi0 adapter.

39. View disk devices

Lspv-l: lists the logical volume information defined in the specified disk (physical volume).

Lspv-p: lists the allocation status of the physical partition PP on the specified disk (physical volume).

Lspv-P: lists the mirror pool location to which the specified disk (physical volume) belongs.

Lsdev-Cc tape: view device information for tapes

Lsattr-El rmt0: view device configuration information for tape rmt0

①: used to create and delete devices: as follows:

# mkdev-l: create a device

# rmdev-dl: completely delete the device and its definition.

②: used to display device information and properties of a device:

# lsdev-C

# lsattr-l

③: used to change the characteristics of a device with a given logical name

# chdev-l

# mkdev

40. Check if the disk is available

# lsdev-Cc disk

41. View system error messages

# errpt-a

①: system error classification:

H: error of hardware failure type

O: errors in operating procedures

S: errors in software failures

U: unable to determine the error of the classification

②: categories in the log:

PERF:AIX devices and components may have been reduced to an acceptable level.

PERM: permanent error, unable to recover.

The availability status of PEND:AIX device components is already very poor

TEMP: a temporary error, that is, an error occurred but ran successfully after a retry.

UNKN: a log that cannot determine the severity of the error

INFO: error log of information type.

42. View system software class error messages

# errclear-d S O

43. Delete everything in the error log directly

# errclear O

44. Start and disable the logging service

# startsrc-s syslogd

# stopsrc-s syslogd

45. View the log daemon

# lager thanks c-s syslogd

46. View all system-defined log files

# alog-L

47. Change the startup log file size

# alog-t boot-s 1024

48. Display console log information, including battery failure information for storage devices

# alog-o-t console | more

49. View the LVM management commands, parameters, time, process ID and other information executed in the system

# alog-t lvmcfg-o

50. Cron process service (same as in Linux)

①: view the running status of a process

# ps-ef | grep cron

②: view automation tasks for the system

# crontab-l

50 23 * * 6 / home/oracle/rman.sh

Format: time-sharing, day, month and week

60. Terminate the process

# kill-9 process number

61. Refresh service

# refresh-g tcpip

62. Start and shut down services

# startsrc-s nfsd

# stopsrc-s nfsd

63. Check the login status of system users

# last

64. Modify the properties of the disk and set the disk to a physical volume

# chdev-l hdisk1-a pv = yes

65. Set the physical volume hdisk2 to unavailable:

# chpv-v-r hdisk2

Set the physical volume hdisk2 to the available state, and create a logical volume on the disk

# chpv-v-a hdisk2

# mklv-y lv_test datavg 10 hdisk2

67. Close the allocation permission of the physical volume hdisk2

# chpv-a n hdisk2

68. Allow physical volumes to allocate space

# chpv-a y hdisk2

# entendlv lvtest datavg 2 hdisk2

69. View the physical volume information contained in the volume group

# lsvg-p datavg

70. View the utilization of paging space

# lsps-s

71. Dynamically increase file system space

# chfs-a size=+100M / test

72. Check the file system / dev/fslv00 and require error repair

# fsck-p / dev/fslv00

73. Check the integrity of the file system / dev/fslv00

# fsck / dev/fslv00

74. View system kernel processes, threads, virtual memory, disk IO, cpu and other information

# vmstat-2 30

# vmstat hdisk1 hdisk2 2 5

# vmstat-v # vmstat-s: summarize memory usage

75. View cpu, adapter, tty device, disk drive, IO, etc.

# iostat 2 10

76. Count 30 times at intervals of 2 seconds, and give a brief account of disk hdisk0.

# iostat-d hdisk0 2 30

# iostat-a 2 30

77. Collect, report or save system activity information, usage of CPU, etc.

# sar-u-P 0pen 1 2 10

# sar-d 2 5

78. View ncargs occupies bytes

# lsattr-El sys0-a ncargs

Adjust ncargs occupancy bytes:

# chdev-l sys0-a ncargs=8 means setting ncargs occupies 8 bytes

79. Check the maxuproc parameter, the maximum number of processes

Lsattr-El sys0 | grep maxuproc

Modify maxuproc parameters

Chdev-l sys0-a maxuproc='5000'

80. Optimization of network parameters of AIX system

No-a | grep ipqmaxlen

No-a | grep rfc1323

No-a | grep sb_max

No-a | grep udp_recvspace

No-a | grep udp_sendspace

No-a | grep tcp_recvspace

No-a | grep tcp_sendspace

Modify parameters command:

No-p-o parameter = value

No-p-o udp_sendspace=65536

Parameter tuning reference:

Ipqmaxlen = 100

Rfc1323 = 1

Sb_max = 1048576

Udp_recvspace = 1048576

Udp_sendspace = 1048576

Tcp_sendspace = 262144

Tcp_recvspace = 262144

80. User unlock

Chsec-f / etc/security/lastlog-a unsuccessful_login_count=0-s oracle

1. Obtain the optical fiber equipment connected to the AIX host:

# lsdev-Cc adapter-S a | grep fcs

Fcs0 Available 09-08 FC Adapter

Fcs1 Available 09-09 FC Adapter

Among them, there are two optical fiber cards. Fcs0 and fcs1

2. Check the WWN number of the optical fiber card

# lscfg-vpl fcs0

Fcs0 U787B.001.DNWG664-P1-C1-T1 FC Adapter

Part Number... 10N8620

Serial Number... 1B74404468

Manufacturer... 001B

EC Level... A

Customer Card ID Number... 5759

FRU Number... 10N8620

Device Specific. (ZM). three

Network Address... 10000000C96E2898

ROS Level and ID... 02C82138

Device Specific. (Z0). 1036406D

Device Specific. (Z1). 00000000

Device Specific. (Z2). 00000000

Device Specific. (Z3). 03000909

Device Specific. (Z4). FFC01159

Device Specific. (Z5). 02C82138

Device Specific. (Z6). 06C12138

Device Specific. (Z7). 07C12138

Device Specific. (Z8). 20000000C96E2898

Device Specific. (Z9). BS2.10X8

Device Specific. (ZA). B1F2.10X8

Device Specific. (ZB). B2F2.10X8

Device Specific. (ZC). 00000000

Hardware Location Code... U787B.001.DNWG664-P1-C1-T1

The red part (Network Address) is the WWN number of the fiber card.

81. View AIX file system cache parameters

Vmo-a

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 273

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report