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
In reply to Re^2: Parse variables from @output
by Cisco_Dave
in thread Parse variables from @output
by Cisco_Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |