Questions tagged [solaris]

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.

Filter by
Sorted by
Tagged with
-2
votes
1answer
3k views

How to pass a globbing pattern as parameter to a function in bash? [duplicate]

I have a assignment in which I am passing a file pattern to a function as below: line=FILE*.txt getFlag $line While the function is as below: function getFlag { filepattern=$1 echo "File ...
1
vote
1answer
956 views

What is difference in the output of swap -l and swap memory shown in top?

I am really puzzled to understand the output of swap -l, swap -s and memory usages reflected by top command. Hence I am not able to finalize that how much SWAP, how much physical memory are used, ...
0
votes
0answers
38 views

du AND find -ls

I have a Solaris 10 server that has mounted a remote filesystem via NFS. I believe the remote system is a NetApp, but it's not clear. When I run df -h <mountpoint> I get size 12T, used 10T ...
29
votes
6answers
150k views

How to check whether firewall opened for a port but not listening on the port

We will be deploying a new application to a Server and the application will be listening on port 8443. We have asked Network team to open the firewall for the port 8443 on that server before deploying ...
1
vote
2answers
86 views

Using ntpd for monitoring time drift, but not for adjusting

I would want to use the common ntpd daemon to test whether time is kept by a virtual machine or not, without letting it actually adjust the clock. I'm running Solaris 11.4 (Oracle's standard image ...
0
votes
1answer
17 views

Solaris services type status

There are following service states in Solaris: degraded – The instance is running or available to run, but is functioning at a limited capacity. disabled – The instance is not enabled and is ...
0
votes
4answers
53 views

list directories created in the last 3 days and display space usage

as part of disk cleanup, i'm now required to delete all folders and its content created in the last 3 days (not the current business date) : example - today's date is 20191121, then `/opt/png/wsm/...
0
votes
1answer
26 views

Unable to understand the output of /devices/pseudo

When I ls -al /devices/pseudo, I see one entry which I’m not able to understand. crw—w—— 1 8888 tty 24, 58. Apr 11 2016 pts@0:58 Can someone please explain each column for me? Thanks a lot.
0
votes
1answer
26 views

Missing module for Perl running in Solaris 5.10

I've created a perl script that fetch string/s and output as a file to be loaded on our database. Now, i'm using Solaris 5.10 to run the perl script but there's an error and i think it's referring ...
-1
votes
1answer
25 views

Must be a block device or a regular file (ZFS, Solaris)

I'm learning how to use ZFS on Solaris. I have 6 disks each with 8GB of storage (/export/home0-5). I want to put them all into one zfs pool. This is my setup. When I run the zpool create command, I ...
0
votes
1answer
1k views

Unix - ps to check if script running

I'm running a script which is meant to process a few utilities in order to recover some data. This script is situated in a directory where the users can place their file that needs to be recovered. ...
0
votes
1answer
35 views

ssh password less connection is not working from abc@server1 to xyz@server2

ssh password less connection is not working from abc@server1 to xyz@server2 , i generated keys with RSA and copied id_rsa.pub from server1 to server2. still its not working Generated keys with below ...
1
vote
1answer
36 views

ulimit for stack size - per process or per thread limit?

So we have a program on Solaris which was running out of stack space. While investigating this, I had a brief look at what ulimit was for the stack: user@solaris-box:~$ ulimit -a ... stack size ...
0
votes
2answers
2k views

Restricting NFS clients to particular IP addresses blocks _all_ addresses

I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system. I have roughly the following value for the share property of a tank/mail ZFS filesystem: ...
1
vote
2answers
31 views

Does Opensolaris offer distributed ZFS filesystems

I haven't had any luck getting a confirmed yes or no to this question. I'd like to run ZFS as a distributed file system (like Gluster or CEPH). OpenZFS and ZFS on Linux does not (yet) have file ...
0
votes
0answers
39 views

Script to get File Creation and Last Access Date and time (In Solaris 5.10)

I want to run a script to acquire file details with file creation date (with time) and last access date (with time). I want to run the script in a directory and want the script to show the details of ...
2
votes
1answer
49 views

Solaris os, number of currently open files by the system (without super user privilege)

I can get the total numbers of currently active and allocated file descriptors in Solaris os using the command: echo ::kmastat | sudo mdb -k| grep file_cache But the mdb requires super user ...
1
vote
1answer
27 views

List of files (the ones in subfolders included) older than a certain date

On a Unix server (Solaris) I would like to have a list of file like the output of ls -lrtR (i.e. all the files of a folder, included the ones in the subfolders, with the indication of their path and ...
3
votes
2answers
60 views

Easy free Solaris-like development VM

I wrote some open source Linux/BSD software with a command line interface and would like to know if I can easily make it run on Solaris too. What would be the easy options (i.e. about equally easy as ...
0
votes
0answers
36 views

Check if package is Unix or Linux

I have a tar archive containing files necessary for the installation of a piece of enterprise software. I want to install this software on a Solaris machine, however I don't know whether the package ...
1
vote
2answers
2k views

silent and non-interactive installation of a package in Solaris using pkgadd and admin file

The command am giving is: pkgadd -a admin file -d absolutepathofpackage Then, its showing the below error The following packages are available: 1 Packagename BigFix Agent (...
2
votes
1answer
1k views

“ndd” equivalent of “ethtool” on Solaris

I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command: rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system And I've got this ...
3
votes
1answer
54 views

List of files with a certain suffix in my path and its subdirectories, listed with their last update date

On a Unix server (Sun Solaris), with ls -lrtR I get the list of all the file in my path and its subdirectories with their last update date. With find . -type f -name "*.sas" I find the list of my ....
-1
votes
1answer
58 views

Is it possible to know what drives is my Solaris using?

I do not have access to the physical server. I have access to a terminal (via PuTTY) where i can run commands. Is there any command that i can run to determine what hard drives my SunOS 5.11 is using?...
11
votes
3answers
1k views

How do I less a filename rather than an inode number?

I have a piece of software that rotates its log files when it restarts. However, during development, I am restarting it a lot, so I would like to monitor the latest log file at any time. If I start ...
0
votes
0answers
18 views

Solaris automount hanging after hostname change

Having spent most of my time on Linux boxes over the years, I found myself inadvertently changing the name of a Solaris 10 zone by issuing a hostname -f command. In Linux, this is "show me the host ...
0
votes
1answer
2k views

Solaris 11 in Maintenence mode: nfs mount: : RPC: Rpcbind failure - RPC: Unable to receive

There is an issue with Solaris 11 machine and it boots automatically to the single user mode.We can see the error message "nfs mount: : RPC: Rpcbind failure - RPC: Unable to receive". The machine is a ...
0
votes
1answer
60 views

unexpected token `elif'

here im trying to write shell that will work on specific dates,Sun Solaris 10 does not support new function but im keep getting syntax error near unexpected tokenelif'` DAY_Word=$(date +%A) ...
0
votes
1answer
7k 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
0answers
17 views

Booting a Solaris VM from Hyper-V

Italy I have some legacy software capable of running on Solaris. It booted in a PC from SCSI disks (BIOS MBR+Legacy GRUB). The operating system is in a partition of type BF00 (Solaris root). Time ago,...
1
vote
1answer
2k views

Samba 3.6.12 and NIS

We were able to use Samba and NIS on Samba 3.0.8 on Solaris 10 U5. When we update system to Solaris 10 U11, samba version became 3.6.12. And we are unable to authenticate like old style. I did not ...
3
votes
1answer
134 views

ZFS silent corruption

I am trying to find answers to some questions on how ZFS works: does it detect silent corruption via checksums as soon as data is changed (and differs from checksum), automatic in a way (then if ...
1
vote
3answers
220 views

Auto enter password for SCP

I will make scp be on cronjob so I would rather use to auto enter the password of the other server. sshpass -p 'your_password' scp user@abc.com:/usr/etc/Output/*.txt /usr/abc/ This script didn't ...
1
vote
2answers
97 views

Show speed of dd on Solaris

I'm quite familiar with Linux, just now starting to learn Solaris. To benchmark a filesystem on Linux, I might use dd: dd if=/dev/zero of=/mnt/nas11/temp bs=1M count=1000 conv=fdatasync 1000+0 ...
0
votes
1answer
28 views

ls colors showing unicode replacement character

On Solaris 11.4 when I try to use ls with colors in an SSH session, the output is correctly colored but there is a question mark in a box at the end of every line like this. I tried ssh from both ...
3
votes
1answer
2k views

How to kill inactive user logins on Solaris?

On a Solaris 10 server if i do a w, I get this: 12:26pm up 85 day(s), 1:13, 6 users, load average: 0.38, 0.36, 0.38 User tty login@ idle JCPU PCPU what blah pts/1 ...
0
votes
3answers
2k views

solaris 11.3 first time login

Dears, I just installed solaris ios on vmware and wanted to know the very first credentials to log into the system i assume the user is solaris but tried root or solaris for the password but with no ...
0
votes
1answer
915 views

rpcinfo shows service running while it is disabled

I am trying to shutdown some RPC services on my solaris servers. I am getting some issues. host = SERVER need to disable two rpc services: RPC Calendar Service cmsd Available (rpc.cmsd) and, RPC ...
0
votes
2answers
902 views

Autofs home folders from solaris 11

I'm having trouble since 2 days with autofs. I have a Solaris 11 Server. There I share the folder /export/home with the following command: share -o rw -d „Freigabe von /export/home“ /export/home My ...
2
votes
1answer
55 views

Find and Replace on a particular column

I like to find and replace on the specific column using sed, because I don't know why awk gsub() didn't work in my Unix (Solaris) that's why I want to use sed. Sample Data: 122|abc|ds,we||wrqg 145|...
0
votes
0answers
27 views

SSH skipping 2 hops in older Sun Solaris server (SSH_1.1.8)

Situation : I am using Sun_SSH_1.1.8 (at least 10 years old) in my below (Sun Solaris) box/servers : From U1@Box1 I ssh to U2@Box2, then U3@Box3, then U4@Box4. There are authorised_keys setup ...
1
vote
1answer
122 views

command to add multiple “secondary groups” for a user in Solaris

I am trying to add 2 secondary groups for a user is Solaris system, but not able to do so. It only adds 1 secondary groups. I've done enough R&D, not sure what to do. Below command I am using : ...
0
votes
1answer
91 views

sed to remove leading comment on crontab with Sun Solaris 10

I am writing a sed command that should uncomment an entry in crontab on sun Solaris 10. I have tried 2 ways and they are working on Ubuntu but they didn't work on Sun Solaris 10; it returns sed: ...
1
vote
2answers
73 views

get count with grep

im working on sun10 Solaris os,i have a process that returns table as by using this command dmh -q 12 the below: *PROFILE PRIORITY COMM_TYPE QID # OF MSGS ATTRIBUTES/VALUES* 13 ...
0
votes
1answer
36 views

intelligent way to read another file for words to exclude while reading logs

I want to have a separate text file which I can modify anytime for words to be excluded while grepping the logs file. I have written below basic script to serve my purpose as of now. in SunOS Please ...
2
votes
1answer
148 views

List processes that have been running more than 2 hours

How can I list processes, with a defined name, that have been running for more than 2 hours. This is what I have tried. ps -efo pid,comm,etime | grep 'process name' | awk '{print $3}' This is for ...
1
vote
1answer
363 views

Solaris 11.3.1 upgraded to 11.4.0 failing

trying to upgrade from Solaris 11.3.1 to 11.4.0 and I keep running into a dependency problem that for the life of me I can't get past. I'm guessing it needs a package that isn't available inside ...
1
vote
2answers
143 views

Solaris how to exclude files in gz

How do I exclude files while gz in Solaris; I want to gz directories inc sub directories but exclude /temp directory and *.gz files. This is what I have used so far; tar -cvf api_v2.x.tar.gz --...
1
vote
0answers
42 views

How to exit if a on of shells failed?

I'm trying to connect to an Oracle DB with a Perl script to execute some queries on solaris OS, and I have saved each one of them like: create table t1 .. update t1 .. insert into t1 .. The main ...
0
votes
1answer
25 views

Adding a user with disabled password and login

How do I add a user similar to this in Solaris (disable password, login and no home page) for service account. adduser --system --ingroup group-name --disabled-password --disabled-login -no-create-...