Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Parse variables from @output

by Cisco_Dave (Novice)
on Nov 15, 2019 at 00:33 UTC ( #11108708=note: print w/replies, xml ) Need Help??

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 (Novice) on Nov 15, 2019 at 08:19 UTC
    Still struggling, update in main thread :(

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108708]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2021-10-27 04:27 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (91 votes). Check out past polls.