API Guide

Parameter Name Type
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 imported.
UserCredentials - Username and password for accessing the shared le.
Table 46. Parameters for idrac.cong_mgr.scp_import
Parameter Name Type Allowed Values
target Enum
SCPTargetEnum.ALL
SCPTargetEnum.IDRAC
SCPTargetEnum.BIOS
SCPTargetEnum.NIC
SCPTargetEnum.RAID
Description
To identify the component for Import. It identies one or more FQDDs. Selective list of FQDDs
should be given in comma-separated format.
SCPTargetEnum.IDRAC - The module imports iDRAC conguration in SCP le.
SCPTargetEnum.BIOS - The module imports BIOS conguration in SCP le.
SCPTargetEnum.NIC - The module imports NIC conguration in SCP le.
SCPTargetEnum.RAID - The module imports RAID conguration in SCP le.
This module will import the conguration component from the imported SCP
Default - SCPTargetEnum.ALL - This module imports the complete system conguration
from the Lifecycle Controller to a le on local or remote share location.
Example:
NOTE
: Use the Export LC Logs as required along with the FileOnShare API.
NOTE: Localpath is supported on 14G and later generations.
# scp_export - Local Share
localpath = LocalFile(local='/folder/file.xml')
status=idrac.config_mgr.scp_import(end_host_power_state=EndHostPowerStateEnum.On,
job_wait=True,
share_path=localpath,
target = SCPTargetEnum.ALL)
# scp_export - NW Share
myshare= FileOnShare(remote = '<public_IP>:/Share/file.xml', mount_point = '/mnt/Share',
isFolder = True,
creds==UserCredentials('username', 'password'))
idrac.config_mgr.set_liason_share(myshare)
status=idrac.config_mgr.scp_import(end_host_power_state=EndHostPowerStateEnum.On,
job_wait=True,
OpenManage Python SDK API introduction
23