Using variable IP address in OID

Started by Sharon

Sharon

Using variable IP address in OID   07 August 2019, 23:01

Hi,
I am trying to use SNMP for finding the subnet of the scanned device. For that I need to use .1.3.6.1.2.1.4.20.1.3.{device_ip}
How can I use the IP of the scanned device as a variable and add it to the OID string?
SoftPerfect Support forum - Ann avatar image
Ann

Re: Using variable IP address in OID   07 August 2019, 23:07

This isn't possible in the current official release, but it has been added to the latest preliminary build.

For IP address and MAC address substitutions, use the following in OIDs:
  • %0 for IP address bytes
  • %1 for MAC address bytes

If you wish to use this feature right now, simply download the latest build, add 1.3.6.1.2.1.4.20.1.3.%0 as your OID, and the Network Scanner should retrieve the network masks.

SoftPerfect support forum
Sharon

Re: Using variable IP address in OID   07 August 2019, 23:17

Thank you very much, it's working fine now...

Best regards,
Sharon

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **     **  **     **  **     **        **  ********  
  **   **   **     **  ***   ***        **  **     ** 
   ** **    **     **  **** ****        **  **     ** 
    ***     **     **  ** *** **        **  ********  
   ** **    **     **  **     **  **    **  **        
  **   **   **     **  **     **  **    **  **        
 **     **   *******   **     **   ******   **        

Message: