HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dhcp NT client user name
Operating System - HP-UX
1838389
Members
3259
Online
110125
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 02:34 PM
10-20-2000 02:34 PM
dhcp NT client user name
How does a dhcp nt client's user name gets captured in a script on a unix machine. syslog just gives the pc name.
Thanks
Thanks
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2000 01:20 PM
10-24-2000 01:20 PM
Re: dhcp NT client user name
Cynthia:
If you've been spoiled by NT's DHCP server, it probably figures out usernames by doing a NetBIOS query on the machine name. It's understandable you'd want your Unix DHCP server to do the same thing, but NetBIOS isn't really a Unix-native protocol.
You could use the 'nmblookup' utility from the Samba suite (an SMB/CIFS filesharing package for Unices) to query each client for a list of NetBIOS names. I would imagine this is roughly the same way NT's DHCP server does it. A command line something like this should do:
nmblookup -S -A (if all you have is the IP address)
- or -
nmblookup -S (if you can resolve a hostname)
The results might be somewhat confusing, but the username--if there's currently a user logged in--will be in there, and can be parsed out using 'sed,' 'awk,' or even 'cut.' You can't count on the user always being logged in, though, so I don't know how useful that would be to you anyway.
You can get more information about Samba at http://www.samba.org, or , if you don't already have it, download CIFS/9000 (which basically *is* Samba) for HP-UX 11.x at http://www.software.hp.com .
Hope that helps.
If you've been spoiled by NT's DHCP server, it probably figures out usernames by doing a NetBIOS query on the machine name. It's understandable you'd want your Unix DHCP server to do the same thing, but NetBIOS isn't really a Unix-native protocol.
You could use the 'nmblookup' utility from the Samba suite (an SMB/CIFS filesharing package for Unices) to query each client for a list of NetBIOS names. I would imagine this is roughly the same way NT's DHCP server does it. A command line something like this should do:
nmblookup -S -A
- or -
nmblookup -S
The results might be somewhat confusing, but the username--if there's currently a user logged in--will be in there, and can be parsed out using 'sed,' 'awk,' or even 'cut.' You can't count on the user always being logged in, though, so I don't know how useful that would be to you anyway.
You can get more information about Samba at http://www.samba.org, or , if you don't already have it, download CIFS/9000 (which basically *is* Samba) for HP-UX 11.x at http://www.software.hp.com .
Hope that helps.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP