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)

4
votes
2answers
6k views

Why `host` and `nslookup` on Solaris 10 resolves hostnames while `ping` and `telnet` does not?

/etc/resolv.conf contains a nameserver that is alive (as reported by the ping command) host or nslookup is able to resolve google.com $ host google.com google.com has address 74.125.228.3 google.com ...
4
votes
3answers
4k views

How I can know the IP address of other users logged at the same remote machine?

I can see the names of other users on the remote machine with the who command... I'd also like know the IP address of those users... I was trying with the commands /sbin/ifconfing and netstat but I ...
4
votes
2answers
438 views

How to list all running X applications?

I'd like to get a list of all of the apps (across all users) on my machine that are talking to the X server. What's the most reliable way to do that? Find the socket X runs on and lsof for connections ...
4
votes
1answer
1k views

ssh tunneling a local display to another server

I have a GUI test stand simulation connected to some hardware that is under test. The test stand is a Sun Sparc Ultra 2 SunOs 5.7. The simulation software checks to see if your running your display on ...
4
votes
1answer
3k views

What does “Invalid argument” mean in Solaris?

-bash-3.00$ ./p4 -V -bash: ./p4: Invalid argument What does "Invalid argument" mean in Unix? More details: p4 is an executable in the current directory. p4 actually refers to perforce. The option ...
4
votes
2answers
5k views

How can I make PuTTY compatible with Solaris?

I'm connecting to a Solaris machine from WinXP using PuTTY. When I try to use the NumPad keys for editing a command in Bash (Home, End, Delete) a ~ character is instead printed to the console. ...
4
votes
1answer
794 views

Variable scope in while-read-loop on Solaris

    Could someone please explain to me why my while loop seems to have an internal scope? I've seen multiple explanations online but they all have to do with pipes. My code has ...
4
votes
2answers
321 views

What is the TTY major number of your Unix?

I'm currently working on a serial port library which already uses special frameworks to get information about serial ports on the system. Though serial ports are a fundamental design in Unix—as ...
4
votes
2answers
1k views

What is the STATE column of the TOP command on Solaris?

I'm running a very large, memory intensive program on my new UNIX server and trying to fully understand the output of the "top" command. Here is what I see right now (showing only the first process): ...
4
votes
1answer
602 views

Ksh loses data after piping 16K bytes

I recently found that ksh may lose some data after printing more than 16K bytes to the stdout if it is blocked for a couple of seconds. This test.sh script prints out 257*64 (16448) bytes: ...
4
votes
1answer
660 views

Restoring an open file

I have an interesting problem which may or may not have a solution but I'd love to have one if possible: On Solaris an open log file has been removed, which still continues to be populated while the ...
4
votes
2answers
11k views

How to find HDs associated with a mount point

