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)

1
vote
1answer
137 views

Find the hostname or IP of a remote ssh session in Solaris

If I am logged into a Solaris server from my Windows laptop via putty using ssh, how, on the server, can I determine my Windows laptop IP or hostname?
0
votes
0answers
131 views

Solaris Bash script if condition command + store in variable?

I am trying to make two functions in bash. One function that loops through a directories' contents and makes an md5 hash for each file storing them in an .md5 checksum file in the same directory. The ...
4
votes
5answers
3k 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 ...
0
votes
0answers
85 views

useradd cannot execute / not owner error

I have Solaris 9. When running useradd as root i have this error. #/usr/sbin/useradd ksh: /usr/sbin/useradd : cannot exceute Then tried change shell csh and sh but to no avail. csh: # ...
2
votes
1answer
263 views

Solaris 11.3 upgrade - rpool changes after upgrade disappeared after restart

I have a test server running Solaris 11.2 (on HP Proliant Gen8 Microserver hardware). On October 31st I upgraded the system to Solaris 11.3 as described in Solaris documentation article Updating a ...
1
vote
1answer
73 views

lofiadm: password via script

I have a server running OmniOS and on top of that napp-it to manage ZFS. Every now and then I need to send data to the ZFS file systems. I do this using a bash script and rsync. Following the ...
2
votes
1answer
56 views

Solaris 11_3 Installation on LDom via “telnet localhost 5000”

I am new to the Unix section here in my company and now I got the task to install Solaris 11 on a new LDom. Reading the documentation, I was able to create and configure the primary domain and I was ...
1
vote
5answers
129 views

How can I rename a file on unix using characters in filename?

I have a bunch of files in a unix directory that look like the following: filename_1234567.txt I need to rename them by copying the last three characters of each filename to the front of the ...
1
vote
2answers
23 views

get command line perl command to report what changes it's made

I am using the following command (on Solaris) to remove the protocol from a bunch of files. find . -name "*.txt" -exec perl -pi -e 's/http//g' '{}' \; Is there a way to have a verbose output so ...
0
votes
0answers
29 views

Solaris server is rebooting again and again

I am working on Solaris 10 and I am trying to boot the system from ok> But it's been constantly rebooting again and again and throwing panic errors I went to lom> to find answer but no clue
4
votes
3answers
166 views

How to match a pattern, delete the pattern and also the next and the previous line on Solaris 10

How can I match a pattern, delete the pattern and also the next and the previous line on Solaris 10? I'm hiting the wall because Solaris does not come with GNU sed. Given the following file content: ...
1
vote
1answer
2k views

Solaris 10, pkgtrans command

What is the difference between these two commands? 1. pkgtrans /cdrom/cdrom0/Solaris_10/Product /var/spool/pkg/stream.pkg all 2. pkgtrans -s /cdrom/cdrom0/Solaris_10/Product ...
1
vote
2answers
258 views

Where can I get SUNWsan package for Solaris?

The package is not available in the installation DVD, nor internet (MOS, Google, etc.). Where could I get it?
0
votes
1answer
61 views

How to clean up response files for Solaris packages?

Looking for advice on best way to determine unused entries (or alternatively, used entries) within response files for Solaris packages. Reason is that there are some response files that have suspect ...
1
vote
1answer
22 views

How to make program which will react on button pressing (such as “more” on 'q') [closed]

I' m trying to realize, how does work pg\more\less utilities. For example, cat somebigfile | more. More now in interactive mode. His fd table is: 0 (read pipe from cat) 1 (stdout) 2 (stderr) I can ...
3
votes
2answers
6k views

slow ssh login to a remote machine

I am experiencing slow ssh login from a machine to a remote machine. The verbose of ssh is shown below in two broken blocks. ssh freezes for 15 seconds in the below shown block. [root@zabbix ~]# ssh ...
0
votes
1answer
37 views

Patching a Solaris flar archive

I have a Solaris flar archive of an old Solaris 10 environment, now I'm not allowed to update the running system in any way so would like to be able to: Extract the flar archive somewhere (without ...
0
votes
1answer
136 views

