NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Need help with perfstat script as batch file

SAN-NAS
2,253 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