Вы находитесь на странице: 1из 6

AIX commands

Click on the headings to sort Command alog alog alog alog bootinfo bootinfo bootlist bootlist bosboot bosboot cfgmgr chdev chfs chlv chps chpv chvg Command Description Creates and maintains fixed-L (List the log types currently defined in size log files created from the alog configuration database) standard input Creates and maintains fixed-L -t boot (List the attributes for the size log files created from specified log type boot) standard input Creates and maintains fixed-o -t boot (View the boot log) size log files created from standard input Creates and maintains fixed-o -t console (View the console log) size log files created from standard input -K (Displays if kernel is 32-bit or 64-bit Displays boot information enabled) -r (Displays real memory in kilobytes) Displays boot information -m normal -o (Show the devices to boot Displays and alters the list from, in order of priority) of boot devices -m normal hdisk0 hdisk1 (Change the Displays and alters the list bootlist to include both hdisk0 & hdisk1) of boot devices -a (Create a boot image on the default disk which is the disk the system is booted Creates boot image from) -a -d hdisk1 (Create a boot image on Creates boot image hdisk1) Configures devices and (No arguments - Configures all devices optionally installs device into the system) software -l en0 -a state=down (Set the state of en0 Changes the characteristics to down) of a device -a size=200M /test (Set the size of the Changes attributes of a file /test filesystem to 200M) system -x 900 opt_lv (Increase the max number of Changes characteristics of a logical partitions for LV opt_lv) logical volume -s64 hd6 (Increase paging space size by 64 Changes attributes of a logical partitions) paging space -v a hdisk1 (Makes the physical volume Changes the characteristics hdisk1 available for logical input and of a physical volume in a output) volume group -g appvg (Examines all disks in VG appvg Checks to see if the disks in Common Arguments & Description

Command

crfs crfs datapath datapath dumpcheck entstat errclear errpt extendlv extendvg fget_config

installp

installp installp instfix instfix

Common Arguments & Description Command Description to see if they have grown in size, and if so a volume group have adds additional PPs to PVs. (not available changed in size on rootvg) -v jfs2 -d applv -m /apps -A yes (Creates Create a filesystem on a a jfs2 filesystem on a previously created previously created LV LV named applv and mounts on boot) -v jfs2 -g rootvg -a size=10G -m /apps -A Create a filesystem and yes (Creates a 10GB jfs2 filesystem and an logical volume LV in the VG appvg and mounts on boot) query adapter (Displays information Display SDD vpath adapter about all SDD (Subsystem Device Driver) info vpath adapters) query device (Displays information about Display SDD vpath device all SDD (Subsystem Device Driver) vpath info devices) -p (/usr/lib/ras/dumpcheck - Check dump Check that the dump device resources and have the results printed to and copy directory are able standard output) to receive the system dump -d en0 (Show all statistics for the network Shows ethernet device device en0) driver and device statistics 0 (Delete all entries from the error log, Delete error log entries default log /var/adm/ras/errlog) Generates a report of logged -a (Show errors in detailed format) errors hd2 3 (Extend LV hd2 by 3 unallocated Extend the size of a logical PPs from the VG) volume -f rootvg hdisk1 (Add hdisk1 into the Adds physical volumes to a volume group rootvg) volume group -Av (Displays the LUNs presented from Displays LUNs presented the array and associated hdisk. If using from an array plus hdisk and RDAC displays associated DAC.) RDAC info. -aX -d/usr/sys/inst.images bos.net (Install and automatically commit all Install software products filesets in the bos.net software package and expand file systems if required) -L -d /dev/rmt0.1 (Lists all the software products and installable options on the List software products tape rmt0.1) -u bos.net.tcp.server (Removes a fileset Uninstall software products named bos.net.tcp.server) -i | grep ML (Display the maintenance Display maintenance levels levels installed) installed -ivk IZ86787 (Check if APAR IZ86787 is Check if an APAR (fix) is installed) installed

Command instfix listvgbackup lparstat lppchk lppchk lquerypv lsattr lsattr lsattr lscfg lscfg lsdev lslpp lslpp lslpp lslv lsmksysb lsmksysb lspath lspv

Common Arguments & Description -k IZ86787 -d /dev/cd0 (Install APAR IZ86787 from the cdrom /dev/cd0) -f /dev/rmt0 (Use device /dev/rmt0)

Command Description Install an APAR (fix)

Lists or restores contents of a VG or mksysb backup Reports LPAR related info -i (List details of the LPAR configuration) and stats -c (Verifies checksum and file size are Verifies files of an consistent with the SWVPD DB) installable s/w product -v (Verifies that /, /usr and /usr/share are Verifies files of an valid with each other) installable s/w product -h core 6b0 64 (Displays the program that Display the program that created the core file (core)) created a core file -El mem0 (Displays effective memory Displays info about the attributes) attributes of a device -El sys0 (Displays effective system Displays info about the attributes) attributes of a device -El sys0 -a realmem (Displays effective Displays info about the usable physical memory) attributes of a device (No arguments - Shows name, location Displays name, location and and description for all devices) description about devices Displays configuration, -vl hdisk0 (Display VPD (Vital Product diagnostic and VPD Data) information about hdisk0) information about a device Displays device info in the -Cc adapter -S a (List available adapters device configuration in the customized devices object class) database -ha bos.net.tcp.client (Display installation Lists installed software and update history of bos.net.tcp.client) products Lists installed software -l (Lists additional data) products -w /usr/sbin/aixmibd (Lists the fileset that Lists a fileset that owns a owns aixmibd) file Displays information about hd4 (Displays characteristics of LV "hd4") a logical volume (No arguments - List the contents of the List the contents of a system backup located on the default mksysb backup device /dev/rmt0) -l -f /dev/rmt1 (List volume group and List general backup data of general backup data about a backup a mksysb backup located on device /dev/rmt1) (No arguments - Displays the status of all Displays info about paths to paths known to the system) a MPIO capable device (No arguments - Lists every physical Displays info about physical

Command Description volumes within a VG Displays info about a lspv physical volume within a VG Displays info about hot plug lsslot slots Displays info about hot plug lsslot -c pci -o (Shows occupied pci slots) slots Gets status of subsystems, lssrc -a (Lists status of all defined subsystems) or a subserver -f fred (Display user account attributes for Display user account lsuser the user fred) attributes (No arguments - Lists all the Volume Displays information about lsvg Groups on the system) volume groups vg01 (Displays characteristics of the VG Displays information about lsvg "vg01") volume groups -l vg01 (Lists the names and Displays information about lsvg characteristics of all LVs in the VG vg01) volume groups (Lists each vpath and the hdisks that make lsvpcfg Displays information vpaths up the vpath) Mirrors all the LVs that mirrorvg rootvg (Mirror rootvg) exist on a given VG -y applv -t jfs2 appvg 20G hdisk6 (Create a 20GB LV named applv of type mklv Creates a logical volume jfs2 in VG appvg and allocate PPs from hdisk6 only) -Xiv /dev/rmt0 (Expands /tmp. Creates Creates an installable image mksysb /image.data. Verbose output) of rootvg -Av (Lists (for all attached subsystems) all Displays info about MPIO mpio_get_config info about the multiple path I/O (MPIO) based DS storage arrays based DS storage subsystems) -D printQ1 (Brings down the printer qadm Bring down a printer queue queue printQ1) -U printQ1 (Brings up the printer queue qadm Bring up a printer queue printQ1) -r (Shows version, release and Displays latest installed oslevel maintenance level of AIX) maintenance level -rl 5300-04 (Shows which fileset updates Displays which fileset oslevel are missing from 5300-04) updates are missing Displays which service pack oslevel -s (Shows which service pack is installed) is installed pcmpath query adapter (Displays information Display info about all about adapters attached to SDDPCM adapters attached to

Command

Common Arguments & Description volume on the server) hdisk23 (Displays information about hdisk23 such as number of PPs and whether it is active or stale) -c pci -a (Shows available/unoccupied pci slots)

Command

pcmpath prtconf pwdadm rmdev rmlv savecore

Common Arguments & Description (Subsystem Device Driver Path Control Module) configured MPIO devices) query device (Displays information about all MPIO-capable devices configured with SDDPCM (Subsystem Device Driver Path Control Module)) (No arguments - shows all information)

Command Description SDDPCM-configured MPIO devices Display info about all MPIO devices configured with SDDPCM modules

savevg

showled shutdown smitty ssa_format ssa_fw_status ssaxlate ssaxlate startsrc stopsrc svmon

Displays system configuration information -f ADMCHG bert (Forces bert to change Force password change on his password the next time he logs in) next login -dl hdisk8 (Unconfigure and undefine Remove a device from the hdisk8) system testlv (Remove the logical volume testlv) Remove a logical volume -f -d "DirectoryName" (Copy the dump Save a system dump to "DirectoryName" even if invalid) -i -r -f /tmp/appvg_savevg appvg (Create a backup of appvg, -i creates the data file Find and backup all files by calling mkvgdata, -r backs up metadata belonging to a specified VG only and not user data files, -f specifies the backup file) 0x888 (Send 888 to the LCD on the front Aids in physically locating a of IBM servers) server -Fr (Performs a fast shutdown restarting Shutdown or reboots the afterwards) O/S Updates AIX with new update_all maintenance level -l ssa0 -b (Resets the ssa battery "powered on hours" count to zero, to be used when a Format an ssa cache battery new cache battery is installed) -a ssa0 (Displays information regarding Display ssa adapter battery the cache battery for ssa0 such as battery status life) -l pdisk10 (Lists SSA Logical disk names Translate between SSA which depend on the physical disk pdisk10 logical disks (hdisks) and i.e. logical disk hdisk12) SSA physical disks (pdisks) -l hdisk12 (Lists SSA Physical disk names Translate between SSA which support the logical disk hdisk12 i.e. logical disks (hdisks) and physical disk pdisk10) SSA physical disks (pdisks) -s clcomdES (Start the clcomdES Start a subsystem subsystem) -s sendmail (Stop the sendmail Stop a subsystem subsystem) -G (Display a Global report including free Captures and analyzes a

Command

synclvodm

syncvg

sysdumpdev

sysdumpdev

sysdumpdev varyoffvg varyonvg vmstat

Common Arguments & Description Command Description memory in number of frames. Use "size" * snapshot of virtual memory 4 / 1024 to give MB.) Synchronizes or rebuilds the logical volume control -v datavg (Synchronize the volume group block, the device "datavg" with verbose output) configuration database and the volume group descriptor area Synchronizes logical -v appvg (Synchronize all physical volume copies that are not partitions in the volume group "appvg") current Displays and modifies the -e (Estimates the compressed size of the information and settings dump (in bytes) for the current running relating to traditional and system) firmware-assisted system dump. Displays and modifies the information and settings -l (Display current dump device settings) relating to traditional and firmware-assisted system dump. Displays and modifies the information and settings -L (Displays statistical information about relating to traditional and the most recent system dump) firmware-assisted system dump. vg01 (Deactivate volume group "vg01") Deactivates a volume group vg01 (Activate volume group "vg01") Activates a volume group -v (Displays statistics maintained by the Reports virtual memory virtual memory manager) statistics

Вам также может понравиться