Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very Urgent Help on using smbclient

Status
Not open for further replies.

KPKIND

Technical User
Sep 8, 2003
130
IN
Dear Tech's,
In my environment i am using only the smbclient for accessing windows shares & print services from an AIX server, without installing the whole samba suite,and it also works. The problem is,i want to connect to the windows share using only the IP of the machine and not the name of the windows PC.Once i make an entry in the /etc/hosts or lmhosts this works but without making any entries in these files.Pl let me know how to go about...

My AIX server has DNS entry already in it,when i give nslookup and the ip of the windows box to which i want to connect it goes through also....


TIA
Praveen.K
 
Have you tried something like this to get the netbios name of a PC:
Code:
nmblookup -A x.y.z.t | grep &quot;<20>&quot;

Hope This Help
PH.
 
Also check, /etc/nsswitch.conf
There should be an entry like
hosts : dns file nis

Make sure dns is 1st as I've found AIX to in resolving if it is at the end...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top