ims script  ims.db script

Chapter 1: Command Line Utilities

ims.nn script

Some commands require the prefix NN, such as NNCrypt, NNPutMsg, and NNGetMsg. These files are used in conjunction with Open Transport-XML implementations. See the e-Biz Impact Monitoring Guide and the e-Biz Impact Application Guide for more information.


NNCrypt

Description

Encrypts a file with a private key. Use NNCrypt to encrypt or decrypt the nnsyreg.dat configuration file.

Syntax

NNCrypt {-encrypt | -decrypt} -file  fileName

Parameters

Encrypting a file does not change its functionality. After a file has been encrypted, the configuration files can be used the same as a file that is not encrypted.


NNGetmsg

Description

Performs a get of messages for testing. NNGetmsg reads an inbound transport, retrieves one message at a time, and writes each message to the output file until the transport is empty.

Syntax

NNGetmsg -o output filename
     -t transport ID
     -x context ID
     [-p]
     [-v]
     [-pFile parameter filename]
     [-pGroup parameter group]
     [-m message ID]
     [-commitInterval {number > 0 | ALL}]
     [-blockingTimeout {time in milliseconds | INFINITE}
     [-delimiter delimiter]
     [-messageCount n]

Parameters

Remarks

NNgetmsg expects the defined transport name to exist and to be enabled.

Examples

Use the following examples for reference.


NNPutmsg

Description

Performs a put of messages for testing. NNPutmsg reads messages from a file and puts the messages on the specified transport as defined by the nnsyreg.dat file.

Syntax

NNPutmsg -t transport ID
     [-i input filename]
     [-a application group]
     [-m message type]
     [-x context ID]
     [-r]
     [-S component name]
     [-C {MSG | SUB}]
     [-d]
     [-v]
     [-pFile parameter filename]
     [-pGroup parameter group]
     [-delimiter delimiter]
     [-persistent]
     [-nonPersistent]
     [-messageProperties {property name=property value,
                                        property name=property value,
                                        property name=property value}]
     [-commitInterval {number > 0 | ALL}]
     [-repeatCount number > 0]
     [-chunkSize number > 0]

Parameters

Remarks

Parsing messages from a single file Messages can be parsed by using a delimiter or a chunk size, depending on the parameter value specified. Because the delimiter and chunkSize parameters are mutually exclusive, specify a value for only one of these parameters. If neither a delimiter nor chunkSize is specified, NNPutmsg assumes the file contains one message.

Examples of delimiters include:

-delimiter 0x32
-delimiter @@@@

A chunkSize parses the input file into messages of fixed size, measured by byte count. For example:

-chunkSize 10

This example parses an input file containing 100 bytes into 10 messages, each 10 bytes in size.

Sending persistent or non-persistent messages All messages in a given run, from the start until the stop of the executable, are sent in persistent or non-persistent mode, depending on which parameter is set when NNPutmsg is started. Use the following guidelines to determine whether to use persistent or non-persistent mode:

Examples

Use the following examples for reference.

NoteSee Monitoring e-Biz Impact and the Open Transport 2.6 Configuration Guide on the e-Biz Impact SyBooks CD that comes with the product, and the New Era of Networks Adapter for SAP R/3 3.9 User’s Guide on the Sybase Product Manuals Web site for more information about using NN-type commands.





Copyright © 2005. Sybase Inc. All rights reserved. ims.db script

View this book as PDF