Vous êtes sur la page 1sur 4

Introduction

T h i s d o c u m e n t p r o v i d e s s t e p s t o v e r i f y t h e F A N s t a t u s .

Notes –
1 . T e s t c o m m a n d s a r e s u p p o r t e d f r o m 1 5 . 2 ( 2 ) S N H I O S .

2 . T h i s s c r i p t i s m e a n t f o r 1 G P I D .

3
. S c r i p t t a k e s a p p r o x i m a t e l y 6 m i n u t e s .

Pre-Checks before running script


1 - a k e s u r e y o u a r e r e c e i v i n g t h e e n v i r o n m e n t d a t a :

Router#show environment

Power Supply Status:

12AV Supply:+12.087 V Normal

1.5V Supply:+1.514 V Normal

12BV Supply:+12.087 V Normal

2.5V Supply:+2.516 V Normal

1.05V Supply:+1.064 V Normal

1.2V Supply:+1.201 V Normal

1.8V Supply:+1.830 V Normal

Fan Status:

Fan 1 Operation: Normal, is running at 33 percent speed

Fan 2 Operation: Normal, is running at 33 percent speed

Alert settings:

Board temperature warning: Enabled Threshold: 80 (high) -40 (low) DegC

Board Temperature: Normal

Board temperature = 49 (C), Normal

Environmental monitor experienced the following events:

SeqNum Event State Time

1 : Environmental monitor : "started " at 16:03:26 UTC Wed Apr 15 2015.


EEM Script:
no event manager applet TEST_FAN

event manager applet TEST_FAN

event none maxrun 10000

action 1.0 syslog msg "EEM applet initiated for TEST_FAN"

action 1.1 wait 5

action 1.2 cli command "enable"

action 1.3 cli command "debug event manager action cli"

action 1.4 cli command "show mcu fan 1 speed"

action 1.5 cli command "show mcu fan 2 speed"

action 1.6 cli command "no debug event manager action cli"

action 1.7 cli command "test mcu fan start"

action 1.8 cli command "test mcu fan start"

action 1.9 cli command "test mcu fan 1 speed 15"

action 2.0 cli command "test mcu fan 1 speed 15"

action 2.1 cli command "test mcu fan 2 speed 15"

action 2.2 cli command "test mcu fan 2 speed 15"

action 2.3 wait 180

action 2.4 cli command "debug event manager action cli"

action 2.5 cli command "show mcu fan 1 speed"

action 2.6 cli command "show mcu fan 1 speed"

action 2.7 cli command "show mcu fan 2 speed"

action 2.8 cli command "show mcu fan 2 speed"

action 2.9 cli command "no debug event manager action cli"

action 3.0 cli command "test mcu fan stop"

action 3.1 cli command "test mcu fan stop"

action 3.2 wait 180

action 3.3 cli command "debug event manager action cli"

action 3.4 cli command "show mcu fan 1 speed"

action 3.5 cli command "show mcu fan 2 speed"

action 3.6 cli command "no debug event manager action cli"

action 3.7 syslog msg "EEM applet terminated for TEST_FAN"

exit

end
Steps –
B a s i c a l l y s c r i p t d o e s ,

1 . P r i n t s t h e c u r r e n t F a n s p e e d .

2 . F o r c e f u l l y c h a n g e s t h e f a n ’ s d u t y c y c l e t o 1 0 0 % b y e n a b l i n g t e s t c o m m a n d .

3 3
. a i t s f o r m i n u t e s a n d p r i n t s t h e F a n s p e e d , d i s a b l e s t h e t e s t c o m m a n d .

3
4 . a i t s f o r t h e m i n u t e s a n d p r i n t s t h e F a n s p e e d .

H e r e a r e t h e s t e p s a n d g u i d e l i n e s t o a n a l y z e t h e o u t p u t .

1 . o p y p a s t e t h e s c r i p t [ p r o v i d e d i n t h e a b o v e s e c t i o n ] i n t h e c o n f i g t e r m i n a l .

2 . x e c u t e t h e s c r i p t b y g i v i n g “ e v e n t m a n a g e r r u n T S T _ F A N ” c o m m a n d i n I O S p r o m p t .

E E

B e l o w a r e t h e s a m p l e l o g s f r o m t h e d e v i c e a f t e r r u n n i n g t h e s c r i p t . I n i t i a l l y F a n d u t y c y c l e w a s

3 3 3
% a n d a f t e r r u n n i n g t h e s c r i p t i t g e t s c h a n g e d t o 1 0 0 % a n d a f t e r m i n u t e s F a n d u t y c y c l e

3 3
c a m e b a c k t o i n i t i a l c o n d i t i o n i . e % h e r e .

Router# event manager run TEST_FAN

*Apr 15 16:07:14.939: %HA_EM-6-LOG: TEST_FAN: EEM applet initiated for TEST_FAN


*Apr 15 16:07:20.023: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Debug EEM action cli debugging is
on
*Apr 15 16:07:20.023: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:07:20.027: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 1 speed
*Apr 15 16:07:20.075: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 1 is running at 33 percent speed
*Apr 15 16:07:20.075: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:07:20.075: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 2 speed
*Apr 15 16:07:20.119: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 2 is running at 33 percent speed
*Apr 15 16:07:20.119: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:07:20.119: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#no debug event manager action
cli
Router#
*Apr 15 16:09:43.475: %ENVM-6-BOARD_TEMP: Board Temperature: 32 Degc
*Apr 15 16:09:43.475: %ENVM-6-FAN_SPEED: Fan1 Speed: 100 percent
*Apr 15 16:09:43.475: %ENVM-6-BOARD_TEMP: Board Temperature: 32 Degc
*Apr 15 16:09:43.475: %ENVM-6-FAN_SPEED: Fan2 Speed: 100 percent
*Apr 15 16:10:21.375: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Debug EEM action cli debugging is
on
*Apr 15 16:10:21.375: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:10:21.379: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 1 speed
*Apr 15 16:10:21.415: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 1 is running at 100 percent
speed
*Apr 15 16:10:21.415: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:10:21.419: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 1 speed
*Apr 15 16:10:21.455: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 1 is running at 100 percent
speed
*Apr 15 16:10:21.459: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:10:21.459: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 2 speed
*Apr 15 16:10:21.495: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 2 is running at 100 percent
speed
*Apr 15 16:10:21.495: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:10:21.499: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 2 speed
*Apr 15 16:10:21.535: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 2 is running at 100 percent
speed
*Apr 15 16:10:21.535: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:10:21.539: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#no debug event manager action
cli
*Apr 15 16:13:22.443: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Debug EEM action cli debugging is
on
*Apr 15 16:13:22.443: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:13:22.443: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 1 speed
*Apr 15 16:13:22.479: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 1 is running at 33 percent speed
*Apr 15 16:13:22.479: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:13:22.483: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#show mcu fan 2 speed
*Apr 15 16:13:22.623: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Fan 2 is running at 33 percent speed
*Apr 15 16:13:22.623: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : OUT : Router#
*Apr 15 16:13:22.623: %HA_EM-6-LOG: TEST_FAN : DEBUG(cli_lib) : : IN : Router#no debug event manager action
cli
*Apr 15 16:13:22.763: %HA_EM-6-LOG: TEST_FAN: EEM applet terminated for TEST_FAN

E n d o f D o c u m e n t

- -