# lsdev -H -F "name class subclass type" | grep ^vscsi vscsi0 adapter vdevice IBM,v-scsi vscsi1 adapter vdevice IBM,v-scsi vscsi2 adapter vdevice IBM,v-scsi "chdef" is really an awesome feature in AIX. If your orginization has standards for what attributes get set, then you should use "chdef" to set these default values. This will make your job much easier, help you achieve higher compliance levels across all your servers, and reduce the number of times you need to reboot servers to change out of compliant attributes. Here are a couple more examples: Change default vscsi_path_to to 30: # chdef -a vscsi_path_to=30 -c adapter -s vdevice -t IBM,v-scsi Change default vscsi_err_recov to fast_fail: # chdef -a vscsi_err_recov=fast_fail -c adapter -s vdevice -t IBM,v-scsi
A new ODM database is available since AIX6.1TL9 or AIX7.1TL3, that will keep all changes that aren't applied before next reboot (Also a new command lsdev -Pl <device> -a <parameter>)
[root@aixsrv]/etc/objrepos# odmget CuAtSav CuAtSav: name = "vscsi0" attribute = "vscsi_path_to" value = "0" generic = "DU" CuAtSav: name = "vscsi0" attribute = "vscsi_err_recov" value = "delayed_fail" generic = "DU"