Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Parse variables from @output

by Cisco_Dave (Novice)
on Nov 14, 2019 at 20:34 UTC ( [id://11108699]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Get the line with the chassis on
    
    ...
    $details{'Main Memory'} = $5 if (/^\S+ Intel (\S+)/i);
    
    }
    
  2. or download this
    # (IOS devices - Chassis and Main Memory)
    
    ...
    $details{'Chassis'} = $1;
    $details{'Main Memory'} = $3;
    }
    
  3. or download this
    # (WS-C3550-48's - Chassis)
    
    ...
    
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11108699]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found