API Guide

local_share = LocalFile(local=os.path.join(, "path", "to", "lc-logs-file.xml"))
export_lclog_streaming = idrac.log_mgr.lclog_export(share_path=local_share)
Returns: Success or Failure
Return type: JSON
idrac.log_mgr.complete_lclog_export
API string/Method: idrac.log_mgr.complete_lclog_export.
Protocol Support: WSMAN.
Description: The complete_lclog_export() method is used to export the full log from the Lifecycle Controller to a remote share.
Parameters:
Table 54. Parameters for idrac.log_mgr.complete_lclog_export
Parameter Name Type Allowed Values
job_wait
Boolean True/False
Description
True - It will wait for the export the full LC logs job to complete and return the job completion
status.
False - It will return immediately with a JOB ID after queuing the export LC logs job in LC job
Table 55. Parameters for idrac.log_mgr.complete_lclog_export
Parameter Name Type
share_path
FileOnShare (for CIFS & NFS Share)
LocalFile (For Local Share)
Description LC log exports can be directed to local le systems and network shares
NFS - Network File System
IPAddress - Name of the NFS share server.
Sharename - The NFS share name.
Mountpoint - To mount the shared le.
UserCredentials - Username and password for accessing the shared le.
CIFS - Common Internet File System
IPAddress - Name of the CIFS share server
Sharename - The CIFS share name.
Sharepath - The share path where le needs to be exported.
UserCredentials - Username and password for accessing the shared le.
Example:
# Export LC Full Logs - NFS Share
nfs_share = FileOnShare(remote=<IP OR HOSTNAME>:/<NFS-SHARE-PATH>,
mount_point=<MOUNT-DRIVE>:\>, isFolder=<True/False>,
creds=UserCredentials(<USERNAME>, <PASSWORD>))
tsr_file = nfs_share.new_file(<FILE-NAME>)
24
OpenManage Python SDK API introduction