Write a script in Relevance

I have executed a command from BES console to get the hardware details and redirected to /tmp folder


Now I need to pull that data into BES console so I can generate a report from the o/p.

Kindly suggest .

Create an Analysis to pull a retrieved property. The property might pull something like

lines of file “/tmp/bigfix.txt”

But you should probably change that to a permanent path before you deploy it.

1 Like

cat bigfix.txt

System Model: IBM,8286-41A
Machine Serial Number: 102DAEV
Processor Type: PowerPC_POWER8
Processor Implementation Mode: POWER 8
Processor Version: PV_8_Compat
Number Of Processors: 2
Processor Clock Speed: 3724 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 3 aix1
Memory Size: 2048 MB
Good Memory Size: 2048 MB
Platform Firmware level: SV810_101
Firmware Version: IBM,SV810_101
Console Login: enable
Auto Restart: true
Full Core: false
NX Crypto Acceleration: Capable and Enabled

I need to pull LPAR Info: 3 aix1 into the BES console … What needs to be written in Revelance tab ?

There are a number of options for parsing a text file. Simplest methods would be something like

Q: lines whose (it as uppercase starts with "LPAR INFO") of files "/tmp/bigfix.txt"
A: LPAR Info: 3 aix1

Q: following texts of firsts ": " of lines whose (it as uppercase starts with "LPAR INFO") of files "/tmp/bigfix.txt"
A: 3 aix1
2 Likes

Thanks a lot … it worked like charm :slight_smile:
Can you let me know how to pull a report out of it ?

You can use the Bigfix Web Reports (if its been installed) to generate reports of the data collected. If you do not know the URL for your server, go to Tools | Launch Web Reports from the console

image

Thank you :slight_smile: it worked … Apologies for the delay in response.