ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Channel Sequence number

Post new topic  Reply to topic
 Channel Sequence number « View previous topic :: View next topic » 
Author Message
Shanta
PostPosted: Wed Feb 21, 2007 10:52 am    Post subject: Channel Sequence number Reply with quote

Voyager

Joined: 01 Sep 2005
Posts: 81

Where can i find Channel Sequence number.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Feb 21, 2007 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Feb 21, 2007 11:47 am    Post subject: Reply with quote

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
PostPosted: Wed Feb 21, 2007 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
anantha sreenivasan
PostPosted: Wed Mar 07, 2007 2:10 am    Post subject: Sequence Number Reply with quote

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
View user's profile Send private message
issac
PostPosted: Sat Oct 04, 2008 1:23 am    Post subject: Re: Sequence Number Reply with quote

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
View user's profile Send private message
fishsmith
PostPosted: Mon Jun 14, 2010 6:46 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Jun 14, 2010 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Mon Jun 14, 2010 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
shashivarungupta
PostPosted: Wed Jun 16, 2010 4:03 am    Post subject: Re: Channel Sequence number Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Shanta wrote:
Where can i find Channel Sequence number.

kevinf2349 wrote:
The sequence wrap number is the value at which the sequence numbers will wrap


http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzae.doc/ic12010_.htm
which says "seq. no. wrap is the highest number the message sequence number reaches before it restarts at 1."
zpat wrote:
I believe channel sequence numbers are incremented only for persistent messages.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzae.doc/ic11090_.htm
this is the link which tells what if a nonpersistent message arrives on fast channel.. and how would it affect the seq. no.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.explorer.doc/e_explorer_intro.htm
I want to highlight the line, that is said in the above link.
"The sequence number is generated at the sending end of the channel and is incremented by one before being used, which means that the current sequence number is the number of the last message sent."

Thanks
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Wed Jun 16, 2010 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
SAFraser
PostPosted: Wed Jun 16, 2010 11:31 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

fishsmith, Have you looked at "dis chs(*) saved all"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Channel Sequence number
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.