Solaris is a Unix operating system originally developed by Sun Microsystems (currently owned by Oracle) as a rebranding of SunOS 4.1.x in 1991.

learn more… | top users | synonyms (1)

3
votes
1answer
262 views

How to change default log location of SMF registered processes

I am trying to change default log location ( var/svc/logs/) of each and every SMF registered processes and append to particular file (/opt/smf.log).
3
votes
2answers
61 views

Solaris - Inheriting by files the user's ownership of directory

I have a directory with ownersip like user:group. I want to make on it something like sgid, but for user - all of new created files have a directory ownership. For example: drwxrwx--- 2 user group ...
3
votes
1answer
34 views

update line based on previous line

I have a issue since I'm not familiar with awk. I have csv file generated from sar -d output converted to csv style: 12:33:41 unix,restarts 12:35:00,lofi4096,0,0.0,0,0,0.0,0.0 ...
3
votes
1answer
145 views

How do I change the Java Security level?

We've got an ancient (internal use only) self-signed app that refuses to run now with the changes to the JRE. Working on getting a code signing certificate and rebuilding it, but that's horribly slow ...
3
votes
1answer
63 views

Moving to Solaris (from Linux) [closed]

I got curious about why not so many people have Solaris in their desktops and laptops. I wonder whether it's a good idea at all, or something just for the absolute geek. Could I maybe give it a try ...
3
votes
1answer
414 views

Solaris 11: Accessing a pool on disk from live DVD?

I made a rather bad mistake while playing around with Solaris 11, which has left me locked-out. I accidently changed the first character of my username in /etc/passwd, and the "new" username is not ...
3
votes
1answer
1k views

Obtain device name and mount point if partition label is known

How to obtain the partition device name and mount point when the file system label is known? There are several possibilities: Linux File system label to device name The device name can be obtained ...
3
votes
3answers
618 views

Solaris 11 randomly crashed

I have a Solaris 11 machine that randomly crashed this morning. After physically restarting the machine, I noticed that all of the drives were marked with a Sense Key: Soft_Error both in dmesg and in ...
3
votes
1answer
218 views

Detecting multihomed machine

Is there a way to reliably detect whether or not a machine is multi-homed? I'd like to be able to write a script that will return a true or false regarding that information.
3
votes
1answer
679 views

Warnings about read-only filesystems while installing a solaris package

I have a solaris machine that I am trying to install Perl 5.12 as well as gcc and make to get CPAN working. I downloaded the packages from sun freeware, and was able to install gcc. When I tried to ...
3
votes
2answers
579 views

Solaris service status and dependencies

I'm creating service manifests for MySQL and a WebLogic service that depends on the MySQL service. I want all of them to use the management model "wait" (run a process in the foreground). I have some ...
3
votes
2answers
2k views

Solaris 10 boot from cd-rom

I am trying to start up my solaris server using the newly downloaded iso written on a CD. The iso name is sol-10-u9-ga-sparc-dvd.iso When we started the server, logging in as root then tried to boot ...
3
votes
4answers
2k views

stty: : Invalid argument

I am telnet-ing into a Solaris machine and I'm getting the above error with my scripts. I realize this is a common problem, and the solution is to check for the line 'stty erase ^H' within my profile, ...
3
votes
2answers
955 views

How to trace a process to original user?

Say, on a Solaris server, user1 logs in, switches to someother user, say sruser, using su - and then starts a process of id X. And then another user user2 logs in, switches to sruser the same way and ...
3
votes
0answers
80 views

Cannot install zone on Solaris 11

I am trying to install a zone on Solaris 11. I am using these instructions. I get up to Listing 2 when the error occurs. # zoneadm -z testzone install The following ZFS file system(s) have ...
3
votes
1answer
46 views

How difficult will it be to determine, get and apply latest patches to Solaris 8

I have a Sun Ultra Enterprise 2 running Solaris 8 (Generic_108528-11). This hasn't had any patches applied for years. I just now got the configuration right for connecting to the internet through my ...
3
votes
0answers
727 views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on Sunos 5.8 SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color ...
2
votes
2answers
345 views

Do Solaris 10 and 11 still use slab allocation for their kernel memory allocator

If not, what do they use. Please provide a source.
2
votes
4answers
2k views

sh and grep numbers only

I'm facing a problem and trying to find a solution that works in sh. If I could use bash this code would work: ls /a|grep ^[0-9] Unfortunately this is not the case with sh, and yes I need to use ...
2
votes
2answers
319 views

Solaris11: Alternative to xVM Hypervisor?

AFAIK, support for the xVM Hypervisor - basically Xen - has been dropped in Solaris 11. Is there an alternative/replacement for it? How does it compare to Xen? Obviously there is zones if you want ...
2
votes
2answers
5k views

Solaris disk failed, how to remove it?

I have a system with Solaris 10. One of the internal disks is broken: c0t0d0s2 auto:sliced rootdisk1_1 rootdg online c0t0d0s2 - c0t1d0s2 auto - ...
2
votes
1answer
354 views

Can i update my commands( like awk,sed) to the latest release in solaris?

bash-3.00# awk '{print NR}' f1.txt 1 2 3 4 but FNR does not print anything. awk '{print FNR}' f1.txt the above line does not gives me any output,seems that the awk that i am having in my ...
2
votes
2answers
626 views

Is there any impact of reaping zombie processes?

I will execute following command for reaping zombie /usr/bin/preap $(ps -ef | grep defunct | grep -v grep | awk '{ print $2 }' | xargs) Is there any service impact of this approach ?
2
votes
2answers
494 views

Is crontab related to server performance?

I am using Solaris 10, and I am adding many cronjobs to my server's crontab. Currently I have 30 cronjobs in my crontab. one cronjob takes 8 hours to complete ,one other cron job takes 5 hours to ...
2
votes
4answers
2k views

Can not find link to download OpenSolaris source code

I want to understand how OpenSolaris ptools(process tools) works. How exactly pstack, pmap, pargs etc works, but I can't find any link to its full source code. I can only find an online version of ...
2
votes
1answer
44 views

How do I use grep to find a text string in files in sub folders of a parent folder without -r switch

I'm using Solaris 10 and have two grep versions one in /usr/bin and one in /usr/xpg4/bin. I have been searching for an answer on how to search for text within files within sub folders of a parent ...
2
votes
3answers
1k views

