AIX and Sunsolaris commands
This reference provides information on AIX and Solaris in the following categories: 1.Packaging 2. Installing and Upgrading Tasks 3.Booting and Shutting Down 4.User Management Tasks 5.Device Management and Configuration 6.Network Management and Configuration 7.Printer Management and Configuration 8.File System Management 9.Virtual Disk Management 10.Logical Volume Management 11.Troubleshooting and Additional Location Information 1.Packaging Units AIX Version 5.1.0 Solaris 8 Smallest installable unit fileset package Single installable image; must be distributed and installed as a unit package package Logical grouping of packages bundle software cluster Logical grouping of packages and software clusters Bundle offering, for example: Software configuration clusters, for example: App-Dev: Application Development Environment Core: Required operating system files Client: End-User System Support: Core plus window environment Pers-Prod Developer System Support: End-User plus the development environment DCE-Client Entire Distribution: Developer System plus enhanced features Media-Defined Entire Distribution Plus OEM: Entire Distribution plus third-party hardware drivers (on SPARC only) 2.Installing and Upgrading Tasks Tasks AIX Version 5.1.0 Solaris 8 Install packages installp-a pkgadd or smitty install_latest (fast path) Display installed packages lslpp -L pkginfo or smitty list_installed_sw or (fast path) pkgparam Remove software package installp -r(for applied package) pkgrm or smitty reject(fast path) installp -u(for committed package) or smitty remove (fast path) Upgrade a package installp -a N/A Verify correct installation lppchk pkgchk or smitty check_files (fast path) Install a patch instfix patchadd or smitty update_by_fix (fast path) Remove a patch installp-r patchrm or smitty reject (fast path) Display installed patches instfix -ia showrev -p Install OS on another disk (Alternate disk installation) alt_disk_install Live Upgrade Create an installation server for network installation nimconfig setup_install_server install_dir_path Create a boot server for network installation smitty nim_config_env setup_install_server -b bootdirpath Set up a client for network installation nim -o bos_inst add_install_client 3.Booting and Shutting Down Tasks/Locations AIX Version 5.1.0 Solaris 8 Boot process Phases: Phases: Read Only Storage (ROS): Check the system board, perform Power-On Self-Test (POST), locate the boot image, load the boot image into memory, begin system initialization and execute phase 1 of the/etc/rc.boot script Boot PROM: Display system information, run POST, load bootblk, locate ufsboot Base Device Configuration: Start Configuration Manager to configure base devices Boot Programs: bootblk loads and executes the ufsboot System Boot: Start init process phase 2, switch to hard-disk root file system, start other processes defined by records in the /etc/inittab file and execute phase 3 of the /etc/rc.boot script Kernel Initialization: ufsboot loads and executes the core kernel, initializes core kernel data structures, loads other kernel modules based on the /etc/system file, starts /sbin/init program init: Starts other processes based on the /etc/inittab file Kernel modules directory Kernel and kernel extension modules are stored in two directories: Kernel modules are stored in three directories: /usr/lib/boot /platform/sparc/kernel or /platform/i86pc/kernel /usr/lib/drivers /kernel /usr/kernel System run levels Defined run levels: Eight run levels: 0-1: Reserved for future use 0: Power-down state 2: Multiuser mode with NFS resources shared (default run level) s or S: Single-user state 3-9: Defined according to the user's preferences 1: Administrative state m,M,s,S: Single-user mode (maintenance level) 2: Multiuser state a,b,c: Starts processes assigned to the new run levels while leaving the existing processes at the current level running 3: Multiuser state with NFS resources shared (default run level) Q,q: init command to reexamine the /etc/inittab file 4: Alternative multiuser (not in use) Note: When a level from 1 to 9 is specified, the init command kills processes at the current level and restarts any processes associated with the new run level based on the /etc/inittab file. 5: Power-down state 6: Reboot state Determine a system's run level who -r who -r Change a system's run level telinit level number Choose one of the following: halt init poweroff reboot shutdown telinit uadmin Startup script /etc/rc /sbin/rc run-level number Use new kernel bosboot N/A Display boot information bootinfo N/A Display or alter the list of boot devices bootlist boot Shutdown and reboot shutdown -Fr reboot or shutdown -i 6 Shutdown shutdown or halt halt or poweroff 4.User Management Tasks Tasks/Locations AIX Version 5.1.0 Solaris 8 Run multiple tasks in a GUI environment Choose one of the following: admintool smitty users(fast path) smitty wsm Add a user mkuser useradd Remove a user rmuser userdel Change a user chuser usermod List users lsuser listusers Password files /etc/passwd /etc/passwd and and /etc/security/passwd /etc/shadow Group files /etc/group /etc/group and /etc/security/group Process resource limits for users /etc/security/limits N/A Systemwide environment file /etc/profile and /etc/environment N/A Configuration information for user authentication /etc/security/user /etc/pam.conf Profile template /etc/security/.profile /etc/skel/local.profile 5.Device Management and Configuration Tasks AIX Version 4.3.3 Solaris 8 Run multiple tasks in a GUI environment smit (smitty in non-GUI) or wsm admintool Configure a device cfgmgr Choose one of the following: drvconfig devlinks disks tapes ports Define a device mkdev Choose one of the following: drvconfig devlinks disks tapes ports Remove a device rmdev rem_drv Change a device chdev N/A List devices lsdev sysdef Display device lscfg prtconf 6.Network Management and Configuration Tasks AIX Version 4.3.3 Solaris 8 Run multiple tasks in a GUI environment smit (smitty in non-GUI) or wsm N/A Configure TCP/IP mktcpip ifconfig or vi /etc/nsswitch.conf Display interface settings ifconfig ifconfig Configure interface ifconfig ifconfig Change name service chnamsv vi /etc/nsswitch.conf Unconfigure name service rmnamsv vi /etc/nsswitch.conf Display name service lsnamsv cat /etc/nsswitch.conf 7.Printer Management and Configuration Tasks AIX Version 4.3.3 Solaris 8 Run multiple tasks in a GUI environment smit (smitty in non-GUI) or wsm admintool Add a printer mkdev lpadmin Start a printer Start a queue: qadm enable Stop a printer Stop a queue: qadm disable Add a printer class N/A lpadmin Display print queue status lpstat lpstat Cancel a print job qcan cancel Add printer queue Choose one of the following: lpadmin mkque mkquedev mkvirprt Change printer queue Choose one of the following: lpadmin chque chquedev chvirprt Remove printer queue Choose one of the following: lpadmin rmque rmquedev rmvirprt Display settings of printer queue Choose one of the following: lpadmin lsque lsquedev lsvirprt 8.File System Management Tasks AIX Version 4.3.3 Solaris 8 Run multiple tasks in a GUI environment smit (smitty in non-GUI) N/A or wsm Format a disk N/A - Automatically handled format Check a file system fsck fsck Mount a file system mount mount Display available file-system space df df Partition a disk N/A - Automatically handled format List a volume's table of contents lchangelv prtvtoc Add a file system crfs newfs or mkfs Unmount a file system umount umount Back up file systems/files/directories backup ufsdump Restore file systems/files/directories restore ufsrestore Change a file system chfs tunefs Remove a file system rmfs N/A Display a file system lsfs cat /etc/vfstab 9.Virtual Disk Management Tasks AIX Version 4.3.3 Solaris 8 Run multiple tasks in a GUI environment smitty chjfs or wsm metatool Expand file system chfs growfs or smitty chjfs Delete metadevice N/A metaclear Configure metadevice N/A metainit Modify metadevice N/A metaparam Rename metadevice N/A metarename Display status of metadevice N/A metastat 10.Logical Volume Management The following is a list of tasks that are used when performing logical volume management in AIX and Solaris. The information in this table includes Solaris 8 and the Veritas Volume Manager (VxVM). IBM includes its Logical Volume Manager (LVM) in AIX Version 4.3.3. Tasks AIX Version 4.3.3 Solaris 8 Storage Structure A disk is composed of physical partitions. A disk is composed of partitions/slices. A physical volume is the same thing as a disk. A file system is placed onto a partition. A volume group is composed of physical volumes. A subdisk (somewhat similar to AIX physical partition) is composed of partitions/slices. A volume group is divided into logical volumes. A plex (similar to AIX logical partition) is composed of subdisks. A file system is placed onto a logical volume. A volume (similar to AIX logical volume) is composed of plexes. A VM disk is composed of subdisks. A disk group (similar to AIX volume group) is composed of VM disks. Run multiple tasks in a GUI environment smit (smitty in non-GUI) or wsm vxva Move logical volume to another physical volume migratepv vxassist move Create logical volume mklv vxassist make Extend logical volume extendlv vxassist growto Remove logical volume rmlv vxedit rm Set up sysboot information on VM disk N/A vxbootsetup Manage VM disks N/A vxdisk Create volume group mkvg vxdg init Remove disk from volume group reducevg vxdg rmdisk Add disks under volume manager extendvg vxdiskadd Administer disks reducevg vxdiskadm or extendvg Set up disks extendvg vxdisksetup Change logical volume settings chlv vxedit set Create configuration records for storage structures mkvg vxmake or mklv Manage plexes or volume groups chvg vxplex or mkvg Display volume group lsvg vxprint Change size of volume lchangelv vxresize Manage subdisk or physical volume chpv vxsd Display statistics for storage structures Choose one of the following: vxstat lspv lsvg lslv Manage volume Choose one of the following: vxvol chlv mklv rmlv Back up operating system mksysb (to tape or file) Solstice Backup: nwadmin or mkcd (CD-ROM) Restore operating system mksysb (to tape or file) Choose one Solstice Backup: or nwadmin mkcd (CD-ROM) nwrecover 11.Troubleshooting and Additional Location Information Tasks/Locations AIX Version 4.3.3 Solaris 8 Change a host name chdev -l inet0 -a hostname=host name Minimum change required for the followings files: /etc/nodename /etc/hosts /etc/hostname.* /etc/net/*/hosts List of well-known networking services and port numbers /etc/services /etc/services List of well-known protocols /etc/protocols /etc/protocols Provide interface-level packet tracing for Internet protocols iptrace snoop Display network status netstat netstat Display NFS and RPC statistics nfsstat nfsstat Display statistics on network I/O and network CPU usage netpmon N/A Display a snapshot of virtual memory svmon N/A Display virtual memory statistics vmstat vmstat Display I/O statistics iostat iostat or filemon Report system activity sar sar Display simple and complex lock contention information lockstat N/A Report CPU usage tprof N/A Simulate a system with different memory sizes for performance testing rmss N/A Display system error log errpt -a dmesg Display/Set dump device sysdumpdev N/A Display paging/swapping space lsps -a swap -l Specify users who have access to cron (Every user has access to cron if the access file does not exist.) /var/adm/cron/cron.allow /etc/cron.d/cron.allow Specify users who have no access to cron /var/adm/cron/cron.deny /etc/cron.d/cron.deny Specify remote users and hosts that can execute commands on the local host /etc/hosts.equiv /etc/hosts.equiv Information about mounting local and remote file systems /etc/filesystems /etc/vfstab Display information about the current mounted file systems mount mount or pg /etc/mnttab Default superuser log /var/adm/sulog /var/adm/sulog Configure syslogd logging /etc/syslog.conf /etc/syslog.conf Display physical RAM bootinfo -r prtconf
Description
All AIX-Sun-Solaris commands summary. With all operating systems task.
1.Installation 2.debug 3.Network command 4.file system management 5.Printer management and configuration 6.Virtual disk management 7.Logical volume management.
Most of commands used in daily operation on AIX and Solaris
Presentation Transcript
Your Facebook Friends on WizIQ