I am running on Sun Solaris system. I would like to know the following How to find the HDs associated with a mountpoint? How to find all available HDs (those which are used as well as unused for ...
4
votes
2answers
1k 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 ...
4
votes
3answers
5k views

Is there a yum or apt-get like system on Solaris?

I am aware of the use of pkg to install an individual package file, but it does not include a repository infrastructure like other Linux distributions. Is there any solution that behaves like yum or ...
4
votes
3answers
3k views

How to find the machine from which a user logged into current machine using ssh?

In a multi server architecture, is it possible to find out from which machine a user logged into current machine using ssh? For example, user1 logged into host1. From there, the user logged into ...
4
votes
1answer
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 ...
4
votes
2answers
61 views

Disk busy is close to 100% and iowait is 0,0% on SunOS, how can it be possible?

During monitoring of SunOS5.10 machine I noticed strange behavior: Disk busy is close to 100% Disk waiting time is 0,0% Primary purpose of this machine is running application server on jvm. This ...
4
votes
2answers
3k views

What does “pollsys” mean? Solaris “truss” output

> truss -p 6482 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 /2: pollsys(0xE517AD88, 1, 0xE517AE30, 0x00000000) = 0 ...
4
votes
1answer
72 views

Moving to Solaris (from Linux) [closed]

I got curious about why not so many people have Solaris in their desktops and laptops. I wonder whether it's a good idea at all, or something just for the absolute geek. Could I maybe give it a try ...
4
votes
2answers
896 views

How to get notified when svcadm restarts a service that died

I'm using svcadm to keep my node.js server running on Illumos, is there a way to get notified if svcadm restarts the server because it crashed? Specifically if the process went down on its own and not ...
4
votes
1answer
169 views

returncode of command in a pipline [duplicate]

The following script runs on Solaris using /bin/ksh and on Linux using /bin/sh cmd | tee -a cmd.log | tail exit $? The output of cmd is saved in a file cmd.log and the last lines are displayed on ...
3
votes
2answers
3k views

Remove prefixes from filenames

I have a bunch of files as follows: 04602635_b0294.DAT20120807164534 04602637_b0297.DAT20120807164713 04602638_b0296.DAT20120807164637 04602639_b0299.DAT20120807164819 ...
3
votes
6answers
4k views

Difference between “echo $SHELL” and “which bash”

I am trying to determine the location of bash interpreter on my Solaris system and I am a bit confused. When I type: echo $SHELL The resulting path is: /bin/bash And when I type: which bash I ...
3
votes
3answers
7k views

change shell in Solaris/SunOS for your user only wihtout access to /etc/passwd

How do I set the shell in Solaris/SunOS for my user only, without access to /etc/passwd or any other su stuff? It should thereafter work both for interactive ssh (1) and ssh when you send commands ...
3
votes
6answers
4k views

How can I check what version of the VI editor I have?

How can I check what version of the vi editor I have? What's the best way to upgrade it or install vim on Solaris?
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 ...
3
votes
4answers
2k 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 ...
3
votes
5answers
2k views

Formatting the output: Underlining

I wrote the following function in ksh that prints its first argument to the screen and underlines it with the appropriate ammount of - character: print_underlined () { word=$1 echo $word ...
3
votes
3answers
878 views

Why does this password fail AIX and Solaris rules

Had to reset my password on a couple of client servers today, and despite following the rules I get the message "Your password failed to meet: minimum of 2 non-alphabetic characters" back from the ...
3
votes
1answer
245 views

How do I backup a non-empty directory and preserve metadata like permissions/user-group ownership/time file was modified?

I used rsync for creating a backup copy: bash-3.2$ rsync -tvrog /export/home/kent/Scripts /export/home/kent/TEST_Scripts_rsync With these options: Options: -v, --verbose ...
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 ...
3
votes
1answer
177 views

“The entry is a door” in Solaris “ls” man page

I found this in a man page for ls in solaris linux. http://www.unix.com/man-page/opensolaris/1/ls/ What does it mean when it says: D the entry is a door?
3
votes
2answers
129 views

Viewing very wide files

I need to view some 5,200 byte wide files. Is there any tool to make this practical without modifying the file? Ideally, I'd like to specify which columns I'm viewing.
3
votes
2answers
4k views

What are the dangers of setting a high limit to max File Descriptors per process?

I'm working on an old legacy application, and I commonly come across certain settings that no one around cam explain. Apparently at some point, some processes in the application were hitting the max ...
3
votes
3answers
7k views

Startup script not executing after reboot on Solaris

I have a command to start Apache in /etc/rc3.d that does not execute when the server reboots. The script is named S75Apache2. Someone has speculated that this is because the link has a capital "A" ...
3
votes
1answer
1k views

boot_archive file in solaris

Does anyone know what is that boot_archive file. It is located under /platform/sun4v/ /platform/sun4v> du -sh * | sort -rn 342M boot_archive **** 190M failsafe 106K lib 71K bootlst 12M ...
3
votes
2answers
16k views

High load average, low CPU usage - why?

We're seeing huge performance problems on a web application and we're trying to find the bottleneck. I am not a sysadmin so there is some stuff I don't quite get. Some basic investigation shows the ...
3
votes
2answers
185 views

Execute command on shared account login

At work our team uses a shared account "appadmin" to administer our application. At login, each one of us sources an "aliasrc" file containing his or her preferences. (aliases, display, prompt, ...). ...
3
votes
3answers
3k views

Using nohup on Solaris 10

I need to transfer a large number of files over SFTP (only between Solaris servers) which takes a very long time. I cannot keep my PC on for this duration. I tried: nohup sftp server1 While the ...
3
votes
3answers
182 views

Nexenta bash script uses /usr/sun/bin/sed instead of /usr/bin/sed

I'm using a script for Linux and for Solaris (Nexenta). This line works on Linux, but not on solaris (but when run from shell it works): cat "pg_hba.conf" | sed "0,/^local/{s/md5/trust/}" The ...
3
votes
1answer
577 views

How can a non-root user check if a FS has been exported to a server?

Consider I am on server1 logged in as a non-root user. How do I check if a NAS FS has been exported onto the server SERVER1? I have already tried the below commands. bash-3.2$ dfshares SERVER1 nfs ...
3
votes
3answers
910 views

Why are the UIDs in Solaris so very high? Is it alright to use lower numbers?

I'm going to try out Solaris 11, and was wondering why the default UIDs for new users are so ridiculously high - e.g. starting at 65534 and then dropping downwards (65533, 65532, ...)? Is there a good ...
3
votes
3answers
734 views

What process is sending TCP SYNs on Solaris 10?

Some process on my Solaris 10 machine is sending TCP SYNs to a remote machine. The remote machine never responds, so the connection is not established. How do I find out what process is initiating ...
3
votes
2answers
87 views

how to grep complex hierarcy?

I have a file as:- start apple 1 a 2 b 3 c start orange 4 a 5 b start mango 1 a start a/b/c 5 z end 4 b end 6 c end start banana 3 c end 4 d 5 e end I want the output as :- 1 apple/a 2 apple/b 3 ...
3
votes
1answer
282 views

SELinux context of files mounted from a Solaris server

Something I'm attempting to run in RHEL6 fails as a result of SELinux. The problem is temporarily easily solved with "setenforce 0". However turning SELinux off entirely isn't an option in my case. ...
3
votes
1answer
2k views

zpool import - cannot import: one or more devices is currently unavailable

I have moved a ZFS pool from one SunFire server running some pre-release of Solaris 11 to another server running latest Solaris 10 and now can't import it. It was properly zfs export from the old one. ...
3
votes
1answer
651 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"; ...
3
votes
1answer
289 views

Use all system memory in Solaris

I am doing server testing and intentionally trying to crash a virtual Solaris server by using all memory. Server has a ulimit of 15 GB (several hundred GB of total system/swap memory). Is there a ...
3
votes
2answers
2k views

Solaris 11.1 and ipfilter

I'm trying to get IP Filter to work on Solaris 11.1. I'm following the official Solaris 11.1 guide. When the host is booted it doesn't pick up the ipf.conf that I expect. Here's the contents of ...
3
votes
1answer
2k views

How to ensure that anonymous FTP has been disabled on a Solaris 10 system?

What line in which configuration files in the /etc/ftpd directory do I have to check to ensure that anonymous FTP has been disabled? From my understanding now, to ensure that anonymous FTP is ...