Quantcast
Channel: ONTAP Discussions topics
Viewing all articles
Browse latest Browse all 4875

Need help with perfstat script as batch file

$
0
0

Hi,

 

Can someone help me with appending %date% dynamically to the output file of the perfsat.

 

This is my batch file content but it does not work:

perfstat8.exe 192.x.x.x  -t 2 -i 3,0 -z --sshprivatekey-file=X:\NetApp Downloads\Perfstat_Windows\Perfstat_Windows\.ssh\id_rsa -- mode = "c" -o X:\NetAppDownloads\Perfstat_Windows\logs\perfstat_%date%

 

++++++++++++++ should I do something like this +++++++++

@echo off

date = %date%

perfstat8.exe 192.x.x.x  -t 2 -i 3,0 -z --sshprivatekey-file=X:\NetApp Downloads\Perfstat_Windows\Perfstat_Windows\.ssh\id_rsa -- mode = "c" -o X:\NetAppDownloads\Perfstat_Windows\perfstat_%date%

 

+++++++++++++++++++++++++++++++++++++++

 

None works.

 

Thanks

SN


Viewing all articles
Browse latest Browse all 4875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>