Report on Output of PowerShell
Josue Alvarez
Since we already have a PS step on Deploy, is there a way to get the output log on a Report?
For example I deployed a Script that will count all the PDFs on a folder, since I couldn't find a way to get the output.log on a report, what I ended up doing was to send the output to a variable then create a new txt file on a X folder with a predefined name + Varible, then read with Inventory the file title and ran a report.
Thanks,
0
Comments
I'd like to know about this too..... I have a LIST NODE DIRECTORY PS command for IBM DB2 that I would like to ship out to our workstations but unsure of how the get the DEPLOY output content to a variable? or a report for a report query.
here is our code:
#Set DB2CLP Environment
set-item -path env:DB2CLP -value "**$$**"
#run list node directory
db2 list node directory
here is the output... just for reference
Node Directory
Number of entries in the directory = 6
Node 1 entry:
Node name = DSN2
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = db2connp2.crdc.xxx.xxx
Service name = 50000
Node 2 entry:
Node name = NDE2000
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = db2connp2.crdc.xxx.xxx
Service name = 50000
thanks