AIX Command Miscs

AIX Command Miscs


Generates a report of logged errors.

-j ErrorID[,ErrorID] Includes only the error-log entries specified by the ErrorID (error identifier) variable. The ErrorID variables can be separated by a , (comma), or enclosed in " " (double quotation marks) and separated by a , (comma), or a space character. When combined with the -t flag, entries are processed from the error-template repository. (Otherwise entries are processed from the error-log repository.)

-J ErrorLabel Includes the error log entries specified by the ErrorLabel variable. The ErrorLabel variable values can be separated by commas or enclosed in double-quotation marks and separated by commas or blanks. When combined with the -t flag, entries are processed from the error template repository. (Otherwise, entries are processed from the error log repository.)

-s startdate Select entries posted later than date. (MMddhhmmyy)

-e enddate Select entries posted earlier than date. (Mmddhhmmyy)

To display a detailed report of all errors logged in the past 24 hours, enter: errpt -a -s mmddhhmmyy where the mmddhhmmyy string equals the current month, day, hour, minute, and year, minus 24 hours.

errpt | grep ent | head -n4

uname -- Displays the name of the current operating system.
-a   Displays all information specified with the -m, -n, -r, -s, and -v flags.

Enable or disable SMT
smtctl [ -m off | on [ -w boot | now]]

To display if the kernel is 32-bit enabled or 64-bit enabled:bootinfo -K
To display real memory in kilobytes (KB):bootinfo -r 
env -- Displays the current environment or sets the environment for the execution of a command.
id -- Displays the system identifications of a specified user.
To display the run-level of the local system node: who -r

lsuser ALL, lsuser root
lsgroup AL
smitty user|group|chinet|cluster|tcpip|lv|pv|lvm|vg|chvg
netstat -rn, -v, -m, -i, -IN, -D

Display mounted file systems - mount
mount all default file systems (all standard file systems in the /etc/filesystems file marked by the mount=true attribute) -- mount {-a|all}
Volume groups and logical volumes

fsck -- Checks file system consistency and interactively repairs the file system.
To check all the default file systems:fsck
This command checks all the file systems marked check=true in the /etc/filesystems file. This form of the fsck
To fix minor problems with the default file systems automatically: fsck -p
To check a specific file system: fsck /dev/hd1
This command checks the unmounted file system located on the /dev/hd1 device.

last -- Displays information about previous logins.
To display all the recorded logins and logoffs by user root or from the console terminal:
last root console
To display the time between reboots of the system: last reboot
The reboot pseudo-user logs in when the system starts again.
To display all the users still logged in at 10.30 am on April 15th: last -t 04151030
To display 10 lines in the list:last -n 10

Displays configuration, diagnostic, and vital product data (VPD) information about the system.
-l Name Displays device information for the named device.
-p  Displays the platform-specific device information. This flag only applies to AIX 4.2.1 or later.
-v  Displays the VPD found in the Customized VPD object class. Also, on AIX 4.2.1 or later, displays platform specific VPD when used with the -p flag.
-s  Displays the device description on a separate line from the name and location.
To display the number of processors on your system, type:
lscfg | grep proc
lscfg | grep Enclosure
display details about the tape drive, rmt0, type:
lscfg -vl rmt0
lscfg  -v -l ent0
lscfg -vp -lent0

lslpp Command -- Lists installed software products.
-E License Agreements.
-e Lists all efixes on the system.
-f Files that belong to this fileset.
-h History information.
-w Lists the fileset that owns this file.
lslpp -h bos.rte
Which fileset contains a particular binary?
lslpp -w /usr/bin/vmstat

lsvg -- Displays information about volume groups.
To show volume groups in the system:lsvg
To show all the characteristics of rootvg: lsvg rootvg
To show disks used by rootvg:   lsvg -p rootvg
Add a disk to a volume group:   extendvg   VolumeGroupName   hdisk0 hdisk1 ... hdiskn

