AIX - Hardware Installation and Configuration Management
Available hardware platforms: MCA-based uni-processor models (rs6k), MCA-based symmetric multiprocessor models (rs6ksmp), ISA-bus models (rspc), PCI-bus models (CHRP). AIX V5.2 is not supported on MCA and PReP architecture hardware. The "AIX Statement of Direction" gives a complete list of unsupported models.
lscfg
Displays configuration, diagnostic and VPD information about the system.
lscfg -vp : Displays the system model, machine serial, processor type, number of processors, processor clock speed, cpu type, total memory size, network information, filesystem information, paging space information, and devices information.
lscfg | grep proc | wc -l : lists the # of processors.
prtconf or lsconf
Displays system configuration information.
prtconf -s : displays the processor clock speed.
prtconf -k : displays the kernel type in use.
prtconf -m : displays memory.
snap
Gathers system configuration information.
snap -a : gathers system configuration information. The output is written to the /tmp/ibmsupt directory.
uname
Displays the name of the current operating system.
uname -a : displays the machine ID and version banner.
uname -x : displays the operating system in use, the host name, the machine ID number of the hardware, the release number of the operating system, the operating system version and the system model name.
mach
Displays the processor architecture of the machine.
getconf
Displays system configuration variable values.
getconf HARDWARE_BITMODE : displays hardware bit mode (64 or 32 bit).
getconf KERNEL_BITMODE : displays kernel bit mode (64 or 32 bit).
getconf DISK_SIZE /dev/hdisk2 : displays disk size in MB.
getconf REAL_MEMORY : displays real memory size in MB.
cfg2html
A system configuration to HTML converter (Open Source)
file
Determines the file type.
file prog : displays user process bit mode of program prog. Returns:
executable (RISC System/6000) or object module not stripped (32 bit program),
or 64-bit XCOFF executable or object module not stripped (64 bit program).
file /unix : the returned link shows which kernel is running: unix_up = 32-bit uniprocessor kernel, unix_mp = 32-bit multiprocesssor kernel, unix_64 = 64-bit multiprocessor kernel.
cfgmgr
Configures devices by running the programs in /etc/methods directory and optionally installs device software.
cfgmgr : runs the Phase 2 configuration rules (second boot phase for normal boot) (same as using the -s flag).
cfgmgr -v : makes devices available that where not powered on when the system started.
cfgmgr -l scsi1 : configures detected devices attached to the scsi1 adapter.
cfgmgr -i /usr/sys/inst.images : installs device software (using the directory /usr/sys/inst.images) automatically during configuration.
chcons
Redirects the system console to device or file, effective next startup.
chcons -a login=enable /dev/tty0 : changes the system console to device /dev/tty0. Use /dev/lft0 for the default LFT display.
chcons /tmp/console.out : redirects the system console to file /tmp/console.out.
lsdisp
Lists the displays and the default display currently available on the system.
chdisp
Changes the display used by the LFT subsystem.
chdisp -p gda1 : changes the default display permanently to gda1.
lsattr
Displays attribute characteristics and possible values of attributes for devices in the system.
lsattr -EHl sys0l sys0 : displays system attributes (realmem ...)
lsattr -EHl proc0 : displays the state, type and frequency of processor proc0.
lsattr -El rmt0 : lists the current attribute values for the tape device rmt0.
lsattr -El tty0 -a speed : lists the current value of the speed attribute for serial port tty0.
lsdev
Displays devices in the system and their characteristics.
Examples:
lsdev -P -H : lists the Predefined (supported) Devices (in the PdDv object class).
lsdev -C -H : lists the Customized (configured/defined) Devices (in the CuDv object class).
lsdev -C -c disk : lists all the PVs (class disk) in the system along with the status and location code.
listdgrp
Displays devices in a device class.
listdgrp disk : list the devices in the disk class.
getdev
Lists devices that match the specified criteria.
getdev type=proc_rspc : lists all devices of type proc_rspc.
getdgrp
Lists device classes that match the specified criteria.
getdgrp : display all device classes.
chdev
Changes a device's characteristics.
chdev -l hdisk2 -a pv=yes : assigns a PVID to hdisk2.
mkdev
Adds a device to the system.
mkdev -l hdisk2 : make the already defined disk device hdisk2 available to use.
mkdev -l hdisk1 -a pv=yes : makes an available disk a PV (assigning a PVID), if it does not already have one.
mkdev -c tty -t tty -s rs232 -p sa0 -w s1 -a login=enable -a term=ibm3151 : adds an ibm3151 RS232 terminal using adapter sa0 port s1 with login enabled.
rmdev
Removes a device from the system.
rmdev -l tty0 -d : removes the tty0 device definition from the CuDv object class (ODM).
rmdev -l hdisk1 : unconfigures PV hdisk1 and changes its state from available to defined (definition is not removed from the CuDv object class (ODM).
Wednesday, May 20, 2009
AIX - Problem Determination - Quick View
AIX - Problem Determination - Quick View
sysdumpdev
Changes the primary or secondary dump device designation in a running system. The default primary dump device is LV /dev/hd6 and the default secondary dump device is /dev/sysdumpnull. A dedicated primary dump device LV /dev/lg_dumplv is created (if sufficient disk space is available) in systems with at least 4 Gigabytes of real memory.
sysdumpdev -l : displays current dump device settings.
sysdumpdev -P -p /dev/hd7 : changes the primary dump device permanently from the default to LV /dev/hd7.
sysdumpdev -e : estimates the dump size (in bytes) for the current running system.
sysdumpdev -L : displays statistical information about the last dump.
chdev -l sys0 -a autostart=true : automatically reboot after a crash (default is false).
dumpcheck
Checks the disk resources used by the system dump and logs in the system error log. Run default by cron at 3:00 pm local time each day.
/usr/lib/ras/dumpcheck -p : requests a dumpcheck. The result is printed to stdout (-p).
/usr/lib/ras/dumpcheck -r : discontinues running dumpcheck (removes the crontab entry).
kdb
Displays system images for examining a dump.
kdb /var/adm/ras/vmcore.0 /unix : starts kdb using the uncompressed dump file /var/adm/ras/vmcore.0 and kernel file /unix.
snap
Gathers system configuration information and compresses the information into a pax file.
snap -a -o /dev/rmt0 : gathers all system configuration information (needs approximately 8 MB space in directory /tmp/ibmsupt) and creates a compressed pax image (snap.pax.Z) of directory /tmp/ibmsupt.
snapcore
Gathers the core file, program, and libraries used by a program to directory /tmp/snapcore (default) and compresses the information into a pax image. The collected information allows debugging and resolving problems within an application.
snapcore -d /tmp/snapcore2 core.xx : gathers all needed information for core dump file core.xx and writes it to directory /tmp/snapcore2/snapcore_32811.pax.Z, where 32811 is the process id ($pid) of the snapcore command.
uncompress -c snapcore_32811.pax.Z | pax : displays the contents of the pax archive.
check_core
Used by snapcore to gather all information about a core dump. The bos.rte.serv_aid fileset must be installed.
/usr/lib/ras/check_core core.xx : displays a list containing the program that caused core dump core.xx and the used libraries.
shconf
Manages the system hang detection parameters for the system hang daemon shdaemon.
shconf -d : displays if priority problem detection and lost I/O detection are enabled or not.
shconf -E -l prio -H : displays the current shdaemon settings.
sysdumpdev
Changes the primary or secondary dump device designation in a running system. The default primary dump device is LV /dev/hd6 and the default secondary dump device is /dev/sysdumpnull. A dedicated primary dump device LV /dev/lg_dumplv is created (if sufficient disk space is available) in systems with at least 4 Gigabytes of real memory.
sysdumpdev -l : displays current dump device settings.
sysdumpdev -P -p /dev/hd7 : changes the primary dump device permanently from the default to LV /dev/hd7.
sysdumpdev -e : estimates the dump size (in bytes) for the current running system.
sysdumpdev -L : displays statistical information about the last dump.
chdev -l sys0 -a autostart=true : automatically reboot after a crash (default is false).
dumpcheck
Checks the disk resources used by the system dump and logs in the system error log. Run default by cron at 3:00 pm local time each day.
/usr/lib/ras/dumpcheck -p : requests a dumpcheck. The result is printed to stdout (-p).
/usr/lib/ras/dumpcheck -r : discontinues running dumpcheck (removes the crontab entry).
kdb
Displays system images for examining a dump.
kdb /var/adm/ras/vmcore.0 /unix : starts kdb using the uncompressed dump file /var/adm/ras/vmcore.0 and kernel file /unix.
snap
Gathers system configuration information and compresses the information into a pax file.
snap -a -o /dev/rmt0 : gathers all system configuration information (needs approximately 8 MB space in directory /tmp/ibmsupt) and creates a compressed pax image (snap.pax.Z) of directory /tmp/ibmsupt.
snapcore
Gathers the core file, program, and libraries used by a program to directory /tmp/snapcore (default) and compresses the information into a pax image. The collected information allows debugging and resolving problems within an application.
snapcore -d /tmp/snapcore2 core.xx : gathers all needed information for core dump file core.xx and writes it to directory /tmp/snapcore2/snapcore_32811.pax.Z, where 32811 is the process id ($pid) of the snapcore command.
uncompress -c snapcore_32811.pax.Z | pax : displays the contents of the pax archive.
check_core
Used by snapcore to gather all information about a core dump. The bos.rte.serv_aid fileset must be installed.
/usr/lib/ras/check_core core.xx : displays a list containing the program that caused core dump core.xx and the used libraries.
shconf
Manages the system hang detection parameters for the system hang daemon shdaemon.
shconf -d : displays if priority problem detection and lost I/O detection are enabled or not.
shconf -E -l prio -H : displays the current shdaemon settings.
Saturday, May 16, 2009
Unix For DOS Users - Command Comparision
Unix For DOS Users - Command Comparision
Click the following link for information: UNIX & DOS Command Comparision
Click the following link for information: UNIX & DOS Command Comparision
AIX - System V R4 Print Subsystem
AIX - System V R4 Print Subsystem
lp
Sends print requests.
cancel
Cancels print requests previously sent with the lp command.
lpstat
Displays the status of all print requests made by the user.
accept
Allows the queuing of print requests.
reject
Prevents queuing of print requests.
enable
Activates the named printers, enabling them to print requests.
disable
Deactivates the named printers, disabling them to print requests.
lpadmin
Configures the lp print service by defining printers and devices.
lpfilter
Administers filters used.
lpforms
Administers the use of preprinted forms.
lpmove
Moves print requests between destinations.
lpsched
Starts the print service.
lpshut
Stuts down the print service.
lpsystem
Registers remote systems with the print service.
lpusers
Set printing queue priorities.
lp
Sends print requests.
cancel
Cancels print requests previously sent with the lp command.
lpstat
Displays the status of all print requests made by the user.
accept
Allows the queuing of print requests.
reject
Prevents queuing of print requests.
enable
Activates the named printers, enabling them to print requests.
disable
Deactivates the named printers, disabling them to print requests.
lpadmin
Configures the lp print service by defining printers and devices.
lpfilter
Administers filters used.
lpforms
Administers the use of preprinted forms.
lpmove
Moves print requests between destinations.
lpsched
Starts the print service.
lpshut
Stuts down the print service.
lpsystem
Registers remote systems with the print service.
lpusers
Set printing queue priorities.
AIX - Print Subsystem
AIX - Print Subsystem
qprt
Starts a print job.
lpr
Enqueues print jobs.
lp
Sends requests to a line printer.
enq
Enqueues a file.
chprtsv
Changes a print service configuration on a client or server machine.
lsque
Displays the queue stanza name.
lsque -q ps
Displays the name of queue stanza ps.
mkque
Adds a printer queue to the system.
mkquedev
Adds a printer queue device to the system.
rmque
Removes a printer queue from the system.
rmquedev
Removes a printer or plotter queue device from the system.
chque
Changes the queue name.
chvirprt
Changes the attribute values of a virtual printer.
lsallq
Lists the names of all configured queues.
lsallqdev
Lists all configured printer and plotter queue device names within a specified queue.
lsprtsv
Shows print service information stored in the database.
lsquedev
Displays the device stanza name.
chquedev
Changes the printer or plotter queue device names.
mkvirprt
Makes a virtual printer.
rmvirprt
Removes a virtual printer.
mkprtsv
Configures TCP/IP-based print service on a host.
rmprtsv
Unconfigures a print service on a client or server machine.
qprt
Starts a print job.
lpr
Enqueues print jobs.
lp
Sends requests to a line printer.
enq
Enqueues a file.
chprtsv
Changes a print service configuration on a client or server machine.
lsque
Displays the queue stanza name.
lsque -q ps
Displays the name of queue stanza ps.
mkque
Adds a printer queue to the system.
mkquedev
Adds a printer queue device to the system.
rmque
Removes a printer queue from the system.
rmquedev
Removes a printer or plotter queue device from the system.
chque
Changes the queue name.
chvirprt
Changes the attribute values of a virtual printer.
lsallq
Lists the names of all configured queues.
lsallqdev
Lists all configured printer and plotter queue device names within a specified queue.
lsprtsv
Shows print service information stored in the database.
lsquedev
Displays the device stanza name.
chquedev
Changes the printer or plotter queue device names.
mkvirprt
Makes a virtual printer.
rmvirprt
Removes a virtual printer.
mkprtsv
Configures TCP/IP-based print service on a host.
rmprtsv
Unconfigures a print service on a client or server machine.
AIX - Print Management - switch.prt
AIX - Print Management - switch.prt
switch.prt
Displays the current active print subsystem, or switch between the active and inactive print subsystem. Read also AIX System V Printing.
switch.prt -d : displays the current print subsystem that is active.
switch.prt
Displays the current active print subsystem, or switch between the active and inactive print subsystem. Read also AIX System V Printing.
switch.prt -d : displays the current print subsystem that is active.
AIX - Print Management
AIX - Print Management
The AIX print subsystem (default), a combination of the System V and Berkeley Software Distribution (BSD) printing standard, and the System V R4 print subsystem are available. Both print subsystems cannot be set to the active state at the same time using the normal procedures.
System file /etc/qconfig (stanzas that describe the printqueues and devices). Spooling uses the /var/spool/qdaemon directory. Daemon: qdaemon.
The AIX print subsystem (default), a combination of the System V and Berkeley Software Distribution (BSD) printing standard, and the System V R4 print subsystem are available. Both print subsystems cannot be set to the active state at the same time using the normal procedures.
System file /etc/qconfig (stanzas that describe the printqueues and devices). Spooling uses the /var/spool/qdaemon directory. Daemon: qdaemon.
AIX - ODM Management
AIX - ODM Management
ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env variable), /usr/lib/objrepos and /usr/share/lib/objrepos.
odmadd
Adds objects to created object classes.
odmchange
Changes the contents of a selected object in the specified object class.
odmcreate
Produces the .c (source) and .h (include) files necessary for ODM application development and creates empty object classes.
odmdelete
Deletes selected objects from a specified object class.
odmdrop
Removes an object class.
odmget
Retrieves objects from the specified object classes and places them into an odmadd input file.
odmshow
Displays an object class definition.
odmshow CuDv : displays the object class definition for the Customized Device Database.
ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env variable), /usr/lib/objrepos and /usr/share/lib/objrepos.
odmadd
Adds objects to created object classes.
odmchange
Changes the contents of a selected object in the specified object class.
odmcreate
Produces the .c (source) and .h (include) files necessary for ODM application development and creates empty object classes.
odmdelete
Deletes selected objects from a specified object class.
odmdrop
Removes an object class.
odmget
Retrieves objects from the specified object classes and places them into an odmadd input file.
odmshow
Displays an object class definition.
odmshow CuDv : displays the object class definition for the Customized Device Database.
AIX - System Resource Controller
AIX - System Resource Controller
lssrc
Gets the status of a subsystem, a group of subsystems, or a subserver.
lssrc -a : displays the status of all subsystems.
lssrc -g tcpip : display the status of the tcpip subsystem group.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
stopsrc
Stops a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
refresh -g tcpip : refresh the group tcpip.
refresh -s inetd : refresh the inetd subsystem (re-reads /etc/inetd.conf).
chssys
Changes a subsystem definition in the subsystem object class.
mkssys
Adds a subsystem definition to the subsystem object class.
rmssys
Removes a subsystem definition from the subsystem object class.
mkserver
Adds a subserver definition to the subserver object class.
rmserver
Removes a subserver definition from the subserver object class.
lssrc
Gets the status of a subsystem, a group of subsystems, or a subserver.
lssrc -a : displays the status of all subsystems.
lssrc -g tcpip : display the status of the tcpip subsystem group.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
stopsrc
Stops a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
refresh -g tcpip : refresh the group tcpip.
refresh -s inetd : refresh the inetd subsystem (re-reads /etc/inetd.conf).
chssys
Changes a subsystem definition in the subsystem object class.
mkssys
Adds a subsystem definition to the subsystem object class.
rmssys
Removes a subsystem definition from the subsystem object class.
mkserver
Adds a subserver definition to the subserver object class.
rmserver
Removes a subserver definition from the subserver object class.
AIX - Process Management
AIX - Process Management
utmpd
The utmpd daemon monitors /etc/utmp for validity of the user process entries every 300 seconds (default). Default there is no entry in /etc/inittab for utmpd.
utmpd 500 : runs utmpd every 500 seconds.
whodo
Reports the list of processes and their child processes belonging to users.
who -l : summarises the current activity on the system.
procwdx
Prints the current working directory of a process.
procwdx 21318 : displays the current working directory of process 21318.
truss
Traces system calls executed by a process as, records the received signals and the occurrence of machine faults. The output of truss can become very large.
truss -e -o truss.out whoo : runs the who command under truss including the environment content (-e) and redirects the output to truss.out.
utmpd
The utmpd daemon monitors /etc/utmp for validity of the user process entries every 300 seconds (default). Default there is no entry in /etc/inittab for utmpd.
utmpd 500 : runs utmpd every 500 seconds.
whodo
Reports the list of processes and their child processes belonging to users.
who -l : summarises the current activity on the system.
procwdx
Prints the current working directory of a process.
procwdx 21318 : displays the current working directory of process 21318.
truss
Traces system calls executed by a process as, records the received signals and the occurrence of machine faults. The output of truss can become very large.
truss -e -o truss.out whoo : runs the who command under truss including the environment content (-e) and redirects the output to truss.out.
Subscribe to:
Posts (Atom)