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)

0
votes
2answers
158 views

tar + how to extract from /var/tmp in order to place the directories under /

I work with solaris 9 machine In order to extract the list.tar file I need to change directory to / And from there I do: tar -xvf list.tar Example Cd / tar -xvf list.tar x ...
0
votes
2answers
427 views

perl one liners + match word and delete string after separator

I work with linux/solaris machines and I need to add some rule in my ksh script: Please advise how to match the password word in file, and delete the value password after the separator "=" with perl ...
3
votes
1answer
49 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
1answer
340 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 ...
0
votes
1answer
64 views

Similar to solaries prstart -t command in linux

What is a similar command in Linux for the command from Solaris: prstat -t I am interested to get user vice resource consumption (i.e. memory and processor). It gives NPROC UserName SWAP RSS ...
1
vote
1answer
27 views

solaris.grant and granting/delegating rights?

I have a couple of question regarding Solaris 11... First off, as far as I can tell, Solaris has dropped the auth solaris.grant in Solaris 11... Why was it removed? Is it no longer needed? Did it ...
0
votes
1answer
93 views

What happened to Primary Administrator profile in Solaris 11?

What happened to the "Primary Administrator" profile in Solaris 11? Why was it cut? Are there any alternatives? How does it differ from the root-role (which is profiles=All;auths=solaris.*) Is the ...
2
votes
2answers
769 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 ...
0
votes
2answers
7k views

Memory usage on SunOS and Linux

I have some doubts with memory usage. Currently I have nagios check who measures used memory from free -m command on Linux. I added another script for memory usage from ...
7
votes
0answers
871 views

Solaris SMF vs Linux Upstart [closed]

I'm in the process of learning Upstart after first having learned SMF. Naturally I'm assuming that they fulfill the same purpose but I'm aware that this is where I'm wrong. Ideally I was hoping ...
0
votes
3answers
183 views

Shell attempts to interpret Perl script in spite of correct shebang [closed]

I have looked through the forums and I can't seem to find how to fix this. I have a very simple perl code that works fine on Windows, but when I try it on Linux and Solaris I get the following errors: ...
4
votes
1answer
74 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 ...
1
vote
3answers
1k views

Solaris - get a list of the commands run at startup/boot?

Is there any way of seeing a list of commands that were run at startup/boot on Solaris? I know there is a network drive being mounted at startup but I wanted to see the exact 'mount ...' command ...
2
votes
2answers
536 views

Unable to mount CDROM on Solaris 10

I have problem with using CDROM on Solaris 10. When I mount any ISO using VMware, ISO is not being visible under Solaris. When I go to CDROM there is nothing inside: --- 134 # cd /cdrom --- 135 # ...
0
votes
1answer
73 views

What does @ mean in the hostname part of a .rhosts file in Solaris?

What does +@foo_hosts username mean in a user's .rhosts file? I presume it is defining a group of hosts in some way, but I can't figure out where to look for the definition of @foo_hosts. I found ...
2
votes
2answers
748 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 ?
1
vote
2answers
179 views

How to terminate GUI in SunOS from a shell-script

How to terminate GUI in SunOS from a shell-script running it from the terminal.
1
vote
2answers
341 views

Modify Default Group for new Users in Solaris 11

I would like to change the default group for new users which are added to the system. Does anybody know in which file this is stored? I'm using Solaris 11
2
votes
3answers
10k 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 ...
1
vote
0answers
122 views

Solaris 10 on x86: local sockets (unix domain sockets) very very slow? [closed]

I'm writing an application both on Linux and Solaris 10. It uses local sockets for some internal communications. On Linux an open, exchange one short message & close cycle takes about 10us elapsed ...
31
votes
4answers
65k views

How can I get a full process list in solaris, without truncated lines?

Is there a way to generate a full process listing in solaris, without truncated lines? I've tried the ps command, with the following arguments: -f Generates a full listing. ...
2
votes
0answers
187 views

Move boot disk on SAN storage on Solaris 10

I'm looking for some infos/official docs/howto for migrating boot disks in a production enviroment server from internal disks to SAN on Solaris 10. It's possible for every kind of hw? It's also ...
1
vote
1answer
544 views

Sending Emails from bash script in Solaris VM

I am trying to send emails using the following bash script: /bin/mail -s "#subject" "$emailto" < "$message" It works fine on my local machine but does not work on my VM. I looked it up and read ...
0
votes
1answer
1k views

/var/adm/wtmpx: Value too large for defined data type [closed]

getting error /var/adm/wtmpx: Value too large for defined data type in Solaris 10.
3
votes
1answer
2k 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 ...
2
votes
2answers
552 views

Does Android SDK work in Solaris?

I want to compile my Android app in a Solaris server. Though, from Android Developers all I can see are Windows/MacOS/Linux versions. Does anyone know if I can install and use the Linux binaries in a ...
0
votes
1answer
169 views

How does dispatcher work?

This is a general Operating Systems theory question but since I am learning OS theory through UNIX-like systems I wanted to ask it here. Today, after my OS lecture , I asked to our instructor that: ...
1
vote
1answer
59 views

Configure Solaris to write out a core image of an abnormally terminated telnet and man process

