=== Accès console avec IVM ===
lsmap -all
mkvt -id x
=== Backuper la conf (NFS) ===
bkconsdata -r nfs -n nfs_server_name -l Nfs_mount_point
=== Trouver la HMC rattachée à une LPAR ===
lsrsrc IBM.ManagementServer |grep -w Hostname|awk '{print "nslookup "$NF}'|sh |awk '/Name/ {print $NF}'
=== Lister les Px ===
lssyscfg -r sys -F name
=== Lister les machines gérées ===
lssyscfg -r lpar -m parka9002902-9117-570-65D67EB -F name
=== Lister les cartes Ethernet et fibres ===
lshwres -r io --rsubtype slot -m parka9002902-9117-570-65D67EB |grep $lpar|grep Eth|awk -F"drc_name=" '{print $2}'
lshwres -r io --rsubtype slot -m parka9002902-9117-570-65D67EB |grep $lpar|grep Fib|awk -F"drc_name=" '{print $2}'
=== Créer une partition ===
mksyscfg -r lpar -m parka7213136-9117-MMA-066CC64 -i 'name=machine,profile_name=default_profile, \
lpar_env=aixlinux, min_mem=2048,desired_mem=4096,max_mem=8192,proc_mode=shared,min_proc_units=0.1, \
desired_proc_units=1.0,max_proc_units=2.0,\
min_procs=1,desired_procs=1,max_procs=2,sharing_mode=uncap,uncap_weight=128,boot_mode=norm'
=== Info mémoire par parka ===
for SYS in `lssyscfg -r sys -F name`
do
echo --$SYS--
lshwres -m $SYS -r mem --level sys -F installed_sys_mem:configurable_sys_mem:curr_avail_sys_mem
echo
done
=== Info CPU par parka ===
for SYS in `lssyscfg -r sys -F name`
do
echo --$SYS--
lshwres -m $SYS -r proc --level sys -F installed_sys_proc_units:configurable_sys_proc_units:curr_avail_sys_proc_units
echo
done
=== Répartition mémoire par parka et parva ===
for SYS in `lssyscfg -r sys -F name`
do
echo --$SYS--
lshwres -m $SYS --level lpar -r mem -F "lpar_name:curr_mem"
echo
done
=== Répartition CPU par parka et parva ===
for SYS in `lssyscfg -r sys -F name`
do
echo --$SYS--
lshwres -m $SYS -r proc --level lpar -F lpar_name:lpar_id:curr_proc_mode:curr_procs:curr_proc_units:curr_sharing_mode:run_uncap_weight
echo
done
=== Relancer le démon rsct ===
/usr/sbin/rsct/bin/rmcctrl -z
/usr/sbin/rsct/bin/rmcctrl -A
=== Rédémarrer une partoche ===
chsysstate -r lpar -o shutdown --immed --restart -n FR1-A-V-1114-085
=== Modifier le profil ===
hscroot@FR6-A-P-1115-142:~> chsyscfg -m FR6-A-P-1115-139 -r prof -i 'name=default_profile,lpar_id=3,"virtual_scsi_adapters=27/client/1//27/1"'
=> peut servir à ajouter un vscsi d'un autre vios à un vios.
=== HMC commands ===
http://www.unixwerk.eu/aix/hmc-howto.html
=== Lister ressources virt. ethernet ===
lshwres -r virtualio --rsubtype eth --level lpar -m C1BulM6P7-sedag --filter "lpar_names=h1a1omg7ee"