Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Parsing SNMP VLAN-numbers

by turo (Friar)
on May 16, 2006 at 06:46 UTC ( [id://549675]=note: print w/replies, xml ) Need Help??


in reply to Parsing SNMP VLAN-numbers

Another way ^_^>

#!/usr/bin/perl $_ = qq( .1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1:INTEGER:1 .1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.2:INTEGER:1 .1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.10:INTEGER:1 .1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1002:INTEGER:1 .1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1003:INTEGER:1 ); push @vlans, $1 while ( m/\.(\d+):\w+/g ); print "@vlans\n";

perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-29 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found