OnDemand Users Group

Archive => Other => Topic started by: alddiver on January 31, 2014, 03:12:22 PM

Title: Arsmaint not deleting old records
Post by: alddiver on January 31, 2014, 03:12:22 PM
Hi,
I have a script that runs the command below to delete old data but when we run it with a v switch as below it comes back with the return code of 6.

/usr/lpp/ars/bin/arsmaint -v

ERROR : arsmaint failed verifcation process, return code is 6

So we now have data piling up that we want to remove.
I don't want to take off the switch until i know that arsmaint will not delete everything.
Any ideas please
Regarsd Tommy

Title: Re: Arsmaint not deleting old records
Post by: Ed_Arnold on January 31, 2014, 10:00:35 PM
Tommy - I'm not following you.

The "-v" option is not a switch, or at least that's not how I'd describe it.

-v is for VALIDATE.   

Validates cache storage. When you specify this option, the ARSMAINT program inspects all cache storage file systems to make sure that they are correctly linked with the proper file permissions.


And FYI, if you got a non-zero return code from VALIDATE somewhere you should have some messages of this ilk:

ARS0198E ARSMAINT INVALID OWNERSHIP AND/OR PERMISSIONS ON CACHE FILE
/DIRECTORY >/ARS1<  SRVR->SVLSPIL2.SVL.FOO.COM 2.30.127.136<-       
ARS0107E ARSMAINT UNKNOWN FILE OR DIRECTORY IN CACHE >/ARS1/LS.TXT<
SRVR->SVLSPIL2.SVL.FOO.COM 2.30.127.136<- 
                       

Ed
Title: Re: Arsmaint not deleting old records
Post by: Justin Derrick on February 03, 2014, 04:19:45 PM
You may also be running arsmaint from a user id that doesn't have permissions to change the cache.  You should be running this command from the same ID that arssockd runs under.
Title: Re: Arsmaint not deleting old records
Post by: alddiver on July 01, 2014, 02:32:35 PM
Thanks Guys
Title: Re: Arsmaint not deleting old records
Post by: Justin Derrick on July 01, 2014, 03:33:49 PM
Quote from: alddiver on July 01, 2014, 02:32:35 PM
Thanks Guys

Can you tell us what your solution was?  Thanks.