| Author | 
		  Message
		 | 
		
		  | beth_carlin | 
		  
		    
			  
				 Posted: Tue May 03, 2011 8:28 am    Post subject: equivalent of mqsibrowse in WMB V7? | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 08 Jun 2004 Posts: 64
  
  | 
		  
		    
			  
				Hi WMB V7 experts 
 
 
I have a script which uses this command 
 
 
mqsibrowse brokername -t BSUBSCRIPTIONS
 
 
to get all the topics and queues
 
 
 
mqsibrowse no longer works in WMB V7.  
 
 
Could you please let me know if there an equivalent command
 
to do this in script.  
 
 
Thanks in advance for your help
 
 
Beth | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue May 03, 2011 8:37 am    Post subject: Re: equivalent of mqsibrowse in WMB V7? | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| beth_carlin wrote: | 
   
  
	Could you please let me know if there an equivalent command
 
to do this in script.   | 
   
 
 
 
WMBv7 uses WMQv7 for all it's pub/sub functions. You should look at the options runmqsc offers you. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue May 03, 2011 9:15 am    Post subject: Re: equivalent of mqsibrowse in WMB V7? | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	
   
	| beth_carlin wrote: | 
   
  
	Could you please let me know if there an equivalent command
 
to do this in script.   | 
   
 
 
 
WMBv7 uses WMQv7 for all it's pub/sub functions. You should look at the options runmqsc offers you. | 
   
 
 
 
Or PCF messages.
 
 
And to be clear, mqsibrowse does still work in Broker v7.  It's just that the broker no longer has any notion of the data that was kept in the BSUBCRIPTIONS table and so the mqsibrowse command doesn't return a good result. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue May 03, 2011 9:21 am    Post subject: Re: equivalent of mqsibrowse in WMB V7? | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	
   
	| Vitor wrote: | 
   
  
	
   
	| beth_carlin wrote: | 
   
  
	Could you please let me know if there an equivalent command
 
to do this in script.   | 
   
 
 
 
WMBv7 uses WMQv7 for all it's pub/sub functions. You should look at the options runmqsc offers you. | 
   
 
 
 
Or PCF messages. | 
   
 
 
 
Or any of the other means of extracting information from a queue manager.
 
 
I plumped for runmqsc as it's an obvious fit with script. But any of the command line queue manager utilities / support pacs would of course fit in the same environment. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | skunkvasu | 
		  
		    
			  
				 Posted: Tue May 10, 2011 2:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Jan 2011 Posts: 2
  
  | 
		  
		    
			  
				use this :
 
 
echo "dis sub(*)" |runmqsc QM |grep sub string
 
 
where QM is your queue manager name 
 
and 
 
sub string is the subscription that you are trying to find. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue May 10, 2011 3:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				grep is a fine tool that generally only exists on Unix machines.
 
On windows, one could use find instead. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Tue May 10, 2011 5:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				There are several ports of 'grep' to Windows. I don't mean a GUI one either. A quick google for 'grep.exe' will point you in the right direction.
 
I have a toolbox of 'unix' utils that I install on new windows systems. These include tar/untar cpio, md5sum and naturally grep.
 
 
You could install the 'unix' personality stuff but in many places this is forbidden. Adding a few .exe's to a directory on your PATH is often easier than getting permission to install something. _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue May 10, 2011 5:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| smdavies99 wrote: | 
   
  
	There are several ports of 'grep' to Windows. I don't mean a GUI one either. A quick google for 'grep.exe' will point you in the right direction.
 
I have a toolbox of 'unix' utils that I install on new windows systems. These include tar/untar cpio, md5sum and naturally grep.
 
 
You could install the 'unix' personality stuff but in many places this is forbidden. Adding a few .exe's to a directory on your PATH is often easier than getting permission to install something. | 
   
 
 
 
Yes.
 
 
Did you think I used the word "generally" in a non-technical sense?
 
 
Find is available on all windows machines, AFAIK. 
 
 
netstat -an|find /i "LISTEN", for example. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |