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)

6
votes
3answers
147 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
8 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
23 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 ...
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
15 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
42 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 ...
6
votes
3answers
191 views

How to print a line if that line or the next line do not contain a particular string

Input.txt: 8B0C remove 8B0D remove 8B0E remove 8B0F 8B10 remove 8B14 remove 8B15 remove 8B16 remove 8B17 remove 8AC0 8AC1 ...
0
votes
2answers
45 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 ...
2
votes
2answers
26 views

Restarting LDAP client service

I have modified ldap.conf and slapd.conf. I'm wondering how I can restart the ldap/client service, filesystem/autofs and name-service/cache. OS: Solaris 11 but advice on linux should help too
-2
votes
0answers
32 views

df and du differences too large [duplicate]

-bash-3.2$ df -h | grep /mnt/opt /mnt/opt 197G **163G** 32G 84% /mnt/opt -bash-3.2$ du -sh /mnt/opt **74G** /mnt/opt More then 1/2 the differences between df and du. ...
0
votes
0answers
44 views

password aging policy, the passwd command and /etc/shadow

I came across this phrase in the link below http://brandonhutchinson.com/wiki/Solaris_Password_Policy /usr/bin/passwd is used to modify password aging on existing accounts. passwd does not ...
2
votes
1answer
684 views

Can i update my commands( like awk,sed) to the latest release in solaris?

bash-3.00# awk '{print NR}' f1.txt 1 2 3 4 but FNR does not print anything. awk '{print FNR}' f1.txt the above line does not gives me any output,seems that the awk that i am having in my ...
2
votes
1answer
30 views

Wipe a Solaris Disk

Looking for something similar to Eraser for Solaris 9-10-11 Anything?
2
votes
0answers
45 views

Can file handles be translated to filenames?

Is there a tool for translating file handles to file names on Solaris 10? I've looked around and found several scripts including the one at: http://heim.ifi.uio.no/kjetilho/hacks/fhfind.perl ...
2
votes
2answers
327 views

Autofs home directories with passwordless logins

I want a setup where a user home directory is mounted on login (autofs). This is working with password based authentication. However, I want passwordless authentication, by generating public keys. ...
2
votes
2answers
692 views

Booting Solaris 10 or 11 for Sparc in qemu-system-sparc64

I'm trying to boot Solaris 10 or Solaris 11 for SPARC using qemu-system-sparc64 but keep running into problems early on. I'm using the DVD images sol-10-u11-ga-sparc-dvd.iso and ...
5
votes
1answer
47 views

Exclude directory in (native Solaris) find command

I'm trying to exclude the directory /zones in my find command. I don't have GNU find available, just the native Solaris find. I tried something like this: find / -type d ! -name zones The problem ...
0
votes
1answer
50 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. ...
3
votes
4answers
900 views

List all open '.log' files in *nix

There are times as a system administrator, you might not be sure of the log file paths of a new application. Depending on the system, there may be multiple ways to find the same. Please share the ...
1
vote
2answers
43 views

umask permission - where it work, 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
3answers
201 views

How can I exclude all “permission denied” messages from “find” in Solaris

Hi previous questions on this topic contain answers for Linux but does not work for Solaris 10. find . ! -readable -prune Does not work in solaris since -readable is not POSIX. What is the POSIX ...
3
votes
1answer
5k views

How do I use grep to find a text string in files in sub folders of a parent folder without -r switch

I'm using Solaris 10 and have two grep versions one in /usr/bin and one in /usr/xpg4/bin. I have been searching for an answer on how to search for text within files within sub folders of a parent ...
2
votes
1answer
23 views

Reading the device tree for ide disks

On Solaris I know disk are c0d0p0 or c0d0s0 for ide, c1t1d1s0 for scsi. I see there are links on pci devices,for example: ls -lh /dev/dsk/c0d0s7 lrwxrwxrwx 1 root root 50 ago 1 22:53 ...
1
vote
2answers
44 views

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

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
24 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
5answers
95 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 ...
0
votes
1answer
51 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
46 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
29 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
45 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
681 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
89 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 ...
1
vote
1answer
59 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
70 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
76 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
44 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
51 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
21 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
51 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
35 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
18 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.
0
votes
1answer
22 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
92 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 ...
0
votes
1answer
57 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
96 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
46 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?
8
votes
8answers
47k 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
52 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
83 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
18 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: ...