ONTAP Discussions

“ssh_exchange_identification: read: Connection reset by peer”

pagluiso
3,586 Views

We are attempting to automate the creation of qtrees/shares in an effort to migrate ~2500 shares from other storage to Netapp.

The script that I’m running to do the automated share creation uses ssh commands to our primary CDOT cluster. My script creates the first 5 qtree/share correctly

but then the ssh connection drops with a “ssh_exchange_identification: read: Connection reset by peer” error (see below). What I’m trying to determine is why the
ssh connection to the filer fails. Is it too many ssh connections, or something like that?

 

Note: all the line with starting with + successfully completed and 5 -6 shares were successfully processed prior to the ssh reset

+ read -u 5 name

+ print 531001

531001

+ check_input_vars

+ print 'valid share name 531001'

valid share name 531001

+ sync

+ sync

+ sync

+ return 0

+ [ 0 -eq 0 ]

+ create_qtree

+ print 'Creating qtree 531001'

Creating qtree 531001

+ sync

+ sync

+ sync

+ ssh 172.16.250.34 -l naadmin 'qtree create -vserver WCSFS00 -volume med1 -qtree 531001 -security-style ntfs -oplock-mode enable'

 

+ sleep 5

+ return 0

+ [ 0 -eq 0 ]

+ create_share

+ print 'Creating share 531001'

Creating share 531001

+ sync

+ sync

+ sync

+ ssh 172.16.250.34 -l naadmin 'share create -vserver WCSFS00 -share-name 531001 -path /med1/531001 -share-properties showsnapshot,access-based-enumeration,oplocks,browsable,changenotify'

ssh_exchange_identification: read: Connection reset by peer

+ sleep 5

1 REPLY 1

Raks
3,557 Views

Hi,

 

I believe this has nothing to do with APIS in the first place. Can you please remove the tag ?

 

Thanks,

Rakshith

Public