Is there a way to get OCUM to perform an inventory poll on demand either via the GUI or CLI? We currently use WFA to provision or recreate volumes however I have run into issues when performing the following workflow:
Delete the existing volume (say it is on aggr0, it is empty and I want to recreate it on aggr1)
Recreate the aforementioned volume on aggr1 on the same controller with the same name using WFA
WFA will fail because OCUM still shows that the original volume exists unless I wait for OCUM's inventory to refresh (which takes a while).
It is possible in OCUM GUI to start an "Refresh Monitoring Sample" on Aggregats or Volumes. Go to "NetApp Management Console" -> Storage -> Volumes and click "Refresh Monitoring Sample". You could also shorten the the dfm option "fsMonInterval" but this is not recommended from NetApp. The default are 15 minutes.
There is the dfm-object-refresh API that will refresh all or specified monitors. Last refresh can be monitor with the dfm-monitor-timestamp-list API. The code invokes dfm-object-refresh, then can periodically invoke dfm-monitor-timestamp-list and check the last time refreshed. What I do is invoke dfm-monitor-timestamp-list, store the timestamp; invoke dfm-object-refresh, and then invoke dfm-monitor-timestamp-list at 5 second intervals for a changed timestamp. If you're checking for volumes for example, you can do a volume-list-info-iter-[start/next/end] and check for the desired object.