---
name: "seg_protocol"
section: "3"
platform: "linux"
package: "libglobus-scheduler-event-generator-doc"
version: "4.6-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/seg_protocol"
---

# seg\_protocol(3)

SEG Protocol The general form for the SEG protocol messages is

## NAME

seg\_protocol - SEG Protocol  The general form for the SEG protocol messages is

```
MESSAGE-TYPE;TIMESTAMP;message-type-specific content
```

- •

  *MESSAGE-TYPE* is a three-digit integer. The JSM will parse the message contents based on the message type.

- •

  *TIMESTAMP* is an unsigned value indicating seconds since the UNIX epoch.

## Message Types

### 001 - Job State Change

```
        Message Format: 001;TIMESTAMP;JOBID;STATE;EXIT_CODE
```

Message Type Specific Content:

- **JOBID**

  local scheduler-specific job id

- **STATE**

  new job state (integer as per the GRAM protocol constants)

- **EXIT\_CODE**

  job exit code if STATE is done or failed.
