How to change the output of the uname command in the Solaris OS


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS How to change the output of the uname command in the Solaris OS
# 1  
Old 03-17-2009
How to change the output of the uname command in the Solaris OS

This article describes a general method to temporary change the output of the uname command in the Solaris OS. The method described here uses the sloggi kernel module written by Konrad Rieck that works in Solaris 8, Solaris 9, Solaris 10, and OpenSolaris ("Solaris 11"). sloggi can be used in Solaris for SPARC and Solaris for x86. In Solaris 10 you can also use dtrace for this purpose but obviously that does not work in previous Solaris releases.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 9 Zone : Date command in crontab shows delayed(One Hour) output

SOLARIS 9 Zone : date command in crontab shows delayed(One Hour) output Hi folks, the date command shows the correct date and time, How ever, if the date command executed through crontab in any form of scrip the output shows as one hour delayed, similar to date -u.. Can some one help in... (12 Replies)
Discussion started by: judi
12 Replies

2. Web Development

Get command-output to webpage from solaris-10-OS invoked from html webpages

Hello, I am a middleware administrator and as an admin I need to monitor a number of middleware instances (weblogic servers). But since it is a not the forum for that i would like to put my problem in simple terms and need guidance on that. I need to use apache webserver on Solaris 10 zones to... (3 Replies)
Discussion started by: poga
3 Replies

3. UNIX for Dummies Questions & Answers

uname -a output

Can anyone please let me know the meaning of output of uname -a ? I am totally new to unix or linux and just thinking to start learning. When I run uname -a the output I get is - "Linux blx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux" I want to... (7 Replies)
Discussion started by: csrohit
7 Replies

4. UNIX for Advanced & Expert Users

tr command with uname -n

Using the command : echo $eup_terminal_code | tr -s 'mil vrn qcm' 'mci pql qcm' it works,but this translation changes depending on the system. I'd like to define the following variables ,one for each system : mil22h_from='mil vrn frl' mil22h_to='mci vci fci' ... (4 Replies)
Discussion started by: Pierluigi.sala
4 Replies

5. UNIX for Dummies Questions & Answers

Uname command

Hi, Can anyone let me know the -n option in uname command in unix? Gone through the man pages of uname, but unable to interpret. Thanks in advance. (1 Reply)
Discussion started by: venkatesht
1 Replies

6. UNIX for Advanced & Expert Users

RedHat, Solaris - what is uname command ??

Hi ! All I'm big fan of Unix/Linux . I want understand the basics of linux/unix version and How they are related to Vendor ... releases. uname -a will give the OS details. But can somebody provide me a pointer , to understand the very BASICS of these terminology like Million Thanks.!!! (2 Replies)
Discussion started by: dashok.83
2 Replies

7. Solaris

small doubt reg uname command

Am new to solaris can anyone explain the fields in the below command. Also let me know the difference between nodename and hostname. Here osnask2 is the hostname and type SUNOS. What abt the remaining fields.? #uname -a SunOS osnska2 5.8 Generic_117350-47 sun4u sparc SUNW,Sun-Fire-480R (1 Reply)
Discussion started by: rogerben
1 Replies

8. Shell Programming and Scripting

ssh and remote command exec `uname -r`

Hi guys, I am trying to do a ssh for performing a set of actions. Find it below: I need to put the user/ kernel/ DISTRO variables before I complete this operation. what I observed is when ever I put a `command` in those quotes, it performs thta action in local system rather than remote one.... (5 Replies)
Discussion started by: jbmukund
5 Replies

9. Shell Programming and Scripting

How to Change Uname output?

I want use fake uname anyone can guide? (9 Replies)
Discussion started by: redstaing
9 Replies

10. Shell Programming and Scripting

How to Change Uname output?

I want replace 2.6.15-25-server with 2.6.17 ? $uname -r 2.6.15-25-server 1) mv /bin/uname /bin/uname.orig 2) put the following in the new /bin/uname: #!/bin/sh echo Uname (New Version) /bin/uname.orig :confused: (3 Replies)
Discussion started by: pop_black
3 Replies
Login or Register to Ask a Question
UNAME(1)						    BSD General Commands Manual 						  UNAME(1)

NAME
uname -- display information about the system SYNOPSIS
uname [-aiKmnoprsUv] DESCRIPTION
The uname command writes the name of the operating system implementation to standard output. When options are specified, strings represent- ing one or more system characteristics are written to standard output. The options are as follows: -a Behave as though the options -m, -n, -r, -s, and -v were specified. -i Write the kernel ident to standard output. -K Write the FreeBSD version of the kernel. -m Write the type of the current hardware platform to standard output. -n Write the name of the system to standard output. -o This is a synonym for the -s option, for compatibility with other systems. -p Write the type of the machine processor architecture to standard output. -r Write the current release level of the operating system to standard output. -s Write the name of the operating system implementation to standard output. -U Write the FreeBSD version of the user environment. -v Write the version level of this release of the operating system to standard output. If the -a flag is specified, or multiple flags are specified, all output is written on a single line, separated by spaces. The -K and -U flags are intended to be used for fine grain differentiation of incremental FreeBSD development and user visible changes. ENVIRONMENT
An environment variable composed of the string UNAME_ followed by any flag to the uname utility (except for -a) will allow the corresponding data to be set to the contents of the environment variable. EXIT STATUS
The uname utility exits 0 on success, and >0 if an error occurs. SEE ALSO
feature_present(3), getosreldate(3), sysctl(3), uname(3), sysctl(8) STANDARDS
The uname command is expected to conform to the IEEE Std 1003.2 (``POSIX.2'') specification. HISTORY
The uname command appeared in PWB UNIX. The -K and -U extension flags appeared in FreeBSD 10.0. BSD
November 20, 2013 BSD