The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

writing LOG-file with WFA

HONIG2012

hi guys,

 

i wanted wfa to write out a log as html file - i tried to achieve with PoSh through [command] | convertto-html "path2file" but it seems that the file won't be created.

the idea behind it: i wanted to write-out all before/after informations when the workflows is run per workflow - so there should be one file for e.g. all "volume_resize" workflows with information of how big was the volume before the workflow run and what size it has after the workflow ran.

 

thanks in advance

AJ

1 ACCEPTED SOLUTION

sinhaa

@  i tried to achieve with PoSh through [command] | convertto-html "path2file" but it seems that the file won't be created.

----

 

ConvertTo-Html doesn't create any file for you, it just formats the output in HTML tags.  Use it like below:

 

<My-Command> |ConvertTo-Html|Set-Content C:\log.html

 

If you want better control, select objects in your output for the specific tags in your log.html. Read some details here : http://technet.microsoft.com/en-us/library/ee156817.aspx

 

And you can use this as is into WFA commands too. It will behave just the same.

 

sinhaa

 

 

 

 

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

4 REPLIES 4

sinhaa

@  i tried to achieve with PoSh through [command] | convertto-html "path2file" but it seems that the file won't be created.

----

 

ConvertTo-Html doesn't create any file for you, it just formats the output in HTML tags.  Use it like below:

 

<My-Command> |ConvertTo-Html|Set-Content C:\log.html

 

If you want better control, select objects in your output for the specific tags in your log.html. Read some details here : http://technet.microsoft.com/en-us/library/ee156817.aspx

 

And you can use this as is into WFA commands too. It will behave just the same.

 

sinhaa

 

 

 

 

 

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

HONIG2012

yeah right - wrong command usage on my side - now i pipe it to |out-file and it works..

 

thanks for your support

 

abhit

Have you developed the commands on your own?

Or,

you are trying to get the output from the certified commands in HTML.

If you are writing the commands on your own, you can create a file and

write the file with HTML tags.

Sample command attached, written with WFA 3.0.

 

Regards

Abhi

HONIG2012

i'm developing on my own - i'll give it a try - thanks for fast reply.

 

AJ

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