Operating System - HP-UX
1833883 Members
1932 Online
110063 Solutions
New Discussion

Re: uname command output is "-t"

 
SOLVED
Go to solution
murali_20
Occasional Advisor

uname command output is "-t"

On my HP-ux machine, When I issue the command "uname -a" the out put is

# uname -a
-t ejmhpux B.11.11 U 9000/800 2058603285 unlimited-user license

# uname
-t

That "-t" should not come. earlier I used to get HP-UX there. Now because of this I am not able to install my applications specific to HP machine.

Can somebody help me in resolving this?
4 REPLIES 4
Ermin Borovac
Honored Contributor
Solution

Re: uname command output is "-t"

What value do you have for OPERATING_SYSTEM variable in /etc/rc.config.d/netconf? If should be set to HP-UX.

OPERATING_SYSTEM=HP-UX

To fix run setuname

# /usr/sbin/setuname -s HP-UX
murali_20
Occasional Advisor

Re: uname command output is "-t"

Thanks Ermin,

It worked - setuname command. I just was wondering under what circumstances would this have changed to -t- I am sure the small group of users who use this have no idea to change the OS name.

Appreciate your assistance on this. Thanks you once again.

Regards
Murali
Ermin Borovac
Honored Contributor

Re: uname command output is "-t"

It would have changed to -t if OPERATING_SYSTEM variable is not set in /etc/rc.config.d/netconf. Can you check?
Jino.P.V
Frequent Advisor

Re: uname command output is "-t"

Yes. Ermin is right. You have to edit /etc/rc.config.d/netconf. You can change both node name and operating system name. For operating system name you can give any alphanumeric value. For eg.

[test]/etc/rc.config.d > setuname -s hpuxnew
[test]/etc/rc.config.d >uname -a
hpuxnew hp370-4 B.11.00 A 9000/871 2013607509 two-user license
[hp370-4]/etc/rc.config.d >

But generally we keep only hpux.