Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: snmp script with perl

by greengaroo (Hermit)
on Dec 06, 2012 at 15:38 UTC ( #1007610=note: print w/ replies, xml ) Need Help??


in reply to snmp script with perl

Try use Data::Dumper; then do print Dumper $ram, $uptime, $drive1, $processes;

Try that first to see if your structures have any content at all, maybe this will help.

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


Comment on Re: snmp script with perl
Select or Download Code
Re^2: snmp script with perl
by MacScissor (Acolyte) on Dec 06, 2012 at 15:46 UTC
    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' => '' };

      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://1007610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-09-23 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (219 votes), past polls