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

Solaris 11 text mode after boot

I am running Solaris 11 on VMWare Workstation host machine Windows 7. Here is my OS and system details: SunOS solaris 5.11 11.0 i86pc i386 i86pc I want to boot Solaris 11 in text mode only i.e make ...
4
votes
1answer
141 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 ...
2
votes
3answers
259 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
0answers
79 views

error running raidctl on Solaris 10

I am trying set up a disk mirror on a Solaris 10 system. The two disks are identically formatted and not mounted. Neither is a boot disk. I ran the following: # raidctl -c c1t2d0 c1t3d0 ...
2
votes
1answer
2k views

Process Monitoring on Solaris

$ prstat -t NPROC USERNAME SWAP RSS MEMORY TIME CPU 164 oracle 5446M 5445M 8.3% 13:47:50 1.6% 52 root 576M 728M 1.1% 42:29:50 1.0% 1 noaccess 300M 273M 0.4% 0:20:54 0.0% ...
4
votes
2answers
841 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): ...
12
votes
3answers
1k views

Wait command usage in Linux?

#!/bin/bash function back() { sleep $1 exit $2 } back $1 $2 & b=$! if `wait $!`;then echo success else echo failure fi bash-3.00# ./back 300 0 failure bash-3.00# ./back 300 1 ...
2
votes
1answer
149 views

Regex to find NFS filesystems that aren't being mounted with nosuid, except for ones with special needs

I have a script that runs the command mount -v 2>/some/file, which I then parse with another script using the following regex: ^.*[\ \t]+type[\ \t]+nfs(?![\ \t]+.*\b(?:nosuid|nosetuid)\b).* The ...
0
votes
2answers
461 views

How to monitor average stats of CPU and memory usage of a Solaris server using scripts?

I need to monitor average CPU and memory usage for a Solaris server. How can I automate the process using scripts to monitor daily CPU and memory usage and give it as an average over a month?
1
vote
2answers
65 views

Installing crontab file on Solaris?

Typically we use crontab -u in our recipes. However we have a few Solaris 10 boxen where the flavor of crontab won't support the -u flag. Is there a way to deploy an existing crontab file using ...
0
votes
2answers
396 views

Why doesn't my client IP address appear in the netstat output?

My client is a MS Excel plug-in running on my laptop (client_machine1) that connects to a Solaris server (server1) to request some WebLogic Application running on port 28080. bash-3.2$ set | grep ...
1
vote
1answer
136 views

why csv is consuming more file size in my unix script?

I'm using this unix script which it is fetching records in the form of csv. I have a SQL query used for this purpose. It contains below information SET PAGESIZE 5000 SET COLSEP "," SET LINESIZE 2000 ...
1
vote
2answers
753 views

How to extract archive via network

I have two Solaris servers. On server1 I have a file, archive.tar.gz. I need to extract it using ssh to server2. So, I write the commands: ssh server2 < archive.tar.gz | gunzip -c | tar -xf - -C ...
1
vote
1answer
988 views

Is there any way to check df -k hanging for nfs mount issues?

I am trying to write a script for such failure scenarios. In a scenario where maybe, if remote connection is lost, df waits for the remote server to respond (looks like df is hanging). I know I could ...
2
votes
1answer
197 views

Solaris 11 and syslog over TLS

Does Oracle support support remote syslog over TLS/SSL on Solaris 11? I found it can be done with rsyslog, but is rsyslog default on Solaris 11 and if rsyslog is not default, does Oracle support a ...
0
votes
1answer
78 views

Mouse scrolling in CDE file manager

I cannot scroll using the mouse wheel inside CDE file manager (dtfile). Scrolling inside terminal or text editor or anything else works fine. How can I configure it to allow for mouse wheel scrolling? ...
1
vote
1answer
296 views

How to increase the system CPU load/utilization in Solaris 10 to test nagios?

