| Author | 
		  Message
		 | 
		
		  | amit_talpade_star | 
		  
		    
			  
				 Posted: Mon Apr 24, 2006 7:04 am    Post subject: Broker Uptime | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 14 Dec 2004 Posts: 39
  
  | 
		  
		    
			  
				Is there a mechanism/script/command that can be executed which would let me know when the broker instance was started or last restarted?
 
 
I use Broker 5.0 FP 7 on Suse Linux 8.1 SP3 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sjensen | 
		  
		    
			  
				 Posted: Mon Apr 24, 2006 7:11 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 18 Dec 2003 Posts: 134 Location: London 
  | 
		  
		    
			  
				Hi,
 
 
You can see the timings in the user.log file
 
 
Good luck
 
Stefan | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | paustin_ours | 
		  
		    
			  
				 Posted: Mon Apr 24, 2006 7:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Yatiri
 
 Joined: 19 May 2004 Posts: 667 Location: columbus,oh 
  | 
		  
		    
			  
				you could have a subscriber for event messages. everytime there is a event change like a stop start an xml message will be published.
 
 
look it up on the infocenter, it says how to do it. cant remember on the top of my head. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | amit_talpade_star | 
		  
		    
			  
				 Posted: Mon Apr 24, 2006 7:24 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 14 Dec 2004 Posts: 39
  
  | 
		  
		    
			  
				The requirement is to get this information at runtime. User.log does provide the data, however would prefer to run it as a runtime command which can give us the time that the instance was up and running. Will check the infocenter for the pub sub options. was actually looking for a command like
 
 
mqsigetlaststarttime!
 
 
But I guess I can't be that hopeful!! | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vennela | 
		  
		    
			  
				 Posted: Mon Apr 24, 2006 8:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India 
  | 
		  
		    
			  
				| You can get the time the process started using ps command | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |