Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Needed C/C++ code which returns MAC address on on solaris platform without root user..
Posted
Comments
Richard MacCutchan 11-Jan-13 4:30am    
This sort of information is for root user only; and with good reason.
Jochen Arndt 11-Jan-13 8:57am    
I don't know Solaris. But with Linux, this information can be grepped from the boot.msg log file which is readable for all users. If there is a similar file with Solaris, you might parse it.
Albert Holguin 13-Jan-13 8:54am    
that's a good suggestion... I haven't used Solaris since way back in the day... so I can't remember much about this type of stuff

1 solution

Its been a very long time since I've played with Solaris but if I recall you can get it by running system("arp hostname") and parsing the results.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900