Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: snmp script with perl

by MacScissor (Acolyte)
on Dec 06, 2012 at 15:46 UTC ( #1007611=note: print w/replies, xml ) Need Help??


in reply to Re: snmp script with perl
in thread snmp script with perl

Hello and thanks for your reply! I added the lines to the code, now the output is
Aktive Prozesse: $VAR1 = { '1.3.6.1.2.1.25.2.2.0' => '' }; $VAR2 = { '1.3.6.1.2.1.25.1.1.0' => '' }; $VAR3 = { '1.3.6.1.2.1.25.2.3.1.6.1' => '' }; $VAR4 = { '1.3.6.1.2.1.25.1.6.0' => '' };

Replies are listed 'Best First'.
Re^3: snmp script with perl
by greengaroo (Hermit) on Dec 06, 2012 at 15:57 UTC

    OK your hashref values are empty so that explains why your output is empty. Also if you print the string "\015\12", remember that special characters such as \0 and \1 are interpreted in double quotes, so if you really want to print that string, put it in single quotes.

    Testing never proves the absence of faults, it only shows their presence.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007611]
help
Chatterbox?
LanX has a friend in Berlin who switched to go(lang) and just got a kid ...
[marto]: good morning all
[Corion]: Hi marto ;)
[Discipulus]: Corion ah! you opened a new search path! thanks
[choroba]: LanX No, but they grow and want more!
LanX was conditioned by a female
Discipulus my 'kids' always complain with our car..
[LanX]: true, cars are bad in growing
[marto]: WaitWindow()
[Corion]: Discipulus: You need to respond with 0 to WM_QUERYENDSESSION

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-01-17 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (154 votes). Check out past polls.