The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Discovery pattern: Parse output

adminreg
Giga Contributor

Hello!

I want to parse command output and create a new variable for each line.

How to mark lines and link it to nesussary variable?

find_real_file.png

1 ACCEPTED SOLUTION

I have found solution.


If command output has a few rows, you have to use $cpu_name[n] in the value field, where n   is a number of the line.


View solution in original post

3 REPLIES 3

nimmi25025
Kilo Expert

Create Table and using filter condition you can store required information in each row of that table. Bottom of this window there are two fields through which you can do this.


Hello, thanks for reply.


I have created necessary table earlier(u_cmdb_ci_freebsd on my screen). Data are recording to my table correct, but some command results have 3 or more rows and I want to parse them inside "Discovery pattern".


What two fields are you talking about and where is filter condition situated on? Can you show me screen of this fields or linked me to any setup guide?




find_real_file.png


I have found solution.


If command output has a few rows, you have to use $cpu_name[n] in the value field, where n   is a number of the line.