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)

0
votes
0answers
20 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 ...
0
votes
5answers
74 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 directory and check. Something like the ...
2
votes
1answer
24 views

Recovering a lost file in Solaris 5.10

I accidentally removed a file in Solaris Version 5.10 using rm. Can I recover this file in some way or another?
1
vote
0answers
29 views

logadm permission issue in Solaris

Facing the following issue in a solaris box while using logadm tool . It is showing me permission denied error . -> logadm -w princelog /html/web/www.log -C 3 -s 500m -z 0 logadm: Error: ...
0
votes
1answer
622 views

solaris netstat -rn output clarification

We have couple of servers performing the same function. On some I see following output: Routing Table: IPv4 Destination Gateway Flags Ref Use Interface ...
5
votes
3answers
78 views

update line based on previous line

I have a issue since I'm not familiar with awk. I have csv file generated from sar -d output converted to csv style: 12:33:41 unix,restarts 12:35:00,lofi4096,0,0.0,0,0,0.0,0.0 ...
5
votes
3answers
133 views

How to print a line if next line does not contain a particular string using nawk or sed

Input.txt: 8B0C remove 8B0D remove 8B0E remove 8B0F 8B10 remove 8B14 remove 8B15 remove 8B16 remove 8B17 remove 8AC0 ...
1
vote
1answer
54 views

How to make awk work in a while loop

input.txt: /usr/dir1/file1 /usr/dir1/file2 /usr/dir2/file4 /usr/dir3/file5 Script: cat input.txt |while read FILENAME do nawk '{print $1}' ${FILENAME} >> output.txt done Expected output: all ...
0
votes
2answers
54 views

Telnet check in bash script

I want to run following commands in bash script form in Solaris 10: $ telnet localhost 25 debug quit How I handle this?
1
vote
4answers
70 views

Problem with entire function in a script

I want to detect online network/shell services in my Solaris. I write following script for this purpose: compare_ser() { if [ "$1" != "" ]; then echo "True" >> Solaris.txt fi } export -f ...
1
vote
2answers
32 views

Stat substitution command to capture numeric file permission in Solaris 10

There is no stat command in Solaris 10. Is there any way to get numeric file permission?
1
vote
1answer
32 views

What does this find error mean: “find: stat() error /hgfs: Operation not applicable”?

When I use the find command on Solaris 10, I get the following error message: find: stat() error /hgfs: Operation not applicable What does this error mean? NOTE: the output from mount: $ mount -v ...
2
votes
1answer
19 views

Is there a process logging tool for solaris?

Is there an existing tool for solaris/unix that keeps a history trail of the list of running processes. I'd like to be able to review backwards in time what processes were active/running. I can ...
0
votes
1answer
31 views

Change terminal color in solaris 10

I installed Solaris 10, but I want change the background terminal color to black. Is there any way to see my text in color mode with vi editor too?
0
votes
1answer
25 views

How do I test or verify ZFS encryption is working?

How do I test or verify that the ZFS encryption is working, especially when running as a Samba share? Like if I create a ZFS pool with encryption=on, how can I tell whether a file is being properly ...
0
votes
0answers
11 views

Solaris and Sendmail

I am receiving below messages in the logs and the application/user is unable to send the mails: 450 4.7.0 Encryption too weak 112 less than 128 Does any one know how to solve this in solaris.
1
vote
0answers
16 views

How to Dtrace a newly added function to the Kernel [closed]

I'm on Solaris 11. I'm writing various functions which will sit in different places in kernel. I need to watch the value of their internal variables for debugging purposes. For instance, the following ...
0
votes
1answer
17 views

Solaris 11 acpi “button” on Virtualbox

On Solaris 11 guest running in Virtualbox linux host,i click on menu "shutdown with acpi" but nothing happen. On centos i had to enable acpid daemon,is there something similar on Solaris11?
0
votes
0answers
79 views

Solaris 10 and 11 and nfs mountd port

On Linux and HP-UX it's easy to set mountd port by editing /etc/default/nfs or /etc/nfsmount.conf. On Solaris I tried to edit default/nfs but no success, and mountd uses random port. How to force ...
1
vote
1answer
35 views

kstat in Solaris 11+

I'm writing a kernel-level program in Solaris that monitors the workload of the system and reports the stats --something similar to netstats in linux and kstat in Solaris. Where the source code for ...
0
votes
1answer
87 views

How to check if NUMA is enabled on my Solaris machine, and then enable it if not?

How to check if NUMA is enabled on my Solaris machine, and then enable it if not? I have Solaris 11 11/11 SPARC I tried sudo find /proc|grep -i numa but it prints nothing
0
votes
2answers
40 views

Can all OSS for Linux be built to run on an Illumos based OS like OpenIndiana?

I like trying different OSs, but I have yet to try a Illumos-based OS. Can I run all or most Linux Software, just by building from source?
7
votes
8answers
44k views

How to get the hostname along with the domain name?

In unix (Solaris) is there any command that returns the hostname and domain name together? For instance: hostname -> servername domainname -> us.xyz.com I need : servername.us.xyz.com
2
votes
1answer
40 views

How to figure out which network interface is used by NFS on Solaris 10?

I have a server with 8 network interfaces configured. From it, I share some directories and export nfs mounts to other servers. My question is how do I figure out which of the 8 interfaces is used ...
3
votes
3answers
45 views

Solaris 11 and zfs, i don't understand space used

This is the situation. Solaris11 virtual machine on VirtualBox as guest. Virtual disk is 55GB df report Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-8 55G ...
3
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
10 views

OracleSolaris 11.2 - setting MANPATH variable

What is the right way to extend MANPATH in Solaris? Currently it is empty for a user session, so I get to do it manually in $HOME/.bash_profile: ...
5
votes
0answers
94 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 ...
1
vote
3answers
13k views

Changing the IP Address in Solaris 11

I am trying to change the IP address in Solaris, but am failing to do so. The IP address needs to be a fixed number, like 10.0.11.10 I have tried changing the IP address in /etc/hosts which I ...
0
votes
0answers
18 views

OracleSolaris 11.2 — installing SolarisStudio

I would like to install SolarisStudio and follow steps at https://pkg-register.oracle.com/register/product_info/6/ I obtained necessary certificates, configured pkg and solarisstudio repository. ...
1
vote
1answer
35 views

Does orca + RICHPse work on Solaris Containers or local zones?

I have just attempted to get RICHPse version 3.4 running on a Solaris version 10 Sun M5000. It seems to run on the global zone but not on the local zones. On the local zones RICHPse just fails ...
0
votes
1answer
22 views

OracleSolaris 11.2 - delete a directory which is mount point

I removed a user from the syste, with userdel -r user however it still keeps its homedirectory /export/home/user, although the contents has been removed. The directory is mounted, but I don't know ...
0
votes
1answer
26 views

Change requirements for passwords on Oracle Solaris 11.2

Is it possible to change strict requirements for user passwords, including root, e.g. I'd like not include numbers in the password as required, since this is a home machine, and I'm the only user?
0
votes
2answers
15k views

Delete Static Routes on Solaris 10

I have the following routes that I wish to delete: 10.250.0.0 10.250.0.37 UG 1 0 I have run the following to delete this with failure. bash-3.2# route delete ...
0
votes
1answer
62 views

pkgadd -d give illegal option error on SUN Solaris 10

I'm trying to add a package in SUN Solaris 10. Using following command. pkgadd -d SomePackage.pkg Which throw following error /usr/sadm/install/bin/pkginstall: illegal option -- o usage: ...
3
votes
2answers
14 views

Is there a way to combine formatted output and full command arguments in one ps command?

In solaris, /usr/ucb/ps auxww gives full commandline arguments (without truncating long commands+arguments). And ps has -o option that provides formatted output. Is there a single command (or ...
0
votes
1answer
47 views

changing timezone in OracleSolaris 11.2

I'm confused, what is the right way to change TZ on a freshly installed Solaris 11.2, http://docs.oracle.com/cd/E36784_01/html/E39134/gljcw.html or ...
0
votes
0answers
19 views

OracleSolaris 11.2 hostname change

I changed the hostname using svccfg and svcadm restart as described in https://blogs.oracle.com/VDIpier/entry/solaris_11_changing_the_hostname however it didn't update /etc/inet/hosts and ...
0
votes
1answer
28 views

OracleSolaris 11.2 and dual boot with Linux

I've read through different documents describing dual-boot configuration Solaris+Linux, however I'm still struggling with it. I first installed Fedora12, and then OracleSolaris 11.2, which of course ...
0
votes
0answers
10 views

OracleSolaris 11.2 and DHCP configuration failure

I want to have IP address assigned by DHCP, so I set: % netadm enable -p ncp Automatic It seems that after this the dhcp agent has been initiated, and throwing errors: ip: WARNING: net0 has ...
0
votes
0answers
59 views

Oracle Solaris 11.2 hangs during installation

I'm in the process of installing OracleSolaris 11.2 (taken from http://www.oracle.com/technetwork/server-storage/solaris11/downloads/install-2245079.html) on PC with the following spec: Intel Core2 ...
0
votes
1answer
34 views

Solaris 11 remove the old “entire”

pkg list -af entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.2.11.0.5.0 i-- entire ...
0
votes
1answer
56 views

Writing drivers for Oracle Solaris

I understand that Oracle doesn't provide sources for Solaris any more, as was done via OpenSolaris in the past. However, they do offer live CD images. How much does a system installed with such ...
0
votes
1answer
40 views

Convert particular lines in a text file to bold [closed]

I have a text file with 100 lines in it. I want to convert particular lines, lets say line1, line6 , line27, line 48, line 86, line99 to bold. I am using solaris 5.10, with KSH. Is there a way I can ...
0
votes
0answers
17 views

How do I identify which disk(s) make up a vxfs disk group?

In case it matters, system in question is Solaris installed on SPARC. System contains two HDDs, same make/model/capacity. On one HDD are the root and var partitions/slices. /etc/mnttab shows me that ...
1
vote
0answers
43 views

In a Sun Disk Label scheme, what are partitions of type E and F?

I am working with an image (dd) of an HDD removed from a Sun server that was in use circa 2006. Using fdisk on a Debian system to view the partition table it shows 3 partitions: Partition 2: A type ...
4
votes
3answers
105 views

How to insert multiple blank lines after every line

I want to insert 5 blank lines after every line in my input file. foo.txt: line 1 line 2 line 3 out.txt: line 1 line 2 line 3 ... Solaris 5.10, nawk or sed.
0
votes
2answers
26 views

Unable to perform a simple multiplication in script

I am havingf trouble performing a simple multiplication in my script. while read A B C do tmp=$A\*$C/100 echo $tmp >> out1.txt done < foo.txt foo.txt: 13721725 99 100 ...
0
votes
1answer
35 views

Unable to access OS using start /SP/console eventhough eeprom console=ttya

I have a system with solaris 10 update 11. I am trying to access the OS via ILOM using start /SP/console. When i fire eeprom command in OS I was able to find console=ttya When I did a reboot I ...
0
votes
0answers
18 views

Is there any way to decrypt/read /var/nfs/v4_state logs?

Right at the time our NFS server (Solaris) had an outage lasting a couple of minutes, 3 files popped up in the NFS file server's /var/nfs/v4_state directory. If I cat them, I get a few bits of ...