You can also enable remost access so that you can view the logs from http.
This is very useful.
To
enable the web services for a cluster, use these steps
from the KB article mentioned above:
1.
Enable the required Web services for the cluster:
cluster-1::> vserver
services web modify -name spi|ontapi|compat -vserver *
-enabled true
2.
Create the Web service access service spi for the cluster and assign it the admin
role:
cluster-1::> vserver
services web access create -name spi
-role admin -vserver
cluster1
3.
Create the Web service access service ontapi for the cluster and assign it the admin
role:
cluster-1::> vserver
services web access create -name ontapi
-role admin -vserver
cluster1
Note: This error will be returned
for the admin role, as it is pre-created on cluster create. This error will not
be returned if a different role name that is not pre-created is provided.
Error:
command failed: duplicate entry
4.
Create the Web service access service compat for the cluster and assign it the
admin role:
cluster-1::>
vserver
services web access create -name compat
-role admin -vserver
cluster1
5.
Identify the cluster-mgmt LIF for the cluster. This will be
used for HTTPS access. A node-mgmt LIF can also be used instead of
the cluster-mgmt LIF:
cluster-1::*>
net int
show -role cluster-mgmt
-fields address
(network interface show)
vserver
lif
address
-------- -----------
-----------
cluster-1
clus_mgmt
10.98.243.120
6. Identify the names of the nodes
in the cluster:
cluster-1:>
node show -fields node
node
----------
cluster1-01
cluster1-02
Cluster1-03
Cluster1-04
4 entries were
displayed.
6.
Add the login to allow http access.
cluster1::>
login create -username admin -application http -authmethod
password
cluster1::> login show -username admin
-application http
(security login show)
Authentication
Acct
Vserver
UserName
Application Method Role
Name Locked
----------- ---------------- -----------
-------------- ---------------- ------
cluster1 admin
http
password admin
no
The
following URLs will provide access to the log directory on each node:
https://<cluster-mgmt-ip>/spi/<node_name>/etc/log/
The
following URLs will provide access to the directory where the core files are
saved on each node:
https://<cluster-mgmt-ip>/spi/<node_name>/etc/crash/