02-03-2021 08:02 PM
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
02-24-2021 06:15 PM
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
02-04-2021 01:06 PM
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
Do i need do do anything else?
Regards,
Jose chaves
02-04-2021 10:39 AM
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.
02-04-2021 09:25 AM
Hi,
I getting an error in the mutation, can you help me?
mutation{
network{
configureDevice(input: {
deviceConfig: {
portConfig: {
portConfigs: {
enableCollection: true
}
}
}
}
)
}
}
Regards,
Jose Chaves