Solved

API function to find MAC address in powerbuilder

Posted on 2003-12-08
9
2,414 Views
Last Modified: 2013-12-26
API function to find MAC address in powerbuilder
0
Comment
Question by:sathya_sk
9 Comments
 

Author Comment

by:sathya_sk
ID: 9895612
API function to find MAC address in powerbuilder
0
 
LVL 8

Expert Comment

by:gajender_99
ID: 9895916
what do you mean by mac address
0
 
LVL 2

Expert Comment

by:mdhampton
ID: 9903666
Do you want to enumerate all MAC Id's available on the system, or a mac ID for a specific IP , or a mac ID for a specific adapter?
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 5

Expert Comment

by:berXpert
ID: 9904736
I don't know if there is an API but let me show you what I did to find MAC address for an IP.

I have a GetMAC.BAT file where I send a PING to IP address I want to check, next I use ARP command to get MAC address, result is saved to a file that is opened in PB for processing.

You can check what I said in a DOS screen:


1. Make Ping so your computer will ask for IP to router or other computers

C:\PING 132.1.1.2
Haciendo ping a 132.1.1.2 con 32 bytes de datos:

Respuesta desde 132.1.1.2: bytes=32 tiempo<1m TTL=128
Respuesta desde 132.1.1.2: bytes=32 tiempo<1m TTL=128
Respuesta desde 132.1.1.2: bytes=32 tiempo<1m TTL=128
Respuesta desde 132.1.1.2: bytes=32 tiempo<1m TTL=128

Estadísticas de ping para 132.1.1.2:
    Paquetes: enviados = 4, recibidos = 4, perdidos = 0
    (0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
    Mínimo = 0ms, Máximo = 0ms, Media = 0ms


2. Ask for Phisycal address in ARP table

c:\ARP -a 132.1.1.2

Interfaz: 132.1.2.111 --- 0x10003
  Dirección IP          Dirección física      Tipo
  132.1.1.2             00-10-5a-e3-e4-f1     dinámico


[To Save into a file]

c:\ARP -a 132.1.1.2  > c:\MyFile.Txt



Now in PB open MyFile.txt and process it to find the address you are looking for.

132.1.1.1   =   00-10-5a-e3-e4-f1

Regards,

BerX
0
 
LVL 33

Accepted Solution

by:
sajuks earned 100 total points
ID: 9910096
0
 

Author Comment

by:sathya_sk
ID: 9910118
How to find Network id in powerbuilder5.0 ?
0
 
LVL 33

Expert Comment

by:sajuks
ID: 9910153
Check http://www.funcky.com/ .
Got lots of features which you can use.

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question