pkgadd -d gives illegal option error on SUN Solaris 10

I'm trying to add a package in SUN Solaris 10, using the following command: pkgadd -d SomePackage.pkg This throws the following error: /usr/sadm/install/bin/pkginstall: illegal option -- o usage: ...
3
votes
1answer
69 views

GDB hangs forever on Solaris

GDB seems to hang everytime when I try run command from gdb prompt. When I ran ps, there are two gdb processes that have been spawned and pstack reveals the following - ...
1
vote
0answers
26 views

Various environments and weird less behaviour [closed]

I am playing with I/O redirection and have problem with less behaving differently in two environments. Both environments are Solaris-based and are of the same version. I am executing program in two ...
0
votes
0answers
51 views

dladm show-phys shows speed 0

we have a M6-32 and I need to know which speed is running each interface. When I issue the dladm show-phys I have this strange behaviour: LINK MEDIA STATE SPEED ...
0
votes
2answers
211 views

Telnet check in bash script

I want to run the following commands in bash script form in Solaris 10: $ telnet localhost 25 debug quit How do I handle this?
0
votes
5answers
208 views

List only the count of all files/directories for the directory tree of present directory

I want to list the number of directories under each subdirectory tree of the present directory. As there are too many directories, I can't go into individual directories and check. I would like to ...
-2
votes
1answer
52 views

SSH thorough 3 systems to transfer the Data

We have 3 Systems here, I need to transfer data from the Data Server to the test vm the only way is through the jump-host. this daily process take long time. How do I automate this thing for daily ...
1
vote
2answers
166 views

umask permission - where it works, where it doesn't - ftp vs scp

Src = SJOAM Dest = sjoam2 Connecting to a ftp server, get a file from it. On ftp server side. [oracle@SJOAM ~]$ ls -l total.zip -rwxrwxr-x. 1 oracle oinstall 412 Aug 8 09:03 total.zip On ...
2
votes
4answers
31k views

How can I list all user names on Solaris 10?

I forgot a user that I created on solaris 10, so now I would like to list all user names on my server. Is it possible (I am root user)? What command I should use if possible? Somewhere on the net ...
0
votes
0answers
32 views

How to verify the syntax of a new ipf.conf file?

From what I have read it might be ipf -n -f newipf.conf. But will it catch all errors? Or are there errors possible in the configuration file, which will occur only, when the ioctls are actually ...
7
votes
3answers
3k 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
4answers
55 views

Symlinks according to directory depth

I have the following directory structure that I need to create, and while doing so, I need to also create the zip files which are symlinks. /a/2015-08-17/a.zip /a/2015-08-17/a_b/a_b.zip ...
3
votes
1answer
211 views

Solaris 10, change partition size

I have a ultra 10 with solaris 10. I would like to increase the size of the / partition (by reducing /export/home). I'm rarely working with solaris. Some "hands on" advice would be great :) df -h ...
0
votes
1answer
54 views

find by name or by grep

find . -perm -u+x,g+x,o+x -type f -exec grep -i -l -H -E '#!/bin/bash|#!/bin/sh' {} \; 2>/dev/null 1>/$user_scripts I am tasked with finding any script that could exist for N users in 4 ...
1
vote
2answers
220 views

How do I get the date from two weeks ago using Solaris' date?

Linux uses: date -d "2 weeks ago" +%b which is equivalent in Solaris?, I searched online, but nothing.
4
votes
1answer
1k 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 ...
0
votes
1answer
110 views

RBAC user cannot execute useradd on Solaris 10

I am trying to create a user in Solaris 10 using RBAC who can execute the useradd and userdel commands. But for some reasons after i create the profile, role and user, this user gets a permission ...
1
vote
1answer
44 views

Using shared serial modem

I'm trying to use on Solaris box modem connected to Linux box via serial port. Sharing is made from socat. Server command(linux): socat tcp-l:54321,reuseaddr,fork ...
1
vote
2answers
825 views

Join command gives incorrect output?

