Monday, November 16, 2020

shutdown -Fr Reboot

 r

use the command "w" to see who's logged in before rebooting

101 command PDF

linux 37 essential command 

 vtmenu HMC information 

Reboot 

Procedure for rebooting the server:

  • Login as the “root” user. You must have password for the root user.
  • At the “#” prompt, type in the following command:
    shutdown -Fr

Procedure for shutting down the server:

  • Login as the “root” user. You must have password for the root user.
  • At the “#” prompt, type in the following command:
    shutdown -F

lsvg -l rootvg

  1. Disks, Volumes and File Systems
  2. Command

    Description

    lsvg

    Displays information about volume groups.

    lsvg rootvg

    Display information about rootvg.

    lsvg -p rootvg

    Display physical volumes.

    lsvg -l rootvg

    Display logical volumes.

    Mkvg

    Create a new volume group, using the physical volumes

    extendvg

    Adds physical volumes to a volume group.

    Reducevg

    Remove physical volumes from a volume group. When all physical volumes removed from the volume group, the group is deleted.

    Command

    Description

    Lspv

    Displays information about a physical volume within a vg.

    lspv hdisk0

    Display information about physical volume hdisk0.

    varyonvg datavg

    Activates volume group.

    varyonvg datavg

    Deactivates volume goup.

    exportvg datavg

    Removes the definition of the volume group datavg from the system.

    importvg

    Imports a volume group definition from a set of physical volumes.

Unix Group Name 

WWPN

patching 

Friday, November 13, 2020

user management passwd steps

1 ) use smitty to change password,
 2) use smitty to reset failed login count 
3) then use smitty to unlock account

chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s tuser1

chuser "account_locked=false" tuser1


 chuser account_locked=false

passwd user !Connie1@Dch1596!Qza5sbx

 !Active1  !Active4

ssh tusernum@dch1596za5sbx

lsuser -a unsuccessful_login_count <userid>

chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>

Tuesday, November 10, 2020

AIX - bash_64

lsgroup testgrp1

 ls -l /bin | grep bash

Video  

Tuesday, November 3, 2020

add 10G on multiple servers , 1 x 50GB SAN disk

1 - login and run chfs -a size=+10G

2 -  df -g 

 How To Expand A Filesystem in AIX (df, lsvg, chfs)

chfs -a size=+10G 

VG LV Scalable VG (mkvg -S) 

AN120 AIX II

minimum, desired, maximum

add 1 x 50GB SAN disk sever0 and sever1

Add disks to the following hosts & add them to the respective VGs:

sever0 (8GB to vgxxx03)

sever1 (17Gb to vgxxx03)

 lparstat -i |grep -i mem

Online Memory                              : 4096 MB

Maximum Memory                             : 8192 MB

Minimum Memory                             : 2048 MB

Memory Mode                                : Dedicated

Total I/O Memory Entitlement               : -

Variable Memory Capacity Weight            : -

Memory Pool ID                             : -

Physical Memory in the Pool                : -

Unallocated Variable Memory Capacity Weight: -

Unallocated I/O Memory entitlement         : -

Memory Group ID of LPAR                    : -

Desired Memory                             : 4096 MB

Target Memory Expansion Factor             : -

Target Memory Expansion Size               : -

Storage Area Network 

Virtual I/O (VIO)

Central Electronics Complex (CEC)

volume groups (VG)

(Advanced Interactive eXecutive)  a series of proprietary Unix operating systems.