Import Fixlet and Packages From Remote IEM Server
Log In or Register to download the BES file, and more.

1 Votes

Description

Action Parameters:

  <<  Enter the Exporting IEM Server IP Address or Hostname
  <<  Enter the Exporting/Importing IEM Server Communication Port
  <<  Enter the Exporting IEM Server Operator Name (Note: This account must have READ access on the export site)
    <<  Enter the Exporting IEM Server Operator Password (Note: This password will be encrypted)
  <<  Enter the Exporting IEM Server Site
                                               (Note: For the Master Action Site type: master -  For Custom Sites use: custom/<site> -   For External Sites use: external/<site>)
  <<  Enter the Exporting IEM Server Fixlet ID (Fixlet, Task, Analyses or Group ID) (Note: for Groups, remove the '##-' prefix from the ID)
  <<  Enter the Importing IEM Server Site
                                               (Note: For the Master Action Site type: master -  For Custom Sites use: custom/<site> -   For External Sites use: external/<site>)
  <<  Enter the Importing IEM Server Operator Name (Note: This account must have WRITE access on the import site)
    <<  Enter the Importing IEM Server Operator Password (Note: This password will be encrypted)
  << Import Pre-Cached Packages?

_____________________________________________________________________________________________________

Description:

  • This Task will export a single Fixlet, Task, Baseline, Group or Analyses from a remote IEM Server and import it.
    •  The action must be deployed on the Importing IEM Server 
  • Fixlets and Tasks with packages that are pre-cached will also be downloaded and placed in the same directory structure as the Remote IEM Server (You must type 'yes' in the 'Import Pre-cached Packages' field to enable this option)
    • If more than 10 pre-cached packages are required, you will need to expand the tuple range in the action script
    • This will work on Software Distribution Tasks utilizing SWDProtocol as well as task utilizing DOWNLOAD and PREFETCH commands.
    • This will NOT import packages into the SWD Manage Software Distribution Dashboard
      • Imported SWD Tasks will be available in the Software Package Distribution Tasks
  • Download URL's for pre-cached packages that are not pointing to either 127.0.0.1 or localhost will be modified to point to 127.0.0.1
  • The logs import.txt, import_err.txt and export_err.txt located in C:\Import can be used for troubleshooting

Use Case:
Can be used to propagate IEM content between different systems (eg: Development > QA > Production)

Prerequisites:
Importing and Exporting IEM server must be version 9.x (This utilizes the REST API)

Importing IEM Server must have Wget for Windows installed (default location: %ProgramFiles(x86)%\GnuWin32)
(This is required as the REST API does not currently support exporting and the Action Script Download commands do not support HTTPS)

Importing IEM Sever must have directory C:\Imports (will be created if it does not exist)

Importing IEM Server must have Operator account with write permission on the site importing to.

Exporting IEM Server must have normal operator account with read permissions on site exporting from.
(It may be best to create an 'EXPORT' operator account with read permission for all sites but manages no endpoints.)

 


Property Details

ID3757
StatusQA - Ready for Production Level Testing
TitleImport Fixlet and Packages From Remote IEM Server
DomainBESC
Sourcemike.english@us.ibm.com
Source Release Date11/19/2013 12:00:00 AM
KeywordsContent Promotion from one IEM server to another
Added by on 4/5/2014 6:21:31 AM
Last Modified by on 4/5/2014 6:21:31 AM
Counters 3787 Views / 24 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 94 fixlets and 5 analyses   * Results in a true/false
Show indented relevance
exists main gather service
Used in 3 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else true) AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 73 fixlets and 6 analyses   * Results in a true/false
Show indented relevance
version of client >= "9.0"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//Check for C:\Import
if {not exist folder "c:\import"}
    dos mkdir "c:\import"
endif

