Single command to change the attributes of all luns presented to an AIX host

Hi,

I would like to know if there is a command similar to scsimgr in HP-UX that
can help me change the algorithm and reserve_policy attributes of all luns presented to an AIX host.

Otherwise I would have to use,

chdev -l hdiskX -a algorithm=round_robin reserve_policy=no_reserve

in a loop to achieve this.

Is there a less time consuming way to do this?

Thanks,
Kanna_GeekWorkz

I don't know scsimgr, but i know korn shell:

lsdev -Cc disk | cut -d' ' -f1 | while read chLun ; do
     chdev -l "$chLun" -a algorithm=round_robin reserve_policy=no_reserve
done

You might have to trim the list out of lsdev a bit to filter out local hdisks.

I hope this helps.

bakunin