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
380 views

scp recursively directories on SunOS

I have encountered a small issue with SCP (and also rsync). I need to copy certain files from server A (running SunOS 5.8) to server B (running SunOS 5.10). First, I get the list of files (several ...
2
votes
4answers
4k views

print last field from line + alternative for awk

Due to technical reason on my Solaris machine, I can't use awk in order to print the last field in line. What are the other alternatives to awk that print the last field from line (using cut or tr ...
0
votes
2answers
343 views

Autofs home folders from solaris 11

I'm having trouble since 2 days with autofs. I have a Solaris 11 Server. There I share the folder /export/home with the following command: share -o rw -d „Freigabe von /export/home“ /export/home My ...
1
vote
1answer
985 views

How to properly use /usr/xpg4/bin/grep -F

I have a problem producing filtering out hanzoMollusc (2)from my grep. https://node.hanzo.com/production/application/ (1) https://node.hanzoMollusc.com/Messaging/Receiver (2) My grep command is ...
1
vote
3answers
2k 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. ...
2
votes
1answer
90 views

Why is the output of find sorted in Cygwin but not in Solaris?

I wonder why find does not behave in the same way in Solaris as in Cygwin or Linux. I have a bunch of directories that have files called CS##########. Each # is a digits but there are always 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 ...
1
vote
1answer
701 views

tr command not working with octal sequences

I need to strip non-ASCII characters off a file. I was using the command - /usr/xpg4/bin/tr -cd '\0-\177' <non-ASCII_file.dat >ASCII_file.dat Though it worked in the past, it is not ...
2
votes
1answer
285 views

Solaris 11: How to use ILB to create HA loadbalancer across two backend servers?

I'm attempting to use Solaris 11's ILB to create a loadbalancer across two backend DNS servers. Here's my requirements: Two external IPs: .XXX.YYY, .XXX.ZZZ - these are the DNS IP's that our clients ...
0
votes
1answer
236 views

expr command used to work and stopped

I am on SunOS machine trying to get the date string of the past minute, yesterday I used this command I found on the internet expr `date +%Y%m%d%k%M` - 1 which is worked just fine and I saw the ...
2
votes
1answer
242 views

perl + combine exec command with perl one liner line

I have the following short perl script rename.pl. How can I translate this script to one liner perl syntax? And how to combine the perl one liner in find command? rename.pl #!/usr/bin/perl $op = ...
0
votes
1answer
722 views

Rename files and directories with a special characters on solaris machines

The target of the following code ( commands ) is to rename files/directories and also support files/directories with a special characters as "@" or "." etc those commands are run fine on Linux ...
2
votes
3answers
1k views

`solaris + xargs command for solaris

the command find /tmp -name 'core*' -type f -print0 | xargs -0 works fine on Linux, but xargs -0 option is not legal on Solaris what is the equivalent option ( xargs? ) for Solaris 10 second ...
2
votes
1answer
142 views

zfs send volume fluctuates misteriously

Why would the amount of data in a zfs send stream "fluctuate"? I would expect send of a specific snapshot to always produce exactly the same data! The test data below was created through something ...
2
votes
3answers
897 views

What's the best way to backup files via network on Linux and Solaris machines?

I wonder what the best way to backup files VIA network I have Solaris machines with Oracle 10i with VERITAS cluster, machines are connected to EMC storage /data/oracle directory is mounted on the ...
0
votes
2answers
2k views

“lsof: can't read namelist from /dev/ksyms” on Solaris

On Solaris, when I type the command lsof -l I encountered this error: lsof: can't read namelist from /dev/ksyms Anyone knows what this error means and how I can get open the list of open FD's ...
5
votes
4answers
3k views

Solaris default install (user tools)

Many questions on this forum as well as other places really boils down to somebody coming from Linux environment and then not being able to use the equivalent command on Solaris. Often this is because ...
1
vote
1answer
4k views

Set global environment variables at boot in Solaris 11

I am wanting to create a file in Solaris, so that I can export a few "items" whenever the machine is started up. i.e. I want to export ORACLE_HOME and ORACLE_SID and some other directories, of my ...
1
vote
2answers
294 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
0
votes
2answers
3k views

Installing GCC in Solaris_x86

I have tried Googling for my answer, but everyone is saying GCC is already installed on the Solaris Operating System. They said to add /usr/sfw/bin to your $PATH, which I did, and rebooted the ...
0
votes
1answer
238 views

Solaris 10, Shell Script, Cursor movement [closed]

#include <signal.h> #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <time.h> void prtime() { time_t rawtime; struct tm * ...
2
votes
1answer
151 views

How can I identify the total files open by userid

Yesterday one of the users on our system had a poorly formed script that consumed all the space in one of our file systems. Through a lot of trial and error, I was able to identify the user and kill ...
0
votes
2answers
2k views

Solaris 10 modified time

In Solaris 8, when we access the file, the access time changes but modified time remains same. But in Solaris 10, we see that both access and modified time changes when accessing the file. We checked ...
0
votes
1answer
273 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 ...
1
vote
2answers
3k views

Storage becomes unmanaged after Solaris and PowerPath upgrade

I have been performing an upgrade for a customer, using Solaris Live Upgrade to go from Solaris 10 update 2 to Solaris 10 update 10 and at the same time upgrade EMC powerpath from [an old version] to ...
1
vote
2answers
97 views

how obtain directory files info

I have the need to get information about a specific directory, basically I need to know the correlation between small, medium and big files. I came up with this: for i in K M G; do printf $i du ...
2
votes
1answer
2k views

Bash vs ksh pipes

I am stuck with some problems with my scripts in ksh. FWIW the problem which I am unable to overcome is that when I use a structure such as this command | while read VAR1 do many.commands using ...
1
vote
1answer
521 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 ...
3
votes
0answers
874 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 ...
1
vote
1answer
599 views

RAID 1 + 0, Solaris 10

I create the meta devices: metainit d102 1 1 /dev/dsk/c1t2d0s6 metainit d103 1 1 /dev/dsk/c1t3d0s6 metainit d104 1 1 /dev/dsk/c1t4d0s6 metainit d105 1 1 /dev/dsk/c1t5d0s6 then I make the mirrors ...
1
vote
1answer
375 views

NIS+ Solaris 10, Master Server Setup

this is my first time with NIS+ Naming Service. I want to configure my host to be a master root server using this script /usr/lib/nis/nisserver -r -d doc.com. And I got this error: > ...
1
vote
1answer
284 views

Why does dladm rename-link fail with “invalid argument”?

I am running Solaris 11.1 (in a VM) and have two NICs installed. At a root console, if I type dladm show-phys, it lists net0 and net1 and some info for each. I want to name the links more ...
0
votes
1answer
119 views

How do I delete this folder in Solaris?

I am not sure how or when the below folder was created.. But I am unable to delete or open it.. bash-3.2$ cd '+%d-%m-%y' bash: cd: +%d-%m-%y: No such file or directory bash-3.2$ rm -f '+%d-%m-%y' ...
2
votes
1answer
108 views

Browser fails to reach any host on Solaris 8

I'm running Solaris 8 on a Sun Ultra 2 connected to a Verizon router. nslookup seems to work (it finds google.com) but the existing browser (Netscape 4.76 - yes - it's very old) fails to reach any web ...
3
votes
1answer
595 views

Why does sendmail work differently in different shells?

The following code works when I directly run it in bash shell: SUBJECT="SUBJECT-"`date`; MAIL_FROM="abc@site.com"; MAIL_TO="abc@site.com"; MAIL_CC="abc@site.com"; MAIL_FILE="/path/of/html/body.html"; ...
1
vote
1answer
870 views

Default value for SO_RCVTIMEO option on Solaris

Is there any way to find out what is the default value set for option SO_RCVTIMEO on Solaris 10? If there is a way to find out how would one go about changing it? P.S. I am aware of ability of ...
5
votes
2answers
2k views

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

I've been looking inclusive I even checked the if manual for bash and tried in cli mode. #!/bin/sh CONFIG_DIR="/var/opt/SUNWldm/" read option if [ $option -eq 9 ]; then ret=1 elif [ -e ...
2
votes
2answers
1k views

Prompt “-bash-3.2$” vs. “bash-3.2$” in SunOS 5.10

When I log into a server running SunOS 5.10, my prompt initially is "-bash-3.2$" Then when I run the following commands, I can see that the prompt is slightly different after typing bash (it no ...
2
votes
3answers
5k views

“Access denied” when logging to Solaris virtual machine using ssh

I have got a Solaris 10 on a VMware virtual machine in Windows. This is what I did: 1) Installed PuTTY. 2) Checked whether ssh is running or or not in my Solaris desktop as below: bash-3.00# ps ...
3
votes
3answers
760 views

Solaris 11 randomly crashed

I have a Solaris 11 machine that randomly crashed this morning. After physically restarting the machine, I noticed that all of the drives were marked with a Sense Key: Soft_Error both in dmesg and in ...
0
votes
1answer
881 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 ...
0
votes
1answer
1k views

Solaris 10, useradd command

When I used useradd command to add a new user for my Solaris 10 System, I specify /home/user-name to be its home directory. but the command didn't run successfully, and when I put the ...
1
vote
1answer
235 views

How do I ensure that only one instance of my ksh script runs on Solaris using NFS? [duplicate]

Possible Duplicate: What Unix commands can be used as a semaphore/lock? I have read many similar post and the solution seems to be to use flock. flock does not exist on my system and I ...
3
votes
3answers
3k views

Solaris: find the day of last Monday,Tuesday,…Sunday by means of shell script

I'm trying desperatly to find a bash or ksh routine that allows me to find for example the previous Monday,Tuesday,Wednesday,... preceding today's date. Additonal it has to work on plain vanilla ...
2
votes
1answer
489 views

Network bandwidth measurement on Solaris

I want to install pathtest or a program like it in a Sparc server running solaris 10. The purpose is to make a speedtest server to my remote sites. It is mentioned in pathtest FAQ that it only ...
0
votes
2answers
161 views

file command + how to view all results from file command

I use the file command in order to verify if file (PATH) is text/ascii file or encrypted file Because file command have allot of results ( small example in example 1 ) I want to get the all ...
0
votes
0answers
180 views

flar archive creation

I'm facing issue, I need to perform a patch of a solaris flar image and all the commands take quite some time to perform it. To avoid me being in front of it I prepared a script that almost works ...
0
votes
4answers
439 views

targeted network speed over LAN

I have a Solaris 11 system which has several NFS exports which are accessed my other systems within my LAN. I use a Linux system as a client for testing. I wrote a quick script to test read speed and ...
2
votes
2answers
1k views

How to use “fuser” to get process list for nested folder while using with parent folder as argument?

I am using fuser command to get the list of processes accessing a folder. However if the process is working on a file present in a inner folder, executing fuser command on the parent does not provide ...
3
votes
2answers
3k views

Read a file and copy to another file

I'm having a issue, I need to copy the file contents and remove a couple of lines if they match the output from a previous command. But so far, I'm having an issue in maintaining the file lines ...