ONTAP Discussions

Need help with perfstat script as batch file

SAN-NAS

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
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public