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
1
vote
0answers
41 views

Broken pipe symbol from SQL changing in Linux

I am migrating Solaris code to Linux and have problem with broken pipe symbol used inside sql scripts. There are multiple SQL scripts (and output it produces) with broken pipe symbol (¦) which works ...
2
votes
1answer
27 views

How To Read Variable Value Using mdb?

Let's say I set a parameter with the following command, how could I read it back later on? mdb -kwe "spa_load_verify_metadata/W 0" I am trying to read the man page, but I'm only in this OS ...
0
votes
1answer
25 views

How to upgrade Solaris-11 package?

I am installing OVM Server on Sparc and during installation, it is failing on one package. It is not giving me a clear idea. what do I need to do to fix it? root@ovs-server1:# ./install Oracle VM ...
0
votes
1answer
42 views

Anyone with information on tape format used with early SunOS2.0 or how to get the data out

Having located, downloaded the .tgz and uncompressed it, I am now faced with three directories tape1,tape2, and tape3 with 10 or numbered bits. Using od -c and vi :%!xxd did not produce anything ...
-1
votes
2answers
43 views

How to find if line or text have specific word from wordlist?

I have a line (alarm) and a wordlist. I want to check if the line contains any word from the wordlist, or not, using terminal command. I tried grep, but did not work.
0
votes
2answers
76 views

Print Above line and below four lines if a pattern matchs

I have a text file say input.txt which contains below data $ cat input.txt text1 error text2 text3 text4 xyz asd asdf text10 error text11 text12 text13 text14 def ghi jkl text16 error text17 text18 ...
1
vote
0answers
16 views

Globally changing screen-resolution in Solaris 11.3 running in VirtualBox?

I'm running Solaris 11.3 in VirtualBox, and I'd like to increase my screen resolution while working in X11. I've tried to install VBox GuestAddition, but despite the installation appearing to be ...
0
votes
1answer
15 views

Forcibly install a package, despite missing dependency?

In Solaris (11.3), is it possible to forcibly install a package from a repository (the Solaris repository), despite that one of the requirements is missing? Alternatively - since another (newer) ...
0
votes
0answers
14 views

Why does mail create a dead.letter, but the mail still arrives

When I do this % mail -s "test" me@icloud.com < mail-text it takes a few seconds, then it comes back with this error message: /home/zach/dead.letter... Saved message in /home/zach/dead.letter ...
1
vote
1answer
29 views

Solaris functioning as FTP client but not as a host. Possible?

Apologies if this isn't the right forum but I need the advice of an FTP familiar engineer. For security reasons, FTP services are being shut down on our company's Solaris 5 server. The reason is that ...
0
votes
1answer
66 views

How to enable wheel group in solaris 11.3

I want to add user in wheel group but can not find wheel group in /etc/group file. Also i uncomment the line "%wheel" in sudoers file as: root@solaris:~# grep wheel /etc/sudoers ## Uncomment to ...
0
votes
0answers
44 views

can't create your crontab file in the crontab directory

OS: Solaris 5.11 Until today, I was able to populate the crontab using: crontab myjobs.dat In fact, I have a shell script that executes this so that I can refresh crontab. I've also used echo > ...
0
votes
1answer
45 views

how to display grep with multiple line

I have the following code: int val nameof_function(); above code is in this file filename.txt I try to find that sequence of lines in a file using grep "int val.*\n.*(" filename.txt but it is not ...
1
vote
0answers
30 views

Single digit in /etc/shadow file Solaris for password hash

In the /etc/shadow file, I should expect to see like below:- loginID:passwordHash:...... In the case of Solaris, passwordHash should be a 13-character hash value. What does it mean then, if on my ...
0
votes
1answer
33 views

Sort on substring of line (not using a delimiter)

I need some help understanding how the sort command is working in the following examples: cat testfile The input data: thisfilehasduplicates thissnowhasfallen thisduckhasdied thishallwasfull ...
0
votes
2answers
111 views

Could not chdir to home directory /export/home/wjones: Permission denied

Only root can loginto SSH terminal no created user can access the terminal how can I alter permissions to allow users to log in as well Could not chdir to home directory /export/home/UserName: ...
0
votes
0answers
40 views

How to find disk space with ZFS?

I have a Solaris 11.4 server with a ZFS rpool. I have deleted all the snpashots, cleaned up /var, removed all but the current boot environment. I still can't find out where ZFS is hiding the space. ...
0
votes
0answers
28 views

compare two filename with specific string and rename 2nd if matched

I have list of log files which will generate a report file after analyzing in different directories. For example, source directory has files like abc.hostid.hostname.log and output directory has files ...
0
votes
2answers
34 views

Solaris 11 x86 disable shutdown on ACPI power button

If a x86 Solaris system is not in X11 (text console), it will shutdown, after the power button pressed. How should I disable this? The documentation from Oracle only states that you can power the ...
1
vote
0answers
25 views

a command that display the licensed installed products

I want to document the products on my machines with every machine having its own features, service or products that are installed on it with the specified expiration date of those programs. Is there a ...
0
votes
1answer
33 views

How can I recursively export directories and files in Solaris?

Sorry, maybe I didn't phrase it well enough. By export I didn't mean move it to an external device, but to export directory and file names recursively in a text file. I would need the entire tree ...
3
votes
1answer
83 views

Solaris: is possible to permit root login on some terms?

I have a server with some serial ports. One is /dev/console, another is /dev/term/b(the ttyS1 under linux and the COM2 under dos). I want root to login under /dev/term/b but.. myserver termb login: ...
1
vote
0answers
31 views

Solaris 11.4 RBAC works for vim, not for su

I want to access some commands as root, for a normal user. I create the profile profiles -p "privileged" set desc="privileged profile" add cmd=/bin/su set euid=0 end commit exit Then I add profile ...
1
vote
1answer
51 views

Get info about not installed SRU on solaris 11

I have registered repository on Solaris 11.4x86 VM. When I try to grab SRU I receive several results, one of them installed: # pkg list -af entire ... entire 11.4-11.4.3.0.1.5.0 ...
0
votes
1answer
38 views

Not Getting output of Expect Script in Crontab

I've created an Expect Script (.exp) to get the raw file in other server. Then, I also have .sh file to call my .exp. It's working well when I tried to run it in a usual way (./call_expect.sh). But ...
1
vote
1answer
25 views

Edit VTOC label in Linux as guest LDom in Solaris after resizing vdisk zvol

I've got a Solaris 10 system on SPARC hosting multiple Linux guest LDoms which were installed on ZFS zvols. After resizing the zvol though, the Linux doesn't "detect" that disk resized, and from what ...
0
votes
1answer
68 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 ...
-1
votes
1answer
22 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 ...
1
vote
2answers
182 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
29 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
4answers
90 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
36 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
89 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
46 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 ...
2
votes
1answer
289 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 ...
2
votes
2answers
103 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
44 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
162 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
31 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 ...
0
votes
0answers
37 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 ...
3
votes
1answer
58 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
67 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?...
0
votes
0answers
30 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
158 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
0answers
25 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,...
4
votes
1answer
160 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 ...
0
votes
1answer
29 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 ...
1
vote
2answers
263 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 ...
1
vote
3answers
543 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 ...
2
votes
1answer
65 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|...

1
2 3 4 5
22