MIISLogBackup archives all files from the <miisinstall>\MAData\<managementagentname> folder for a specified management agent, or list of management agents, to a specified location. You can also delete the files from the source folder after archiving.
Note
miislogbackup /ma:ManagementAgentName [/ma:ManagementAgentName...] /al:Archive Location [/del] [/l:Loglevel]
To archive files from all management agents to the e:\MAArchiveLocation folder, type the following command:
miislogbackup /allma /al:e:\MAArchiveLocation
To archive files from the management agents MA1 and MA2 to the e:\MAArchiveLocation folder, type the following command:
miislogbackup /ma:MA1 /ma:MA2 /al:e:\MAArchiveLocation
To archive files from the MA1 management agent to the remote shared folder \\ServerName\MAArchiveLocation, type the following command:
miislogbackup /ma:MA1 /al:\\ServerName\MAArchiveLocation
To archive and then delete the files for the MA1 management agent, type the following command:
miislogbackup /ma:MA1 /al:c:\temp\ArchiveLocation /del
To create the log file with log level 1, type the following command:
miislogbackup /ma:MA1 /al:c:\temp\ArchiveLocation /del /l:1
Error Code | Description |
---|---|
2301 | The MIIS 2003 service is not started or is not present. |
2302 | The destination location specified for archiving the files does not exist or is not accessible. |
2303 | The destination location specified for archiving the files and the source location of the files are the same. The destination location must be different than the source location. |
2304 | MIISLogBackup could not run due to .NET framework security policies or low trust on MIISLogBackup. This error occurs only when running MIISLogBackup remotely. Increase the trust on MIISLogBackup to "Full trust" and try again. |
Error | Description |
---|---|
2004 | A string value was expected for the parameter but the value is not specified. |
2006 | The date specified is not a valid date. |
2007 | The time specified is not a valid time. |
2008 | The computer name specified is not a valid DNS computer name. |
2009 | The computer name specified is not a valid computer name. |
2010 | The user name specified is not a valid user name. |
2011 | The file name specified is not a valid file name. |
2012 | The path specified is not a valid path. |
2014 | The file path specified is not a valid file path. |
2015 | A parameter was specified without a "/" or "-" character preceding it. |
2016 | A specified parameter is not valid for this application. |
2017 | A specified integer value is not a valid integer. |
2020 | A mandatory value for a parameter was not specified. |
2021 | A value was specified for a parameter that does not allow any values. |
2026 | A parameter value was specified where the application was not expecting any value for the parameter. |
2027 | A parameter that is only allowed to occur once was specified more than once. |
2028 | A parameter that is allowed to be repeated n times was repeated more than n times. |
2029 | A mandatory parameter was not specified. |
2033 | A specified parameter value is not in the list of allowed values for that parameter. |
2035 | The application failed to create a log file. A file already exists with the same name, and is marked Read Only or Hidden. |