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
2answers
36 views

How to forcibly update a file if left unchanged after 55 minutes? [on hold]

I need a log file to be updated if it has been left unchanged during 55 minutes. For example, say it is now 19:00 and IOstatDisk2.log hasn't changed since 18:00: solaris1a:/var/tmp ROOT # ls -ltr ...
0
votes
1answer
22 views

Viewing file in Chinese on Solaris without changing locale

Use Case: I have a client server setup where server is a Solaris machine and client can be any windows, linux, etc. Client while coming up needs to create a resource bundle object based on client's ...
0
votes
1answer
34 views

WGET Continue without --no-check-certificate

I'm using wget to check if several boxes have access to other servers. The problem is sometimes the servers attempt to self-sign and the script hangs when this happens. It simply stops on the line ...
0
votes
0answers
28 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 ...
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?
0
votes
5answers
88 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 ...
1
vote
0answers
31 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: ...
1
vote
1answer
55 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 ...
5
votes
3answers
138 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 ...
0
votes
2answers
58 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
72 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
36 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
39 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 ...
0
votes
1answer
35 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?
2
votes
1answer
20 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
30 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
12 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?
1
vote
1answer
41 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 ...
2
votes
1answer
42 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
50 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 ...
0
votes
1answer
12 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
95 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
19 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. ...
0
votes
2answers
42 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?
0
votes
1answer
27 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
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
53 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
22 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
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
1answer
63 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
17 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
32 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
65 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
41 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
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
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
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
46 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 ...
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
40 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
19 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 ...
1
vote
1answer
74 views

How to check firmware version in solaris?

I have searched in /usr/platform/sun4u/sbin path. But not sure how to get the firmware version.
2
votes
1answer
63 views

How to configure a global zone along with two non-global zones in solaris 10?

I have a SUN M3000 server. I want to configure this as a global zone (named z1dms) which will have two non-global zone (named zu9dms and zu10dms). Please tell me how to configure.
2
votes
5answers
120 views

Adjust gap between 2 columns to make them look straight

file1.txt: hi wonderful amazing sorry superman superhumanwith loss file2.txt : 1 2 3 4 5 6 7 When i try to combine using paste -d" " file1.txt file2.txt > actualout.txt actualout.txt : hi 1 ...
1
vote
2answers
27 views

Addition of values

foo.txt: Lillypaul_sg 204803 204803 204803 Ammy_sg 3 ramaswamy_sg 3 33 tommy_sg 3 3 137374 100 Desired Out.txt : Lillypaul_sg 614409 Ammy_sg 3 ramaswamy_sg 36 tommy_sg 137480 The output is a sum ...
0
votes
1answer
37 views

How to remove certain number of lines every time particular string is found in file

I want to remove 1 previous line and 10 following lines every time a string was found in the file. foo.txt: } Name: john Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Line 11 Line 12 ...
1
vote
0answers
52 views

How can I check or fix broken hardware links? “mount: no such device”

I have a SunBlade1000 running SunOS5.8 and I have a usb cradle from StarTech.com attached to it with a 1TB and a 2TB HDD from Seagate. The 1TB mounted just fine and is currently being written to. The ...
1
vote
1answer
35 views

ZPool export/import error

A backup/clone script of ours was recently ran. It normally only clones the rpool and renames in rpoolA. Something must've changed as it found another one of our pools that it shouldn't have. It ...