Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
This is a VB Script that can set a single custom property for a single server in AppManager V704. It works by connecting to the Control Center SQL Server and invoking a stored procedure in the database. There are several input parameters for this script:-
/server: The SQL Server that the Control Center Database is located on (default is localsystem)
/db: The Control Center Database Name (default is CCDB)
/uid: The SQL Login to use (if not specified, Windows Authentication is used)
/pwd: The SQL password if SQL authentication is used
/target: The target server (to apply the Property on). No default. Required.
/cp_name: The name of the Custom Property. No default. Required.
/cp_type: The type (0 for String, 1 for Integer, 2 for Float). Default is 0 (string)
/cp_val: The value to set. No default. Required.
/cp_ds: The DataSource for the target server in the form SERVER.DATABASE
If the DataSource (the name of the QDB which holds the target server) is not specified then the script will try to locate the DataSource. If the target server is in multiple Repositories then you must specify the DataSource to use.
This is just an unsupported example VB Script for setting a custom property in AM7. The routine "SetProperty" is what does the actual work - the rest of the script is just validating what was entered. An example use is:-
cscript AMSetCustomProperty /server:MYCCDBSERVER /target:AGENT1 /cp_name:MYCP /cp_type:0 /cp_val:"My New Value"