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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uname shows hostname, not OS ( AIX )

Status
Not open for further replies.

tagyourit

Technical User
Oct 20, 2008
22
US
The server was built from a mksysb NIM image of another server by another tech who is out.

Our monitoring software needs to be able to pull the OS type ( AIX, Linux, etc ) and it uses the uname command to get this.

Normal uname -a shows:
AIX server01 6 00C000000C00

But on this server, it shows:
server03 server03 1 6 000000AACC00

Running uname by itself shows the hostname as well, not just AIX.
 
What does "uname -s" show you?

Looks like you can reset it to what you want with "uname -T AIX"

Worked on my system anyway.
 
uname -s showed the hostname. I ran the -T AIX and it set it back. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top