Author |
Message
|
Shanta |
Posted: Wed Feb 21, 2007 10:52 am Post subject: Channel Sequence number |
|
|
Voyager
Joined: 01 Sep 2005 Posts: 81
|
Where can i find Channel Sequence number. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Feb 21, 2007 11:12 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Where ever you left it.
Seriously....a hint for you...look at channel status.  |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Feb 21, 2007 11:47 am Post subject: |
|
|
Guest
|
More seriously than that...
There's a sequence wrap attribute of both ends of a channel. The message channel agent on the sending side increments its sequence wrap field when it sends a message; the receiving MCA increments its sequence wrap field when it receives a message.
At channel-attach (startup), the sequence number (message counts) must match. If they don't, the MCAs believe they've lost messages AND the channel will not start.
Last edited by bruce2359 on Wed Feb 21, 2007 2:05 pm; edited 1 time in total |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Feb 21, 2007 12:01 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
The sequence wrap field is not as described above.
The sequence wrap number is the value at which the sequence numbers will wrap. (back to 1) ...but it does have to match at both ends though.
It is not the sequence number....that can be seen on a display channel status command. |
|
Back to top |
|
 |
anantha sreenivasan |
Posted: Wed Mar 07, 2007 2:10 am Post subject: Sequence Number |
|
|
Acolyte
Joined: 26 Sep 2006 Posts: 72
|
You can find the seqnumwrap for channel by displaying SEQWRAP Property.
Also you can find the Sequence Numbers of the Last sent message and Current message to be sent by issuing the following command.
dis chs(TO.QMGR2) CURSEQNO LSTSEQNO
7 : dis chs(TO.QMGR2) CURSEQNO LSTSEQNO
AMQ8417: Display Channel Status details.
CHANNEL(TO.QMGR2) CHLTYPE(SDR)
CONNAME(localhost(1501)) CURRENT
CURSEQNO(0) LSTSEQNO(0)
RQMNAME(QMGR2) STATUS(RUNNING)
SUBSTATE(MQGET) XMITQ(QMGR2)
Hope this helps |
|
Back to top |
|
 |
issac |
Posted: Sat Oct 04, 2008 1:23 am Post subject: Re: Sequence Number |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
HAH, thanks very much. I've been looking for exactly the same thing.
anantha sreenivasan wrote: |
You can find the seqnumwrap for channel by displaying SEQWRAP Property.
Also you can find the Sequence Numbers of the Last sent message and Current message to be sent by issuing the following command.
dis chs(TO.QMGR2) CURSEQNO LSTSEQNO
7 : dis chs(TO.QMGR2) CURSEQNO LSTSEQNO
AMQ8417: Display Channel Status details.
CHANNEL(TO.QMGR2) CHLTYPE(SDR)
CONNAME(localhost(1501)) CURRENT
CURSEQNO(0) LSTSEQNO(0)
RQMNAME(QMGR2) STATUS(RUNNING)
SUBSTATE(MQGET) XMITQ(QMGR2)
Hope this helps |
|
|
Back to top |
|
 |
fishsmith |
Posted: Mon Jun 14, 2010 6:46 am Post subject: |
|
|
Newbie
Joined: 16 May 2001 Posts: 6 Location: Boston
|
3+ years after the initial post and it still comes in handy. Thank you mqseries.net (and google)
I'd like to see these values cashed so they're available without the channel running, but starting the channel does no harm so it's an easy fix.
Go Celtics!!! _________________ "George Washington Carver died penniless and insane trying to make a phonograph needle out of a peanut. " |
|
Back to top |
|
 |
zpat |
Posted: Mon Jun 14, 2010 7:04 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I believe channel sequence numbers are incremented only for persistent messages.
Which means to test it you should sent a persistent message over the channel. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Jun 14, 2010 3:35 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
fishsmith wrote: |
I'd like to see these values cashed so they're available without the channel running, but starting the channel does no harm so it's an easy fix.
|
Well, it depends why its not running. Maybe its stopped on purpose.
fishsmith wrote: |
Go Celtics!!! |
Yup yup! _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 16, 2010 4:03 am Post subject: Re: Channel Sequence number |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jun 16, 2010 5:40 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
The sequence number is generated at the sending end of the channel ... |
And the contents of the sequence-wrap field (number of messages sent/recieved) must match the receiving end of the channel at channel-attach time. And it also must match when the two channel ends negotiate prior to transmitting a batch of messages. Failure to match indicates to the MCA's that messages have (possibly) been lost. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
SAFraser |
Posted: Wed Jun 16, 2010 11:31 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
fishsmith, Have you looked at "dis chs(*) saved all"? |
|
Back to top |
|
 |
|