NetApp – PerfState.exe – Errror Message “SSH To Filer fails”

To connect to NetApp and get Performance data you can try using PerfStat.exe from MS Windows Host.

In some cases you will get the following error message:

SSH To Filer fails

To correct re-issue the command and add the -d option. This will place you in debug mode.

Here is a screen dump for us:

perfstat -f filerStage -t 3 -i 1,2 -d -l me -S pw:pwd 1>stage.dat

DEBUG: Per-second sampling frequency: 10

DEBUG: Total number of samples: 17

DEBUG: Length of sampling time per itreration (seconds): 170

DEBUG: Total length of iteration (seconds): 190

DEBUG: Parsed options
Perfstat v7.38 (10-2012)

DEBUG: Setting temp dir to: "C:\Users\me\Temp\perfstat\2
7312\"

DEBUG: Setting error log to: "C:\Users\me\AppData\Local\Temp\perfstat\27312\error.log"

DEBUG: Destroying TEMP Dir: "C:\Users\me\AppData\Local\Temp\perfstat\27312\"

DEBUG: Successfully created temp dir!

DEBUG: Get filer config: filerStage

DEBUG: Using RSH/SSH command: plink.exe -ssh -x -a -batch -pw pwd -l me filerStage
SSH to filer filerStage fails! Quitting.

To correct:

  1. Ensure that you have Network Connectivity (try pinging Filer Host Name or try telnet (telnet <filerhostname> <port#> — sample will be  telnet filerStaging 22)
  2. Ensure that you have tried ssh using putty or plink once and saved the filer’s host key)
  3. Ensure that plink.exe is in your current directory or on your path

Use Putty to cache each specific Filer’s Host Key in your Registry

2 thoughts on “NetApp – PerfState.exe – Errror Message “SSH To Filer fails”

  1. The command listed “perfstat -f filerStage -t 3 -i 1,2 -d -l me -S pw:pwd 1>stage.dat
    ” works…on XP. I could not get it to work with Win7

    • Dan:

      I will say try a couple of things:

      a) Run in debug mode (by adding -d to command line)
      rem perfstat -f NETAPPFILER1 -t 3 -i 6 -l root -S pw:password1 > CASENUMBER.NETAPPFILER1.PERFSTAT.OUT
      perfstat -f NETAPPFILER1 -t 3 -i 6 -d -l root -S pw:password1 > CASENUMBER.NETAPPFILER1.PERFSTAT.OUT

      b) make sure that you have ssh connectivity
      telnet 22

      c) Try seeing if there are network connectivity problems
      netstat -an | find “SYN_SENT”

      d) See if Putty works
      http://support.suso.com/supki/SSH_Tutorial_for_Windows

      e) Make sure that you initiate your command shell in Administration Mode

      we can talk more offline.

      Daniel

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s