//Check for Wget installation
if {not exist file ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")}
    dos echo "EXPORT ERROR: Wget is not installed" > "c:\import\export_err.txt"
endif

continue if {exist file ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")}

//Export fixlet from remote IEM server
delete c:\IMPORT\{parameter "RemoteFixletID" of action}.xml
delete c:\IMPORT\{parameter "RemoteFixletID" of action}.bak
delete c:\IMPORT\import.txt
delete c:\IMPORT\import_err.txt
delete c:\IMPORT\export_err.txt
wait {((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -O c:\IMPORT\{parameter "RemoteFixletID" of action}.xml --user={parameter "RemoteOP" of action} --password={parameter "RemoteOPPass" of action} "https:{"//"}{parameter "RemoteIEM" of action}:{parameter "RemoteIEMPort" of action}/api/fixlet/{parameter "RemoteSite" of action}/{parameter "RemoteFixletID" of action}" --no-check-certificate

//check for errors
if {size of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml") = 0}
    dos echo "EXPORT ERROR: Check username/password, Site Name and Fixlet ID" > "c:\import\export_err.txt"
endif

continue if {size of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml") > 0}

//iterate through the xml replacing hostname where necessary
delete __appendfile
appendfile {concatenation "%0d%0a" of ( if (it contains (tuple string item 0 of concatenation ", " of (preceding texts of firsts (":" & (parameter "RemoteIEMPort" of action)) of (following texts of firsts "://" of (lines whose (it as lowercase contains "uploads" and it contains (":" & (parameter "RemoteIEMPort" of action))) of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) | false then ((preceding text of first (tuple string item 0 of concatenation ", " of (preceding texts of firsts (":" & (parameter "RemoteIEMPort" of action)) of (following texts of firsts "://" of (lines whose (it as lowercase contains "uploads" and it contains (":" & (parameter "RemoteIEMPort" of action))) of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))) of it) & "127.0.0.1" & (following text of first (tuple string item 0 of concatenation ", " of (preceding texts of firsts (":" & (parameter "RemoteIEMPort" of action)) of (following texts of firsts "://" of (lines whose (it as lowercase contains "uploads" and it contains (":" & (parameter "RemoteIEMPort" of action))) of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))) of it) ) else it ) of lines of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")}
// backup the old file
move {("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")} {("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".bak")}
// replace with the new file
move __appendfile {("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")}


//Login API
dos {preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\iem.exe%22"} login -q --server=localhost --user={parameter "LocalOP" of action} --password={parameter "LocalOPPass" of action} 2> c:\import\import_err.txt

//check for login errors errors
continue if {exist file "c:\import\import_err.txt" whose (not exist line 1 of it)}

//Import Fixlet
dos {preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\iem.exe%22"} post c:\import\{parameter "RemoteFixletID" of action}.xml import/{parameter "LocalSite" of action} 1>> c:\import\import.txt 2> c:\import\import_err.txt

//check for invalid local site
continue if {exist file "c:\import\import_err.txt" whose (not exist line 1 of it)}

//Import packages pre-cached on remote IEM Server
if {parameter "ImportPkg" of action = "yes"}
    
    if {exists tuple string item 0 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 0 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 0 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 0 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 0 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 0 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 0 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 1 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 1 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 1 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 1 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 1 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 1 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 1 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif

    if {exists tuple string item 2 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 2 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 2 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 2 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 2 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 2 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 2 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 3 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 3 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 3 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 3 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 3 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 3 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 3 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 4 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 4 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 4 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 4 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 4 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 4 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 4 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 5 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 5 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 5 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 5 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 5 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 5 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 5 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 6 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 6 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 6 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 6 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 6 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 6 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 6 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 7 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 7 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 7 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 7 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 7 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 7 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 7 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 8 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 8 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 8 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 8 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 8 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 8 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 8 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif
    
    if {exists tuple string item 9 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))}
        if {(it as lowercase = "localhost" or it = "127.0.0.1") of (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "http://" of ("http://" & (following text of first "://" of (tuple string item 9 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml"))))))))}
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 9 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {concatenation (parameter "RemoteIEM" of action) of (substrings separated by (preceding text of first (":" & (parameter "RemoteIEMPort" of action)) of (following text of first "//" of (tuple string item 9 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) of ("http://" & (following text of first "://" of (tuple string item 9 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))))}
        else
            wait { ((value of variable "ProgramFiles" of environment) & "\GnuWin32\bin\wget.exe")} -a c:\import\import.txt -P {(concatenation "/" of (substrings separated by "\" of (preceding text of last "\" of (expand environment string of (image path of service "FILLDB")) & "\wwwrootbes\" & ( (preceding text of last "/" of following text of first (":" & (parameter "RemoteIEMPort" of action) & "/") of tuple string item 9 of (concatenation ", " of unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))) & "/%22")} {"http://" & (parameter "RemoteIEM" of action) & ":" & (parameter "RemoteIEMPort" of action) & (following text of first ":52311" of (tuple string item 9 of (concatenation ", " of (unique values of lines whose ((it does not start with "//" and it does not start with "%09%09//") and it contains (":" & (parameter "RemoteIEMPort" of action)) and it as lowercase contains "uploads") of file ("C:\IMPORT\" & (parameter "RemoteFixletID" of action) & ".xml")))))}
        endif
    endif

endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!