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.cong_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 identies one or more FQDDs. Selective list of FQDDs
should be given in comma-separated format.
SCPTargetEnum.IDRAC - The module imports iDRAC conguration in SCP le.
SCPTargetEnum.BIOS - The module imports BIOS conguration in SCP le.
SCPTargetEnum.NIC - The module imports NIC conguration in SCP le.
SCPTargetEnum.RAID - The module imports RAID conguration in SCP le.
This module will import the conguration component from the imported SCP
Default - SCPTargetEnum.ALL - This module imports the complete system conguration
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