This chapter includes the following sections:
For general information about WLST, see the WLST Command Reference for WebLogic Server.
For general information about MFT, see Using Oracle Managed File Transfer.
MFT WLST commands are divided into the following categories.
Table 5-1 MFT WLST Command Categories
Command Category | Description |
---|---|
Perform these operations on source, transfer, and target artifacts: enable, disable, deploy, undeploy, delete, export, check existence in the Metadata Store (MDS). |
|
Export, import, and reset MFT metadata. |
|
Generate, import, export, delete, list, and update SSL, SSH, and PGP keys in the MFT keystore. |
|
View the deployment history of source, transfer, and target artifacts. |
|
Pause, resume, resubmit, or display information about transfer instances. |
|
Start, stop, and change ports of embedded FTP and sFTP servers. |
|
Create, delete, list, and update custom callouts. |
|
|
|
Archive transfer instances or file system data based on criteria such as status and date ranges. |
|
Purge transfer instances or file system data based on criteria such as status and date ranges. |
Use the MFT WLST Artifact Management commands, listed in Table 5-2, to perform operations on source, transfer, and target artifacts.
Table 5-2 MFT Artifact Management WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
Deploys multiple source, transfer, or target artifacts. |
Online or Offline |
|
deleteArtifact or |
Delete a source, transfer, or target artifact. |
Online or Offline |
deleteArtifactDeployment or |
Delete an undeployed source, transfer, or target artifact. |
Online or Offline |
deployArtifact or |
Deploy a source, transfer, or target artifact. |
Online or Offline |
disableArtifact or |
Disable a deployed source, transfer, or target artifact. |
Online or Offline |
enableArtifact or |
Enable a deployed source, transfer, or target artifact. |
Online or Offline |
exportDeployedArtifact or |
Export a deployed source, transfer, or target artifact to a ZIP file. |
Online or Offline |
isArtifactInMDS or |
Check whether a source, transfer, or target artifact exists in the MDS (Metadata Store). |
Online or Offline |
undeployArtifact or |
Undeploy a source, transfer, or target artifact. |
Online or Offline |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Bulk deploys multiple source, transfer, or target artifacts. In the event of an unsupported operation, the command returns a WLSTException
.
bulkDeployArtifact(artifact_type, artifact_names, comment)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_names
|
Comma-separated artifact names, or * for all. |
comment
|
Text string describing the artifacts or the reason for deploying them. |
The following example deploys two SOURCE
artifacts and provides a comment.
bulkDeployArtifact('SOURCE', 'order-file-src,chk-inv-src', 'retrieves new purchase orders, checks inventory')
The following example deploys all TRANSFER
artifacts and provides a comment.
bulkDeployArtifact('TRANSFER', '*', 'deploying all transfers')
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Deletes a source, transfer, or target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
deleteArtifact(artifact_type, artifact_name)
delAF(artifact_type, artifact_name)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Deletes an undeployed source, transfer, or target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
deleteArtifactDeployment(artifact_type, artifact_name, label)
delDepAF(artifact_type, artifact_name, label)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
label
|
Artifact label in the MDS (Metadata Store). Use Show Deployment Details on the Deployment tab to view this label. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Deploys a source, transfer, or target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
deployArtifact(artifact_type, artifact_name, comment)
depAF(artifact_type, artifact_name, comment)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
comment
|
Text string describing the artifact or the reason for deploying it. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Disables a deployed and previously enabled source, transfer, or target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
disableArtifact(artifact_type, artifact_name, comment)
disAF(artifact_type, artifact_name, comment)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
comment
|
Text string describing the artifact or the reason for disabling it. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Enables a deployed and previously disabled source, transfer, or target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
enableArtifact(artifact_type, artifact_name, comment)
enAF(artifact_type, artifact_name, comment)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
comment
|
Text string describing the artifact or the reason for enabling it. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Exports a deployed source, transfer, or target artifact to a ZIP file. In the event of an unsupported operation, the command returns a WLSTException
.
exportDeployedArtifact(artifact_type, artifact_name, label, archive_file_path)
expDepAF(artifact_type, artifact_name, label, archive_file_path)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
label
|
Artifact label in the MDS (Metadata Store). Use Show Deployment Details on the Deployment tab to view this label. |
archive_file_path
|
Full path to the ZIP file to which to export. If you are connecting to WLST remotely, the ZIP file is created on the remote server. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Checks whether a source, transfer, or target artifact exists in the MDS (Metadata Store) and returns TRUE
or FALSE
. In the event of an unsupported operation, the command returns a WLSTException
.
isArtifactInMDS(artifact_type, artifact_name)
isAFinMDS(artifact_type, artifact_name)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
Command Category: MFT Artifact Management Commands
Use with WLST: Online or Offline
Undeploys a source, transfer, or target artifact without deleting it from the configuration. In the event of an unsupported operation, the command returns a WLSTException
.
undeployArtifact(artifact_type, artifact_name, comment)
undepAF(artifact_type, artifact_name, comment)
Argument | Definition |
---|---|
artifact_type
|
Artifact type: |
artifact_name
|
Artifact name. |
comment
|
Text string describing the artifact or the reason for undeploying it. |
Use the MFT WLST Metadata commands, listed in Table 5-3, to perform metadata operations.
Table 5-3 MFT Metadata WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
exportMetadata or |
Export the entire MFT configuration, excluding passwords, to a ZIP file. |
Online or Offline |
exportTransferMetadata or |
Export a transfer artifact and related metadata to a ZIP file. |
Online or Offline |
importMetadata or |
Import a previously exported MFT configuration from a ZIP file. |
Online or Offline |
resetMetadata or |
Reset the MFT configuration, deleting all artifacts and resetting all administrative settings to their defaults, while optionally preserving user preferences. |
Online or Offline |
Command Category: MFT Metadata Commands
Use with WLST: Online or Offline
Exports the entire MFT configuration, excluding passwords, to a ZIP file. In the event of an unsupported operation, the command returns a WLSTException
.
exportMftMetadata(archive_file_path)
expMD(archive_file_path)
Argument | Definition |
---|---|
archive_file_path
|
Full path to the ZIP file to which to export. |
Command Category: MFT Metadata Commands
Use with WLST: Online or Offline
Exports a transfer artifact and related metadata to a ZIP file. In the event of an unsupported operation, the command returns a WLSTException
.
exportTransferMetadata(archive_file_path, transfer_name)
expXfrMD(archive_file_path, transfer_name)
Argument | Definition |
---|---|
archive_file_path
|
Full path to the ZIP file to which to export. |
transfer_name
|
Transfer artifact name. |
Command Category: MFT Metadata Commands
Use with WLST: Online or Offline
Imports a previously exported MFT configuration from a ZIP file. In the event of an unsupported operation, the command returns a WLSTException
.
importMftMetadata(archive_file_path)
impMD(archive_file_path)
Argument | Definition |
---|---|
archive_file_path
|
Full path to the ZIP file to which to export. |
Command Category: MFT Metadata Commands
Use with WLST: Online or Offline
Resets the MFT configuration, deleting all artifacts and resetting all administrative settings to their defaults, while optionally preserving user preferences. In the event of an unsupported operation, the command returns a WLSTException
.
resetMetadata(preserve_preferences)
resMD(preserve_preferences)
Argument | Definition |
---|---|
preserve_preferences
|
If |
Use the MFT WLST Key Management commands, listed in Table 5-4, to manage SSL, SSH, and PGP keys in the MFT keystore. For additional information, see "Keystore Management" in Using Oracle Managed File Transfer.
Table 5-4 MFT Key Management WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
deleteCSFKey or |
Delete a key alias from the MFT keystore. |
Online or Offline |
exportCSFKey or |
Export keys from the MFT keystore to a key file. |
Online or Offline |
generateKeys or |
Generate keys and save them to one or more key files. |
Online or Offline |
importCSFKey or |
Import a key to the MFT keystore from a key file. |
Online or Offline |
listCSFKeyAliases or |
List key aliases in the MFT keystore. |
Online or Offline |
updateCSFKey or |
Delete a key alias from the MFT keystore and generate a new key file. |
Online or Offline |
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Deletes a key alias from the MFT keystore. In the event of an unsupported operation, the command returns a WLSTException
.
deleteCSFKey(key_format, key_type, alias)
delKey(key_format, key_type, alias)
Argument | Definition |
---|---|
key_format
|
Key format: |
key_type
|
Key format: |
alias
|
Key alias. |
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Exports keys from the MFT keystore to a key file. In the event of an unsupported operation, the command returns a WLSTException
.
exportCSFKey(key_format, key_type, key_file_path)
expKey(key_format, key_type, key_file_path)
Argument | Definition |
---|---|
key_format
|
Key format: |
key_type
|
Key format: |
key_file_path
|
Full path to the key file to which to export. |
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Generates keys and saves them to one or more key files. The key type is RSA and the key size is 1024 bits. In the event of an unsupported operation, the command returns a WLSTException
.
generateKeys(key_format, password, key_file_path)
genKeys(key_format, password, key_file_path)
Argument | Definition |
---|---|
key_format
|
Key format: |
password
|
Optional password for the private key. |
key_file_path
|
Full path to the generated key file or directory. For SSH, the path must include the key file name. For PGP, two files are generated under the specified path: the |
The following example exports SSH
keys without password protection to the file /export/ssh/ssh-pvt-keys.ppk
.
generateKeys('SSH', '','/export/ssh/ssh-pvt-keys.ppk')
The following example exports PGP
keys with password protection to the directory /export/pgp
.
generateKeys('PGP', 'P@s$W0rd','/export/pgp')
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Imports a key to the MFT keystore from a key file and creates an alias. In the event of an unsupported operation, the command returns a WLSTException
.
importCSFKey(key_format, key_type, alias, key_file_path)
impKey(key_format, key_type, alias, key_file_path)
Argument | Definition |
---|---|
key_format
|
Key format: |
key_type
|
Key format: |
alias
|
Key alias. |
key_file_path
|
Full path to the key file from which to import. |
The following example imports a PRIVATE
SSH
key with the alias my-alias
from the file /export/ssh/my_private_keys.ppk
.
importCSFKey('SSH', 'PRIVATE', 'my-alias', '/export/ssh/my_private_keys.ppk')
The following example imports a PUBLIC
PGP
key with the alias mftpgppub
from the file /export/pgp/pub.asc
.
importCSFKey('PGP', 'PUBLIC', 'mftpgppub', '/export/pgp/pub.asc')
The following example imports a PRIVATE
PGP
key with the alias mftpgppri
from the file /export/pgp/secret.asc
.
importCSFKey('PGP', 'PRIVATE', 'mftpgppri', '/export/pgp/secret.asc')
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Lists key aliases in the MFT keystore. In the event of an unsupported operation, the command returns a WLSTException
.
listCSFKeyAliases(key_format, key_type, alias)
lsKeyAliases(key_format, key_type, alias)
Argument | Definition |
---|---|
key_format
|
Key format: |
key_type
|
Key format: |
Command Category: MFT Key Management Commands
Use with WLST: Online or Offline
Deletes a key alias from the MFT keystore and generates a new key file. In the event of an unsupported operation, the command returns a WLSTException
.
updateCSFKey(key_format, key_type, alias, key_file_path)
updKey(key_format, key_type, alias, key_file_path)
Argument | Definition |
---|---|
key_format
|
Key format: |
key_type
|
Key format: |
alias
|
Key alias. |
key_file_path
|
Full path to the key file to generate. |
Use the MFT WLST Deployment History commands, listed in Table 5-5, to view the deployment history of source, transfer, and target artifacts.
Table 5-5 MFT Deployment History WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
getSourceDeploymentHistory or |
Return the deployment history of a source artifact. |
Online or Offline |
getTargetDeploymentHistory or |
Return the deployment history of a target artifact. |
Online or Offline |
getTransferDeploymentHistory or |
Return the deployment history of a transfer artifact. |
Online or Offline |
Command Category: MFT Deployment History Commands
Use with WLST: Online or Offline
Returns the deployment history of a source artifact. In the event of an unsupported operation, the command returns a WLSTException
.
getSourceDeploymentHistory(source_name)
getSrcDH(source_name)
Argument | Definition |
---|---|
source_name
|
Source artifact name. |
Command Category: MFT Deployment History Commands
Use with WLST: Online or Offline
Returns the deployment history of a target artifact. In the event of an unsupported operation, the command returns a WLSTException
.
getTargetDeploymentHistory(target_name)
getTrgtDH(target_name)
Argument | Definition |
---|---|
target_name
|
Target artifact name. |
Command Category: MFT Deployment History Commands
Use with WLST: Online or Offline
Returns the deployment history of a transfer artifact. In the event of an unsupported operation, the command returns a WLSTException
.
getTransferDeploymentHistory(transfer_name)
getXfrDH(transfer_name)
Argument | Definition |
---|---|
transfer_name
|
Transfer artifact name. |
Use the MFT WLST Transfer Management commands, listed in Table 5-6, to manage transfer instances.
Table 5-6 MFT Transfer Management WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
getTransferInfo or |
Return information about a transfer artifact. |
Online or Offline |
pauseTransfer or |
Pause an in-progress transfer. |
Online or Offline |
resubmit or |
Resubmit a failed transfer. |
Online or Offline |
resumeTransfer or |
Resume a paused transfer. |
Online or Offline |
Command Category: MFT Transfer Management Commands
Use with WLST: Online or Offline
Returns information about a transfer artifact. In the event of an unsupported operation, the command returns a WLSTException
.
getTransferInfo(transfer_name, label)
getXfrInfo(transfer_name, label)
Argument | Definition |
---|---|
transfer_name
|
Transfer artifact name. |
label
|
Artifact label in the MDS (Metadata Store). Use Show Deployment Details on the Deployment tab to view this label. |
The following example returns information about a transfer artifact named order-xfr
with the label soa_mft-2012-12-07 22:28:17.392
.
getTransferInfo('order-xfr', 'soa_mft-2013-09-26 22:28:17.392') ID | NAME | LABEL xfer_521a6788-4e24-4822-bb03-43a4a8eaa8ce | ftp-file-xfer | soa_mft-2013-09-26 16:00:09.803
Command Category: MFT Transfer Management Commands
Use with WLST: Online or Offline
Pauses an in-progress transfer. In the event of an unsupported operation, the command returns a WLSTException
.
pauseTransfer(instance_id, comment)
pauseXfr(instance_id, comment)
Argument | Definition |
---|---|
instance_id
|
Target instance ID for the transfer. Open the Advanced section of the target report to view the instance ID. For information about the target report, see "Interpreting Source, Transfer, and Target Reports" in Using Oracle Managed File Transfer. |
comment
|
Text string describing the reason for pausing. |
Command Category: MFT Transfer Management Commands
Use with WLST: Online or Offline
Resubmits a transfer. You can resubmit a successful or failed transfer. In the event of an unsupported operation, the command returns a WLSTException
.
resubmit(resubmit_type, instance_ids, comment)
resub(resubmit_type, instance_ids, comment)
Argument | Definition |
---|---|
resubmit_type
|
Resubmit type: For |
instance_ids
|
Comma-separated instance IDs. Open the Advanced section of the source, transfer, or target report to view the instance ID. For information about these reports, see "Interpreting Source, Transfer, and Target Reports" in Using Oracle Managed File Transfer. |
comment
|
Text string describing the reason for resubmitting. |
Command Category: MFT Transfer Management Commands
Use with WLST: Online or Offline
Resumes a paused transfer. In the event of an unsupported operation, the command returns a WLSTException
.
resumeTransfer(instance_id, comment)
resXfr(instance_id, comment)
Argument | Definition |
---|---|
instance_id
|
Target instance ID for the transfer. Open the Advanced section of the target report to view the instance ID. For information about the target report, see "Interpreting Source, Transfer, and Target Reports" in Using Oracle Managed File Transfer. |
comment
|
Text string describing the reason for resuming. |
Use the MFT WLST Embedded Server commands, listed in Table 5-7, to manage embedded FTP and sFTP servers.
Table 5-7 MFT Embedded Server WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
|
Assigns a home directory on an embedded server. |
Online or Offline |
|
Grant permission to an embedded server directory. |
Online or Offline |
|
List all permissions available for a given principal and server type. |
Online or Offline |
|
Revoke permissions of an embedded server directory. |
Online or Offline |
|
Start an embedded FTP or sFTP server that was stopped. |
Online or Offline |
|
Stop an embedded FTP or sFTP server that is running. |
Online or Offline |
|
Update the port for an embedded FTP or sFTP server. |
Online or Offline |
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
Assigns the specified directory to the user as home directory where that user is located on login to embedded servers.
configureHomeDir(directory_path, user_name)
Argument | Definition |
---|---|
|
Any valid path starting from the embedded server root. |
|
A WebLogic user ID |
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
Grant permission to an embedded server directory. Users and groups can be assigned a set of permissions to an existing directory on an embedded server.
grantPermissionToDirectory(directory_path, principal_name, principal_type, permissions, server_type, include_subfolder)
Argument | Definition |
---|---|
|
Any valid path starting from the embedded server root |
|
An enterprise user, group or application role name. |
|
One of the following:
|
|
Comma separated list of the following permissions:
|
|
|
|
|
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
List all permissions available for a given principal and server type. The server type can be FTP or SFTP.
listAllPermissions(principal_name,server_type)
Argument | Definition |
---|---|
|
An enterprise user, group or application role name. |
server_type |
|
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
revokePermissionForDirectory(directory_path, principal_name, principal_type, permissions, server_type, include_subfolder)
Argument | Definition |
---|---|
|
Any valid path starting from the embedded server root |
|
An enterprise user, group or application role name. |
|
One of the following:
|
|
Comma separated list of the following permissions:
|
|
|
|
|
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
Starts an embedded FTP, FTPS (FTP over SSL), or sFTP (SSH-FTP) server that was stopped. In the event of an unsupported operation, the command returns a WLSTException
.
startEmbeddedServer(server_type)
startES(server_type)
Argument | Definition |
---|---|
server_type
|
Embedded server type: |
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
Stops an embedded FTP, FTPS (FTP over SSL), or sFTP (SSH-FTP) server that is running. In the event of an unsupported operation, the command returns a WLSTException
.
stopEmbeddedServer(server_type)
stopES(server_type)
Argument | Definition |
---|---|
server_type
|
Embedded server type: |
Command Category: MFT Embedded Server Commands
Use with WLST: Online or Offline
Updates the port for an embedded FTP, FTPS (FTP over SSL), or sFTP (SSH-FTP) server, which is a service of an Oracle WebLogic Server managed server dedicated to MFT. In the event of an unsupported operation, the command returns a WLSTException
.
updatePorts(server_instance, service, port)
updPorts(server_instance, service, port)
Argument | Definition |
---|---|
server_instance
|
Name of Oracle WebLogic Server managed server dedicated to MFT. |
service
|
Service (embedded server type): |
port
|
Port number. |
Use the MFT WLST Callout commands, listed in Table 5-8, to manage custom callouts.
Table 5-8 MFT Callout WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
createCallouts or |
Create callouts based on an XML file that defines them. |
Online or Offline |
deleteCallout or |
Delete a callout. |
Online or Offline |
listCallouts or |
List callouts. |
Online or Offline |
updateCallouts or |
Update callouts with the same names based on an XML file that defines them. |
Online or Offline |
Command Category: MFT Callout Commands
Use with WLST: Online or Offline
Creates callouts based on an XML file that defines them. In the event of an unsupported operation, the command returns a WLSTException
.
See Processing Transfers with Custom Callouts in Using Oracle Managed File Transfer for callout instructions and examples.
createCallouts(def_file_path)
crtCalls(def_file_path)
Argument | Definition |
---|---|
def_file_path
|
Full path to the callout definition XML file. |
Command Category: MFT Callout Commands
Use with WLST: Online or Offline
Deletes a callout. In the event of an unsupported operation, the command returns a WLSTException
.
deleteCallout(callout_name)
delCalls(callout_name)
Argument | Definition |
---|---|
callout_name
|
Callout name. |
Command Category: MFT Callout Commands
Use with WLST: Online or Offline
Lists callouts. In the event of an unsupported operation, the command returns a WLSTException
.
Command Category: MFT Callout Commands
Use with WLST: Online or Offline
Updates callouts with the same names based on an XML file that defines them. In the event of an unsupported operation, the command returns a WLSTException
.
Note:
Parameters of existing callouts cannot be added, deleted, or modified.
updateCallouts(def_file_path)
updCalls(def_file_path)
Argument | Definition |
---|---|
def_file_path
|
Full path to the callout definition XML file. |
Use the MFT WLST Event Notification commands, listed in Table 5-9, to manage contact notifications of events.
Table 5-9 MFT Contact WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
addContactToNotification or |
Add a contact to a specific event notification. |
Online or Offline |
createContact or |
Create a contact for event notifications. |
Online or Offline |
deleteContact or |
Delete a contact. |
Online or Offline |
listContacts or |
List contacts. |
Online or Offline |
removeContactFromNotification or |
Remove a contact from a specific event notification. |
Online or Offline |
updateEvent or |
Enable or disable a specific event notification. |
Online or Offline |
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Adds a contact to a specific event notification. In the event of an unsupported operation, the command returns a WLSTException
.
addContactToNotification(event, contact_type, value)
addContNote(event, contact_type, value)
Argument | Definition |
---|---|
event
|
Event: |
contact_type
|
Contact type: |
value
|
Email address or phone number. |
The following example adds EMAIL
contact [email protected]
to RUNTIME_ERROR_EVENT
notifications.
addContactToNotification('RUNTIME_ERROR_EVENT', 'EMAIL', '[email protected]')
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Creates a contact for event notifications. In the event of an unsupported operation, the command returns a WLSTException
.
See Configuring an Email Driver for Notifications in Using Oracle Managed File Transfer for information on how to configure an email driver. See Configuring an SMS Driver for Notifications in Using Oracle Managed File Transfer for information on how to configure an SMS driver.
Note:
Phone and FAX notifications are not supported in this release of Oracle Managed File Transfer.
createContact(contact_type, value)
crtCont(contact_type, value)
Argument | Definition |
---|---|
contact_type
|
Contact type: |
value
|
Email address or phone number. |
The following example creates a contact based on the email address [email protected]
.
createContact('EMAIL', '[email protected]')
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Deletes a contact. In the event of an unsupported operation, the command returns a WLSTException
.
deleteContact(contact_type, value)
delCont(contact_type, value)
Argument | Definition |
---|---|
contact_type
|
Contact type: |
value
|
Email address or phone number. |
The following example deletes a contact based on the email address [email protected]
.
deleteContact('EMAIL', '[email protected]')
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Lists contacts. In the event of an unsupported operation, the command returns a WLSTException
.
listContacts(contact_type)
lsConts(contact_type)
Argument | Definition |
---|---|
contact_type
|
Contact type: |
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Removes a contact from a specific event notification. In the event of an unsupported operation, the command returns a WLSTException
.
When you remove the last contact from an event, the event is disabled. However, the reverse is not true. When you add the first contact to an event, it is not enabled automatically. Enable an event using the updateEvent command.
removeContactFromNotification(event, contact_type, value)
remContNote(event, contact_type, value)
Argument | Definition |
---|---|
event
|
Event: |
contact_type
|
Contact type: |
value
|
Email address or phone number. |
The following example removes EMAIL
contact [email protected]
from RUNTIME_ERROR_EVENT
notifications.
removeContactFromNotification('RUNTIME_ERROR_EVENT', 'EMAIL', '[email protected]')
Command Category: MFT Contact Commands
Use with WLST: Online or Offline
Enables or disables a specific event notification. Event notifications are disabled by default. In the event of an unsupported operation, the command returns a WLSTException
.
updateEvent(event, enabled)
updEvt(event, enabled)
Argument | Definition |
---|---|
event
|
Event: |
enabled
|
Enabled: |
Use the MFT Archive and Restore commands, listed in Table 5-10, to archive and restore runtime instances or file system data based on criteria such as status and date ranges.
Table 5-10 MFT Archive and Restore WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
archiveInstanceData or |
Archive runtime instances based on specified criteria. |
Online or Offline |
restoreInstanceData or |
Restore previously archived runtime instances. |
Online or Offline |
archivePayloads or |
Archive file system data corresponding to runtime instance data based on specified criteria. |
Online or Offline |
restorePayloadsByName or |
Restore previously archived file system data by the zip file name. |
Online or Offline |
restorePayloadsByPrefix or |
Restore previously archived file system data by the zip file name prefix. |
Online or Offline |
Command Category: MFT Archive and Restore Commands
Use with WLST: Online or Offline
Archives runtime instances based on specified criteria. Optionally archives file system data. In the event of an unsupported operation, the command returns a WLSTException
.
Before you can run this command, you must create an MFT archive directory on the database server using the following SQL commands:
CREATE DIRECTORY MFT_DIR AS path;
GRANT READ, WRITE ON DIRECTORY MFT_DIR TO MFT_STB;
For more information about the database and the schema owner (MFT_STB), see Installing and Configuring Managed File Transfer.
archiveInstanceData(arguments)
arcData(arguments)
Argument | Definition |
---|---|
archiveFileName
|
Name of the runtime instance archive file to be saved to the defined MFT archive directory. The default extension is |
startDate
|
Timestamp in format |
endDate
|
Timestamp in format |
batchId
|
Identifier in the output of a previous |
status
|
Status: |
testMode
|
Whether what to archive is tested but not archived: |
comments
|
Comment string. Default is an empty string. |
runInSync
|
Whether to run immediately, synchronously, and return ( |
fsArchiveFolderPath
|
Path to the folder where the payload archive |
The following example runs in test mode (does not archive anything) and in the background (does not block WLST commands while running) for all instances with status COMPLETED
, and provides statistics such as how many instances or payloads would be archived.
archiveInstanceData()
Here is an example of the output:
Total no. of instances to be archived: 105. Total no. of payloads to be archived: 105. Nothing has been archived as test mode was TRUE. To archive these records, run the same command by passing batch id 546781 and test mode as FALSE.
The following example runs in test mode and in the background for instances before March 31st, 2013 with status COMPLETED
, and provides archive statistics. Note that when the startDate
argument is omitted, the endDate
argument must be explicitly labeled.
archiveInstanceData(endDate='31-03-2013 00:00:00:00')
The following example archives instances from February 1st, 2013 to March 31st, 2013 with status COMPLETED
to the file mft.dmp
, and provides archive statistics. Note that when the startDate
and endDate
arguments are both included, labels may be omitted.
archiveInstanceData(archiveFileName='mft.dmp','01-02-2013 00:00:00:00', '31-03-2013 00:00:00:00', testMode='FALSE')
The following example archives instances from February 1st, 2013 to March 31st, 2013 with status ACTIVE
or FAILED
to the file mft.dmp
, and provides archive statistics. Because runInSync='TRUE'
is specified, the archive occurs immediately and blocks further WLST commands until completion. Because runFSArchive='TRUE'
is specified, file system data is also archived.
archiveInstanceData(archiveFileName='mft.dmp','01-02-2013 00:00:00:00', '31-03-2013 00:00:00:00', testMode='FALSE', status='A,F', runInSync='TRUE', fsArchiveFolderPath='2013-01-02-MftArchive')
The following example runs a previously tested or failed archive with batch ID 546781
from the point of failure.
archiveInstanceData(archiveFileName='mft2.dmp',batchId='546781', testMode='FALSE')
Command Category: MFT Archive and Restore Commands
Use with WLST: Online or Offline
Restores previously archived runtime instances. In the event of an unsupported operation, the command returns a WLSTException
.
restoreInstanceData(arguments)
resData(arguments)
Argument | Definition |
---|---|
archiveFilePath
|
Name of the archive file in the MFT archive directory to be restored. For details about how this directory is defined, see archiveInstanceData. The default extension is |
fileNamePrefix
|
String to identify the file name prefix of the corresponding payload archive files, usually the batch ID. You must have run archivePayloads with the archiveInstanceData batch ID first. No default. |
fsFolderPath
|
String to identify the path to the directory where the corresponding payload archive files are stored. No default. |
runInSync
|
Whether to run immediately, synchronously, and return ( |
The following example restores runtime instance data previously archived by an archiveInstanceData command. The corresponding payload archive is restored from /tmp/mft/546781.zip
. This command runs in the background.
restoreInstanceData(archiveFilePath="mft_runtime_archive.dmp", fileNamePrefix="546781", fsFolderPath="/tmp/mft")
Command Category: MFT Archive and Restore Commands
Use with WLST: Online or Offline
Archives file system data corresponding to runtime instance data based on specified criteria. In the event of an unsupported operation, the command returns a WLSTException
.
archivePayloads(arguments)
arcPLs(arguments)
Argument | Definition |
---|---|
batchId
|
String to identify the archive criteria. No default: obtain a |
archivePath
|
Path to the directory to which the |
runInSync
|
Whether to run immediately, synchronously, and return ( |
For details about how to set MBean properties using Enterprise Manager, see Setting System MBean Properties for MFT WLST Commands.
Property | Definition |
---|---|
FS_ARCHIVE_MAX_SIZE
|
String to set a size limit in MB for archive zip files. The default value is zero, which sets no limit. |
FS_ARCHIVE_MAX_FILES_PER_ZIP
|
String to set a limit on the number of files an archive zip file can contain. The default value is zero, which sets no limit. |
The following example archives file system data corresponding to the runtime instance data previously archived by an archiveInstanceData command with the batch ID 546781
. The archive is saved to /tmp/mft/546781.zip
and runs immediately.
archivePayloads(batchId='546781',archivePath='/tmp/mft',runInSync='TRUE')
Command Category: MFT Archive and Restore Commands
Use with WLST: Online or Offline
Restores previously archived file system data. In the event of an unsupported operation, the command returns a WLSTException
.
restorePayloadsByName(arguments)
resPLbyN(arguments)
Argument | Definition |
---|---|
fileNames
|
String to identify the names of the If the For an archive that consists of multiple |
folderPath
|
Path to the directory in which the |
runInSync
|
Whether to run immediately, synchronously, and return ( |
For details about how to set MBean properties using Enterprise Manager, see Setting System MBean Properties for MFT WLST Commands.
Property | Definition |
---|---|
FS_RESTORE_OVERWRITE_EXISTING
|
String to determine whether a restore overwrites files having the same name. The default value is |
The following example restores file system data corresponding to the runtime instance data previously archived by an archivePayloads command with the batch ID 546781
. The archive is restored from /tmp/mft/546781.zip
and runs immediately.
restorePayloadsByName(fileNames='546781',folderPath='/tmp/mft',runInSync='TRUE')
Command Category: MFT Archive and Restore Commands
Use with WLST: Online or Offline
Restores previously archived file system data. In the event of an unsupported operation, the command returns a WLSTException
.
restorePayloadsByPrefix(arguments)
resPLbyP(arguments)
Argument | Definition |
---|---|
fileNamePrefix
|
String to identify the If the If you rename one |
folderPath
|
Path to the directory in which the |
runInSync
|
Whether to run immediately, synchronously, and return ( |
For details about how to set MBean properties using Enterprise Manager, see Setting System MBean Properties for MFT WLST Commands.
Property | Definition |
---|---|
FS_RESTORE_OVERWRITE_EXISTING
|
String to determine whether a restore overwrites files having the same name. The default value is |
The following example restores file system data corresponding to the runtime instance data previously archived by an archivePayloads command with the batch ID 546781
. The archive is restored from /tmp/mft/546781.zip
and runs immediately.
restorePayloadsByPrefix(fileNamePrefix='546781',folderPath='/tmp/mft',runInSync='TRUE')
Use the MFT Purge commands, listed in Table 5-11, to purge runtime instances or file system data based on criteria such as status and date ranges.
Table 5-11 MFT Purge WLST Commands
Use this command... | To... | Use with WLST |
---|---|---|
purgeInstanceData or |
Purge runtime instances based on specified criteria. Optionally purges file system data. |
Online or Offline |
purgePayloads or |
Purge file system data corresponding to runtime instance data based on specified criteria. |
Online or Offline |
Command Category: MFT Purge Commands
Use with WLST: Online or Offline
Purges runtime instances based on specified criteria. Optionally purges file system data. In the event of an unsupported operation, the command returns a WLSTException
.
purgeInstanceData(optional_arguments)
prgData(optional_arguments)
Argument | Definition |
---|---|
startDate
|
Timestamp in format |
endDate
|
Timestamp in format |
batchId
|
Identifier in the output of a previous |
status
|
Status: |
testMode
|
Whether what to purge is tested but not purged: |
comments
|
Comment string. Default is an empty string. |
runInSync
|
Whether to run immediately, synchronously, and return ( |
runPayloadPurge
|
Whether to also purge file system data corresponding to runtime instance data: |
The following example runs in test mode (does not purge anything) and in the background (does not block WLST commands while running) for all instances with status COMPLETED
, and provides statistics such as how many instances or payloads would be purged.
purgeInstanceData()
Here is an example of the output:
Total no. of purgeable instances: 105. Total no. of purgeable payloads: 105. Nothing has been purged as test_mode was TRUE. To purge these records, run the same command by passing batchId 546781 and test mode as FALSE.
The following example runs in test mode and in the background for instances before March 31st, 2013 with status COMPLETED
, and provides purge statistics. Note that when the startDate
argument is omitted, the endDate
argument must be explicitly labeled.
purgeInstanceData(endDate='31-03-2013 00:00:00:00')
The following example purges instances from February 1st, 2013 to March 31st, 2013 with status COMPLETED
, and provides purge statistics. Note that when the startDate
and endDate
arguments are both included, labels may be omitted.
purgeInstanceData('01-02-2013 00:00:00:00', '31-03-2013 00:00:00:00', testMode='FALSE')
The following example purges instances from February 1st, 2013 to March 31st, 2013 with status ACTIVE
or FAILED
, and provides purge statistics. Because runInSync='TRUE'
is specified, the purge occurs immediately and blocks further WLST commands until completion. Because runPayloadPurge='TRUE'
is specified, file system data is also purged.
purgeInstanceData('01-02-2013 00:00:00:00', '31-03-2013 00:00:00:00', testMode='FALSE', status='A,F', runInSync='TRUE', runPayloadPurge='TRUE')
The following example runs a previously tested or failed purge with batch ID 546781
from the point of failure.
purgeInstanceData(batchId='546781', testMode='FALSE')
Command Category: MFT Purge Commands
Use with WLST: Online or Offline
Purges file system data corresponding to runtime instance data based on specified criteria. In the event of an unsupported operation, the command returns a WLSTException
.
purgePayloads(arguments)
prgPLs(arguments)
Argument | Definition |
---|---|
batchId
|
String to identify the purge criteria. No default: obtain a |
detailedAudit
|
Whether each purged file is audited: |
runInSync
|
Whether to run immediately, synchronously, and return ( |
For details about how to set MBean properties using Enterprise Manager, see Setting System MBean Properties for MFT WLST Commands.
Property | Definition |
---|---|
FS_PURGE_BATCH_SIZE
|
String to determine the batch size for reading payload paths. The |
FS_PURGE_TEMP_TABLES_LIFE
|
String to determine the minimum age in days of temporary tables that are deleted after a payload purge. The default value is |
FS_PURGE_THREAD_COUNT
|
String to determine how many threads per node are used for performing the payload purge. The default value is |
The following example purges file system data corresponding to the runtime instance data previously purged by a purgeInstanceData command with the batch ID 546781
. Detailed audits of purged files are performed, and the purge runs in the background.
purgePayloads(batchId='546781')
The following example purges file system data corresponding to the runtime instance data previously purged by a purgeInstanceData command with the batch ID 546781
. Detailed audits of purged files are not performed, and the purge runs in the background.
purgePayloads(batchId='546781', detailedAudit='FALSE')
The following example purges file system data corresponding to the runtime instance data previously purged by a purgeInstanceData command with the batch ID 546781
. Detailed audits of purged files are performed, and the purge occurs immediately.
purgePayloads(batchId='546781', detailedAudit='TRUE', runInSync='TRUE')
Some MFT WLST commands have associated properties you can set to refine the operations they perform.
The steps for this process are:
Log in to the Oracle Enterprise Manager console.
In the Target Navigation pane, expand the Weblogic Domain node.
Select the domain on which the Oracle WebLogic Server managed server dedicated to Oracle Managed File Transfer is installed.
For example, the domain might be soainfra
or base_domain
.
Right-click on the domain and select System MBean Browser.
Click the Find icon.
Type MFTConfig
in the MBean Name text box. Press Enter.
The Application Defined MBeans: MFTConfig: mft page appears.
Click the Operations tab.
Click addProperty.
The Operation: addProperty page appears.
Type the property name in the key text box. Type the property value in the value text box. Typing a comment is optional. Click Invoke.
To verify that the property has been added:
Click Return.
Click the Attributes tab.
Click Properties.
The Attribute: Properties page appears. The property you added should be listed.