Академический Документы
Профессиональный Документы
Культура Документы
df g |wc -l
information about space on file systems.
The lsdev command displays information about devices in the Device Configuration
database
C Lists information about a device that is in the Customized Devices object
class. The default information displayed is name, status, location, and
description. -c Class Specifies a device class name. This flag can be used to restrict output
devices in a specified class
#ifconfig a
#ifconfig a |wc -l
We can use the ifconfig command to assign an address to a network interface and
to configure or display the current network interface configuration information.
the -a flag may be used instead of an interface name. This flag
instructs ifconfig to display information about all interfaces in the system.
#netstat ni
#netstat ni |wc -l
#netstat nr
#netstat nr |wc -l
#netstat na
#netstat na|wc -l
The lppchk command verifies that files for an installable software product
(fileset) match the Software Vital Product Data (SWVPD) database information
for file sizes, checksum values, or symbolic links. A fileset is a separately
installable option of a software package.
#bootlist -m normal o
The bootlist command allows the user to display and alter the list of possible
boot devices from which the system may be booted.
#oslevel s
The oslevel command reports the level of the operating system using a subset of
all filesets installed on your system.
Interpreting `oslevel -s` output:
5300-06-08-0831
5300 = AIX 5.3
06 = TL 06 (Technology Level)
08 = SP 08 (Service Pack)
0831 = Released in 31st week of 2008
#uptime
The uptime command prints the current time, the length of time the system has
been up, the number of users online, and the load average.
The instfix command allows you to install a fix or set of fixes without knowing
any information other than the Authorized Program Analysis Report (APAR)
number or other unique keywords that identify the fix.
The instfix command can also be used to determine if a fix is installed on your
system.
#emgr l
Starts the emergency fix (efix) manager, which installs, removes, lists, and
checks system efixes. To list efix; data: emgr -l [ -L Label
#errpt
The errpt command generates an error report from entries in an error log. It
includes flags for selecting errors that match specific criteria.
#lspv
The lspv command displays information about the physical volume if the specific
physical volume name is specified.
#lsvg
The lsvg command displays information about volume groups. If you use the
VolumeGroup parameter, only the information for that volume group is displayed.
#cat /etc/hosts
#bootinfo b
#ps eaf
Export the script for mksysb backup from the NIM sever to the required server.
In the NIM server
# exportfs -i /export/mksysb
#mkdir -p /export/mksysb
eg:-
Eg:-
Hdisk# blv=hd5
Hdisk# blv=hd5
If anyone of the disk not under the boot list..utilizing the below commands
#bosboot -ad /dev/hdisk# -----------------to create a boot image
#bootlist -m normal hdisk# hdisk#-----------to update a bootlist order
To run the system information script
# cd /usr/local/bin
./sysinfo.ksh
We need to check the status of LV STATE too..
Eg:-
[/]# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 8 16 2 open/syncd N/A
hd7 sysdump 8 8 1 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 2 4 2 open/syncd /
hd2 jfs2 24 48 2 open/syncd /usr
hd9var jfs2 3 6 2 open/syncd /var
hd3 jfs2 8 16 2 open/syncd /tmp
hd1 jfs2 3 6 2 open/syncd /home
hd10opt jfs2 7 14 2 open/syncd /opt
fslv00 jfs2 7 14 2 open/syncd /softdist
auditlv jfs2 16 16 1 open/syncd /audit
root @ sf03s03xxp02
[/]#
In this number of LPs should be equal to number of PPs. This will confirm the mirrior
is splitted properly..sample below
# cd /var/adm/logs
# ls ltr
We need to copy TL12 with SP5 Filesets from TOPS NIM server using below
commands
root @ usclsitps063
[/]# cd /UPD/5300-12-05-1140
reboot system
#shutdown Fr
#smitty commit
#cd /UPD/5300-12-05-1140
#smitty update_all
#lppchk v
In the console
In the session
Once the server is up check with ssh first and even compare the current output with
previous log which we took prior to reboot..
#lspv
#umount -f /UPD
#rmfs -r /UPD
#mirrorvg -S rootvg hdiskXX --------Mirorring the disk
#lsvg -l rootvg
#bootlist -m normal -o
#bootlist -m normal -o