Community Related Discussions

Need help for ONTAP ZTP (Zero Touch Provisioning)

PengZ
439 Views

I am trying to set up ZTP (Zero Touch Provisioning) For AFF250 following https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Zero-Touch-Provisioning/td-p/144223, I can assign the IPs to mgmt_auto LIF for both nodes using DHCP, I assigned 10.0.0.91 to node1 and 10.0.0.92 to node2 and choose 10.0.0.23 as cluster mgmt IP. I created a json file file.json with content:

 

{
"name": "aa-stge-clus-01",
"location": "CL4",
"dns_domains": [
"example.com"
],
"name_servers": [
"10.0.0.33"
],
"ntp_servers": [
"10.0.0.33"
],
"management_interface": {
"ip": {
"address": "10.0.0.23",
"netmask": "255.255.255.0",
"gateway": "10.0.0.1"
}
},
"password": "Netapp1!",
"nodes": [
{
"cluster_interface": {
"ip": {
"address": "169.254.1.1"
}
},
"name": "aa-aa-stge01-01",
"management_interface": {
"ip": {
"address": "10.0.0.91"
}
}
},
{
"cluster_interface": {
"ip": {
"address": "169.254.1.2"
}
},
"name": "aa-aa-stge01-02",
"management_interface": {
"ip": {
"address": "10.0.0.92"
}
}
}
]
}

 

And run the command: curl --user admin: -X POST 'https://10.0.0.91/api/cluster?keep_precluster_config=true' -H 'accept: application/hal+json' -d @./files.json --insecure It only changed admin password for node1 I also tried: curl --user admin: -X POST 'https://10.0.0.91/api/cluster' -H 'accept: application/hal+json' -d @./files.json --insecure Based on Creating the cluster from. https://docs.netapp.com/us-en/ontap-restapi/ontap/cluster_endpoint_overview.html#discovering-the-nodes I will also only change the password for the node1. When I tried to ssh, I have to enable ssh for admin by the following command through console security login create -user-or-group-name admin -application ssh -authentication-method password -role admin How can I create the cluster after I assign IPs through DHCP and enable ssh for admin account through REST API (without console)?

 

 

1 REPLY 1

PengZ
319 Views

Does anyone have any idea what I can try?

Public