Results 1 to 4 of 4

Thread: What Is SNMP walking

  1. #1
    Join Date
    Feb 2009
    Posts
    14

    What Is SNMP walking

    Hello , I am New To Networking Field ALthough I have heard about SNMP walking.But Dont Know Eaxtly what Is it Can you explain me what is SNMP walking? And Other Relevent Details Related To it Thanks in Advance

  2. #2
    Join Date
    May 2008
    Posts
    2,945

    Re: What Is SNMP walking

    The SNMP application snmpwalk retrieves SNMP GETNEXT requests to query a network entity for a tree of information. The command syntax for SNMP is as follows:

    snmpwalk [APPLICATION OPTIONS] [COMMON OPTIONS] [OID]

    The OID may be given on the command line, which specifies which portion of the object identifier space is to be searched using GETNEXT requests. If the OID is not specified, snmpwalk searches the entire root.

  3. #3
    Join Date
    Jan 2006
    Posts
    3,792

    Re: What Is SNMP walking

    snmpwalk -- Fetch all the SNMP objects from an agent

    Description
    array snmpwalk ( string hostname, string community, string object_id [, int timeout [, int retries]])

    Returns an array of SNMP object values starting from the object_id as root and FALSE on error.

    snmpwalk() function is used to read all the values from an SNMP agent specified by the hostname. Community specifies the read community for that agent. A NULL object_id is taken as the root of the SNMP objects tree and all objects under that tree are returned as an array. If object_id is specified, all the SNMP objects below that object_id are returned.

    Code:
    <?php
    $a = snmpwalk("127.0.0.1", "public", ""); 
    ?>
    Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a loop

    Code:
    <?php
    for ($i=0; $i < count($a); $i++) {
        echo $a[$i];
    }
    ?>

  4. #4
    Join Date
    Jan 2006
    Posts
    4,221

    Re: What Is SNMP walking

    The snmpwalk utility is an SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information.

    You can specify an object identifier (OID) on the command line. This OID specifies which portion of the object identifier space will be searched using GETNEXT requests. All variables in the subtree below the specified OID are queried and their values returned. Each variable name must be entered in the format specified in snmp_variables(4).

    If no OID argument is present, snmpwalk searches MIB-2. If the network entity has an error processing the request packet, an error packet is returned and a message displayed, indicating t the way in which the request was malformed.

    If the tree search causes attempts to search beyond the end of the MIB, the message “End of MIB” is displayed.

Similar Threads

  1. Enabling SNMP in Netgear DGN2000
    By McKenzie! in forum Networking & Security
    Replies: 2
    Last Post: 19-09-2011, 12:02 AM
  2. snmp service is not stopable
    By OM in forum Windows Server Help
    Replies: 6
    Last Post: 26-02-2010, 07:26 PM
  3. Problem installing net-snmp package
    By Ash maker in forum Windows Software
    Replies: 5
    Last Post: 19-02-2010, 12:51 AM
  4. What is a SNMP Trap
    By Santy in forum Operating Systems
    Replies: 3
    Last Post: 19-08-2009, 09:55 PM
  5. How to install the SNMP service ?
    By Mannat in forum Technology & Internet
    Replies: 1
    Last Post: 24-12-2008, 10:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,362,290.64569 seconds with 16 queries