Gaurav,
The command vxdisk -g <diskgroup> diskinfo <disk> would be helpfull but how to query the <disk> information? As this would be in a script I'm not sure how to query that information.
The person who would be requesting a volume extention would know the SG and Volumename but not the disknumber.
I would think the script should look something like this:
Input from requestor: SGName, VolumeName and number of extra GB's.
Then I would get the associated serialnumbers (always 2, as they are mirrored disks in a volume)
StorageManagement would use these two serialnumbers to increase the lun size.
Finally I would do a "vxassis -g<DG_Name> growby <VolumeName> MAXSIZE"
I hope this makes my question somewhat clearer.
Ivo