I want to increase the system CPU load in Solaris 10 in order to test this scenario in Nagios. I'm running following command to get the CPU utitlization in Solaris: bash-3.00# sar -s 10 60 SunOS ...
2
votes
2answers
260 views

Cursor keys in bash in dtterm don't work as expected

I am trying to remap some of my keyboard shortcuts in bash. The problem is that when I try to display key code using Ctrl-V, not all keys work. For example, Typing Ctrl-V, then Home moves the terminal ...
3
votes
1answer
238 views

using `lpr` to get file name and page numbers printed on pdf

I have a PDF file and I want to print it with the file name and page numbers added somewhere on the page. Is this possible with lpr? If not, what utility can I use to transform the PDF file first? I'm ...
1
vote
2answers
6k views

Converting from ascii to utf-8 format - iconv not working [closed]

I have a requirement to convert from ASCII text format to UTF-8. Below is what I am performing through the iconv command: [root@main tmp]# cat File1 1 5 6 [root@main tmp]# file File1 File1: ASCII ...
3
votes
1answer
456 views

Solaris 11: Accessing a pool on disk from live DVD?

I made a rather bad mistake while playing around with Solaris 11, which has left me locked-out. I accidently changed the first character of my username in /etc/passwd, and the "new" username is not ...
0
votes
5answers
406 views

How do I install Solaris 10 on a Sunblade 150 machine using external DVD drive?

I want to install Solaris 10 on a Sunblade 150 Machine. It comes on a CD-ROM. Can I install it using an external DVD-drive?
2
votes
0answers
156 views

Move boot disk on SAN storage on Solaris 10

I'm looking for some infos/official docs/howto for migrating boot disks in a production enviroment server from internal disks to SAN on Solaris 10. It's possible for every kind of hw? It's also ...
2
votes
1answer
1k views

How to configure OpenIndiana(151a8 aka “hipster”) for development?

I saw a similar post about Solaris and thought of a similar howto. I've heard of recent news (as in 2013) with the distribution and I learned I could easily update my initial OpenIndiana 151a7 release ...
2
votes
0answers
37 views

Is there a standard POSIX way of doing `tac` [duplicate]

Looks like at least IBM AIX and HP-UX don't have the tac command by default. Is there a way to do this using just basic posix standard shell utilities available on all UNIX systems? Furthermore, is ...
3
votes
2answers
116 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.
0
votes
1answer
105 views

Issue with path to .so libraries

I have an issue with path to .so files. I have a server with two accounts user1 and user2. There is wget program, that is installed to user1 and I need it from user2. When I run it from user2 I get ...
1
vote
2answers
205 views

Join command gives incorrect output?

I'm trying to join two simple files in Solaris 5.8 Version as below: ~/temp/s: cat 1 work1 a 8058 51 work2 b 15336 51 ~/temp/s: cat 2 8058 77-11:29:32 /apps/sas 15336 100-12:23:49 /local/hotfix ...
1
vote
1answer
148 views

Solaris 11 (GNOME) - Where is the “master” menu?

Something strange/catastrophic happened to my Solaris 11 installation, it uses GNOME. I need to know where the "master"-menu (the "Start-menu" listing programs and categories) is located. I hope ...
0
votes
2answers
116 views

Where can I get SUNWsan package for Solaris?

The package is not available in the installation DVD, nor internet (MOS, Google, etc.). Where could I get it?
2
votes
3answers
968 views

Solaris: how to forward cron e-mails?

If a cron job produces output it is e-mailed to the user's account. I would like to redirect this e-mail to another e-mail account. Preferably on a user-by-user basis. I've looked into some options ...
2
votes
2answers
350 views

Solaris11: Alternative to xVM Hypervisor?

AFAIK, support for the xVM Hypervisor - basically Xen - has been dropped in Solaris 11. Is there an alternative/replacement for it? How does it compare to Xen? Obviously there is zones if you want ...
1
vote
1answer
200 views

Ipadm:operation failed