What is the easiest way to configure Solaris to write out a core image of an abnormally terminated telnet and man process?
7
votes
4answers
23k views

How to check whether firewall opened for a port but not listening on the port

We will be deploying a new application to a Server and the application will be listening on port 8443. We have asked Network team to open the firewall for the port 8443 on that server before deploying ...
0
votes
1answer
72 views

Solaris 10 - what is appserv and boot.server? What do they do?

I'm working in a Solaris 10 zone on legacy startup scripts in the /etc/rc3.d/ There are two items that I don't know what they do. I know how legacy start-up works but just don't know what these items ...
0
votes
1answer
276 views

need to display hard error , transport error & soft errors above 2

iostat -En | nawk '/Hard Errors/ {line=$0;gsub(/.*Hard Errors:/,""); \ if($1>2) printf("%s\n",line); }' The output of this is c0t1d0 Soft Errors: 0 ...
1
vote
1answer
1k views

Cannot Connect to Internet but can SSH into Solaris x86 (vs. 11)

I am able to connect remotely to the machine using SSH, but I cannot ping www.google.com through the machine. I did the following to make sure SSH was enabled (well I know it is, as I am using ...
3
votes
1answer
297 views

SELinux context of files mounted from a Solaris server

Something I'm attempting to run in RHEL6 fails as a result of SELinux. The problem is temporarily easily solved with "setenforce 0". However turning SELinux off entirely isn't an option in my case. ...
2
votes
2answers
513 views

How do I trigger a script when a folder is updated in Solaris 5.10?

We are trying to write a script to move away files as soon as they drop in a folder. One way of achieving this is running rsync in a script on cron scheduler. The problem with this approach is the ...
0
votes
1answer
265 views

from iostat -En output ,i need to display Hard Error more than 2

I am a Customer service engineer for solaris. But I am new to shell scripting, I need to display the lines which are having Hard Errors more than 2 from the output of iostat -En | grep Hard in case of ...
1
vote
0answers
321 views

Solaris 11 - (unix: Could not start init) Program terminated)

During a restart of a server with Solaris 11, the system halted with the following alert: WARNING: exec(/usr/sbin/init) failed with errno 8. (unix: Could not start init) Program terminated. The ...
2
votes
1answer
781 views

How do I send all information in /var/adm/message file to a remote system?

I'm trying to figure out how to send all information that is normally identified in the /var/adm/message file on a Solaris system to a remote system.
2
votes
3answers
5k 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
3answers
451 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 ...
1
vote
2answers
1k views

Solaris 11 text mode after boot

I am running Solaris 11 on VMWare Workstation host machine Windows 7. Here is my OS and system details: SunOS solaris 5.11 11.0 i86pc i386 i86pc I want to boot Solaris 11 in text mode only i.e make ...
4
votes
1answer
180 views

returncode of command in a pipline [duplicate]

The following script runs on Solaris using /bin/ksh and on Linux using /bin/sh cmd | tee -a cmd.log | tail exit $? The output of cmd is saved in a file cmd.log and the last lines are displayed on ...
1
vote
0answers
113 views

error running raidctl on Solaris 10

I am trying set up a disk mirror on a Solaris 10 system. The two disks are identically formatted and not mounted. Neither is a boot disk. I ran the following: # raidctl -c c1t2d0 c1t3d0 ...
2
votes
1answer
2k 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% ...
12
votes
3answers
2k views

Wait command usage in Linux?

#!/bin/bash function back() { sleep $1 exit $2 } back $1 $2 & b=$! if `wait $!`;then echo success else echo failure fi bash-3.00# ./back 300 0 failure bash-3.00# ./back 300 1 ...
4
votes
2answers
1k views

What is the STATE column of the TOP command on Solaris?

I'm running a very large, memory intensive program on my new UNIX server and trying to fully understand the output of the "top" command. Here is what I see right now (showing only the first process): ...
2
votes
1answer
186 views

Regex to find NFS filesystems that aren't being mounted with nosuid, except for ones with special needs

I have a script that runs the command mount -v 2>/some/file, which I then parse with another script using the following regex: ^.*[\ \t]+type[\ \t]+nfs(?![\ \t]+.*\b(?:nosuid|nosetuid)\b).* The ...
1
vote
1answer
2k views

Is there any way to check df -k hanging for nfs mount issues?

I am trying to write a script for such failure scenarios. In a scenario where maybe, if remote connection is lost, df waits for the remote server to respond (looks like df is hanging). I know I could ...
0
votes
2answers
544 views

How to monitor average stats of CPU and memory usage of a Solaris server using scripts?

I need to monitor average CPU and memory usage for a Solaris server. How can I automate the process using scripts to monitor daily CPU and memory usage and give it as an average over a month?
1
vote
2answers
82 views

Installing crontab file on Solaris?

Typically we use crontab -u in our recipes. However we have a few Solaris 10 boxen where the flavor of crontab won't support the -u flag. Is there a way to deploy an existing crontab file using ...
0
votes
2answers
696 views

Why doesn't my client IP address appear in the netstat output?

My client is a MS Excel plug-in running on my laptop (client_machine1) that connects to a Solaris server (server1) to request some WebLogic Application running on port 28080. bash-3.2$ set | grep ...