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
30 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
24 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 ...
0
votes
1answer
1k views

Unix - ps to check if script running

I'm running a script which is meant to process a few utilities in order to recover some data. This script is situated in a directory where the users can place their file that needs to be recovered. ...
1
vote
2answers
41 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 --...
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 ...
0
votes
1answer
16 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 ...
0
votes
2answers
1k views

Restricting NFS clients to particular IP addresses blocks _all_ addresses

I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system. I have roughly the following value for the share property of a tank/mail ZFS filesystem: ...
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
51 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 ...
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 ...
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
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 ...
1
vote
2answers
280 views

Solaris 10,print only banner

I have a remote printer by cups(cups-pdf virtual printer) on linux server. BSD,Hp-ux and linux works fine,on solaris 10 i have this problem,print the banner only,not the text of file. I have ...
0
votes
0answers
17 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 ...
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
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 ...
1
vote
2answers
2k views

silent and non-interactive installation of a package in Solaris using pkgadd and admin file

The command am giving is: pkgadd -a admin file -d absolutepathofpackage Then, its showing the below error The following packages are available: 1 Packagename BigFix Agent (...
2
votes
1answer
1k views

“ndd” equivalent of “ethtool” on Solaris

I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command: rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system And I've got this ...
0
votes
1answer
2k views

Unable to mount NFS share in Solaris Local zone

I am trying to mount one NFS share in my Solaris Local zone.But I am getting error like below. showmount -e hostname showmount: hostname: RPC: Rpcbind failure - RPC: Timed out. I tried to ping the ...
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 ...
28
votes
5answers
144k 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 ...
8
votes
3answers
3k views

Where is GCC-5 after installing it on Solaris 11?

Please forgive my ignorance... I only use Solaris for testing C/C++ libraries I have an interest in. I'm not a Solaris admin or Solaris user. I installed GCC-5 on Solaris 11.3, x86 because I needed a ...
0
votes
1answer
2k views

Solaris 11 in Maintenence mode: nfs mount: : RPC: Rpcbind failure - RPC: Unable to receive

There is an issue with Solaris 11 machine and it boots automatically to the single user mode.We can see the error message "nfs mount: : RPC: Rpcbind failure - RPC: Unable to receive". The machine is a ...
0
votes
0answers
52 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 ...
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 ...
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. ...
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
6k views

How to set mail subject using variable and ensure attachment is not included in email body

I have the following shell script fragment. var_name='ZZPCI' for emailadd in `cat /tmp/email_list.tmp` do subject_text="Subject with Var Name "$var_name subj_text_novar="Subject without Var ...
3
votes
2answers
1k views

How to know NIC firmware in Solaris 11.3?

I have Oracle Solaris 11.3 (Intel) installed. In my server, I have three different NIC adapters placed. I have recently upgraded the firmware. I want to know whether the firmware has been ...
3
votes
2answers
45 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 ...
16
votes
4answers
13k views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
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
1answer
2k views

How to kill inactive user logins on Solaris?

On a Solaris 10 server if i do a w, I get this: 12:26pm up 85 day(s), 1:13, 6 users, load average: 0.38, 0.36, 0.38 User tty login@ idle JCPU PCPU what blah pts/1 ...
1
vote
1answer
2k views

Samba 3.6.12 and NIS

We were able to use Samba and NIS on Samba 3.0.8 on Solaris 10 U5. When we update system to Solaris 10 U11, samba version became 3.6.12. And we are unable to authenticate like old style. I did not ...
1
vote
1answer
605 views

Dedicated CPU allocation to zone in Solaris 11

I have created a zone called web in Solaris 11. Now I want to allocate one dedicated CPU resource to that zone. But it's throwing an error: "No such entry". I did the following... zonecfg:web> ...
0
votes
3answers
819 views

Hours and Minutes addition in Solaris

I work in a solaris server and the date -d option is not there. No gdate as well. Here's what I have which works in Linux: date -d "$hr:$mi $duration minutes" +'%H%M' where $hr and $mi are hours ...
3
votes
1answer
133 views

How to force OmniOS (illumos) “format” properly recognize disk geometry?

I have a FreeBSD-initialised 8-disk vdev, all 10TB WD RED, now on a server with OmniOS r151026, connected via LSI 3008 HBA. At POST, the card shows all disks with right geometry (I can post picture ...
1
vote
1answer
563 views

Solaris script to scp files from the Solaris server to Linux server

I need to scp some .xml files (of duration April-May 2016) from a Solaris server (Server A) to a Linux server (Server B) where the Solaris server is the home directory where the script is written and ...
2
votes
4answers
177 views

Variable in Date command

I want to use a variable inside date command . GNU date is not supportable in my system. I use Sunos and when I use date with -d option it is shwoing -d as bad substitution. #!/usr/bin/ksh ...
5
votes
2answers
6k views

bourne shell if [ -e $directory/file.$suffix ]

#!/bin/sh CONFIG_DIR="/var/opt/SUNWldm/" read option if [ $option -eq 9 ]; then ret=1 elif [ -e ${CONFIG_DIR}file.xml.${option} ]; then echo "TRUE" fi I have the above code in a while ...
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 ...
3
votes
4answers
459 views

text processing rows to columns for a block

I have a file containing lists on Solaris: List A hi hello hw r u List B Hi Yes List C Hello I need to transpose the lists as shown below: List A List B List C hi Hi Hello ...
2
votes
1answer
106 views

How can I write directly to a Solaris FIFO pipe over ssh?

I have a Solaris server running a process that has its input and output redirected into FIFO pipes (fifo_in, fifo_out). How can I connect to these two pipes over ssh? I would like to be able to ...
0
votes
2answers
757 views

Jboss application startup and shutdown asks for password. How to automate with init script?

Jboss application startup and shutdown of BMC-IDM asks for password (called keystore password, some Java stuff). How to automate with init script? Stop application > stop_idm_suite.sh Suite ...
0
votes
2answers
75 views

Allow null password for file transfer from Sunsolaris machine to linux mchine?

I m trying to pull a file from a Solaris server to my Linux server and I did it successfully by using scp.I want to run this below command as a cronjob, How can I save password for this automation ...
1
vote
3answers
7k views

/etc/vfstab in Solaris 11

I would like to mount a folder from the remote server 10.12.13.2. When I type: mount -F nfs 10.12.13.2:/username /remote/username, the folder username gets mounted in the directory /remote/username. ...
1
vote
1answer
2k views

Solaris 10 openssl version 1.0.1k but apache httpd not compiling,showing version too old-0.9.8a

I have compiled openssl from source on my Solaris machine to a newer location apart from the default one. When I set the newly compiled ssl path in PATH variable and LD_Library path and then compile ...