ONTAP Discussions

Need help with perfstat script as batch file

SAN-NAS
1,881 Views

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

0 REPLIES 0
Public