1753946 Members
8193 Online
108811 Solutions
New Discussion юеВ

strange uname error

 
SOLVED
Go to solution
Peter_17
Frequent Advisor

strange uname error

Check this out..

[myname@hpbox]% uname -a
-t hpbox B.10.20 A 9000/780 2004800385 two-user license
[myname@hpbox]% uname
-t
[myname@hpbox]%


All thoughts appreciated. Thanks.

Pete
4 REPLIES 4
Roger Baptiste
Honored Contributor
Solution

Re: strange uname error

hi,

Normally instead of ""-t""
it should display HP-UX.
But, apparently somebody has run setuname command and changed the utsname structure.

What you can do is
#setuname -s HP-UX

This will restore the setting back to HP-UX.

hth
raj
Take it easy.
Patrick Wallek
Honored Contributor

Re: strange uname error

From TKB document: A4645723

Problem Description

When I execute the uname command, it shows my operating system type as -t rather than HP-UX. The specific output when executing uname -a looks like:

-t hostname B.10.20.E 9000/849 1289873321 8-user license

How do I fix this to reflect hostname of HP-UX?

Configuration Info

Operating System - HP-UX
Version -10.20
Hardware System -K410

Solution

To make the appropriate changes, complete the following:

1. Change directories:

cd /etc/rc.config.d

2. Edit the netconf file (see the following example:)

vi netconf

# netconf: configuration values for core networking subsystems
# @(#) $Revision: 1.4.102.1 $ $Date: 95/02/17 16:04:07 $
# HOSTNAME: Name of your system for uname -S and hostname
# OPERATING_SYSTEM: Name of operating system returned by uname -s
# ---- DO NOT CHANGE THIS VALUE ----
# LOOPBACK_ADDRESS: Loopback address
# ---- DO NOT CHANGE THIS VALUE ----
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements
HOSTNAME=""
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=


linuxfan
Honored Contributor

Re: strange uname error

Hi Peter,

Check your /etc/rc.config.d/netconf and make sure the hostname is set right

From the HP Doc ID A4645723

/Begin/

When I execute the uname command, it shows my operating system
type as -t rather than HP-UX. The specific output when executing
uname -a looks like:

-t hostname B.10.20.E 9000/849 1289873321 8-user license

How do I fix this to reflect hostname of HP-UX?

Configuration Info

Operating System - HP-UX
Version -10.20
Hardware System -K410

Solution

To make the appropriate changes, complete the following:

1. Change directories:

cd /etc/rc.config.d

2. Edit the netconf file (see the following example:)

vi netconf

# netconf: configuration values for core networking subsystems
# @(#) $Revision: 1.4.102.1 $ $Date: 95/02/17 16:04:07 $
# HOSTNAME: Name of your system for uname -S and hostname
# OPERATING_SYSTEM: Name of operating system returned by uname -s
# ---- DO NOT CHANGE THIS VALUE ----
# LOOPBACK_ADDRESS: Loopback address
# ---- DO NOT CHANGE THIS VALUE ----
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements
HOSTNAME=""
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=


/End/

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Peter_17
Frequent Advisor

Re: strange uname error

Outstanding!

Thanks for the quick replies.

Pete.