 < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " I S O - 8 8 5 9 - 1 "   s t a n d a l o n e = " y e s " ? > 
 < w o r k f l o w   x m l n s = " h t t p : / / v m w a r e . c o m / v c o / w o r k f l o w "   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e "   x s i : s c h e m a L o c a t i o n = " h t t p : / / v m w a r e . c o m / v c o / w o r k f l o w   h t t p : / / v m w a r e . c o m / v c o / w o r k f l o w / W o r k f l o w - v 4 . x s d "   r o o t - n a m e = " i t e m 1 "   o b j e c t - n a m e = " w o r k f l o w : n a m e = g e n e r i c "   i d = " 7 a e c 5 6 1 a - b e 5 f - 4 a b 1 - 9 7 8 9 - c 0 2 5 2 b 3 3 f 2 8 6 "     v e r s i o n = " 0 . 1 . 0 "   a p i - v e r s i o n = " 3 . 1 . 0 "   a l l o w e d - o p e r a t i o n s = " v e f "   r e s t a r t M o d e = " 1 "   r e s u m e F r o m F a i l e d M o d e = " 0 "   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ L i s t   V S A N   H o s t   C o m p o n e n t   C o u n t ] ] > < / d i s p l a y - n a m e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ W i l l i a m   L a m 
 w w w . v i r t u a l l y g h e t t o . c o m 
 
 L i s t   V S A N   H o s t   C o m p o n e n t   C o u n t 
 W o r k f l o w   b a s e d   o f f   o f   h t t p : / / w w w . v i r t u a l l y g h e t t o . c o m / 2 0 1 4 / 0 4 / e x p l o r i n g - v s a n - a p i s - p a r t - 9 - v s a n - c o m p o n e n t - c o u n t . h t m l 
 ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 1 8 0 . 0 '   y = ' 2 0 . 0 ' / > 
 < i n p u t > < p a r a m   n a m e = ' c l u s t e r '   t y p e = ' V C : C l u s t e r C o m p u t e R e s o u r c e '   > 
 < d e s c r i p t i o n > < ! [ C D A T A [ V S A N   C l u s t e r ] ] > < / d e s c r i p t i o n > 
 < / p a r a m > 
 < / i n p u t > < o u t p u t > < p a r a m   n a m e = ' s t r i n g R e s u l t s '   t y p e = ' s t r i n g '   > 
 < d e s c r i p t i o n > < ! [ C D A T A [ A n   a r r a y   o f   c o m p o n e n t   h o s t   c o u n t ] ] > < / d e s c r i p t i o n > 
 < / p a r a m > 
 < / o u t p u t > < w o r k f l o w - i t e m   n a m e = ' i t e m 1 '   o u t - n a m e = ' i t e m 2 '   t y p e = ' t a s k '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ G e t   V S A N   h o s t   c o m p o n e n t ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ S y s t e m . l o g ( " C o n n e c t i n g   t o   "   +   c l u s t e r . n a m e   +   " \ n " ) ; 
 
 s t r i n g R e s u l t s   =   " " 
 h o s t s   =   c l u s t e r . h o s t ; 
 f o r   e a c h ( h o s t   i n   h o s t s )   { 
 	 v a r   v s a n S y s   =   h o s t . c o n f i g M a n a g e r . v s a n S y s t e m ; 
 	 v a r   v s a n I n t S y s   =   h o s t . c o n f i g M a n a g e r . v s a n I n t e r n a l S y s t e m ; 
 
 	 g e t _ v s a n _ c o m p o n e n t _ i n f o ( v s a n S y s , v s a n I n t S y s , h o s t ) ; 
 } 
 
 f u n c t i o n   g e t _ v s a n _ c o m p o n e n t _ i n f o ( v s a n S y s , v s a n I n t S y s , h o s t )   { 
 	 v a r   p r o p s   =   [ " l s o m _ o b j e c t s _ c o u n t " , " o w n e r " ] ; 
 	 v a r   r e s u l t s   =   v s a n I n t S y s . q u e r y P h y s i c a l V s a n D i s k s ( p r o p s ) ; 
 	 v a r   v s a n S t a t u s   =   v s a n S y s . q u e r y H o s t S t a t u s ( ) ; 
 
 	 v a r   d e c o d e d J s o n   =   J S O N . p a r s e ( r e s u l t s ) ; 
 	 
 	 c o m p o n e n t _ c o u n t   =   0 
 	 f o r   ( v a r   k e y   i n   d e c o d e d J s o n )   { 
 	 	 / /   e n s u r e   c o m p o n e n t   i s   o w n e d   b y   E S X i   h o s t 
 	 	 i f ( d e c o d e d J s o n [ k e y ] [ ' o w n e r ' ]   = =   v s a n S t a t u s . n o d e U u i d )   { 
 	 	 	 c o m p o n e n t _ c o u n t   + =   d e c o d e d J s o n [ k e y ] [ ' l s o m _ o b j e c t s _ c o u n t ' ] 
 	 	 } 
 	 } 
 	 S y s t e m . l o g ( " V S A N   C o m p o n e n t   c o u n t   f o r   "   +   h o s t . n a m e   +   "   =   "   +   c o m p o n e n t _ c o u n t ) ; 
 	 s t r i n g R e s u l t s   + =   h o s t . n a m e   +   "   h a s   "   +   c o m p o n e n t _ c o u n t   +   "   c o m p o n e n t s \ n " ; 
 } 
 ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' c l u s t e r '   t y p e = ' V C : C l u s t e r C o m p u t e R e s o u r c e '   e x p o r t - n a m e = " c l u s t e r "   > < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' s t r i n g R e s u l t s '   t y p e = ' s t r i n g '   e x p o r t - n a m e = " s t r i n g R e s u l t s "   > < / b i n d > 
 < / o u t - b i n d i n g > < p o s i t i o n   x = ' 1 4 5 . 0 '   y = ' 1 2 8 . 6 3 6 3 6 3 6 3 6 3 6 3 6 3 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 2 '   t y p e = ' e n d '   e n d - m o d e = ' 0 '   > 
 < p o s i t i o n   x = ' 1 8 0 . 0 '   y = ' 2 3 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < p r e s e n t a t i o n > 
 < p - s t e p > 
 < t i t l e > < ! [ C D A T A [ L i s t   V S A N   h o s t   c o m p o n e n t   c o u n t ] ] > < / t i t l e > 
 < p - g r o u p > 
 < t i t l e > < ! [ C D A T A [ S e l e c t   a   C l u s t e r ] ] > < / t i t l e > 
 < d e s c > < ! [ C D A T A [ S e l e c t   a   V S A N   C l u s t e r ] ] > < / d e s c > 
 < p - p a r a m   n a m e = " c l u s t e r " > < d e s c > < ! [ C D A T A [ C l u s t e r ] ] > < / d e s c > 
 < p - q u a l   k i n d = " s t a t i c "   n a m e = " m a n d a t o r y "   t y p e = " b o o l e a n "   > < ! [ C D A T A [ t r u e ] ] > < / p - q u a l > < p - q u a l   k i n d = " s t a t i c "   n a m e = " s h o w - s e l e c t - a s "   t y p e = " s t r i n g "   > < ! [ C D A T A [ l i s t ] ] > < / p - q u a l > < / p - p a r a m > 
 < / p - g r o u p > 
 < / p - s t e p > 
 < / p r e s e n t a t i o n > < / w o r k f l o w >