Previous Topic: Sample Message Records/Actions with Limited Content

Next Topic: Sample Files to Use with the Integration

Sample cawto Commands that Generate/Update Requests

To use the Message Records previously created, send a message through CA NSM Event Management by using the “cawto” utility/command provided with CA NSM. The “cawto” utility/command allows you to create or update a Request using the command formats shown in the two examples that follow.

Note: By using this approach, you can capture and reformat (for translation into an expected format for inclusion into CA SDM) any alerts of interest coming into the Event Management console.

Issue the “opreload” command on the NSM Event management Console to refresh the NSM Event Message Records and Actions that are stored in memory after creating the previous NSM Message and Action rules.

Example 1: “cawto” formats for Generating and Updating a New Request

Use the following cawto format for generating a New Request:

CAWTO -n <NSM-server-name>
CFNEW;%STRING1=KEYWORD1;%CUSTOMER=ServiceDesk;%SUMMARY=Photos required;%CATEGORY=Applications;%DESCRIPTION=Description: Photos required Justification: required by regulations for entry

Use the following cawto format for updating a Request:

CAWTO -n <NSM-server-name> CFUPDATE;%STRING1=KEYWORD1;%STATUS=Closed;%SUMMARY=Cancelled by ServiceDesk

Example 2: Alternative “Cawto” formats for Generating and Updating a New Request

Use the following alternative cawto format for generating a New Request:

CAWTO -n <NSM-server-name> CFNEW2;%EVENT_TOKEN=KEYWORD2;%SUMMARY=Server Installation Approved;%STATUS=Work in Progress;%CATEGORY=Hardware;%DESCRIPTION=Install new server and level V drops to existing server location within the data center.  Also, install wiring on patch panel in router cabinet

Use the following alternative cawto format for updating a Request:

CAWTO -n <NSM-server-name> CFUPDATE2;%EVENT_TOKEN=KEYWORD2;%STATUS=Closed;%SUMMARY=Closed by Server Team