AIX N/W Issues :
-->How to find the maximum supported logical track group (LTG) size of a disk in AIX
To find the maximum supported logical track group (LTG) size of a disk in IBM AIX, you can use the lquerypv command with the -M flag. The output gives the LTG size in KB.
# /usr/sbin/lquerypv -M hdisk#
Example:
/usr/sbin/lquerypv -M hdisk0
-->How to find all the rpm packages installed on a particular date
To find all the RPM packages which were installed on a particular date:
# rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME:date}\n" | grep my_date
Example:
rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME:date}\n" | grep "29 Sep 2006"
To find the install date and time of an RPM package:
# rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME:date}\n" | grep rpm_package_name
If you want the epoch time rather than human readable date:
# rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME}\n" | grep rpm_package_name
Example:
rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME:date}\n" | grep libaio
-->How to enable full core dumps in IBM AIX
To enable full core dumps in IBM AIX:
# chdev -l sys0 -a fullcore='true'
Example:
chdev -l sys0 -a fullcore='true'
-->How to extract an individual file from an AIX mksysb on tape
To extract an individual file from a mksysb on tape:
# restore -s4 -xqvf /dev/rmt0.1 /my/filename
Example:
restore -s4 -xqvf /dev/rmt0.1 ./etc/passwd
-->How to enable extended netstat statistics in IBM AIX
To enable extended netstat statistics in IBM AIX :
# /usr/sbin/no -o extendednetstats=1
To disable extended netstat statistics in IBM AIX (default in AIX):
# /usr/sbin/no -o extendednetstats=0
Note: you must reboot to take effect.
Example:
/usr/sbin/no -o extendednetstats=1
-->How to enable entended history in AIX 5.3
In AIX 5.3, you have the capability to have a time stamped history. To enable it, just set the following variable:
EXTENDED_HISTORY=ON
Example:
export EXTENDED_HISTORY=ON
-->how to enable automatic notification of hardware errors in IBM AIX 5L
AIX 5L can email you when it detects a hardware error. To configure email notification, use the "diag" command.
# diag
=> Task Selection
=> Automatic Error Log Analysis and Notification
=> Add to the error notification mailing list
Example:
diag
-->how to determine which MPIO path is associated to a vscsi adapter in AIX 5L
To determine which MPIO path is associated to a vscsi adapter in AIX 5L:
# lspath -F "name path_id parent connection status"
The output returns something similar to:
hdisk0 0 vscsi0 810000000000 Enabled
hdisk0 1 vscsi1 810000000000 Enabled
hdisk1 0 vscsi0 820000000000 Enabled
hdisk1 1 vscsi1 820000000000 Enabled
The first field is the hdisk.
The second field is the "Path" number (seen with 'lspath')
The third field is the parent (vscsi adapter)
The fourth field is the connection
The fifth field is the status (Enabled, Disabled, Missing, etc)
Example:
lspath -F "name path_id parent connection status"
-->how to determine which eFixes are installed on your VIO Server
To determine which emergency fixes are installed on your Virtual I/O Server (VIOS):
1) Login to the VIO server as the user padmin
2) Setup your environment by issuing:
$ oem_setup_env
3) List installed efixes by label:
# emgr -P
4) To remove a specific efix by label (IY71303 in my example):
# emgr -r -L IY71303
5) Go back to the padmin restricted shell
# exit
Example:
emgr -P
-->how to determine which application created the OS core file in AIX
To determine which application created the OS core file in AIX:
# /usr/sbin/lquerypv -h /path/to/core 6b0 64
The output of this command is neat, clean and easy to read. Here is an example:
# lquerypv -h core 6b0 64
000006B0 7FFFFFFF FFFFFFFF 7FFFFFFF FFFFFFFF |................|
000006C0 00000000 000007D0 7FFFFFFF FFFFFFFF |................|
000006D0 00120000 1312C9C0 00000000 00000017 |................|
000006E0 6E657473 63617065 5F616978 34000000 |netscape_aix4...|
000006F0 00000000 00000000 00000000 00000000 |................|
00000700 00000000 00000000 00000000 00000ADB |................|
00000710 00000000 000008BF 00000000 00000A1E |................|
The executable is located between the pipes on the right hand side of the output. In this case, the core was generated by Netscape.
Example:
/usr/sbin/lquerypv -h /tmp/core 6b0 64
-->how to disable a single path through one HBA to a disk in IBM AIX
This disables a single path through one HBA to a disk in IBM AIX. This instructs the system to start using an alternative path to the disk.
# chpath -l hdisk# -p fscsi# -s disable
Example:
chpath -l hdisk# -p fscsi# -s disable
-->how to detach a network device and update the ODM in IBM AIX
If "ifconfig" is used to detach a network device, the ODM is NOT updated and when the system is rebooted, the adapter will try and bring up its network interface because that is what the ODM instructs it to do.
To detach a network device and update the ODM, the following command needs to be used:
# chdev -l en0 -a state='detach'
This will detach the network device even across reboots.
Example:
chdev -l en0 -a state='detach'
No comments:
Post a Comment