Testing the auto-add function of SAMS, the below script has been configurated to run auto-add function.
<GENERAL>
EVENT_TYPE=GOA
TITLE=ADD SPARE VOLUME TO SMS SG
DESCRIPTION1=ADD A VOLUME IF SMS SG IS ABOVE HWM
SIMULATE=N
ENABLED=Y
LOAD_SCRIPT=Y
STARTTIME=0000
ENDTIME=2400
PERFORM_EVT_PROC=INTERVAL=0015
<EVENT_PROCEDURE>
SELECT_OBJ=OBJ02340
SET_REALTIME
SET_FILTER=ALLODIFF < 0
EXECUTE
SEL_LINE=1,1
SMS_ADD_HWM=Simulate=N
VAN0723I FIREZERO of Automation Script GOA ADDVOLHW Done-CnMax=00000 Now=0000000000 ExMax=0001 Now=0000
Enabled
VAN0100I VKG0170D No Records Exist OR No Match On Filter Criteria,ADDVOLHW
Despite the conditions being met when the script is running, no DASD is added .
It is important to understand that data for Storage Group Allocatio and more specialy to understand that data for column %Allo in (OBJ02340) SMS Storage Group Allocations are taken from object (POOLS) Storage Groups in LAST INTERVAL mode (the object OBJ02340 is real time - but it takes some values from other objects).
That means that %Allo is updated as frequently as you are doing VOLUMES/POOLS SCAN
- via the interval specified in Vantage system parameter PAWINTVL
or
- via /F SAMS,NEWSCAN,POOLS or /F SAMS,REFRESH,POOLS modify commands (these command have same function).