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

What are the tips and logs in aix?

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

What are the tips and logs in aix? for this question, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

1. Implement the up and down arrow keys in AIX to check historical commands and modify commands.

How to implement the up and down arrow keys in AIX to check and modify commands

Enter set-o vi on the command line

You can open inline editor.

Then use ESC to enter command mode

K forward j backward, you can read historical commands and modifications

2. Check IP and mask in AIX

# smitty tcpip

Select the appropriate item based on the network interface you want to view

Then enter and you can see the details.

3. View memory, cpu and other information

$prtconf

System Model: IBM,9113-550

Machine Serial Number: 65EFEDF

Processor Type: PowerPC_POWER5

Processor Implementation Mode: POWER 5

Processor Version: PV_5

Number Of Processors: 4

Processor Clock Speed: 1654 MHz

CPU Type: 64-bit

Kernel Type: 64-bit

LPAR Info: 1 65-EFEDF

Memory Size: 15744 MB

Good Memory Size: 15744 MB

Platform Firmware level: Not Available

Firmware Version: IBM,SF240_418

Console Login: enable

Auto Restart: true

Full Core: false

Network Information

Host Name: wemp02

IP Address: 10.4.41.35

Sub Netmask: 255.255.255.192

4. Display error message

$errpt | more

IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION

D5385D18 1122013913 T H hdisk3 ARRAY OPERATION ERROR

D5385D18 1122013613 T H hdisk3 ARRAY OPERATION ERROR

D5385D18 1122013413 T H hdisk3 ARRAY OPERATION ERROR

D5385D18 1122013313 T H hdisk3 ARRAY OPERATION ERROR

View more detailed information

$errpt-aj D5385D18 | more

LABEL: FCP_ARRAY_ERR4

IDENTIFIER: D5385D18

Date/Time: Mon Nov 25 11:41:58 BEIST 2013

Sequence Number: 26528

Machine Id: 00CEFEDF4C00

Node Id: wemp02

Class: H

Type: TEMP

Resource Name: hdisk3

Resource Class: disk

Resource Type: array

Location: U787B.001.DNW4155-P1-C3-T1-W200500A0B812B506-L2000000000000

Description

ARRAY OPERATION ERROR

Code interpretation:

Class has H (hardware), S (software), O (information messages), U (undetermined).

On the other hand, there is a lack of availability of PEND devices in Type.

PERF device performance degraded to acceptable level

PERM devices are defective hardware or software that cannot be repaired and require diag diagnostics

TEMP recovers from some unsuccessful attempts

UNKN uncertainty severity

INFO information, which does not cause errors

-hardware diagnostics using the diag command. The system deletes the hardware error 90 days ago and the software error 30 days ago.

5. Find out which fileset a file in the system exists in

When a command cannot be executed on the operating system because a specific fileset is not installed, you can refer to the following method to determine the required fileset.

First verify that the fileset bos.content_list is installed on the system:

# lslpp-l bos.content_list

Then use the following command to find the fileset associated with the specified file:

# / usr/sbin/which_fileset

For example, # / usr/sbin/which_fileset iostat

/ usr/bin/iostat bos.acct

Find out which files are included in the specified fileset:

# lslpp-f

For example, # lslpp-f bos.acct

....

/ usr/bin/iostat

....

6. Start and stop a service (for example, ssh)

View ssh service status

# lager thanks c-s sshd

Subsystem Group PID Status

Sshd ssh 3866742 active

Stop and start the ssh service

# stopsrc-t sshd

# startsrc-t sshd

Sshd service does not support refresh of refresh-s. If you modify the configuration of SSH, you want to restart the SSHD service to take effect. You can turn on AIX's TELNET service, connect through TELNET, and then stop and restart the SSH service to refresh the configuration to avoid remote server restart.

It is recommended that you connect through console, otherwise the network connection will be disconnected after you stop ssh.

7. Query the kernel version number of AIX

# oslevel-s

5300-08-05-0846

8. Log about AIX

System error log

Storage path: / var/adm/ras/errlog

Note: this log records the software and hardware failures and errors detected by the system, especially for the hardware failure of the system. It is one of the most valuable logs provided by AIX. Errlog files use more or other text to view commands to open. We only see a pair of garbled codes. In order to be able to view error log files, we need to use aix errpt commands, such as: errpt column information. Errpt-a column details. For more information on how to use it, please see man.

User's login log

Storage path: / var/adm/wtmp / var/adm/sulog

Note: these logs record user login and access to the server information, specific log files are wtmp, sulog, etc., they record different events, wtmp records historical login and lognout information, can be accessed with the last command. Sulog records the information that a user transforms into another user with the su command. Commands such as who and last can view the contents of wtmp and sulog

Such as: Last-f wtmp

If we want to see the last 10 logged in users and their addresses, we can use the following command:

Last-10

Log of cluster management software hacmp

Storage path: / tmp/hacmp.out

Note: HACMP is a cluster suite provided by IBM to ensure the reliability of the system. Each time HACMP starts and shuts down, it takes a period of time to stop the service and convert the file system. We can use the HACMP. The trace of OUT log files can understand the information of HACMP during startup and shutdown in real time, and it can help us to locate errors if startup failure occurs.

You can use tail for tracking, tail-f / tmp/hacmp.out

System startup error log

Storage path: / var/adm/ras/bootlog

Description: this log can track the problems occurred in the Boot process of the system, including the code information on the server LCD board is recorded. You can use the alog command to monitor these problems, store them in / var/adm/ras/bootlog, and view the file using the alog-o-t boot command.

FTP user Action Log

Storage path: custom (recommended / tmp/ftplog.out)

Description: many servers will use the FTP function, a large number of users log in to the server through FTP, which brings great problems to the security of the system. AIX provides us with a set of very good logs that can record users' FTP operations.

The specific setting steps are as follows:

Edit the FTP line in the / etc/inetd.conf file and add "- d" after FTPD

Restart the service: refresh-s inetd

Touch/tmp/ftplog.out

Add two lines to the / etc/syslog.conf file:

Daemon:debug / tmp/ftplog.out

Daemon:info / tmp/ftplog.out

Restart the service: refresh-s syslogd

The above are just some of the logs that I mainly use in my work, but some of the many other important log files provided by AIX, which you can slowly experience in your work.

The AIX errpt command uses the

Modify the current log file

/ usr/lib/errdemon-I / var/adm/ras/myerrlog

Modify the current log file size

/ usr/lib/errdemon-s 28866

Modify the current log buffer size

/ usr/lib/errdemon-B 20480

Modify the interval between 2 repetitive errors

/ usr/lib/errdemon-t 50

Ps-ef | grep errdemon

/ usr/lib/errdemon

/ usr/lib/errstop

Ps-ef | grep errdemon

Errpt | more

Detailed

Errpt-a | pg

Display in ASCII mode

Errpt-g-j 74533D1A | more

Check the error log that occurred in the past 24 hours

Date

Errpt-a-s 0128092102

Errclear command clears logging

Delete all logs

Errclear 0

Delete software records from 10 days ago

Errclear-d-S 10

= =

Errpt-a

-an is to display the error message in the error Japanese capital file in detailed format

Generate a recorded error report in the system

This is the answer to the question about the tips and logs in aix. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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: 0

*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