I'm trying to join two simple files in Solaris 5.8 Version as below: ~/temp/s: cat 1 work1 a 8058 51 work2 b 15336 51 ~/temp/s: cat 2 8058 77-11:29:32 /apps/sas 15336 100-12:23:49 /local/hotfix ...
0
votes
1answer
306 views

How do I find block of text, from a text file, containing a specific string [duplicate]

I've been looking to extract a block of text, from a text file, containing a string with no success. Any help would be really appreciated. For example: I have a file named xyz with below contents: ...
-1
votes
1answer
241 views

du -sh and df -h are giving different output [duplicate]

I got an alert stating that 3 of my mount points are 91 % full and i need to clear the files. When I run df -h command it states that the mount points are 91% full but when i try to run du -sh * in ...
0
votes
1answer
39 views

Replace some characters in a certain part of a filename

On Solaris, I've got a script that succesfully do that: USER,REPORT_NAME,DD:MM:HH24.pdf -> USER,REPORT_NAME,DD_MM_HH24.pdf The one-liner is this: for f in *:*; do mv "$f" $(echo "$f" | tr ':' ...
1
vote
3answers
743 views

IPCS command for Shared memory and semaphore in Solaris, HP-UX and AIX

I know ipcs command for linux system, but now I'm looking for ipcs command for solaris, hp-ux and aix system, I have searched lot in websites, almost everyone suggest ipcs -am, ipcs -as or ipcs -a. ...
2
votes
1answer
221 views

replace nth column of a csv file by the help of lookup table

I have a csv file (a.csv) as below (with thousands of lines): NMS_NE,,,,,,,,,,,,,,,,,,,,,,, D,NE Name,IP Address,Site Name,Product UPEI,Product Name,Product Model,NE Status,Serial Number,SW Major ...
1
vote
0answers
111 views

socat for sharing serial port from linux to solaris

I'm trying to share serial port from linux box to solaris 10 box (solaris machine don't have serial port). While doing the same commands from linux box (modem-server) to other linux box - everything ...
3
votes
1answer
230 views

What does eval X=\$$i mean in UNIX?

I have a small script with the following lines echo mom,dad |awk -F, '{print $1,$2}' | while read VAR1 VAR2 do for i in VAR1 VAR2 do eval X=\$$i echo $X done done OUTPUT: mom dad ...
0
votes
0answers
67 views

Is the pipe overloaded?

I am using a coprocess to run commands in siebel server manager. I am reading commands from a text file (around 2000 commands) and executing them one by one in siebel server manager. After executing ...
4
votes
2answers
2k views

Obtaining Solaris 10 patches

I have a Solaris 10 server. I've been trying to find from where I can download patches/updates. The specific bug I'm running into (http://bugs.opensolaris.org/view_bug.do?bug_id=6551484) is ...
6
votes
3answers
232 views

Peculiar Solaris integer comparison behaviour

This one caught me unawares! We have a Solaris machine (version: SunOS 5.8) hosting a pivotal script/process which has been running for many years without complaint. We recently had cause to have a ...
0
votes
0answers
32 views

AFP share with local Unix users

I have a Solaris server on which I have a AFP share. I connect from a Mac client to that AFP share with local users from the Solaris server. So let's say I connect to the share with the Alice user. ...
2
votes
2answers
95 views

How to execute a command after network startup on Solaris?

I need to execute a command after a network interface came up. On Debian I would use the post-up option in /etc/network/interfaces. But I can not find anything similar for Solaris 10. Is it possible ...
0
votes
1answer
52 views

Permanently modify boot menu on another drive (Solaris 11.2)

I'm running Solaris 11.2 on a HP Proliant Microserver Gen8. Because of a limited number of hard drive slots, I have installed a SSD in the optical drive bay. Unfortunately, this SATA slot is not ...
2
votes
3answers
142 views

Assigning “awk” or “nawk” to a variable in a shell script [closed]

I have a script to be run on both Solaris and Red Hat systems. I want to use "nawk" in Solaris and "awk" in Red Hat systems as text processing tool. For that, I have a code snippet as below in my ...