Category Archives: ONTAP

Configuring a NetApp Branded CN1610 ClusterNet Switch (FASTPATH 1.2.0.7 / RCF 1.2)

NetApp has lots Knowledge Base articles to help configure these switches. I wanted to put a blog post together that arranges all info in one place that is easy to read. As delivered, the switch login is “admin” with an empty password (just hit enter!)

First, we need to get the switch on the network. Connect to the serial port (9800/N/8/1).

Login with username admin followed by “enter” twice (no password yet).

Enter privileged mode by typing “enable” followed by “enter” twice (no password yet).

Setup the “Service” port:

serviceport ip

Example:

(CN1610) #serviceport ip 192.168.99.10 255.255.255.0 192.168.99.1

Verify the service port:

(CN1610) #show serviceport
Interface Status............................... Up
IP Address..................................... 192.168.99.10
Subnet Mask.................................... 255.255.255.0
Default Gateway................................ 192.168.99.1
IPv6 Administrative Mode....................... Enabled
IPv6 Prefix is ................................ <masked>
Configured IPv4 Protocol....................... None
Configured IPv6 Protocol....................... None
IPv6 AutoConfig Mode........................... Disabled
Burned In MAC Address.......................... <masked>

Ping the Gateway:

(CN1610) #ping 192.168.99.1

More than likely, you will need to update the FASTPATH code. To do that you need a SCP or TFTP server(see another post about this).

It is best to copy the current running firmware to the backup on the switch (although, if needed, the software can be downloaded from the NetApp Support Page for the CN1610:

(CN1610) #copy active backup

You will need to confirm by pressing “y” and nothing else. Once that finishes, copy the image from your TFTP server to the active image:

(CN1610) #copy tftp:///image.stk active

The current images are 1.2.0.7 (with RCF 1.2) and 1.1.0.8 (with RCF 1.1)  located at on this NetApp Support Page . Always verify version information with the NetApp Interoperability Matrix Tool (IMT).

Verify the boot image:

(CN1610) #show bootvar

Image Descriptions

 active :
 backup :


 Images currently available on Flash

 ---- ---------- ---------- ----------------- -----------------
 unit     active     backup    current-active       next-active
 ---- ---------- ---------- ----------------- -----------------

    1    1.2.0.7    1.1.0.8           1.1.0.8           1.2.0.7

Reboot the switch:

(CN1610) #reload

When the switch finishes rebooting, create a “running-config.scr” file:

(CN1610) #show running-config running-config.scr

Place a backup copy off the switch and on the TFTP server. I like to add more to the off-switch name to make it easy to identify:

(CN1610) #copy nvram:script running-config.scr tftp:///switch01-running-config.scr

Copy the appropriate RCF to your switch:

(CN1610) #copy tftp:///CN1610_CS_RCF_v1.2.scr nvram:script CN1610_RCF_v1.2.scr

Verify it made it on the switch:

(CN1610) #script list

Configuration Script Name        Size(Bytes)
-------------------------------- -----------
CN1610_CS_RCF_v1.0.scr                  2149
CN1610_CS_RCF_v1.1.scr                  2169
CN1610_CS_RCF_v1.2.scr                  2225
running-config.scr                      3648

Validate the script:

(CN1610) #script validate CN1610_RCF_v1.2.scr

That will print each line and validate the script. If any commands are wrong or do not apply to the current FASTPATH version, the validation will indicate the line number where the issue(s) occurred.

Apply the script:

(CN1610) #script apply CN1610_RCF_v1.2.scr

This will also print out each line in the script and notify that it was successful. Save the in memory running.

(CN1610) #write mem

Check out the running configuration:

(CN1610) #show running-config

Set the passwords for standard and privilege mode:

(CN1610) #password

If this is a new switch, there is no password; just hit enter. If you already assigned a password, enter the password at the prompt. Followup with the new password and then confirm the new password.

Enter enable mode and set the password:

(CN1610) #enable

(The Enable password should be empty so press enter. If not enter current password)

(CN1610) #enable password

If this is a new switch, there is no enable password; just hit enter. If you already assigned an enable password, enter the password at the prompt. Followup with the new password and then confirm the new password.)

Save the running configuration:

(CN1610) #write mem

Reboot the switch:

(CN1610) #reload

Here are the commands to customize your configuration. All lines beginning with the “!” will be ignored by the switch. It is safe to copy/paste those lines without worry of error. Modify to fit your site as needed:

 

!Set the switch Hostname:
 hostname "clusterswitch01"
!Setup and configure the Serviceport for external IP access:
 serviceport protocol none
 serviceport ip 192.168.99.10 255.255.255.0 192.168.99.1
!Setup SSH version 2, generating RSA/DSA keys
 ip ssh protocol 2
 configure
   crypto key generate dsa
   crypto key generate rsa
 exit
!Enable the SSH Server
 ip ssh server enable
!Setup and configure the date and time
!set today's date
 configure 
   clock set 08/08/2016
!Set today's Time in UTC!
   clock set 09:30:00
!Set the clock Timezone and Summer time
   clock summer-time recurring USA offset 60 zone "EDT"
   clock timezone -5 minutes 0 zone "EST"
!Setup NTP to client mode
   sntp client mode unicast
   sntp client port 123
   sntp server "ntp1.example.com"
   sntp server "ntp2.example.com"
!Setup DNS
   ip domain name "my.example.com"
   ip name server 192.168.99.200 192.168.99.202
   ip domain lookup
!Setup Logging and email
!Persistent logging to NOTICE(4)
   logging persistent 4
!Send logs to email
   logging email
!Non-urgent email logging configuration really
!    indicates a digest email notification. The 
!    frequency of the email digest is determined
!    with the "Email Alert Notification Period". 
!    Since this email type is not necessarily an 
!    alert type email, consider setting the 
!    frequency to the highest interval of 1440 
!    minutes (every 24 hours). In other words, the
!    non-urgent digest style combines all the 
!    non-urgent switch events in a single email.
   logging email logtime 1440
!Send Severity type WARNING(2) to email
   logging email 3
!This command sets the lowest severity level at which log messages are
!    emailed immediately in a single email message.
!Setting to ERROR(2) 
   logging email urgent 2
!Where is this email coming from?
   logging email from-addr clusterswitch01@example.com
!Where to send URGENT emails?
   logging email message-type urgent to-addr pager@example.com
!where to send non-urgent emails?
   logging email message-type non-urgent to-addr pager@example.com
!Subjects for Urget and Non-Urgent emails
   logging email message-type urgent subject "Urgent NetAppCluster in Site XY Cluster-Interconnect Switch 01 Notification"
   logging email message-type non-urgent subject "NetAppCluster in Site XY Cluster-Interconnect Switch 01 Error Log Digest"
!What is the name or IP of my mailserver
   mail-server "smtp.example.com"
   exit
  !Log all CLI commands
   logging cli-command
!Turn off paginiation for Console
   line console
   length 0
   exit
!Turn off paginiation for SSH
   line ssh
   length 0
   exit
 exit

Now that you have the configuration in place, save it and upload it to your TFTP server:

(clusterswitch01) #write mem

This operation may take a few minutes.
Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Config file 'startup-config' created successfully .


Configuration Saved!

(clusterswitch01) #show running-config running-config.scr

Config script created successfully.

(clusterswitch01) #copy nvram:script running-config.scr tftp://tftpserver/clusterswitch01.scr

Mode........................................... TFTP
Set Server IP.................................. 192.168.99.9
Path........................................... ./
Filename....................................... clusterswitch01.scr
Data Type...................................... Config Script
Source Filename................................ running-config.scr

Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y

File transfer operation completed successfully.

Reference Links (warning, some links are only accessible to NetApp and Partners)

Unable to locate how to enable SSH for the CN1610 switches – 2018779
Unable to ping CN1610; however, ‘show network’ displays the correct IP address
OEM: How to configure the 10Gb NetApp CN1610 clustered Data ONTAP switch
How to configure e-mail alerts for CN1610 and CN1601
How to configure NTP services on the cluster interconnect switch CN1610
How to transfer firmware or script files to a NetApp CN1610 firmware using SCP
INTERNAL: How to disable SSH V1 on CN1610 cluster switches
How to configure SNMP Community String in Cluster Interconnect Switch CN1601/CN1610
How to disable telnet on a NetApp CN1610 switch
INTERNAL: How to configure TACACS