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
0
votes
3answers
1k 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
187 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
674 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
529 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
49 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
539 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
176 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
767 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
76 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
8k 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 ...
2
votes
1answer
163 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....
25
votes
3answers
105k views

Searching for a string on multiple zip files

I am working on SunOS 5.10. I have a folder that contains about 200 zip files. Each zip file contains only one text file in it. I would like to search for a specific string in all the text files in ...
-2
votes
3answers
78 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
211 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
4k views

Variable comparison inside if in Bash

I'm trying to compare two variables inside an if condition: #!/bin/bash Jump="/home/Lists/srv" S=`echo "$1" | perl -ne 'print lc'` J1=`grep $S $Jump |awk '{print $1}'` grep $S $Jump >> /dev/...
1
vote
1answer
929 views

Disable null password for root user on Sunsolaris machine?

Currently i am using a SunSolaris machine: bash-3.00# uname -a SunOS labxxxx 5.10 Generic_144488-17 sun4u sparc SUNW,Netra-240 bash-3.00# When i try to set null(blank) password for root, it let me ...
0
votes
1answer
1k views

How do I safely perform the below changes to network parameters on Solaris 10?

I need to change and test some TCP/IP network parameters on a Oracle Solaris 10 as a possible workaround for a bug in 'Oracle Hyperion EPM 11.2.1.0' in the development environment. I am not a Solaris/...
2
votes
0answers
500 views

Sendmail configuration with user mapping on Solaris

I have the following: host1.intra.net which has sendmail and users: user1, user2 & user3. It is running SunOS 5.10. host2.intra.net which has SMTP server. No authentication, no encryption. Email ...
1
vote
2answers
409 views

wc -l command issues in SunOs to Linux migration

We are migrating from SunOS to Linux. I'm facing some problem with wc -l command. When I used wc -l <file_name>, SunOS is giving leading spaces before count where as Linux there are no leading ...
1
vote
3answers
2k views

How to capture the standard output of a script that depends on the user for some input?

There is a script that requires me to enter the password before it continues: bash-3.2$ ./script.sh <parameter_list> Enter the password for the Database: .. .. I am interested in capturing ...
3
votes
4answers
2k views

how to monitor a unix directory and if any new file in directory it will be copied to another directory

I want to monitor a unix(Solaris 10) directory and if there is any new file I want to copy it immediately. Tried: I have shown inotifywait and incron package in Linux for it but I don't know whether ...
0
votes
0answers
740 views

OpenIndiana driving me nuts: install vlc

I need to install VLC on OpenIndiana version 158a and I cannot find it. Here are the error messages I'm getting: No suitable version of required package pkg://openindiana.org/SUNWless@436,5.11-0....
1
vote
2answers
464 views

How to NOT load Solaris SPARC drivers at boot

Trying to get a driver (one of ours) working on Solaris 10 / 11 (this box happens to be Sol 10), with dev studio 12.3. It seems to be built, however, it crashes when loading, thanks to a NULL pointer ...
-1
votes
1answer
333 views

Solaris 9 - Word Count (wc) command gives wrong output with 'grep -v and ps' [duplicate]

When i use 'ps', 'egrep' and 'wc' command to count number of processes, it gives me wrong value. I am running the command in 'Solaris 9' machine. MyServer $ ps -fu root | egrep -v 'bash|ksh|ssh|ef|...
1
vote
4answers
5k views

how to find lastlog details in solaris

I need the equivalent command of linux lastlog in solaris, need to write a script to find the the users last login date and time in solaris servers. Linux its very easy to fetch using lastlog command. ...
1
vote
1answer
82 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
148 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 ...
0
votes
1answer
135 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 ...
4
votes
2answers
349 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
1answer
333 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?
2
votes
1answer
196 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
3answers
70 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
81 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 ...
0
votes
1answer
99 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
5answers
224 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 [ "$...
1
vote
1answer
78 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 ...
1
vote
2answers
230 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
31 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
2answers
2k views

Memory utilization in %(Percentage) in Sun Solaris?

I would like to get the memory utilization in sun solaris system in % percentage format. vmstat 1 1 | tail -1 | awk 'a=`/usr/sbin/prtconf|fgrep Memory|awk '{print $3*1024}'{ print 100-($5/$a)*100}' ...
3
votes
1answer
1k 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 ...
1
vote
1answer
81 views

I'm trying to output password statuses for RedHat. Is there an equivalent of “password -s” in RedHat?

I'm trying to output password statuses for RedHat. For my Solaris machine, I was able to run: for i in `more shadow | awk -F: '{print $1}'`; do passwd -s $i; done And that gave me password ...
2
votes
2answers
117 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
71 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
41 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" ...
2
votes
1answer
210 views

How to troubleshoot disk controller on Illumos based systems?

I am using OmniOS which is based off of Illumos. I have a ZFS pool of two SSD's that are mirrored; the pool, known as data is reporting its %b as 100; below is iostat -xn: r/s w/s kr/s kw/s ...
2
votes
4answers
8k views

Add new user in solaris

I tried to add a new user in solaris 10, but got an error: $ useradd -g oinstall -G dba -d /export/home/oracle oracle UX: useradd: ERROR: Inconsistent password files. See pwconv(1M). I ran pwconv, ...
6
votes
5answers
6k views

Solaris won't update because ddt-incorporation is using a self-signed certifcate

I'm trying to update my Solaris 11.3 x86 system. The system hasSun/Oracle software on it, including Sun Developer Studio and Sun SSH server. It does not have other software on it, and I don't have ...
0
votes
1answer
358 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 ...

1 2 3 4 5 22