I would need your help please. I hope that is a quick answer question.
I need to create a new fortigate ind script and run more than one FortiOS commands to the same ind script. The reason is that I need more than one FortiOS command to get all the required information for parsing.
I have found several ind scripts where the consecutive commands are separatedby using a “;”
Example from a Checkpoint ind script
#! REMOTE::SSH
stty rows 80 ; ${nice-path} -n 15 clish -c ‘show config-state’ ; sleep 5 ; ${nice-path} -n 15 clish -c ‘show config-state’ ; ${nice-path} -n 15 dbget installer:last_sent_da_info ; ${nice-path} -n 15 grep “installer:last_sent_da_info” /config/active
In the above example the Checkpoint commands are written one after the other. Does it mean that the .input file that I need to parse has the output from each Checkpoint command starting with the first command and then moving to the second etc (i.e. the .input file follows the same order with the e.g. Checkpoint commands defined to the ind script)?