Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

SNMP and addMibDirs?

by suba (Novice)
on Dec 07, 2012 at 12:02 UTC ( #1007721=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    &SNMP::addMibDirs("FULL_PATH/mibs");
    &SNMP::loadModules("IRONPORT-SMI","ASYNCOS-MAIL-MIB");
    
  2. or download this
    Cannot find module (IRONPORT-SMI): At line 0 in (none)
    Cannot find module (ASYNCOS-MAIL-MIB): At line 0 in (none)
    
  3. or download this
    stat64("./mibs/.index" ... -1 ENOENT 
    open("./mibs" ... = -1 ENOENT 
    write(2, "Cannot find module (IRONPORT-SMI"...
    write(2, "Cannot find module (ASYNCOS-MAIL"...
    
  4. or download this
    stat64("FULL_PATH/mibs/.index" ... = 0
    stat64("FULL_PATH/mibs" ... = 0
    open("FULL_PATH/mibs/.index" ... = 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1007721]
Front-paged by Arunbear
help
Chatterbox?
[Lady_Aleena]: And the env variable $HOME doesn't work either. !@#$
[shmem]: no, that's a shell feature. Use $ENV{HOME}
[marioroy]: my $ans = qx{ find \$HOME -name "*.pl" -exec ls -l {} \\; };
[marioroy]: must backslash $ inside qx
[Lady_Aleena]: I haven't written perl for a while, I've been trying to do things at the command line. I'm having to relearn a lot.
[marioroy]: LA can you post the qx find again
[Lady_Aleena]: Things I would have written a script for while I was on Windows, I can run simply on the command line.
[Lady_Aleena]: marioroy, my @music_times = qx(find ~/Music/Albums/ -type f -iname '*.mp3' -exec mp3info -p "%S\n" {} \;); #unfixed

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-04-23 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.