IMA_SetStatisticsCollection - Enables or disables statistics collection for a PHBA's physical network ports, for a target, or for a target's logical units
cc [ flag... ] file... -lima [ library... ] #include <ima.h> IMA_STATUS IMA_SetStatisticsCollection( /* in */ IMA_OID oid, /* in */ IMA_BOOL enableStatisticsCollection );
The object ID of the physical host bus adapter (PHBA) , target, or logical unit whose statistics collection setting is being modified.
Set to the value, IMA_TRUE if statistics collection is being enabled for the specified object.
Set to the value, IMA_FALSE if statistics collection is being disabled for the specified object.
The IMA_SetStatisticsCollection() API enables or disables statistics collection for a PHBA's physical network ports, for a target, or for a target's logical units.
Returned if a reboot is necessary before the setting of statistics collection takes effect
Returned if the oid argument does not support enabling or disabling of statistics collection
Returned if the oid argument does not specify a valid object type
Returned if the oid argument does not specify a PHBA or target object
Returned if the oid argument does not specify a PHBA or target known to the system
See attributes(7) for descriptions of the following attributes:
|
libima(3LIB), attributes(7), IMA_GetDeviceStatistics(3IMA), IMA_GetStatisticsProperties(3IMA), IMA_GetTargetErrorStatistics(3IMA)