Request Cancellation of an UPS

Start and subscribe UPS Event Listener

Start UPS Event Listener

Start UPS Event Listener listening on local port 11113 for receiving UPS Event Reports:

$ dcmups -LUPSEVENT@localhost:11113
Start Server listening on port 11113
11:20:49,854 INFO   - Start listening on localhost/127.0.0.1:11113
Subscribe UPS Event Listener to receive UPS Event Reports about any UPS
$ dcmups subscribe DCM4CHEE@localhost:11112 -aet UPSEVENT
11:21:47,890 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=46664]
11:21:47,892 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << DCMUPSSCU
11:21:47,900 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC DCMUPSSCU >> DCM4CHEE
11:21:47,902 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.042 s
11:21:47,951 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.2/Unified Procedure Step - Watch SOP Class:
(0074,1230) CS #6 [FALSE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:21:47,956 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=3
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:21:48,181 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=3, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.840.10008.5.1.4.34.5
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:21:48,182 INFO   - Data:
(0074,1230) CS #6 [FALSE] Deletion Lock
(0074,1234) AE #8 [UPSEVENT] Receiving AE

11:21:48,182 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:21:48,182 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:21:48,182 INFO   - Released connection to DCM4CHEE@localhost:11112
11:21:48,182 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=46664]

Request Cancellation of an UPS in state SCHEDULED

Schedule new UPS from XML file by UPSCREATE

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcmups create -LUPSCREATE DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
11:22:41,148 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
11:22:41,253 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=43747]
11:22:41,253 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSCREATE
11:22:41,272 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSCREATE >> DCM4CHEE
11:22:41,274 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.052 s
11:22:41,330 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

11:22:41,335 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:22:41,680 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774]
11:22:41,680 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:22:41,681 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:22:41,682 INFO   - Released connection to DCM4CHEE@localhost:11112
11:22:41,682 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=43747]

and UPSEVENT receives:

11:20:49,854 INFO   - Start listening on localhost/127.0.0.1:11113
11:22:41,702 INFO   - Association(1) accepted Socket[addr=/127.0.0.1,port=44505,localport=11113]
11:22:41,712 INFO   - Association(1): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:22:41,713 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:22:41,776 INFO   - DCM4CHEE(1) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:22:41,795 INFO   - Data:
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State

11:22:41,795 INFO   - DCM4CHEE(1) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:22:41,807 INFO   - DCM4CHEE(1) >> A-RELEASE-RQ
11:22:41,807 INFO   - DCM4CHEE(1) << A-RELEASE-RP
11:22:41,857 INFO   - DCM4CHEE(1): close Socket[addr=/127.0.0.1,port=44505,localport=11113]
Request Cancellation of the scheduled UPS by UPSCREATE
$ dcmups reqcancel -LUPSCREATE DCM4CHEE@localhost:11112 -aet UPSCREATE -iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
11:29:35,708 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=56582]
11:29:35,710 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSCREATE
11:29:35,716 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSCREATE >> DCM4CHEE
11:29:35,717 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
11:29:35,764 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:29:35,769 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=2
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:29:36,098 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=2, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:29:36,098 INFO   - Data:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:29:36,098 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:29:36,099 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:29:36,099 INFO   - Released connection to DCM4CHEE@localhost:11112
11:29:36,099 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=56582]

and UPSEVENT receives:

11:29:35,803 INFO   - Association(2) accepted Socket[addr=/127.0.0.1,port=39354,localport=11113]
11:29:35,804 INFO   - Association(2): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:29:35,804 INFO   - DCM4CHEE(2): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:29:35,808 INFO   - DCM4CHEE(2) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=2
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:29:35,808 INFO   - Data:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:29:35,808 INFO   - DCM4CHEE(2) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=2, status=0H]
11:29:35,825 INFO   - DCM4CHEE(2) >> A-RELEASE-RQ
11:29:35,825 INFO   - DCM4CHEE(2) << A-RELEASE-RP
11:29:35,859 INFO   - Association(3) accepted Socket[addr=/127.0.0.1,port=48742,localport=11113]
11:29:35,861 INFO   - Association(3): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:29:35,861 INFO   - DCM4CHEE(3): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:29:35,863 INFO   - DCM4CHEE(3) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:29:35,863 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:29:35,863 INFO   - DCM4CHEE(3) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:29:35,866 INFO   - DCM4CHEE(3) >> A-RELEASE-RQ
11:29:35,866 INFO   - DCM4CHEE(3) << A-RELEASE-RP
11:29:35,875 INFO   - DCM4CHEE(2): close Socket[addr=/127.0.0.1,port=39354,localport=11113]
11:29:35,917 INFO   - DCM4CHEE(3): close Socket[addr=/127.0.0.1,port=48742,localport=11113]
11:29:36,085 INFO   - Association(4) accepted Socket[addr=/127.0.0.1,port=59251,localport=11113]
11:29:36,086 INFO   - Association(4): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:29:36,086 INFO   - DCM4CHEE(4): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:29:36,087 INFO   - DCM4CHEE(4) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32774
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:29:36,088 INFO   - Data:
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:29:36,088 INFO   - DCM4CHEE(4) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:29:36,090 INFO   - DCM4CHEE(4) >> A-RELEASE-RQ
11:29:36,090 INFO   - DCM4CHEE(4) << A-RELEASE-RP
11:29:36,140 INFO   - DCM4CHEE(4): close Socket[addr=/127.0.0.1,port=59251,localport=11113]

Request Cancellation of an UPS in state IN PROGRESS

Schedule new UPS from XML file by UPSCREATE

Schedule new UPS from XML file dcm4che-2.0.24/etc/dcmups/ncreate.xml:

$ dcmups create -LUPSCREATE DCM4CHEE@localhost:11112 -f dcm4che-2.0.24/etc/dcmups/ncreate.xml
11:31:42,015 INFO   - M-READ dcm4che-2.0.24/etc/dcmups/ncreate.xml
11:31:42,093 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=34647]
11:31:42,094 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSCREATE
11:31:42,099 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSCREATE >> DCM4CHEE
11:31:42,100 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.037 s
11:31:42,147 INFO   - Send N-CREATE Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0008,1080) LO #0 [] Admitting Diagnoses Description
(0008,1195) UI #0 [] Transaction UID
(0010,0010) PN #18 [Simpson^Homer^Jay] Patient's Name
(0010,0020) LO #4 [7431] Patient ID
(0010,0021) LO #10 [99DCM4CHE] Issuer of Patient ID
(0010,0022) CS #0 [] Type of Patient ID
(0010,0030) DA #8 [19551005] Patient's Birth Date
(0010,0040) CS #2 [M] Patient's Sex
(0010,1002) SQ #0 [] Other Patient IDs Sequence
(0020,000D) UI #8 [1.2.3.4] Study Instance UID
(0038,0010) LO #0 [] Admission ID
(0038,0014) SQ #0 [] Issuer of Admission ID Sequence
(0040,0400) LT #0 [] Comments on the Scheduled Procedure Step
(0040,4004) SQ #0 [] Scheduled Processing Applications Code Sequence
(0040,4005) DT #12 [201006101030] Scheduled Procedure Step Start DateTime
(0040,4018) SQ #-1 [1 item] Scheduled Workitem Code Sequence
>ITEM #1:
>(0008,0100) SH #6 [110005] Code Value
>(0008,0102) SH #4 [DCM] Coding Scheme Designator
>(0008,0104) LO #14 [Interpretation] Code Meaning
(0040,4020) CS #10 [INCOMPLETE] Input Availability Flag
(0040,4021) SQ #0 [] Input Information Sequence
(0040,4025) SQ #0 [] Scheduled Station Name Code Sequence
(0040,4026) SQ #0 [] Scheduled Station Class Code Sequence
(0040,4027) SQ #0 [] Scheduled Station Geographic Location Code Sequence
(0040,4034) SQ #-1 [1 item] Scheduled Human Performers Sequence
>ITEM #1:
>(0040,4009) SQ #-1 [1 item] Human Performer Code Sequence
>>ITEM #1:
>>(0008,0100) SH #6 [axady] Code Value
>>(0008,0102) SH #6 [99Agfa] Coding Scheme Designator
>>(0008,0104) LO #16 [Gunter Zeilinger] Code Meaning
>(0040,4036) LO #16 [Agfa Healthcare] Human Performer's Organization
>(0040,4037) PN #16 [Zeilinger^Gunter] Human Performer's Name
(0040,A370) SQ #-1 [1 item] Referenced Request Sequence
>ITEM #1:
>(0008,0050) SH #4 [5678] Accession Number
>(0020,000D) UI #8 [1.2.3.4] Study Instance UID
>(0032,1060) LO #0 [] Requested Procedure Description
>(0032,1064) SQ #0 [] Requested Procedure Code Sequence
>(0040,1001) SH #4 [1234] Requested Procedure ID
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State
(0074,1002) SQ #0 [] Unified Procedure Step Progress Information Sequence
(0074,1200) CS #6 [MEDIUM] Scheduled Procedure Step Priority
(0074,1202) LO #22 [Sample Worklist Label] Worklist Label
(0074,1204) LO #28 [Sample Procedure Step Label] Procedure Step Label
(0074,1210) SQ #0 [] Scheduled Processing Parameters Sequence
(0074,1216) SQ #0 [] Unified Procedure Step Performed Procedure Sequence
(0074,1220) SQ #0 [] Related Procedure Step Sequence

