Questions tagged [solaris]

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
39 views

List processes that have been running more than 2 hours

How can I list processes, with a defined name, that have been running for more than 2 hours. This is what I have tried. ps -efo pid,comm,etime | grep 'process name' | awk '{print $3}' This is for ...
1
vote
1answer
25 views

Solaris 11.3.1 upgraded to 11.4.0 failing

trying to upgrade from Solaris 11.3.1 to 11.4.0 and I keep running into a dependency problem that for the life of me I can't get past. I'm guessing it needs a package that isn't available inside ...
1
vote
0answers
42 views

How to exit if a on of shells failed?

I'm trying to connect to an Oracle DB with a Perl script to execute some queries on solaris OS, and I have saved each one of them like: create table t1 .. update t1 .. insert into t1 .. The main ...
1
vote
2answers
43 views

Solaris how to exclude files in gz

How do I exclude files while gz in Solaris; I want to gz directories inc sub directories but exclude /temp directory and *.gz files. This is what I have used so far; tar -cvf api_v2.x.tar.gz --...
0
votes
1answer
17 views

Adding a user with disabled password and login

How do I add a user similar to this in Solaris (disable password, login and no home page) for service account. adduser --system --ingroup group-name --disabled-password --disabled-login -no-create-...
0
votes
1answer
22 views

Solaris server not accessible after office relocation (including network change)

We had an office relocation activity as part of which one of our Solaris server was moved to a different location & different network. We forgot to change the ip of the server before the hardware ...
1
vote
2answers
74 views

Convert Bash script to AWK script

