Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

Sample I Process Program Code
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide109759 D-3
Command and Response Message Formats
The program code example in this appendix illustrates the processing of informational
commands. The processing of state-change operations is not explicitly illustrated;
however, the preliminary processing of NAME, POP, and TYPE values is included (to
determine the set of objects on which a state-change operation would be performed).
Command and Response Message Formats
A SPIFFY command is executed by sending a command message to a SPIFFY manager
process. The results of the command message are returned in a response message. A
single command may consist of several command-to-response exchanges.
Command Message Format
The command message has the same format for all commands and all SPIFFY object
types:
LITERAL spiffy^name^len= 20;
STRUCT spiffy^command^def (*); ! Command message, which also
! heads response message
BEGIN
INT cmd;
INT type;
INT response^context;
STRING name[0:spiffy^name^len-1];
STRING pop^name[0:spiffy^name^len-1];
END;
The command message contains the following:
A command code (CMD)
A object type code to which the command applies (TYPE)
The name and parent of the object to which the command applies (NAME and
POP^NAME)
RESPONSE^CONTEXT must be set to 0 when a command is originated.