FSM sam:dme:LicenseDownloaderDownload

Rule ID:666

FSM to download UCS License File
Applies to MO: license:Downloader

Name: Download
Stage: post-explicit
Message: downloading license file fileName from server(FSM:sam:dme:LicenseDownloaderDownload)

Begin State: Local


States
 Local
NO COMMENTS

  On Success: ValidateLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 360000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: downloading license file fileName from server(FSM-STAGE:sam:dme:LicenseDownloaderDownload:Local)

  Notify:
   Target: sam:licenseAG
   Instance: self
   Purpose: mod
   Custom: false
   Data:
   Method: FsmLicenseDownloaderDownloadLocal

 ValidateLocal
NO COMMENTS

  On Success: CopyRemote
  On Fail: CopyRemote
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 240000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: validation for license file fileName on primary(FSM-STAGE:sam:dme:LicenseDownloaderDownload:ValidateLocal)

  Notify:
   Target: sam:licenseAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: license:Downloader
   Method: FsmLicenseDownloaderDownloadValidateLocal

 CopyRemote
NO COMMENTS

  On Success: DeleteLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 240000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Copy the license file to subordinate for inventory(FSM-STAGE:sam:dme:LicenseDownloaderDownload:CopyRemote)

  Notify:
   Target: sam:licenseAG
   Instance: peer
   Purpose: mod
   Custom: false
   Data:
   Method: FsmLicenseDownloaderDownloadCopyRemote

 DeleteLocal
NO COMMENTS

  On Success: ValidateRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: deleting temporary files for fileName on local(FSM-STAGE:sam:dme:LicenseDownloaderDownload:DeleteLocal)

  Notify:
   Target: sam:licenseAG
   Instance: self
   Purpose: mod
   Custom: false
   Data:
   Method: FsmLicenseDownloaderDownloadDeleteLocal

 ValidateRemote
NO COMMENTS

  On Success: DeleteRemote
  On Fail: DeleteRemote
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 240000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: validation for license file fileName on subordinate(FSM-STAGE:sam:dme:LicenseDownloaderDownload:ValidateRemote)

  Notify:
   Target: sam:licenseAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: license:Downloader
   Method: FsmLicenseDownloaderDownloadValidateRemote

 DeleteRemote
NO COMMENTS

  On Success:
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: deleting temporary files for fileName on subordinate(FSM-STAGE:sam:dme:LicenseDownloaderDownload:DeleteRemote)

  Notify:
   Target: sam:licenseAG
   Instance: peer
   Purpose: mod
   Custom: false
   Data:
   Method: FsmLicenseDownloaderDownloadDeleteRemote