############################
##
RecordJobExecution.ps1 ##
############################
Import-Module
DataONTAP
$C =
Read-Host "Enter Cluster FQDN/IP"
[Void](Connect-NcController
$C)
$J =
Read-Host "Enter Job ID"
while($TRUE){
$D = Get-Date -uformat %Y%m%d
$T = Get-Date -uFormat %T
$P = (Get-NcJob -id $J).JobProgress
"$D $T $P" >>
execution_log.txt
sleep 1
}
Image: Use Case:
Recording per second the job execution progress of system node migrate-root
No comments:
Post a Comment
Note: only a member of this blog may post a comment.