`solaris + xargs command for solaris

the command find /tmp -name 'core*' -type f -print0 | xargs -0 works fine on Linux, but xargs -0 option is not legal on Solaris what is the equivalent option ( xargs? ) for Solaris 10 second ...
2
votes
3answers
4k views

“Access denied” when logging to Solaris virtual machine using ssh

I have got a Solaris 10 on a VMware virtual machine in Windows. This is what I did: 1) Installed PuTTY. 2) Checked whether ssh is running or or not in my Solaris desktop as below: bash-3.00# ps ...
2
votes
3answers
7k views

What's the meaning of NP and UP in the password field of the shadow file

I found some entries in a shadow file whose meaning I don't understand. user:UP::::::: user1:NP::::::: What does UP and NP mean? In addition to those 2, the same shadow file has the normal hashed ...
2
votes
1answer
90 views

“The entry is a door” in Solaris “ls” man page

I found this in a man page for ls in solaris linux. http://www.unix.com/man-page/opensolaris/1/ls/ What does it mean when it says: D the entry is a door?
2
votes
2answers
917 views

Prompt “-bash-3.2$” vs. “bash-3.2$” in SunOS 5.10

When I log into a server running SunOS 5.10, my prompt initially is "-bash-3.2$" Then when I run the following commands, I can see that the prompt is slightly different after typing bash (it no ...
2
votes
3answers
4k views

solaris 10 + display 2 lines after match by grep?

I want to match for example: The string e1000g0 from the lltconfig -a list , and then to display the two lines after the string e1000g0 so I get only the lines: Node 0 du1a : ...
2
votes
2answers
3k views

What are the dangers of setting a high limit to max File Descriptors per process?

I'm working on an old legacy application, and I commonly come across certain settings that no one around cam explain. Apparently at some point, some processes in the application were hitting the max ...
2
votes
1answer
392 views

Can't add swap file on solaris

I'm trying to add a swap file on Solaris 10. I have already created a 2GB file swap.file. Then, I add a swap file with the command: swap -a /swap.file which shows an error: /swap.file: size is ...
2
votes
1answer
158 views

How to bind emacs abort to key

This is from a .el file loaded in my .emacs file. What do you think? ;;; Sun keyboard bindings ;; the below line does not work: ;; when <cancel> is pressed, the minibuffer echoes "Quit" ;; but ...
2
votes
1answer
265 views

Solaris zone removal and transformation

I have a Solaris server which has two zones on it. I need to remove one zone and change the remaining zone into the server's main operating system. What is the best way to do this? I was thinking ...
2
votes
4answers
975 views

Shell scripts Linux -> Solaris conversion guide

I've developed a few Bash scripts on a LFS system which should now be made to work on a minimal installation of Sun Solaris 10. Is there a guide somewhere with at least some general tips for ...
2
votes
1answer
37 views

What package has GNU sed for Solaris?

I need to use the features of GNU sed, instead of the built-in version under Solaris 10. Which GNU package contains it? I don't see it listed in the coreutils, and my Google searches haven't helped ...
2
votes
2answers
347 views

How to create a gnu tarball that can be extracted by solaris tar

I am maintaining a legacy cygwin (with GNU tar v1.21) system and a legacy Solaris 9 system. The configuration of the Solaris 9 system is fixed and cannot be upgraded (i.e. I can't install gnu tar for ...
2
votes
3answers
237 views

List all open '.log' files in *nix

There are times as a system administrator, you might not be sure of the log file paths of a new application. Depending on the system, there may be multiple ways to find the same. Please share the ...
2
votes
1answer
1k views

Process Monitoring on Solaris

$ prstat -t NPROC USERNAME SWAP RSS MEMORY TIME CPU 164 oracle 5446M 5445M 8.3% 13:47:50 1.6% 52 root 576M 728M 1.1% 42:29:50 1.0% 1 noaccess 300M 273M 0.4% 0:20:54 0.0% ...
2
votes
2answers
252 views

Cursor keys in bash in dtterm don't work as expected

I am trying to remap some of my keyboard shortcuts in bash. The problem is that when I try to display key code using Ctrl-V, not all keys work. For example, Typing Ctrl-V, then Home moves the terminal ...
2
votes
1answer
51 views

Is there a PAM Standard?

Related to a StackOverflow question I have. Since it's more or less really a SO question through and through, I won't go into the whole spiel. My platform question is this: Is there an industry ...
2
votes
1answer
2k views

Solaris - permanently update PATH for all users

I have installed JDK and Groovy on my Solaris 11 machine. I would now like to set things up so that the PATH variable would contain the bin directories whenever I open a shell. It is my understanding ...
2
votes
4answers
3k views

print last field from line + alternative for awk

Due to technical reason on my Solaris machine, I can't use awk in order to print the last field in line. What are the other alternatives to awk that print the last field from line (using cut or tr ...
2
votes
2answers
6k views

Solaris + display file time stamp [year][month][day]

I have Solaris 10 machine I need to verify time stamp of some file in my Solaris machine And to get the following format [year][month][day] Example of working command on Linux ls -l ...
2
votes
2answers
459 views

Filesystem type on Solaris 5.10

How can I get the file system type for each device on Solaris 5.10? I tried mount with no args but that only listed each mount point, similar to df. Also, how can I find where a specific directory ...
2
votes
2answers
13k views

High load average, low CPU usage - why?

We're seeing huge performance problems on a web application and we're trying to find the bottleneck. I am not a sysadmin so there is some stuff I don't quite get. Some basic investigation shows the ...
2
votes
2answers
698 views

Per Socket network Buffer queues utilization

Is there a way to get a per-socket send and receive Queues utilization on Solaris similar to the way that Linux' netstat displays it? Example on Linux: Proto Recv-Q Send-Q Local Address ...
2
votes
4answers
590 views

Is there any handy command line tool to manage Cron jobs?

Would someone suggest any handy command line (NOT web) tool or script which adds, enables and disables Cron jobs? I am looking, for example, for the following (or similar) behavior: sh manageCron.sh ...