Skip to main content

SMADeleteKeyStoneFiles

This application sends the appropriate commands to KeyStone to update the database and delete the specified files. It requires an SSH session to get the exact name of the files (that match the specified mask) and then uses the web service interface to request the file deletion(s) from KeyStone.

Usage

SMADeleteKeyStoneFiles.exe -Filenamemask TEST*

Command line options

  • -ConfigFile: The name of the configuration file to use. Optional. Default value is %PROGRAMDATA%\SMADeleteKeyStoneFiles.ini.

  • -Debug: Enables debug mode, including more detailed logging in the job output.

  • -DumpXML: Write all XML data into the job output.

  • FilenameMask: Regular expression that selects which files to delete.

  • OnlyListFiles: Only list the files that matched the FileNameMask and do not delete them.

Configuration file

Configuration file parameters

  • Hostname: The DNS resolvable name or IP address of the machine where the file(s) to be deleted are stored.

  • Port: The port to connect to.

.... THIS NEEDS TO BE COMPLETED

Sample configuration file

#-------------------------------------------------------------------------------------
#
# This file contains the configuration parameters for SMADeleteKeyStoneFiles
#
#-------------------------------------------------------------------------------------
[SSH Connection Parameters]
HostName=184.191.169.146
Port=52032
UserName=smaopcon
Password=.\mypassword.dat
SSHEncryptionAlgorithms=aes256-cbc,3des-cbc
SystemPrompt=\$
LoginTimeoutSeconds=30
CommandExecutionTimeoutSeconds=60
OutputRetrievalSeconds=3
KeyStoneReportDirectory=/cr/dbhome/D0000T99/export

[KeyStone Connection Parameters]
CorelationIPAddress=184.191.169.146
CorelationPort=52007
CorelationUser=sma
CorelationPassword=.\mykeystonepw.dat
CorelationDeviceName=system
CorelationNameSpace=http://www.corelationinc.com/queryLanguage/v1.0

Supported encryption protocols

NameDescription
aes256-ctr256-bit AES encryption in CTR mode
aes256-cbc256-bit AES encryption in CBC mode
aes192-ctr192-bit AES encryption in CTR mode
aes192-cbc192-bit AES encryption in CBC mode
aes128-ctr128-bit AES encryption in CTR mode
aes128-cbc128-bit AES encryption in CBC mode
3des-ctr192-bit (3-key) triple DES encryption in CTR mode
3des-cbc192-bit (3-key) triple DES encryption in CBC mode
cast128-cbcCAST-128 encryption
blowfish-cbcBlowfish encryption
arcfourARC4 encryption
arcfour128128-bit ARC4 encryption
arcfour256256-bit ARC4 encryption