Executing CNC requests with the command line utility  Examples

Chapter 2: Using Command and Control Requests

CNC argument files

You can create a file that contains all or some command line arguments. Commands issued at the command line take precedence over values listed in the configuration file. The file name is user-defined; for example, <cluster_name>cnc.cfg.

To execute CNC using a configuration file, use this syntax:

ims cnc -file filename

where filename is the name of the configuration file that contains the CNC argument values and commands.

When you create a configuration file, the portion of the argument that precedes the period is the name of the section. The portion of the argument after the period is intended and below the appropriate section. For example, the argument -domain.type Impact would be entered like this in the file:

domain
     type=Impact

This example shows a configuration file named mycnc.cfg that enables an SFM controller named SFM1 running on the MultiProcess cluster.

cluster
     name=MultiProcess
     server=localhost

domain
     type=Impact
     name=MultiProcess

cnc
     user=system
     password=manager
     type=ctlr
     subject=SFM_Controller
     object=SFM1
     command=enable

To invoke this command you enter:

ims cnc -file mycnc.cfg




Copyright © 2005. Sybase Inc. All rights reserved. Examples

View this book as PDF