CURTIME=$(date '+%s') LOG=/home/apache_logs.txt FILETIME1=$(stat $LOG -c %Y) TIMEDIFF1=$(expr $CURTIME - $FILETIME1) I created this script in Ubuntu and it works fine there but on SunOS, (...
2
votes
1answer
52 views

Solaris pstack how to read output / output format

I have the output from a Solaris pstack on a core file. I don't understand how to map the numbers in the log to the parameters that were being used by the functions in question at the time of the ...
2
votes
0answers
30 views

What are the directories and configuration files used to set the umask by the superuser in Solaris UNIX?

One file I can think of is the .profile file in the user's home directory. However what are the absolute paths (directories and file names) that are used to set the UMASK level at the operating ...
0
votes
0answers
33 views

How do I get Oracle Solaris 11.3 to lock the screen automatically

Anybody know how I can get Oracle Solaris 11.3 to lock the screen instead of automatically logging out after a default period of time? The time frame does not matter; it's the fact that I get logged ...
0
votes
0answers
22 views

Solaris: internal compiler error: Failure while writing SunIR file?

Today our Solaris box started randomly failing to build our company software product. It's a fairly large build of hundreds of .c files. The error the Solaris C compiler cites: (On a random file in ...
0
votes
0answers
18 views

keyboard key UP not responsive in Solaris

I would like reach in terminal previous executed commands. Therefore I use the key arrow up. However I have to hit the key several times in order to display previous commands. I already tried to ...
0
votes
0answers
20 views

Why is the iostat output only wait column high on Solaris 11?

When performing end backup on Oracle DB, lgwr has a 4000 millesecond delay. And.. Only wait and %w are high in the iostat result. extended device statistics r/s w/s kr/s ...
1
vote
0answers
34 views

Find where exactly a script is being called from

There is a script in a server (known location) that copies a file from one location to another, eg : cp /dirA/file.DAT /dirB/file.DAT This script is being run daily and copies the file, but I don't ...
1
vote
0answers
38 views

sendmail -v email@email.com returns killed when root

For some reason some of my Solaris 10 systems won't send mail as root. If I try to send a test email as a non root user using sendmail -v I get a nice long list of details ending in success. If I ...
2
votes
2answers
91 views

ZFS pool performance, zio_write_issue

We have a relatively large ZFS pool (23 vdevs in raidz3, ~1PB raw). The headnode has 16 cores and 192GB of RAM. We have one ZIL in the pool and no L2ARC. The pool is running solaris 11.3 The pool can ...
0
votes
0answers
54 views

Unable to update Oracle Solaris 11.3

I've got a fresh installation of Solaris 11.3. I made a local repository and I issued pkg update and rebooted the system but I don't get my system updated root@db1:/repository/repoSolaris11# pkg ...
1
vote
0answers
36 views

How do I get Solaris 11.3 to recognise my hard drive as having 4Tb capacity?

I have a hard drive which I know has 4Tb capacity, but is only showing on my Solaris 11.3 x86 system as having 2Tb. format -e yields the following: c1t2d0: configured with capacity of 2047.89GB 2. ...
4
votes
2answers
182 views

Solaris 10: Virtual Memory Exhausted

Our group is all programmers and exclusively use Linux or MacOS, but a customer uses Solaris 10, and we need our code to work there. So we scrounged up an old SunFire V240, and a rented Solaris 10 VM ...
0
votes
1answer
75 views

wc behaves differently on Unix and Linux

I observed different results when I tried echoing value and counting the number of characters with "wc -c" on Linux and SunOS(Unix). root@SunOS-machine:~# echo "1" | wc -c 2 root@Linux-machine:...
0
votes
1answer
34 views

Installing Vmware ESX on Solaris server

I have been told to install VMWare ESX on the Solaris server, but I could not find resources about this issue on the web, how is that possible?
1
vote
1answer
19 views

Why does the solaris-8 “scadm shownetwork” command show a different IP address that the one that is actually configured?

When I run the scadm command, the IP Address is different than the one I have configured on my server: 55 /usr/platform/SUNW,Sun-Fire-V210/sbin> uname -a SunOS UI1 5.8 Generic_108528-29 sun4u ...
3
votes
2answers
46 views

Easy free Solaris-like development VM

I wrote some open source Linux/BSD software with a command line interface and would like to know if I can easily make it run on Solaris too. What would be the easy options (i.e. about equally easy as ...
0
votes
0answers
30 views

X11 Forwarding Terminates Without Error

I am trying to execute an application on a remote Solaris 11 machine using Xming and X11 forwarding, however when attempting to connect with X11 forwarding using plink the connection succeeds but ...
2
votes
1answer
64 views

How to install .net Mono on Solaris 11 (source code compile)?

I downloaded the last mono tar to Solaris 11 I install the required packages: # pkg install autoconf # pkg install automake # pkg install libtool # pkg install gcc When I tried to configure mono 5....
-2
votes
3answers
53 views

Grouping data based on the second column

I have a file with the following lines: 1 a 2 a 3 a 1 b 2 b 1 c 2 c 3 c 4 c 1 d I want to get the result as: a 1 2 3 b 1 2 c 1 2 3 4 d 1
0
votes
1answer
53 views

Getting find: bad option -o -name abc -o -name xyz when perform search for *.properties excluding set of directories from search [closed]

#!/usr/bin/ksh # ***************************************************************************************** # copy_properties.sh # This script copies *.properties files from all directory excluding ...
1
vote
1answer
44 views

What does “no device” mean when running iostat -En

We presume to have a faulty cable that connects the SAN to a direct I/O LDOM. This is a snippet of the error when running iostat -En c5t60060E8007C50E000030C50E00001067d0 Soft Errors: 0 Hard ...
0
votes
1answer
70 views

awk: Pipeline and “@” as delimiter

I am trying to apply two delimiter using awk which are | and @ at the same time using something like this: awk -F"[@|]" '{print NF}' But the output is always taking only one of them as separator ...
0
votes
1answer
80 views

Does BSD have priveleges or capabilities?

In Solaris, I believe that you can assign privileges to users, and in Linux you can assign capabilities to executable files. Does some or all BSD flavors have privileges or capabilities, or something ...
1
vote
1answer
88 views

Can you assign Linux capabilities to users?

In Solaris, I believe that you can assign privileges to users. I know that in Linux you can assign capabilities to executable files, but can you also assign capabilities to users?
4
votes
2answers
252 views

Does macOS and Solaris have “capabilities”?

Linux have capabilities, which are used to give a non-root process some privileges. Does macOS and Solaris also have capabilities? if not, do they have something similar to capabilities?
1
vote
3answers
62 views

Can a Solaris 11 account prefixed with # be used to login?

I have been given a list of accounts on a Solaris 11 server that contains several accounts which are prefixed with a # character: "#username". (No LDAP is being used, and all accounts are local ...
0
votes
1answer
44 views

Ipsec tunnel with solaris10..what I miss?

I want to create a two Solaris10 tunnel encrypted with ipsec.Configuration is simple: 2 solaris10 nodes,lan not encrypted,tunnel encrypted. Lan is e1000g0 and tunnel is ip.tun0 Ip "clear" for node1 is ...
2
votes
1answer
76 views

Viewing Port Info FC Solaris 11

I have a hba card with two ports (port 0) and (port 1) and I want to know how can obtaining using OS the info to mapping the wwn that I can see using fcinfo hba-port command to a port of the hba card. ...
1
vote
1answer
59 views

Solaris and smf: how to do a rc.local shutdown with smf?

With the old good SystemV scripts, if I want something before shutdown, I put a script like this in /etc/rc0.d/ K400rc.local.shutdown.sh And I edit it and put my commands which I want to run before ...
0
votes
1answer
66 views

Replace application from computer with cpu SPARC 64b to computer with cpu Intel 64b [closed]

I have application compiled on server with Solaris 8 and CPU UltraSPARC-III+ x64b and need replace it (due to server end of life) to another new machine with CPU INTEL 64b , its may be same OS or ...
1
vote
2answers
142 views

Solaris script - modified date file age

I have a bash script on a Solaris server to provide an alert if a file is in a folder location for longer than 5 minutes. if [ -f $1 ] then a=0 else a=1 However, it is throwing a lot of false ...
0
votes
0answers
30 views

Solaris - modified date file age [duplicate]

I have a bash script on a Solaris server to provide an alert if a file is in a folder location for longer than 5 minutes. It seems the -mmin command doesn't work in Solaris. if [ -f $1 -mmin +15 ] ...
1
vote
5answers
130 views

IF construct in Solaris box to compare hh:mm:ss

I had created the below script which does the comparison between hh:mm:ss format variables. #!/bin/sh lag=00:00:00 MAX_LAG=00:05:00 echo $lag echo $MAX_LAG if [ "$lag" \< "$MAX_LAG" ] ##if [ "$...
2
votes
2answers
69 views

Solaris : Sort numerical values

I have a file with following values. keyword1 19.02 1.69.94 keyword2 19.01 1.68.118 keyword3 19.02 1.69.119 keyword4 19.01 1.68.115 keyword5 19.02 1.69.304 keyword6 19.02 1.69.39 I want these to be ...
1
vote
1answer
43 views

Bash SSH Version [duplicate]

Unable to assign the SSH version number to a variable in bash. Running the below code, the output from "uname -a" is assigned to the variable "os", however the output from "ssh -v" appears in the ...
1
vote
1answer
28 views

Solaris 11 - PAM application

I'm trying to compile an application which interacts with the PAM system on Solaris 11, however everytime I try compile the code I get "fatal error: security/pam_appl.h: No such file or directory" ...
0
votes
1answer
146 views

How to start the default browser (and/or any default application) from command line on Solaris?

I'd like to open a URL in the default internet browser from my application. My application gets compiled for MS-Windows, Linux, Mac and Solaris. One way to achieve that on Windows is using the shell ...
5
votes
2answers
386 views

Rename multiple files, add date in the middle

I want to rename all files in a folder, including a current time stamp in the name, retaining the original extension, in Solaris, like this: test1.txt > test1.date.txt I tried this, but I lose the ...
-1
votes
1answer
44 views

How many packages can one pc contain (without conflicts)? [closed]

I'm talking about one architecture, one distribution "at a time" (no multi-boot) and only packages in official repositories. If repos from different distros can be mixed, I'd like to distinguish ...
-2
votes
1answer
59 views

Top 15 Users in mount level

I need to get a list of the Top 15 users (storage) in every mount. I am able to get the mount level information but I am not able to get the top users in every mount. I can see the nested folders in ...
0
votes
1answer
285 views

How to check which process is writting on FileSystem Solaris

I need to identify what process is writing non-stop on the Disk. I tried to run prstat -t to get the list of the processes running, but I can't identify/find which process it is. running df -k , I ...
0
votes
0answers
54 views

User entries not deleting in lastlog file in Solaris

I am deleting a user in Solaris 10 and 11.  If I delete a user using the command userdel -r test1 and then check my lastlog file /export/home/ch185140/lastlog, I get output like this: 1 tj100201 ...
1
vote
1answer
289 views

usermod command not working on solaris

I am trying to add one more group in already added supplementary groups for a user. rcc is the name of the supplementary group I need to add sm254040 is the user id. when I run the command usermod -...