Unsolved
1 Message
0
782
December 16th, 2019 00:00
Avamar and python
I have two questions:
One: Is there a way to create a python script for Avamar to use the snapups command? At the moment I'm having to rdp into each server and run a command (ddbmexptool -k -v -n mssql -Y -z "C:\ddbconfig.cfg") to delete expired backups. I'm looking for a way to do this without having to rdp into each server and putty into Avamar to run the snapups command.
Two: I have a python script to validate restores, but I'm getting an error saying "FileNotFoundError: [WinError 2] The system cannot find the file specified" for this command
cmd = subprocess.Popen(['/usr/local/avamar/bin/mccli','client', 'show', '--recursive=true'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = cmd.communicate()
if cmd.returncode == 0:
os.system('cls')
print ("Command ran.")
list = out.split('\n')
list = list[3:]
formatList(list)
else:
print ("Issue with command")
print (out, err)
I'm running this from a Win 10 box to communicate with Avamar. I didn't create this script, I'm trying to fix it. The programmer who created it is no longer with the company.