Introduction  CNC argument files

Chapter 2: Using Command and Control Requests

Executing CNC requests with the command line utility

To execute CNC requests, a command line utility is provided with the e-Biz Impact server binaries. To execute the utility, you must set the following options in either a configuration file or pass the options as command line arguments.

NoteTo run these command use the ims wrapper scripts, see “Adding the wrapper scripts directory to the PATH variable”.

Syntax

ims cnc -cluster.name cluster_name
     -cluster.server server_name
     -domain.type domain_type
     -domain.name domain_name
     -file file_name
     -cnc.user user_name
     -cnc.password password
     -cnc.subject subject
     -cnc.type {mgr | ctlr | sfm} 
     -cnc.object object
     -cnc.command command
     -cnc.argn
     -env.snmp.port snmp_port

Required parameters

The following parameters are required in a CNC request:

Optional parameters

These arguments are optional in a CNC request:

NoteThe cluster.name, domain.type and domain.name arguments allow e-Biz Impact to identify the cluster external port using SNMP.

Log file

When the CNC utility is executed, the cnc.xlog log file is created. The log file contains debug, success, and error messages that occur during execution.

Return values

The return values are:

Examples

This example of a CNC request entered at the command line disables a cluster. The command would be entered on one line:

ims cnc -mgr cluster1 -type mgr -sub cluster1
     -obj cluster1 -cmd disable -usr system
     -pwd manager

This CNC example enables a controller:

ims cnc -mgr cluster1 -type ctlr -sub controller1
     -obj controller1 -cmd enable -usr system
     -pwd manager

NoteThe -type and -sub arguments must match. To enable or disable applications other than SFMs, use the application name for the subject.





Copyright © 2005. Sybase Inc. All rights reserved. CNC argument files

View this book as PDF