VMware Cloud Community
SourabhJain
Contributor
Contributor

Need to Create a job to delete /storage/core core*.* logs on vCenter appliance to save space.

I am looking for guidance to create a job which can delete the core logs at /storage/core location on vCenter 5.0 (An appliance)

A legacy environment which has trouble with free space on logs filling the file system. As of now, we are manually deleting it, but need to automate it to run every 72 hours.

This is the command set which has to be run with 60 seconds interval between each command.

cd /storage/core
service vmware-vpxd stop
rm -rf core*.*
service vmware-vpxd start
Reply
0 Kudos
3 Replies
diegodco31
Leadership
Leadership

To run the script periodically, you have to try a cron job.

https://www.virten.net/2014/12/how-to-create-a-cron-job-on-vma/

Diego Oliveira
LinkedIn: http://www.linkedin.com/in/dcodiego
Reply
0 Kudos
SourabhJain
Contributor
Contributor

Cronjob cannot be created on Vcenter itself rather than using another appliance to implement that?

Reply
0 Kudos
jeffreyfrancis
Contributor
Contributor

Thanks man was facing same issue

Reply
0 Kudos