psproxycmd
Use the psproxycmd
program to communicate with a Bravura Security Fabric proxy server which is running the psproxy
service.
Usage
psproxycmd.exe -server <server> -port <port> [-version] [-exist<filename>] [-list <filepattern>] [-listmd5 <filename>] [-download <localfile[remotefile]>] [-upload <localfile[remotefile]>] [-delete <filepattern>] [-run[i|o] <command>] [-timeout <seconds>]
Argument | Description |
---|---|
-server <server> | The name of the proxy server. |
-port <port> | The port for the proxy server. |
-version | Prints out the version of the |
-exist <filename> | Checks if <filename> exists, and returns the MD5 hash and last modified time. |
-list <filepattern> | Lists directory contents. Uses wildcards. |
-listmd5 <filename> | Generates a list of MD5s for files and outputs to <filename>. The generated file is located on the master server, and includes a list of proxy server files. Use ’ -’ to pipe the list through stdin. |
-download < localfile [remotefile]> | Downloads <remotefile> from the server and calls it <localfile>. If <remotefile> is not specified, the value is the same as <localfile>. |
-upload <localfile [remotefile]> | Uploads <localfile> to the server and calls it <remotefile>. If <remotefile> is not specified, the value is the same as <localfile>. |
-delete <filepattern> | Deletes file(s) from the server. Uses wildcards. The <filepattern> must be the full file path with escaped backslashes. |
-run[i—o] <command> | Runs <command> on the server. Use one or both i and o suffixes to specify whether sending/receiving data through stdin/stdout respectively. |
-timeout <seconds> | Sets the timeout period for the -run command. |
When using psproxycmd -run[i|o]
to run programs, escape both quotations and slashes. For example:
psproxycmd.exe -runo "\"C:\\Program Files\\Bravura Security\Bravura Security Fabric\\default\\service\\idmlogsvc.exe\" -rotatelog 3" -server mercury -port 3344
When using psproxycmd -delete
to delete files, escape slashes. For example:
psproxycmd.exe -server mercury -port 3344 -delete "C:\\Program Files\\Bravura Security\Bravura Security Fabric\\default\\util\\a.txt"
psproxycmd.exe -server mercury -port 3344 -delete "C:\\Program Files\\Bravura Security\Bravura Security Fabric\\default\\util\\a.txt"
Examples
Using the -exist argument:
psproxycmd.exe -server mercury -port 3344 -exist "C:\Program Files\Bravura Security\Bravura Security Fabric\default\service\idmlogsvc.exe"
Using the -list argument:
psproxycmd.exe -server mercury -port 3344 -list "C:\Program Files\Bravura Security\Bravura Security Fabric\default"
Using the -listmd5 argument, with filelist.txt located on the master server, which includes proxy server files:
psproxycmd.exe -server mercury -port 3344 -listmd5 "C:\Program Files\Bravura Security\Bravura Security Fabric\default\filelist.txt"
Using the -upload argument:
psproxycmd.exe -server mercury -port 3344 -upload "C:\Program Files\Bravura Security\Bravura Security Fabric\default\service\idmlogsvc.exe"
Using the -download argument:
psproxycmd.exe -server mercury -port 3344 -download "C:\Program Files\Bravura Security\Bravura Security Fabric\default\service\idmlogsvc.exe"
Using the -delete argument:
psproxycmd.exe -server mercury -port 3344 -delete "C:\\Program Files\\Bravura Security\Bravura Security Fabric\\default\\util\\a.txt"
Using the -run[i—o] argument:
psproxycmd.exe -server mercury -port 3344 -run "C:\\Program Files\\Bravura Security\Bravura Security Fabric\\default\\service\\idmlogsvc.exe" -rotatelog 3