Forum Discussion

2013's avatar
2013
Level 5
9 years ago

Need Script on Cleaning Count Remaining

I checked the below  Post but script is not in place.   https://www-secure.symantec.com/connect/forums/report-cleaning-tapes Martin mentioned: Script it ... nbemmcmd -listmedia -mediai...
  • Andy_Welburn's avatar
    9 years ago

    Simplest thing to do would probably save something like the following as a script & schedule it via cron:

     

    vmquery -b -p 0 | grep CL |awk '{print "tape:"$1, "robot:"$4, "cleanings_Remaining:"$8}' > clean.out
    
    mailx -s "Cleaning Tapes - uses left" someonewhocares@company.com < clean.out