syncvg -- Synchronizes logical volume copies that are not current.
To synchronize the copies on physical volumes hdisk04 and hdisk05, enter:
syncvg  -p hdisk04 hdisk05
To synchronize the copies on volume groups vg04 and vg05, enter:
syncvg  -v vg04 vg05
Create a volume group:  mkvg -y name_of_volume_group -s partition_size list_of_hard_disks
hange the characteristics of a volume group:    chvg
Create a logical volume:    mklv -y name_of_logical_volume name_of_volume_group number_of_partition
Increase the size of a logical volume:  extendlv lv05 3

lsfs -- Displays the characteristics of file systems.
-a          Lists all file systems (default).
-v VfsType  Reports on all file systems of a specified type.
lsfs -v jfs; lsfs

Post a Comment


Java (159) Lucene-Solr (110) Interview (61) All (58) J2SE (53) Algorithm (45) Soft Skills (36) Eclipse (34) Code Example (31) Linux (24) JavaScript (23) Spring (22) Windows (22) Web Development (20) Nutch2 (18) Tools (18) Bugs (17) Debug (15) Defects (14) Text Mining (14) J2EE (13) Network (13) PowerShell (11) Troubleshooting (11) Chrome (9) Design (9) How to (9) Learning code (9) Performance (9) UIMA (9) html (9) Http Client (8) Maven (8) Problem Solving (8) Security (8) bat (8) blogger (8) Big Data (7) Continuous Integration (7) Google (7) Guava (7) JSON (7) ANT (6) Coding Skills (6) Database (6) Scala (6) Shell (6) css (6) Algorithm Series (5) Cache (5) Dynamic Languages (5) IDE (5) Lesson Learned (5) Programmer Skills (5) Tips (5) adsense (5) xml (5) AIX (4) Code Quality (4) GAE (4) Git (4) Good Programming Practices (4) Jackson (4) Memory Usage (4) Miscs (4) OpenNLP (4) Project Managment (4) Spark (4) System Design (4) Testing (4) ads (4) regular-expression (4) Android (3) Apache Spark (3) Become a Better You (3) Concurrency (3) Eclipse RCP (3) English (3) Happy Hacking (3) IBM (3) J2SE Knowledge Series (3) JAX-RS (3) Jetty (3) Restful Web Service (3) Script (3) regex (3) seo (3) .Net (2) Android Studio (2) Apache (2) Apache Procrun (2) Architecture (2) Batch (2) Bit Operation (2) Build (2) Building Scalable Web Sites (2) C# (2) C/C++ (2) CSV (2) Career (2) Cassandra (2) Distributed (2) Fiddler (2) Firefox (2) Google Drive (2) Gson (2) How to Interview (2) Html Parser (2) Http (2) Image Tools (2) JQuery (2) Jersey (2) LDAP (2) Life (2) Logging (2) Python (2) Software Issues (2) Storage (2) Text Search (2) xml parser (2) AOP (1) Application Design (1) AspectJ (1) Chrome DevTools (1) Cloud (1) Codility (1) Data Mining (1) Data Structure (1) ExceptionUtils (1) Exif (1) Feature Request (1) FindBugs (1) Greasemonkey (1) HTML5 (1) Httpd (1) I18N (1) IBM Java Thread Dump Analyzer (1) JDK Source Code (1) JDK8 (1) JMX (1) Lazy Developer (1) Mac (1) Machine Learning (1) Mobile (1) My Plan for 2010 (1) Netbeans (1) Notes (1) Operating System (1) Perl (1) Problems (1) Product Architecture (1) Programming Life (1) Quality (1) Redhat (1) Redis (1) Review (1) RxJava (1) Solutions logs (1) Team Management (1) Thread Dump Analyzer (1) Visualization (1) boilerpipe (1) htm (1) ongoing (1) procrun (1) rss (1)

Popular Posts