Hello,
When a HMC device is configured when active = false and the user makes a reload conf or iniitialize the agent, the status of the device is set up as:
| Parameter |
Value |
| Active |
false |
| Connected |
true |
When the user wants to activate the device, the following code section is reached:
|
case "enabled": |
|
status := val.Data.(bool) |
|
b.rtData.Lock() |
|
b.DeviceActive = status |
|
b.Infof("device STATUS ACTIVE [%t] ", status) |
|
b.rtData.Unlock() |
And it tries to retrieve data on the following state:
| Parameter |
Value |
| Active |
true |
| Connected |
true |
As it seems the device connected = true it doesn't scan the devices and it won't do it until the PendingLoops reaches 0
The following log shows the errors:
time="2018-03-09 12:54:13" level=info msg="[*hmc.HMCServer] [Test_HMC]Received Message...enabled: true"
time="2018-03-09 12:54:13" level=info msg="[*hmc.HMCServer] [Test_HMC]device STATUS ACTIVE [true] "
time="2018-03-09 12:54:54" level=info msg="[*hmc.HMCServer] [Test_HMC]Init gather cycle for device Test_HMC"
time="2018-03-09 12:54:54" level=error msg="[*hmc.HMCServer] [Test_HMC]Error in import Data to HMC Test_HMC: ERROR: Any Scanned SM/LPAR devices detected"
time="2018-03-09 12:54:54" level=debug msg="[*hmc.HMCServer] [Test_HMC]Check HMC Connectivity: Nothing to do in the HMCSERVER"
time="2018-03-09 12:54:54" level=info msg="STATS HMC : polling took [0.000000 seconds] "
time="2018-03-09 12:54:54" level=info msg="STATS HMC: last scan send took [0.000000 seconds]"
time="2018-03-09 12:54:54" level=info msg="STATS INFLUX: influx send took [0.000000 seconds]"
Hello,
When a HMC device is configured when active = false and the user makes a reload conf or iniitialize the agent, the status of the device is set up as:
When the user wants to activate the device, the following code section is reached:
pSeriesCollector/pkg/agent/devices/base.go
Lines 362 to 367 in 654cb9a
And it tries to retrieve data on the following state:
As it seems the
device connected = trueit doesn't scan the devices and it won't do it until thePendingLoops reaches 0The following log shows the errors: