Eric Yih's Blog

Do what you like, like what you do.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

lsattr command in AIX

Posted on 2012-04-21 09:28  Eric Yih  阅读(842)  评论(0)    收藏  举报

In AIX, You can use lsattr -El sys0 which give all basic details regarding the system.

Example for AIX 7.1:

 1 bash-3.2# lsattr -El sys0
 2 SW_dist_intr    false                                Enable SW distribution of interrupts              True
 3 autorestart     true                                 Automatically REBOOT OS after a crash             True
 4 boottype        disk                                 N/A                                               False
 5 capacity_inc    0.01                                 Processor capacity increment                      False
 6 capped          false                                Partition is capped                               False
 7 chown_restrict  true                                 Chown Restriction Mode                            True
 8 conslogin       enable                               System Console Login                              False
 9 cpuguard        enable                               CPU Guard                                         True
10 dedicated       false                                Partition is dedicated                            False
11 enhanced_RBAC   true                                 Enhanced RBAC Mode                                True
12 ent_capacity    0.20                                 Entitled processor capacity                       False
13 frequency       1056000000                           System Bus Frequency                              False
14 fullcore        false                                Enable full CORE dump                             True
15 fwversion       IBM,SF240_320                        Firmware version and revision levels              False
16 ghostdev        0                                    Recreate devices in ODM on system change          True
17 id_to_partition 0X8000008172000011                   Partition ID                                      False
18 id_to_system    0X8000008172000000                   System ID                                         False
19 iostat          false                                Continuously maintain DISK I/O history            True
20 keylock         normal                               State of system keylock at boot time              False
21 log_pg_dealloc  true                                 Log predictive memory page deallocation events    True
22 max_capacity    2.00                                 Maximum potential processor capacity              False
23 max_logname     9                                    Maximum login name length at boot time            True
24 maxbuf          20                                   Maximum number of pages in block I/O BUFFER CACHE True
25 maxmbuf         0                                    Maximum Kbytes of real memory allowed for MBUFS   True
26 maxpout         8193                                 HIGH water mark for pending write I/Os per file   True
27 maxuproc        128                                  Maximum number of PROCESSES allowed per user      True
28 min_capacity    0.10                                 Minimum potential processor capacity              False
29 minpout         4096                                 LOW water mark for pending write I/Os per file    True
30 modelname       IBM,9110-51A                         Machine name                                      False
31 ncargs          256                                  ARG/ENV list size in 4K byte blocks               True
32 nfs4_acl_compat secure                               NFS4 ACL Compatibility Mode                       True
33 ngroups_allowed 128                                  Number of Groups Allowed                          True
34 os_uuid         16d25cfa-a47b-42a4-9042-dcf54b779a56 N/A                                               True
35 pre430core      false                                Use pre-430 style CORE dump                       True
36 pre520tune      disable                              Pre-520 tuning compatibility mode                 True
37 realmem         1048576                              Amount of usable physical memory in Kbytes        False
38 rtasversion     1                                    Open Firmware RTAS version                        False
39 sed_config      select                               Stack Execution Disable (SED) Mode                True
40 systemid        IBM,02060BD40                        Hardware system identifier                        False
41 variable_weight 128                                  Variable processor capacity weight                False

1.  Get current maximum login name length

2.  Change the length

1 bash-3.2# lsattr -El sys0 -a max_logname
2 max_logname 9 Maximum login name length at boot time True
3 bash-3.2# chdev -l sys0 -a max_logname=21
4 sys0 changed