cancel
Showing results for 
Search instead for 
Did you mean: 

Enable port statistic collection

Enable port statistic collection

Jose_Chaves
New Contributor II

Hi,

 

I want to enable port statistics collection on all port.

Wen the devices ware add to the XMC the option of enable collection was not selected.

Now I want to enable it. the problem is that I have 39.000 ports.

 

Is there a way of doing it massively.

 

I try to select a group of devices then more views > interfaces, apply filter for “ethernetCsmacd” and do collect port statistics. But just 200 port get statistics enabled, the others don’t. Then I have to do all over again.

 

Is there a simple way, by script, python, workflow or NBI for example.

 

I was trying to avoid delete and discover 1100 devices.

 

Regards,

Jose Chaves

5 REPLIES 5

Markus_Nikulski
Extreme Employee

Hi Jose,

is a reason why is not enabled by default, because is a lot of monitoring effort for XMC to collect data from tons of ports. It should be enabled by default for all interswitch links. To enable additional port statistics you can simply select multiple interface and enable it. You may using the sorting to select only port which are up.

Why the NBI call not doing the work is because you have to define the mutationType in addition like this

 

mutation {
  network {
    configureDevice(
      input: {
        deviceConfig: {
          ipAddress: "20.0.209.32", 
          portConfig: {
            mutationType: UPDATE, 
            portConfigs: {
              name: "1/1", 
              enableCollection: true
            }
          }
        }
      }
    ) {
      message
      status
    }
  }
}

 

Thx

Markus

Jose_Chaves
New Contributor II

Hi,

 

I have try the mutation and it work.

If I do a query before and after I can see the difference.

"ports": [
            {
              "enableCollection": false,
              "portName": "1/1"
            },

 

→ run mutation

 

"ports": [
            {
              "enableCollection": true,
              "portName": "1/1"
            },

 

But in the web interface the port shows the stat as disable even after a rediscover of the device

2a5550f74cc0443fb7e478943280924a_8674a658-3d2a-4ff3-8ab9-1f71293866c3.png

 

Do i need do do anything else?

 

Regards,

Jose chaves

StephanH
Valued Contributor III

Hello Jose,

 

mutation {
  network {
    configureDevice(input: {deviceConfig: {ipAddress: "1.1.1.1", portConfig: {portConfigs: {name: "1:1", enableCollection: true}}}}) {
      clientSessionId
      errorCode
      message
      operationId
      siteLocation
      status
    }
  }
}
 

Should work but I can't test that at the moment.

Regards Stephan

Jose_Chaves
New Contributor II

Hi,

 

I getting an error in the mutation, can you help me?

 

mutation{
  network{
    configureDevice(input: {
      deviceConfig: {
        portConfig: {
          portConfigs: {
            enableCollection: true
          }
        }
      }
    }
    )
  }
}

 

Regards,

Jose Chaves

GTM-P2G8KFN