Sunteți pe pagina 1din 2

AIX QuickSheet Devices Networking

Version: 2.0.0 List all devices on a The entX is the physical device. It is associated with physical layer
Date: 8/28/9 system lsdev settings such as link speed, and duplex. enX and etX determine the
List all disk devices on a system (See next item for a list of classes) frame type run on entX . IP addresses are con gured on enX
Filesystems lsdev -Cc disk (Standard Ethernet) or etX (802.3). Typically only enX is used.
hd1 /home List all customized (existing) device classes (-P for complete list) The examples here assume that the default TCP/IP con guration
hd2 /usr lsdev -C -r class (rc.net) method is used. If the alternate method of using rc.bsdnet is
hd3 /tmp Remove hdisk5 used then some of these examples may not apply.
hd4 / root rmdev -dl hdisk5 Determine if rc.bsdnet is used over rc.net
Get device address of hdisk1 lsattr -El inet0 -a bootup option
hd5 BLV (Boot Logical Volume)
hd6 Paging space getconf DISK DEVNAME hdisk1 (or) bootinfo -o hdisk1 TCP/IP related daemon startup script
Get the size (in MB) of hdisk1 /etc/rc.tcpip
hd8 JFS2 log
hd9var /var getconf DISK SIZE /dev/hdisk1 (or) bootinfo -s hdisk1 To view the route table
List all disks belonging to scsi0 netstat -r
hd10opt /opt
lsdev -Cc disk -p scsi0 To view the route table from the ODM DB
hd11admin /admin New in 6.1
Find the slot of a PCI Ethernet adapter lsattr -EHl inet0 -a route
livedump /var/adm/ras/livedump New in 6.1 TL3 lsslot -c pci -l ent0 Temporarily add a default route
/proc procfs pseudo lesystem route add default 192.168.1.1
Find the (virtual) location of an Ethernet adapter
lscfg -l ent1 Temporarily add an address to an interface
Remove mount point entry and the LV for /mymount
rmfs /mymount (Add -r to remove mount point) Find the location codes of all devices in the system ifconfig en0 192.168.1.2 netmask 255.255.255.0
lscfg Temporarily add an alias to an interface
Grow the /var lesystem by 1 Gig
chfs -a size=+1G /var List all MPIO paths for hdisk0 ifconfig en0 192.168.1.3 netmask 255.255.255.0 alias
lspath -l hdisk0 To permanently add an IP address to the en1 interface
Grow the /var lesystem to 1 Gig
chfs -a size=1G /var Find the WWN of the fcs0 HBA adapter chdev -l en1 -a netaddr=192.168.1.1 -a netmask=0xffffff00
lscfg -vl fcs0 | grep Network Permanently add an alias to an interface
Find the le usage on a lesystem
du -smx / Temporarily change console output to /console.out chdev -l en0 -a alias4=192.168.1.3,255.255.255.0
List lesystems in a grep-able format swcons /console.out ! (Use swcons to change back.) Remove a permanently added alias from an interface
lsfs Get statistics and extended information on fcs0 chdev -l en0 -a delalias4=192.168.1.3,255.255.255.0
fcstat fcs0 List ODM (next boot) IP con guration for interface
Get extended information about the /home lesystem
lsfs -q /home lsattr -El en0
Tasks Permanently set the hostname
Create a log device on datavg VG Change port type of HBA (This may vary by HBA vendor)
mklv -t jfs2log -y datalog1 datavg 1 chdev -l inet0 -a hostname=bombay
rmdev -d -l fcnet0 List networking devices
Format the log device just created rmdev -d -l fscsi0
logform /dev/datalog1 lsdev -Cc tcpip
chdev -l fcs0 -a link type=pt2pt List Network Interfaces
cfgmgr lsdev -Cc if
Kernel Tuning Mirroring rootvg to
no is used in the following examples. vmo, no, nfso, ioo, raso, and List attributes of inet0
hdisk1 extendvg rootvg lsattr -Ehl inet0
schedo all use similar syntax. lvmo uses di erent syntax.
hdisk1 mirrorvg rootvg List (physical layer) attributes of ent0
Reset all networking tunables to the default values bosboot -ad hdisk0
no -D (Changed values will be listed) lsattr -El ent0
bosboot -ad hdisk1 List (networking layer) attributes of en0
List all networking tunables bootlist -m normal hdisk0 hdisk1
no -a lsattr -El en0
Mount a CD/DVD ROM to /mnt Set (desired) speed is found through the entX device
Set a tunable temporarily (until reboot)
no -o use isno=1 mount -rv cdrfs /dev/cd0 /mnt ! (for a CD) mount -v udfs lsattr -El ent0 -a media speed
-o ro /dev/cd0 /mnt ! (for a DVD) Find actual (negotiated) speed, duplex, and link
Set a tunable at next reboot
no -r -o use isno=1 ,! Note the two di erent types of read-only ags. Either is Ok. entstat -d ent0
Set current value of tunable as well as reboot Create a VG, LV, and FS, mirror, and create mirrored ,! The interface must be up (ifconfig en0 up) for stats to be valid Set
no -p -o use isno=1 LV mkvg -s 256 -y datavg hdisk1 (PP size is 1/4 Gig) the ent0 link to Gig full duplex
mklv -t jfs2log -y dataloglv datavg 1 chdev -l ent0 -a media speed=1000 Full Duplex -P ,!
List all settings, defaults, min, max, and next boot values logform /dev/dataloglv
no -L Auto Negotiation is another option
mklv -t jfs2 -y data01lv datavg 8 ! (2 Gig LV) crfs -v Turn o Interface Speci c Network Options
List all sys0 tunables
jfs2 -d data01lv -m /data01 -A yes extendvg datavg no -p -o use isno=0
lsattr -El sys0
hdisk2 Get (long) statistics for the ent0 device (remove -d for shorter results)
Get information on the minperm% vmo tunable
vmo -h minperm% mklvcopy dataloglv 2 ! (Note use of mirrorvg in next example) entstat -d ent0 (or) netstat -v ent0
mklvcopy data01lv 2 ,! The results of entstat vary by device type. Virtual, physical, and
Change the maximum number of user processes to
2048 chdev -l sys0 -a maxuproc=2048 syncvg -v datavg IVE (LHEA) devices all produce di erent results.
lsvg -l datavg will now list 2 PPs for every LP List all open, and in use TCP and UDP ports
Check to see if SMT is enabled
smtctl mklv -c 2 -t jfs2 -y data02lv datavg 8 ! (2 Gig LV) crfs -v jfs2 netstat -anf inet
Directory containing tunables settings -d data02lv -m /data02 -A yes List all LISTENing TCP ports
/etc/tunables/ mount -a netstat -na | grep LISTEN
Move a VG from hdisk1 to Remove all TCP/IP con guration from a host
ODM hdisk2 extendvg datavg hdisk2 rmtcpip
Query CuDv for a speci c item mirrorvg datavg hdisk2 Flush the netcd DNS cache
odmget -q name=hdisk0 CuDv ,! Wait for mirrors to synchronize netcdctrl -t dns -e hosts -f
Query CuDv using the \like" syntax unmirrorvg datavg hdisk1 reducevg Hostname lookup order is determined using /etc/irs.conf,
odmget -q "name like hdisk?" CuDv datavg hdisk1 /etc/netsvc.conf and then $NSORDER. irs.conf and $NSORDER
Query CuDv using a complex query Find the free space on PV hdisk1 are typically not used.
odmget -q "name like hdisk? and parent like vscsi?" CuDv lspv hdisk1 ! (Look for \FREE PPs") IP packets can be captured using iptrace / ipreport or tcpdump
Error Logging Error logging is provided through: alog, errlog and syslog. alog - boot, console messages, NIM, others
errlog - hardware, kernel, and some apps smitty FastPaths Memory / Swap le
syslog - Internet dameons, and apps Find a smitty FastPath by walking through the smitty screens to List size, summary, and paging activity by paging
Display the contents of the boot log get to the screen you wish. Then Hit F8. The dialog will tell you space lsps -a
alog -o -t boot what FastPath will get you to that screen. (F3 closes the dialog.) List summary of all paging space
Display the contents of the console log lvm - LVM Menu lsps -s
alog -o -t console mkvg - Screen to create a VG List the total amount of physical RAM in system
List all log types that alog knows configtcp - TCP/IP Con guration lsattr -El sys0 -a realmem
alog -L eadap - Ethernet adapter section Create a new paging device on rootvg of 64 PPs
Display the contents of the system error log fcsdd - Fibre Channel adapter section mkps -a -s 64 -n rootvg
errpt (Add -a or -A for varying levels of verbosity) chgsys - Change / Show characteristics of OS Extend the existing paging space by 8
Clear all errors up until x days ago. users - Manage users (including ulimits) PPs chps -s 8 hd6
errclear x devdrpci - PCI Hot Plug manger
List info on error ID FE2DEE00 (IDENTIFIER column in errpt output) etherchannel - EtherChannel / Port Aggregation NFS
errpt -aDj FE2DEE00 List all exported le systems
Put a \tail" on the error log exportfs
errpt -c System Resource Controller
Most SRC based services are started from /etc/rc.tcpip Refresh exports after editing /etc/exports
List all errors that happened today exportfs -av
errpt -s `date +%m%d0000%y` Start the xntpd service
startsrc -s xntpd Temporarily export the /proj directory, allowing root access by server1
To list all errors on hdisk0 exportfs -i -o rw root=server1 /proj
errpt -N hdisk0 Stop the NFS related services
stopsrc -g nfs (un)share(all) are symlinks to exportfs for Unix compatibility.
To list details about the error log [mk|rm|ch]nfs are provided to maintain /etc/exports
/usr/lib/errdemon -l Refresh the named service
To change the size of the error log to 2 MB refresh -s named
List all registered services on the system Getting info about the system
/usr/lib/errdemon -s 2097152 syslog.conf line Find the OS, (ML/)TL (-r), and service pack version / date (-s)
to send all messages to log le lssrc -a
Show status of ctrmc subsystem oslevel -r (or) oslevel -s
*.debug /var/log/messages List all attributes of system
lssrc -l -s ctrmc
,! AIX uses *.debug for all, not *.* getconf -a
Performance Monitoring (yDenotes trace based tools.) Find the type of kernel loaded (use -a to get all options)
getconf KERNEL BITMODE
LVM CPU
,! bootinfo and getconf can return much of the same information,
Put a PVID on a disk mpstat, topas -P, w, lparstat, ps, iostat -tT 1, tprofy, curty getconf returns more and has the grepable -a option.
chdev -l hdisk1 -a pv=yes Memory
vmstat, svmon, ps -o fields , topas, ipcs -m Find the level of rmware on a system
,! PVIDs are automatically placed on a disk when added to a VG
Network I/O invscout (or) lscfg -pv
Remove a PVID from a disk List all attributes for the kernel \device"
chdev -l hdisk1 -a pv=clear [ent|tok|fddi|atm]stat, netstat, netpmony, topas -E lsattr -El sys0
List all PVs in a system (along) with VG membership Disk I/O
Print a \dump" of system information
lspv iostat, fcstat, lvmstat, filemony, fileplace, topas -D prtconf
Create a VG called datavg using hdisk1 using 64 Meg Application Get all page sizes supported on this
PPs mkvg -y datavg -s 64 hdisk1 truss, probevue, tprofy, svmon -P pid , ps -o fields -p pid topas system pagesize -a
Create a LV on (previous) datavg that is 1 Gig in size
mklv -t jfs2 -y datalv datavg 16 The ~ character toggles to nmon-mode in topas Users and Groups
List all LVs on the datavg VG Other List all settings for root user in grepable format
lsvg -l datavg Check for disk stat history collection lsuser -f root
List all PVs in the datavg VG lsattr -HEl sys0 -a iostat List just the user names
lsvg -p datavg Enable historical disk statistic collection lsuser -a id ALL | sed 's/ id.*$//'
Take the datavg VG o ine chdev -l sys0 -a iostat=true Find the fsize value for user wfavorit
varyoffvg datavg lsuser -a fsize wfavorit
Remove the datavg VG from the ODM Working with Packages Change the fsize value for user
exportvg datavg List all les in bos.games leset. wfavorit chuser fsize=-1 wfavorit
Import the VG on hdisk5 as datavg lslpp -f bos.games (/usr)/bin/sh and (/usr)/bin/ksh are the same le. Use bsh for the
importvg -y datavg hdisk5 Find out what leset \fortune" belongs to. Bourne shell.
Vary-on the new datavg VG (can use importvg -n) lslpp -w /usr/games/fortune
varyonvg datavg List packages that are above the current OS level Additional Information
List all VGs (known to the ODM) oslevel -g http://publib.boulder.ibm.com/infocenter/systems/scope/aix
lsvg Find packages below a speci ed (ML/)TL http://www.redbooks.ibm.com/portals/unix
List all VGs that are on line oslevel -rl 5300-05 Display error codes can be found in the \Diagnostic Information for
lsvg -o List all lesets Multiple Bus Systems" manual
Check to see if underlying disk in datavg has grown in size lslpp -L
chvg -g datavg List all lesets in a grepable or awkable format About this QuickSheet
Move a LV from one PV to another lslpp -Lc Created by: William Favorite (wfavorite@tablespace.net)
migratepv -l datalv01 hdisk4 hdisk5 Find the package that contains the lemon utility Updates at: http://www.tablespace.net/quicksheet/
Delete a VG by removing all PVs with the reducevg command. which fileset filemon Disclaimer: This document is a guide and it includes no express war-
reducevg hdisk3 (-d removes any LVs that may be on that PV) Install the database (from CD/DVD) for which fileset ranties to the suitability, relevance, or compatibility of its contents with
Note: See additional examples in \tasks" section. installp -ac -d /dev/cd0 bos.content list any speci c system. Research any and all commands that you in ict
Create a mksysb backup of the rootvg volume group upon your command line.
mksysb -i /mnt/server1.mksysb.`date +%m%d%y` Distribution: The PDF version is free to redistribute as long as credit
Cleanup after a failed install to the author and tablespace.net is retained in the printed and
installp -C A
viewable versions. L TEXsource not distributed at this time.

S-ar putea să vă placă și