Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

SNMP.. on PC why oh why?

by senget76 (Acolyte)
on Jan 06, 2004 at 10:30 UTC ( #319067=perlquestion: print w/replies, xml ) Need Help??

senget76 has asked for the wisdom of the Perl Monks concerning the following question:

Hi there

I just started playing with Net::SNMP
pretty cool stuff but I am trying to understand the OID
right now I am have 2 questions?

1. The example from Net::SNMP in www.cpan.org fail to get response from PC.. I wonder why, unix machine is fine and even any router but why PC give "NO reponse" error

2. I tried to find better way to understand OID.. id there any module available which contained OID without need to memorize the number eg. 1.3.6.X so on and so on
I really looking forward to hear any opinion

Thank you

Replies are listed 'Best First'.
Re: SNMP.. on PC why oh why?
by phydeauxarff (Priest) on Jan 06, 2004 at 15:08 UTC
    Think of the OID as a tree like DNS

    most OID's in our world start
    Root->ISO(1)->Org(3)->dod(6)->internet(1)->private(4)

    which is the 1.3.6.1.4

    then you add in the company specifics and get something like

    iso.org.dod.internet.private.enterpirises.cisco or 1.3.6.1.4.1.9

    You can find a list of private enterprise numbers at ftp://ftp.isi.edu.in-note/iana/assigments/enterprise-numbers

    BTW chimni has given excellent advice above in recommending you pick up Essential SNMP it cleared up a bunch of the mud for me

Re: SNMP.. on PC why oh why?
by chimni (Pilgrim) on Jan 06, 2004 at 13:04 UTC

    HI,
    Firstly i suggest you read a basic book on SNMP like O'reillys "SNMP Essentials"
    SNMP can work in 2 basic scenarios
    1-SNMP GET
    2-SNMP Traps
    Before you can do an SNMP get on a PC (im assumin you have winodws installed),you must configure the pc to be SNMP enabled
    1-Run the service on the pc 2-If you want to send traps then name the destination server 3-Deal with your community strings
    Once you have done this ,maybe you could start with the Net::SNMP module.
    Regards,
    Chimni

      spell check :-winodws widonows ahh windows!!!
Re: SNMP.. on PC why oh why?
by NetWallah (Canon) on Jan 07, 2004 at 06:29 UTC
    The most likely reason that the PC (Windows) does not respond to SNMP is that the SNMP service is probably not installed.

    Micro$oft supplies SNMP with Windows NT and derivatives (on the OS install CD's) , but it is not installed by default - you can install it by going into the control panel -> add / remove programs -> Add/remove Windows components -> Management & Monitoring services (in XP) -> SNMP.

    You will need to configure the community strings - leave the default as "public", and do not enable WRITE, unless you know how that will be used.

    There are english-like equivalents for all OID's. You will have to find them by R'ing the FM.

    "When you are faced with a dilemma, might as well make dilemmanade. "

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-12-07 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (33 votes). Check out past polls.

    Notices?