How to clear a DEGRADED resource status with $RMSTSET?
search cancel

How to clear a DEGRADED resource status with $RMSTSET?

book

Article ID: 9678

calendar_today

Updated On:

Products

NetMaster Network Automation SOLVE NetMaster Network Management for SNA NetMaster Network Management for TCP/IP NetMaster File Transfer Management

Issue/Introduction

If you are using the procedure $RMSTSET (GENERAL PURPOSE PROCEDURE TO SET A STATUS) to set resource states, you will need to treat DEGRADED differently.



Resolution

If you are using the procedure $RMSTSET (GENERAL PURPOSE PROCEDURE TO SET A STATUS) to set resource states,

you will need to treat DEGRADED differently.

 

In order to clear a DEGRADED status by using $RMSTSET, you will have to use a STATUS of RECOVERED.

The syntax is $RMSTSET CLASS=<resource-class> NAME=<resource-name STATUS=RECOVERED

The command would look like - $RMSTSET CLASS=USRCLS NAME=TEST STATUS=RECOVERED

 

For example - In the below example the Resource TEST is currently in a Actual State of DEGRADED.

 

      ---------------- Resource Monitor : Filter(USRCLS) --------------    

 Command ===>                                                   Scroll ===> CSR     

                      S=Status L=Transient Log D=Display DB=Database ?=List Cmds    

     System   Class       Resource           Desired    Actual          Mode          Logical          Ovr    

     AAAA     LOGICAL  TEST                ACTIVE   DEGRADED   MANUAL     ATTENTION   G    

     **END**                                                                        

 

If the following command is issued - 

$RMSTSET CLASS=USRCLS NAME=TEST STATUS=recovered 

 

Now the Resource Status is set to ACTIVE.

 

-  --------------- Resource Monitor : Filter(USRCLS) --------------  

Command ===>                                                   Scroll ===> CSR   

                     S=Status L=Transient Log D=Display DB=Database ?=List Cmds  

    System   Class        Resource           Desired    Actual     Mode          Logical     Ovr  

    AAAA      LOGICAL  TEST                ACTIVE   ACTIVE     MANUAL     OK          G  

    **END**