I am studying Solaris 11 in Virtualbox (64bit). I want to create network interface with command: ipadm create-ip net3 But terminal says that ipadm:cannot create interface net3:Operation failed I ...
2
votes
1answer
42 views

Solaris/OpenIndiana: Good documentation for permission-mechanism - roles, profiles and auths?

Are there any good documentation, HOWTOs or books (preferably free and online) describing the permission-mechanism for Solaris/OpenIndiana? How auths, profiles, roles, projects, groups and users ...
3
votes
1answer
96 views

Solaris/OpenIndiana: Password for roles?

I've been gently experimenting with roles in Solaris, and wonder a bit about setting a password for it. I want the role I've created to be used by several users, so setting password to the same as ...
4
votes
2answers
1k views

What process is accessing a mounted filesystem sporadically?

I have a Solaris 10 server with autofs-mounted home dirs. On one server they are not unmounted after the 10 min timeout period. We've got AUTOMOUNT_TIMEOUT=600 in /etc/default/autofs, I ran automount ...
2
votes
1answer
1k 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. ...
1
vote
3answers
352 views

How to capture the standard output of a script that depends on the user for some input?

There is a script that requires me to enter the password before it continues: bash-3.2$ ./script.sh <parameter_list> Enter the password for the Database: .. .. I am interested in capturing ...
2
votes
2answers
513 views

How can I mount vxfs FS to two or more Solaris servers?

I want to have two Solaris servers share the same SAN vxfs Filesystem. Though at a time just one would be accessing the share. This is to allow for a quick failover in case the primary server ...
3
votes
3answers
4k 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 ...
1
vote
1answer
309 views

/usr/ucb/cc: language optional software package not installed [duplicate]

I need to compile a small C program (shared lib for a Perl module) on an old Solaris 8 (Sparc) server. Unfortunately the development tools are not installed and I'm getting: /usr/ucb/cc: language ...
2
votes
1answer
111 views

Can AutoFS keep a share permanently mounted on Solaris?

I have a share mounted on an Oracle Solaris application server that read/writes data onto the share periodically. I have automounted it with a timeout of over several minutes but is there a way to ...
0
votes
2answers
6k 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 ...
2
votes
1answer
79 views

In what situation would it be more beneficial to use AutoFS over vfstab for shares dedicated to just one server?

Consider an environment of three Solaris servers (Server1-3): Where Server1-3 all share a mount nas-server.company.com:/vol/appls-backup, for storing backups and recovery related files at periodic ...
3
votes
1answer
196 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 ...
1
vote
2answers
246 views

perl one liner + how to match IP address that located in the first/sec field of file

the following perl one liner syntax verify if IP address in "$IP" match the IP ADDRESS in file perl -ne 'BEGIN{$IP=shift} print if /(^|\s)\Q$IP\E(\s|$)/;' $IP file file have two fields as the ...
2
votes
2answers
147 views

linux & solaris - separate netmask IP's from ordinary IP's

I have file with IP address and netmask IP's my target is to cut the netmask IP's from the file_with_IPs.txt and paste them to another file as file_with_only_netmask_ips.txt remark - netmask IP can ...
-3
votes
4answers
538 views

perl one liner + how to replace any last IP address octets

How to replace any last IP address octets (four octet ) to 0 remark: Implementation should be by Perl one linear on linux machines for example 192.9.200.124 will replaced to 192.9.200.0 ...
2
votes
1answer
51 views

Is there a PAM Standard?

Related to a StackOverflow question I have. Since it's more or less really a SO question through and through, I won't go into the whole spiel. My platform question is this: Is there an industry ...
2
votes
1answer
103 views

issue with how newly made gnome launchers work vs launchers rebuilt after a system boot. (title change for clarity)

This isnt so much a request for help as a curiosity of mine. I wrote this script to quickly pop up four terminal sessions and fill my screen, since so many of my current systems have things that come ...