mirror of
				https://github.com/opennetworkinglab/onos.git
				synced 2025-11-04 02:01:11 +01:00 
			
		
		
		
	Added a tool to monitor health of the STC warden lab setup.
Change-Id: Ic5cd59bb9db39acaa08c67bdc47814e1a5722471
This commit is contained in:
		
							parent
							
								
									841cf2f49e
								
							
						
					
					
						commit
						cba486a7aa
					
				
							
								
								
									
										17
									
								
								tools/test/bin/stc-warden
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								tools/test/bin/stc-warden
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#-------------------------------------------------------------------------------
 | 
			
		||||
# Utility to view status of the cell warden and cell slaves
 | 
			
		||||
#-------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
echo "========================================================"
 | 
			
		||||
status=$(ssh sdn@$CELL_WARDEN ps -ef | grep warden | grep -v grep)
 | 
			
		||||
let ok=$?
 | 
			
		||||
[ $ok -eq 0 ] && echo "Warden is running" || echo "Warden is stopped"
 | 
			
		||||
echo $status
 | 
			
		||||
for slave in $CELL_SLAVES; do
 | 
			
		||||
    echo "========================================================"
 | 
			
		||||
    echo "$slave:"
 | 
			
		||||
    ssh sdn@$slave sudo lxc-ls --fancy
 | 
			
		||||
    let ok=ok+$?
 | 
			
		||||
done
 | 
			
		||||
exit $ok
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user