in reply to Re: Parse variables from @output
in thread Parse variables from @output

Yes that's on the right lines Bill thanks. Will test again tomorrow.

Essentially in this example there are three different contents for @output depending on the type of device the show ver command is run on. Each if statement determines which of the three it is, i.e. if there is a regex match for the line it uses that version of @output and sets the variables for chassis and memory from the output there

Replies are listed 'Best First'.
Re^3: Parse variables from @output
by Cisco_Dave (Acolyte) on Nov 15, 2019 at 08:19 UTC
    Still struggling, update in main thread :(