- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- env exposes strange values!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 01:57 PM
08-06-2003 01:57 PM
HOSTTYPE=hp9000s700 <====?
VENDOR=hp
OSTYPE=hpux
MACHTYPE=pa_risc <====?
Here's what I get otherwise:
[2] % uname -a
HP-UX rtrdev01 B.11.22 U ia64 1635350977 unlimited-user license
[3] % model
ia64 Not Available Not Available
There are true when logging in as a user or as root. Not sure where they're being set, if I should worry about them and try to fix them, or what?
Thanks for any help!
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 02:03 PM
08-06-2003 02:03 PM
Re: env exposes strange values!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 04:45 PM
08-06-2003 04:45 PM
Re: env exposes strange values!
Can't tell you much about the MACHTYPE, since I haven't seen any Itanium systems yet. However, it might be the same thing, maybe the OS doesn't 'know' the Itaniums on this level yet.
Do try and get to the latest patch level, 'newer' systems get updated more often..
Regards
Wouter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 04:08 AM
08-07-2003 04:08 AM
Re: env exposes strange values!
These variables do not exist on the 11.22 machine that I have installed here.
They look like they might be compiler variables although I am checking to see if I can find them elsewhere in the code.
Do you have any compilers installed on top of vanilla 11.22 or any other non-core software ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 04:20 AM
08-07-2003 04:20 AM
SolutionI doubt that they are set by code owned by HP; at least not kernel or
core commands:
| # find /stand /sbin /usr/bin /usr/lib /etc -type f | while read F
| > do
| > if strings -a $F | grep -e HOSTTYPE -e MACHTYPE
| > then
| > echo FOUND in $F
| > fi
| > done
This finds nothing (try it with HOSTNAME or LOGNAME; pipe done|more).
:
: HOSTTYPE=hp9000s700 <====?
There are commands that return true (1) or false (0) for testing the type of system that we are on.
| $ ls /usr/bin/*9000*
| /usr/bin/hp9000s200 /usr/bin/hp9000s500 /usr/bin/hp9000s800
| /usr/bin/hp9000s300 /usr/bin/hp9000s700
| /usr/bin/hp9000s400 /usr/bin/hp9000s700_8MB
On 11.22:
| $ model; /usr/bin/hp9000s700 ; echo $? ; /usr/bin/hp9000s800 ; echo $?
| ia64 hp server rx5670
| 1
| 1
On 11.11:
| $ model; /usr/bin/hp9000s700 ; echo $? ; /usr/bin/hp9000s800 ; echo $?
| 9000/899/K570
| 1
| 0
On 11.00:
| $ model; /usr/bin/hp9000s700 ; echo $? ; /usr/bin/hp9000s800 ; echo $?
| 9000/770/J200
| 0
| 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 06:27 AM
08-07-2003 06:27 AM
Re: env exposes strange values!
Yes, I do have both the ansi C and the C++ compilers installed.
I verified that nothing is returned using the grep of /stand, /sbin, etc. for MACHTYPE or HOSTTYPE.
I get this response to all variants of hp9000s:
# model; /usr/bin/hp9000s700 ; echo $? ; /usr/bin/hp9000s800 ; echo $?
ia64 Not Available Not Available
1
1
I also tried different shells and get consistent results.
At this point, my main concern is MACHTYPE=pa_risc, although I don't know who/what might be referencing this.
Thanks for the help, and update the note if anything changes after applying patches.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 07:29 AM
08-07-2003 07:29 AM
Re: env exposes strange values!
echo "at line $LINENO $(env | grep HOSTTYPE)"
Just insert this statement at line 1 and then at other location in the /etc/profile file. Look for things like:
. /opt/someapplication/bin/setsomevars.sh
and see if HOSTTYPE starts to show up right after that type of line (the . is a source command).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 09:11 AM
08-07-2003 09:11 AM
Re: env exposes strange values!
Thanks for the suggestion. I looked at /etc/profile and there's basically nothing in it, so I did the following and it returned with nothing:
# find / -name "*.*sh" -exec grep MACHTYPE {} \;
At this point, I'm giving up on this and entering another message regarding the bigger problem of not being able to load our product library.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 12:17 PM
08-07-2003 12:17 PM
Re: env exposes strange values!
It looks like you are running a PA-RISC bash shell. The Aries PA-RISC emulation layer lies to PA-RISC executables about what kind of hardware they are running on. Once executables get to a certain age they just can't handle reality. ;-)