<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't add a cluster in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115668#M20569</link>
    <description>&lt;P&gt;I quickly created this powershell script to reissue expired or expiring certificates after one of my customers had several clusters with expired certs. &amp;nbsp;Just script out the connections to the clusters and have it call this function once connected and it will push out all the expiration dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#REQUIRES -Version 4.0 -Modules DATAONTAP
function update-netappCertificates{
&amp;lt;#
.SYNOPSIS
	Checks the certificates on a cluster and replaces them if they have expired or expire within N years.

.DESCRIPTION
	Checks the certificates on a cluster and replaces them if they have expired or expire within N years.

.EXAMPLE
    update-netappCertificates -Years 2

.PARAMETER Years
	
.LINK 
    Connect-NcController

.LINK 
    Get-NcSecurityCertificate

.LINK 
    New-NcSecurityCertificate

.LINK 
    Remove-NcSecurityCertificate

#&amp;gt;

	[CmdletBinding()]
	param(
		[Parameter(Mandatory=$True,
		    ValueFromPipeline=$False)]
		    [int]$Years
	)

	BEGIN {
        $ErrorActionPreference = 'stop'
        $today = Get-Date
        $date = $today.AddYears($Years)
        $days = 3644

        Write-verbose "Today is $today"
        Write-verbose "Looking for certificates before $date"
    }
	PROCESS {
        $certificates = Get-NcSecurityCertificate
        
        
        foreach($certificate in $certificates){
            
            if($certificate.expirationDateDT -le $date){
                
                try{
                    
                    New-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -Type $certificate.Type -Size $certificate.Size -Country $certificate.Country -ExpireDays $days -HashFunction $certificate.HashFunction -Confirm:$false
                    Remove-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -SerialNumber $certificate.SerialNumber -Type $certificate.Type -CertificateAuthority $certificate.CertificateAuthority -Confirm:$false

                }
                catch {
                    write-debug "error"
                    write-error "something happened"
                    write-error $_
                    
                }

                $newcert = Get-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -Type $certificate.Type -Size $certificate.Size

                if($newcert){

                    Set-NcSecuritySsl -Vserver $certificate.Vserver -CertificateAuthority $newcert.CertificateAuthority -CertificateSerialNumber $newcert.SerialNumber -EnableClientAuthentication $false -EnableServerAuthentication $true -Confirm:$false | Out-Null
                    
                    write-host "$($certificate.CommonName) on $($certificate.Vserver) serial number $($certificate.SerialNumber) has been replaced by $($newcert.SerialNumber) which will expire $($newcert.ExpirationDateDT)"
                    write-verbose "Certificate $($certificate.CommonName) from vserver $($certificate.Vserver) with expiration of $($certificate.ExpirationDateDT) and serial $($certificate.SerialNumber) has been updated to $($newcert.expirationDateDT) and Serial Number of $($newcert.SerialNumber)"
                    
                }
            }
        
        }

    }
	END {

        

    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 22:19:17 GMT</pubDate>
    <dc:creator>Nick_Elliott</dc:creator>
    <dc:date>2016-02-11T22:19:17Z</dc:date>
    <item>
      <title>Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62376#M13021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just installed OCUM 6.1 and I am trying to add some clusters.&amp;nbsp; I added the first one without a problem, but when I tried to install the second one it complained that the self signed certificate had expired.&amp;nbsp; Sure enough I logged on to the cluster and the certificate was expired.&amp;nbsp; I used the following command to create a new certificate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;security certificate create -vserver add-n1-nas2 -common-name add-n1-nas2.cert -expire-days 365 -type server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I still received the error that the certificate was expired.&amp;nbsp; I figured it was still using the older certificate so I deleted the old one.&amp;nbsp; Apparently that was a mistake, because now OCUM is simply stating "Cannot establish communication to the host &amp;lt;IP&amp;gt; over SSL".&amp;nbsp; I tried disabling and enabling the "portal" and "ontapi" web services, (hoping that would restart the web server) all to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas what is going on?&amp;nbsp; And/or what to look at to figure this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 22:39:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62376#M13021</guid>
      <dc:creator>ckeith</dc:creator>
      <dc:date>2014-05-01T22:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62381#M13024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keith Cantrell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to communities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clustered dataontap ssl certificate regeneration procedure is KB'ed here.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://kb.netapp.com/support/index?page=content&amp;amp;id=S:1014389&amp;amp;actp=LIST&amp;amp;showDraft=true" target="_blank"&gt;https://kb.netapp.com/support/index?page=content&amp;amp;id=S:1014389&amp;amp;actp=LIST&amp;amp;showDraft=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow exact steps mentioned here.&lt;/P&gt;&lt;P&gt;Do let us know if the above KB isn't helping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 04:58:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62381#M13024</guid>
      <dc:creator>venkat3</dc:creator>
      <dc:date>2014-05-02T04:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62388#M13026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thank you!&amp;nbsp; Following the idea of the KB resolved the issue.&amp;nbsp; I said "Following the idea" because I assume those instructions were written for 8.1 because they are slightly different for 8.2.&amp;nbsp; Regardless, it pointed out that I had to enable the "ssl service" after I removed the certificate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 13:34:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62388#M13026</guid>
      <dc:creator>ckeith</dc:creator>
      <dc:date>2014-05-02T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62393#M13028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am glad that you are able to add cluster to ocum 6.1 now.&lt;/P&gt;&lt;P&gt;i will ask the kb team to update the kb article for 8.2 as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:57:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/62393#M13028</guid>
      <dc:creator>venkat3</dc:creator>
      <dc:date>2014-05-02T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115380#M20487</link>
      <description>&lt;P&gt;Hi Venka,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a different issue with certificate creation. I am supposed to create a certificate for our storage nodes, but when I use the create certificate commands, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command failed: cannot store certificate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what is the cause of the error but these storage nodes are not vservers, and in the KB you sent, certificate creation specifies a vserver:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; security certificate create -vserver christoh-svm1 -common-name christoh-svm1.cert -size 2048 -type server -country US -expire-days 3650 -hash-function SHA256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have an idea how can I fix this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AJ&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 03:11:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115380#M20487</guid>
      <dc:creator>AJHunt18</dc:creator>
      <dc:date>2016-02-04T03:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115667#M20568</link>
      <description>&lt;P&gt;What version of ONTAP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been able to execute your syntax on my lab cluster with no issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your common-name does not require the .cert extention. &amp;nbsp;It works but it isn't required here and really doesn't fit the below from the man page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;-common-name&amp;nbsp;&amp;lt;FQDN or Custom Common Name&amp;gt; - FQDN or Custom Common Name
This specifies the desired certificate name as a fully qualified domain name (FQDN) or custom common name or the name of a person.&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Try setting expiredays to 3644 or less. &amp;nbsp;I've seen a release that doesn't like 3690 through the ONTAPI and I assume that it would occur on the command line as well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:08:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115667#M20568</guid>
      <dc:creator>Nick_Elliott</dc:creator>
      <dc:date>2016-02-11T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115668#M20569</link>
      <description>&lt;P&gt;I quickly created this powershell script to reissue expired or expiring certificates after one of my customers had several clusters with expired certs. &amp;nbsp;Just script out the connections to the clusters and have it call this function once connected and it will push out all the expiration dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#REQUIRES -Version 4.0 -Modules DATAONTAP
function update-netappCertificates{
&amp;lt;#
.SYNOPSIS
	Checks the certificates on a cluster and replaces them if they have expired or expire within N years.

.DESCRIPTION
	Checks the certificates on a cluster and replaces them if they have expired or expire within N years.

.EXAMPLE
    update-netappCertificates -Years 2

.PARAMETER Years
	
.LINK 
    Connect-NcController

.LINK 
    Get-NcSecurityCertificate

.LINK 
    New-NcSecurityCertificate

.LINK 
    Remove-NcSecurityCertificate

#&amp;gt;

	[CmdletBinding()]
	param(
		[Parameter(Mandatory=$True,
		    ValueFromPipeline=$False)]
		    [int]$Years
	)

	BEGIN {
        $ErrorActionPreference = 'stop'
        $today = Get-Date
        $date = $today.AddYears($Years)
        $days = 3644

        Write-verbose "Today is $today"
        Write-verbose "Looking for certificates before $date"
    }
	PROCESS {
        $certificates = Get-NcSecurityCertificate
        
        
        foreach($certificate in $certificates){
            
            if($certificate.expirationDateDT -le $date){
                
                try{
                    
                    New-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -Type $certificate.Type -Size $certificate.Size -Country $certificate.Country -ExpireDays $days -HashFunction $certificate.HashFunction -Confirm:$false
                    Remove-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -SerialNumber $certificate.SerialNumber -Type $certificate.Type -CertificateAuthority $certificate.CertificateAuthority -Confirm:$false

                }
                catch {
                    write-debug "error"
                    write-error "something happened"
                    write-error $_
                    
                }

                $newcert = Get-NcSecurityCertificate -Vserver $certificate.Vserver -CommonName $certificate.CommonName -Type $certificate.Type -Size $certificate.Size

                if($newcert){

                    Set-NcSecuritySsl -Vserver $certificate.Vserver -CertificateAuthority $newcert.CertificateAuthority -CertificateSerialNumber $newcert.SerialNumber -EnableClientAuthentication $false -EnableServerAuthentication $true -Confirm:$false | Out-Null
                    
                    write-host "$($certificate.CommonName) on $($certificate.Vserver) serial number $($certificate.SerialNumber) has been replaced by $($newcert.SerialNumber) which will expire $($newcert.ExpirationDateDT)"
                    write-verbose "Certificate $($certificate.CommonName) from vserver $($certificate.Vserver) with expiration of $($certificate.ExpirationDateDT) and serial $($certificate.SerialNumber) has been updated to $($newcert.expirationDateDT) and Serial Number of $($newcert.SerialNumber)"
                    
                }
            }
        
        }

    }
	END {

        

    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:19:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115668#M20569</guid>
      <dc:creator>Nick_Elliott</dc:creator>
      <dc:date>2016-02-11T22:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115688#M20576</link>
      <description>&lt;P&gt;Hi, our ONTAP version is 8.3.1 and by the way, I have managed to fix this problem already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Node certificate is not required in ONTAP 8.3.1, cluster certificate is enough according to this KB: &lt;A href="https://kb.netapp.com/support/index?page=content&amp;amp;id=2024831&amp;amp;actp=LIST_RECENT&amp;amp;viewlocale=en_US&amp;amp;searchid=1454560353066" target="_blank"&gt;https://kb.netapp.com/support/index?page=content&amp;amp;id=2024831&amp;amp;actp=LIST_RECENT&amp;amp;viewlocale=en_US&amp;amp;searchid=1454560353066&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 09:52:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/115688#M20576</guid>
      <dc:creator>AJHunt18</dc:creator>
      <dc:date>2016-02-12T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add a cluster</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/157794#M27868</link>
      <description>&lt;P&gt;Guys do we have the link that works for that KB - i can't see it and have a similar issue&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:03:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Can-t-add-a-cluster/m-p/157794#M27868</guid>
      <dc:creator>BurnsideA</dc:creator>
      <dc:date>2020-07-16T11:03:35Z</dc:date>
    </item>
  </channel>
</rss>

