[Samba] Network LookUp

Kristyan Osborne kris at longhill.brighton-hove.sch.uk
Mon Sep 6 16:52:50 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>I'm building a litle program to audit my samba network, by i don't
>know how can get a machine name from ip. Can anybady help me?
>Thanks

It depends on your setup and how you want to aquire the ip.

Assuming you want to do it from a shell. If your clients are on DHCP and you are updating a DNS server with the clients ips. A simple nslookup ip.add.re.ss would do the job.

Or if you want to do it whils someone is logged on. You can use smbstatus -S. This will show you user,machine name and ip addy stats.

Cheers

- -------------
Kristyan Osborne - IT Technician
Longhill High School
01273 391672 / 304086

- ------
Computers are like airconditioners: They stop working properly if you open windows.
Win95:       A 32-bit patch for a 16-bit GUI shell running on top of an
             8-bit operating system written for a 4-bit processor by a
             2-bit company who cannot stand 1 bit of competition.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBPJXiqrr+KdRYU5gRAvxGAJ9TH2Dze5ur6vGzL+N83DhKOaCAoQCfRCfv
IPxtTnEJhD6jyB/Yak1PMz0=
=bCrT
-----END PGP SIGNATURE-----



More information about the samba mailing list