1833091 Members
3352 Online
110050 Solutions
New Discussion

uname -s

 
SOLVED
Go to solution
Subhas R. Reddy
Frequent Advisor

uname -s

When I do uname -s on a HP-UX 11.0 system I am getting "-t" instead of "HP-UX" and when I do uname -a I am getting "-t atlhpux2 B.11.00 A 9000/821 2010184043 two-user license". Does any one know how to fix this problem?

Thanks,

Subhas
Art is long and time is fleeting!
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: uname -s

Hi,

It looks as though someone did a bad setuname
command. Do this: setuname -s HP-UX.

I think that will fix you, Clay
If it ain't broke, I can fix that.
someone_4
Honored Contributor

Re: uname -s

Hi,
here is what i got when i did a
man 2 uname

this is out of section 2.
hope it helps .


The uname() system call places information identifying the computer system in the utsname structure pointed to by name.
The utsname structure, defined in , is set up as
follows:

#define UTSLEN 9
#define SNLEN 15

char sysname[UTSLEN];
char nodename[UTSLEN];
char release[UTSLEN];
char version[UTSLEN];
char machine[UTSLEN];
char idnumber[SNLEN];
Deshpande Prashant
Honored Contributor

Re: uname -s

Hi
The hostname, operating system parameters are set by /etc/rc.config.d/netconf file and /sbin/init.d/hostname file. Check anything is changed in that.
/etc/rc.config.d/netconf should have entry for
"OPERATING_SYSTEM=HP-UX" which is set by /sbin/init.d/hostname file while booting
as "setuname -s $OPERATING_SYSTEM -t"
you can manually run #setuname -s HP-UX -t to set operating system to HP-UX. and run #uname -S to set your system name.

Thanks.
Prashant Deshpande.
Take it as it comes.
Subhas R. Reddy
Frequent Advisor

Re: uname -s

Clay,

Wonderful. That fixed it.

Thank you very much. This forum is a great place.

Subhas
Art is long and time is fleeting!