11:31:42,152 INFO   - DCM4CHEE(1) << 1:N-CREATE-RQ[pcid=7
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=null
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:31:42,224 INFO   - DCM4CHEE(1) >> 1:N-CREATE-RSP[pcid=7, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776]
11:31:42,224 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:31:42,225 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:31:42,225 INFO   - Released connection to DCM4CHEE@localhost:11112
11:31:42,225 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=34647]

and UPSEVENT receives:

11:31:42,212 INFO   - Association(5) accepted Socket[addr=/127.0.0.1,port=46183,localport=11113]
11:31:42,213 INFO   - Association(5): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:31:42,213 INFO   - DCM4CHEE(5): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:31:42,215 INFO   - DCM4CHEE(5) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:31:42,215 INFO   - Data:
(0074,1000) CS #10 [SCHEDULED] Unified Procedure Step State

11:31:42,215 INFO   - DCM4CHEE(5) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:31:42,217 INFO   - DCM4CHEE(5) >> A-RELEASE-RQ
11:31:42,217 INFO   - DCM4CHEE(5) << A-RELEASE-RP
11:31:42,267 INFO   - DCM4CHEE(5): close Socket[addr=/127.0.0.1,port=46183,localport=11113]
Change UPS status to IN PROGRESS by UPSEVENT
$ dcmups chstate -LUPSEVENTH DCM4CHEE@localhost:11112 -state="IN PROGRESS" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1
11:34:32,532 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=52644]
11:34:32,534 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSEVENT
11:34:32,542 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSEVENT >> DCM4CHEE
11:34:32,543 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.042 s
11:34:32,592 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:34:32,597 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:34:32,646 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:34:32,647 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1] Transaction UID
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:34:32,647 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:34:32,647 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:34:32,648 INFO   - Released connection to DCM4CHEE@localhost:11112
11:34:32,648 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=52644]

and UPSEVENT receives:

11:34:32,634 INFO   - Association(6) accepted Socket[addr=/127.0.0.1,port=44369,localport=11113]
11:34:32,635 INFO   - Association(6): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:34:32,635 INFO   - DCM4CHEE(6): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:34:32,636 INFO   - DCM4CHEE(6) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:34:32,637 INFO   - Data:
(0074,1000) CS #12 [IN PROGRESS] Unified Procedure Step State

11:34:32,637 INFO   - DCM4CHEE(6) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:34:32,640 INFO   - DCM4CHEE(6) >> A-RELEASE-RQ
11:34:32,640 INFO   - DCM4CHEE(6) << A-RELEASE-RP
11:34:32,691 INFO   - DCM4CHEE(6): close Socket[addr=/127.0.0.1,port=44369,localport=11113]
Request Cancellation of the UPS by UPSCREATE
$ dcmups reqcancel -LUPSCREATE DCM4CHEE@localhost:11112 -aet UPSCREATE -iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
11:38:20,893 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=46115]
11:38:20,895 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSCREATE
11:38:20,902 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSCREATE >> DCM4CHEE
11:38:20,904 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.041 s
11:38:20,951 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:38:20,956 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=2
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:38:21,003 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=2, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:38:21,003 INFO   - Data:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:38:21,003 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:38:21,004 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:38:21,004 INFO   - Released connection to DCM4CHEE@localhost:11112
11:38:21,004 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=46115]

and UPSEVENT receives:

11:38:20,988 INFO   - Association(7) accepted Socket[addr=/127.0.0.1,port=37896,localport=11113]
11:38:20,989 INFO   - Association(7): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:38:20,990 INFO   - DCM4CHEE(7): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:38:20,991 INFO   - DCM4CHEE(7) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=2
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:38:20,991 INFO   - Data:
(0074,1236) AE #10 [UPSCREATE] Requesting AE

11:38:20,991 INFO   - DCM4CHEE(7) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=2, status=0H]
11:38:20,992 INFO   - DCM4CHEE(7) >> A-RELEASE-RQ
11:38:20,993 INFO   - DCM4CHEE(7) << A-RELEASE-RP
11:38:21,043 INFO   - DCM4CHEE(7): close Socket[addr=/127.0.0.1,port=37896,localport=11113]
Change UPS status to CANCELED by UPSEVENT
$ dcmups chstate -LUPSEVENT DCM4CHEE@localhost:11112 -state="CANCELED" -iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776 -tuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1
11:42:44,663 INFO   - Association(1) initiated Socket[addr=localhost/127.0.0.1,port=11112,localport=44591]
11:42:44,665 INFO   - DCM4CHEE(1): A-ASSOCIATE-RQ DCM4CHEE << UPSEVENT
11:42:44,669 INFO   - DCM4CHEE(1): A-ASSOCIATE-AC UPSEVENT >> DCM4CHEE
11:42:44,670 INFO   - Connected to DCM4CHEE@localhost:11112 in 0.039 s
11:42:44,721 INFO   - Send N-ACTION Request using 1.2.840.10008.5.1.4.34.4.3/Unified Procedure Step - Pull SOP Class:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:42:44,726 INFO   - DCM4CHEE(1) << 1:N-ACTION-RQ[pcid=7, actionID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:42:44,802 INFO   - DCM4CHEE(1) >> 1:N-ACTION-RSP[pcid=7, actionID=1, status=0H
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:42:44,802 INFO   - Data:
(0008,1195) UI #56 [1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776.1] Transaction UID
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:42:44,802 INFO   - DCM4CHEE(1) << A-RELEASE-RQ
11:42:44,802 INFO   - DCM4CHEE(1) >> A-RELEASE-RP
11:42:44,802 INFO   - Released connection to DCM4CHEE@localhost:11112
11:42:44,803 INFO   - DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=44591]

and UPSEVENT receives:

11:42:44,790 INFO   - Association(8) accepted Socket[addr=/127.0.0.1,port=57980,localport=11113]
11:42:44,792 INFO   - Association(8): A-ASSOCIATE-RQ DCM4CHEE >> UPSEVENT
11:42:44,792 INFO   - DCM4CHEE(8): A-ASSOCIATE-AC UPSEVENT << DCM4CHEE
11:42:44,796 INFO   - DCM4CHEE(8) >> 1:N-EVENT-REPORT-RQ[pcid=1, eventID=1
	cuid=1.2.840.10008.5.1.4.34.4.1/Unified Procedure Step - Push SOP Class
	iuid=1.2.40.0.13.1.1.10.231.162.70.20100927100647430.32776
	ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
11:42:44,796 INFO   - Data:
(0074,1000) CS #8 [CANCELED] Unified Procedure Step State

11:42:44,796 INFO   - DCM4CHEE(8) << 1:N-EVENT-REPORT-RSP[pcid=1, eventID=1, status=0H]
11:42:44,799 INFO   - DCM4CHEE(8) >> A-RELEASE-RQ
11:42:44,799 INFO   - DCM4CHEE(8) << A-RELEASE-RP
11:42:44,849 INFO   - DCM4CHEE(8): close Socket[addr=/127.0.0.1,port=57980,localport=11113]