Software Development Kit (SDK) and API Discussions

"API events" doesn't give expected output

NTA1201
2,995 Views

Hello all,

 

I iinstalled OnCmmand API serviceces REST APIs and I launched few commands and it seems fine but when I'm launching the events API command I don't get the expected ouptut.

Can you pls help me to identify the issue.

 

on API services:

 

curl -X GET --header 'Accept: application/json'  'https://localhost/api/1.0/ontap/clusters/9477fa42-4c5f-11e7-a1f9-00a098b54f01%3Atype%3Dcluster%2Cuuid%3D9477fa42-4c5f-11e7-a1f9-00a098b54f01/events

 

I cannot see all event, few of them only:

      • {
      •   "status": {
      •     "code": "SUCCESS"
      •   },
      •   "result": {
      •     "total_records": 3,
      •     "records": [
      •       {
      •         "key": "b1cff471-10d0-48f9-962b-cd6a14babcd1:type=event,id=143007",
      •         "status": "Some Unassigned Disks",
      •         "type": "cluster.unassigned.disks",
      •         "created_timestamp": 1519307229,
      •         "severity": "warning",
      •         "source_resource_key": "9477fa42-4c5f-11e7-a1f9-00a098b54f01:type=cluster,uuid=9477fa42-4c5f-11e7-a1f9-00a098b54f01"
      •       },
      •       {
      •         "key": "b1cff471-10d0-48f9-962b-cd6a14babcd1:type=event,id=59682",
      •         "status": "SVM Deleted",
      •         "type": "vserver.deleted",
      •         "created_timestamp": 1509104410,
      •         "severity": "information",
      •         "source_resource_key": "9477fa42-4c5f-11e7-a1f9-00a098b54f01:type=cluster,uuid=9477fa42-4c5f-11e7-a1f9-00a098b54f01"
      •       },
      •       {
      •         "key": "b1cff471-10d0-48f9-962b-cd6a14babcd1:type=event,id=146664",
      •         "status": "SVM Deleted",
      •         "type": "vserver.deleted",
      •         "created_timestamp": 1521037928,
      •         "severity": "information",
      •         "source_resource_key": "9477fa42-4c5f-11e7-a1f9-00a098b54f01:type=cluster,uuid=9477fa42-4c5f-11e7-a1f9-00a098b54f01"
      •       }
      •     ]
      •   }

}

 

 

On Netapp storage box I have following on event log:

 

::*> event log show -filter-name
    important-events     no-info-debug-events default-trap-events
    testevents

"cluster"::*> event log show -filter-name testevents
Time                Node             Severity      Event
------------------- ---------------- ------------- ---------------------------
3/16/2018 10:17:24  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_mgmt001) could not make a connection over the network to server (ip 172.31.17.2, port 445) via interface 172.31.17.27. Error: Operation timed out.
3/16/2018 10:08:47  "cluster"-02     ERROR         vserver.peering.remCallFailed: "Vserver peering command 'vserver' failed. Reason: peering. Vserver peering states might be inconsistent."
3/16/2018 07:49:49  "cluster"-01     ERROR         secd.cifsAuth.problem: vserver (svm_a1_"svm"_"svm") General CIFS authentication problem. Error: User authentication procedure failed
CIFS SMB2 Share mapping - Client Ip = 10.176.53.145
  [  0 ms] Login attempt by domain user 'FUJITSU-MGMT\APVWSPE15$' using NTLMv2 style security
  [  2001] TCP connection to ip 172.27.0.1, port 445 via interface 172.27.0.17 failed: Operation timed out.
  [  2001] Could not open a socket to '"svm"001."svm".local'
  [  2001] Unable to connect to NetLogon service on "svm"001."svm".local (Error: RESULT_ERROR_SPINCLIENT_UNABLE_TO_RESOLVE_SERVER)
  [  2002] No servers available for MS_NETLOGON, vserver: 15, domain: "svm".local.
**[  2002] FAILURE: Unable to make a connection (NetLogon:"svm".LOCAL), result: 6940
  [  2002] CIFS authentication failed
3/16/2018 07:49:49  "cluster"-01     EMERGENCY     secd.netlogon.noServers: None of the Netlogon servers configured for Vserver (svm_a1_"svm"_"svm") are currently accessible via the network.
3/16/2018 07:49:49  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 172.27.0.1, port 445) via interface 172.27.0.17. Error: Operation timed out.
3/16/2018 07:49:38  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 10.166.0.163, port 445) via interface 10.166.0.189. Error: Operation timed out.
3/16/2018 05:30:06  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 10.166.0.163, port 445) via interface 10.166.0.189. Error: Operation timed out.
3/16/2018 05:25:43  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 10.166.0.164, port 445) via interface 10.166.0.189. Error: Operation timed out.
3/16/2018 03:21:05  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 10.166.0.163, port 445) via interface 10.166.0.189. Error: Operation timed out.
3/16/2018 03:09:52  "cluster"-01     ERROR         secd.conn.auth.failure: Vserver (svm_a1_"svm"_"svm") could not make a connection over the network to server (ip 10.166.0.163, port 445) via interface 10.166.0.189. Error: Operation timed out.
3/16/2018 03:09:42  "cluster"-01     ERROR         secd.cifsAuth.problem: vserver (svm_a1_"svm"_"svm") General CIFS authentication problem. Error: User authentication procedure failed
CIFS SMB2 Share mapping - Client Ip = 10.176.53.144
  [  0 ms] Login attempt by domain user 'FUJITSU-MGMT\APVWSPE14$' using NTLMv2 style security
  [  2001] TCP connection to ip 172.27.0.1, port 445 via interface 172.27.0.17 failed: Operation timed out.
  [  2001] Could not open a socket to '"svm"001."svm".local'
  [  2001] Unable to connect to NetLogon service on "svm"001."svm".local (Error: RESULT_ERROR_SPINCLIENT_UNABLE_TO_RESOLVE_SERVER)
  [  2001] No servers available for MS_NETLOGON, vserver: 15, domain: "svm".local.
**[  2001] FAILURE: Unable to make a connection (NetLogon:"svm".LOCAL), result: 6940

 

 

3 REPLIES 3

pukale
2,977 Views

https://localhost/api/1.0/ontap/clusters/<cluster_id>/events coming from unified manager. I am assumping you have added  "OnCommand Unified Manager"  to API services. API services shows events published by UM.

 

Also, pl. note that, UM refresh cycle is every 15 min. means, UM managed events are shows after 15 min.

 

 

NTA1201
2,920 Views

Hello,

 

Yes I did. Do you mean that I have to remove OCUM from API servies and let only Nteapp storages boxes?

 

Thx.

pukale
2,781 Views

API Services shows events published by OCUM. it is not doing any filter while showing it. It means, OCUM shows selected events from ontap.

Public