View and change IP Polling and Thresholds values via command line (CLI)
search cancel

View and change IP Polling and Thresholds values via command line (CLI)

book

Article ID: 315862

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How to view and change Smarts IP Polling and Thresholds values via command line.

Environment

SMARTS - 10.1.x

Resolution

How to manually view and change Smarts IP Polling and Thresholds values:


The following sections of this Fix statement provide examples that show how to manually view and change Smarts IP Polling and Thresholds values.

 IMPORTANT! If you change any polling and threshold setting, you must run the Smarts reconfigure command to apply the change in your environment.

  • To list all the Smarts IP Polling and Threshold groups:
    <BASEDIR>/IP/smarts/bin/dmctl -s <AMPM domain> getI ICF_Configuration

 

  • To display the polling setting for a Router:
    <BASEDIR>/IP/smarts/bin/dmctl -s <AMPM domain> get ICF_Configuration::\"CFG-Polling Groups/Routers\"::ComposedOf

 

  • To show the Environment Polling Settings:
    <BASEDIR>/IP/smarts/bin/dmctl -s INCHARGE-AM-PM get System_EnvironmentPolling_Setting::\"SET-CFG-Polling Groups/Routers/System_EnvironmentPolling_Setting\"

Properties of System_EnvironmentPolling_Setting::SET-CFG-Polling Groups/Routers/System_EnvironmentPolling_Setting:
            AnalysisMode = ENABLED
       CreationClassName = System_EnvironmentPolling_Setting
             Description =
             DisplayName = Environment Polling
    InstrumentationClass =
               IsEnabled = TRUE
                    Name = SET-CFG-Polling Groups/Routers/System_EnvironmentPolling_Setting
                  PartOf = { Configuration::CFG-Polling Groups/Routers }
         PollingInterval = 240
                 Retries = 3
                 RuleSet = health/env-setting.asl
             ServiceName =
        SettingAppliedBy =
          SettingFeature =
              SettingKey = System_EnvironmentPolling_Setting
             TargetClass = ICIM_UnitaryComputerSystem
                 Timeout = 700
                    Type = POLLING

  • To display the Processor and Memory threshold for Router:
    <BASEDIR>/IP/smarts/bin/dmctl -s INCHARGE-AM-PM get Processor_Performance_Setting::\"SET-CFG-System Resource Groups/Routers/Processor_Performance_Setting\"

Properties of Processor_Performance_Setting::SET-CFG-System Resource Groups/Routers/Processor_Performance_Setting:
       BackplaneUtilizationThreshold = 80
                   CreationClassName = Processor_Performance_Setting
                         Description =
                         DisplayName = Processor and Memory
                 FreeMemoryThreshold = 15
                           IsEnabled = TRUE
           MemoryBufferMissThreshold = 10
    MemoryBufferUtilizationThreshold = 90
        MemoryFragmentationThreshold = 5
                                Name = SET-CFG-System Resource Groups/Routers/Processor_Performance_Setting
                              PartOf = { Configuration::CFG-System Resource Groups/Routers }
       ProcessorUtilizationThreshold = 90
                         ServiceName =
                      SettingFeature =
                          SettingKey = Processor_Performance_Setting
                         TargetClass = ICIM_UnitaryComputerSystem
                                Type = THRESHOLD

  • To change the FreeMemoryThreshold for Router:
    <BASEDIR>/IP/smarts/bin/dmctl -s INCHARGE-AM-PM put Processor_Performance_Setting::\"SET-CFG-System Resource Groups/Routers/Processor_Performance_Setting\"::FreeMemoryThreshold 30
  • Below are the dmctl commands to change the Threshold value for interface groups via the command line:
     
    • The below command is used to list all the Smarts IP Polling and Threshold groups:
       
      ./dmctl -s <domain> getI ICF_Configuration
       
    • After getting the group the interface/interfaces belong to use the command below to display the polling setting for the interfaces:
       
      ./dmctl -s <domain> get ICF_Configuration::\"CFG-Interface Groups/<Name of Interface group>\"::ComposedOf
       \
    • Then use the command below to get the Threshold value:
       
      ./dmctl -s <domain> get <output of above ComposedOf>::\"SET-CFG-Interface Groups/<Name of Interface group>/<output of above ComposedOf>\"::<Threshold>
       
    • After you can change the value by using the command below:
       
      ./dmctl -s <domain> put <output of above ComposedOf>::\"SET-CFG-Interface Groups/<Name of interface group>/<output of above ComposedOf\"::<Threshold to change> <value>
       

         NOTE: After running the command above to change the value you will then need to reconfigure the domain for the changes to take place.