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)

2
votes
1answer
59 views

Solaris 11_3 Installation on LDom via “telnet localhost 5000”

I am new to the Unix section here in my company and now I got the task to install Solaris 11 on a new LDom. Reading the documentation, I was able to create and configure the primary domain and I was ...
1
vote
2answers
23 views

get command line perl command to report what changes it's made

I am using the following command (on Solaris) to remove the protocol from a bunch of files. find . -name "*.txt" -exec perl -pi -e 's/http//g' '{}' \; Is there a way to have a verbose output so ...
0
votes
0answers
31 views

Solaris server is rebooting again and again

I am working on Solaris 10 and I am trying to boot the system from ok> But it's been constantly rebooting again and again and throwing panic errors I went to lom> to find answer but no clue
4
votes
3answers
168 views

How to match a pattern, delete the pattern and also the next and the previous line on Solaris 10

How can I match a pattern, delete the pattern and also the next and the previous line on Solaris 10? I'm hiting the wall because Solaris does not come with GNU sed. Given the following file content: ...
1
vote
1answer
22 views

How to make program which will react on button pressing (such as “more” on 'q') [closed]

I' m trying to realize, how does work pg\more\less utilities. For example, cat somebigfile | more. More now in interactive mode. His fd table is: 0 (read pipe from cat) 1 (stdout) 2 (stderr) I can ...
0
votes
1answer
40 views

Patching a Solaris flar archive

I have a Solaris flar archive of an old Solaris 10 environment, now I'm not allowed to update the running system in any way so would like to be able to: Extract the flar archive somewhere (without ...
3
votes
1answer
72 views

GDB hangs forever on Solaris

GDB seems to hang everytime when I try run command from gdb prompt. When I ran ps, there are two gdb processes that have been spawned and pstack reveals the following - 15:47:02:/home/stufs1/...
1
vote
0answers
27 views

Various environments and weird less behaviour [closed]

I am playing with I/O redirection and have problem with less behaving differently in two environments. Both environments are Solaris-based and are of the same version. I am executing program in two ...
0
votes
0answers
53 views

dladm show-phys shows speed 0

we have a M6-32 and I need to know which speed is running each interface. When I issue the dladm show-phys I have this strange behaviour: LINK MEDIA STATE SPEED ...
0
votes
0answers
36 views

How to verify the syntax of a new ipf.conf file?

From what I have read it might be ipf -n -f newipf.conf. But will it catch all errors? Or are there errors possible in the configuration file, which will occur only, when the ioctls are actually ...
-2
votes
1answer
53 views

SSH thorough 3 systems to transfer the Data

We have 3 Systems here, I need to transfer data from the Data Server to the test vm the only way is through the jump-host. this daily process take long time. How do I automate this thing for daily ...
1
vote
4answers
59 views

Symlinks according to directory depth

I have the following directory structure that I need to create, and while doing so, I need to also create the zip files which are symlinks. /a/2015-08-17/a.zip /a/2015-08-17/a_b/a_b.zip /a/2015-08-...
0
votes
1answer
56 views

find by name or by grep

find . -perm -u+x,g+x,o+x -type f -exec grep -i -l -H -E '#!/bin/bash|#!/bin/sh' {} \; 2>/dev/null 1>/$user_scripts I am tasked with finding any script that could exist for N users in 4 ...
3
votes
1answer
254 views

Solaris 10, change partition size

I have a ultra 10 with solaris 10. I would like to increase the size of the / partition (by reducing /export/home). I'm rarely working with solaris. Some "hands on" advice would be great :) df -h ...
1
vote
1answer
44 views

Using shared serial modem

I'm trying to use on Solaris box modem connected to Linux box via serial port. Sharing is made from socat. Server command(linux): socat tcp-l:54321,reuseaddr,fork file:/dev/ttyXXX0,nonblock,...
0
votes
1answer
345 views

How do I find block of text, from a text file, containing a specific string [duplicate]

I've been looking to extract a block of text, from a text file, containing a string with no success. Any help would be really appreciated. For example: I have a file named xyz with below contents: ...
-1
votes
1answer
282 views

du -sh and df -h are giving different output [duplicate]

I got an alert stating that 3 of my mount points are 91 % full and i need to clear the files. When I run df -h command it states that the mount points are 91% full but when i try to run du -sh * in ...
1
vote
2answers
249 views

How do I get the date from two weeks ago using Solaris' date?

Linux uses: date -d "2 weeks ago" +%b which is equivalent in Solaris?, I searched online, but nothing.
0
votes
1answer
42 views

Replace some characters in a certain part of a filename

On Solaris, I've got a script that succesfully do that: USER,REPORT_NAME,DD:MM:HH24.pdf -> USER,REPORT_NAME,DD_MM_HH24.pdf The one-liner is this: for f in *:*; do mv "$f" $(echo "$f" | tr ':' '...
0
votes
1answer
123 views

RBAC user cannot execute useradd on Solaris 10

I am trying to create a user in Solaris 10 using RBAC who can execute the useradd and userdel commands. But for some reasons after i create the profile, role and user, this user gets a permission ...
2
votes
1answer
239 views

replace nth column of a csv file by the help of lookup table

I have a csv file (a.csv) as below (with thousands of lines): NMS_NE,,,,,,,,,,,,,,,,,,,,,,, D,NE Name,IP Address,Site Name,Product UPEI,Product Name,Product Model,NE Status,Serial Number,SW Major ...
1
vote
0answers
114 views

socat for sharing serial port from linux to solaris

I'm trying to share serial port from linux box to solaris 10 box (solaris machine don't have serial port). While doing the same commands from linux box (modem-server) to other linux box - everything ...
3
votes
1answer
232 views

What does eval X=\$$i mean in UNIX?

I have a small script with the following lines echo mom,dad |awk -F, '{print $1,$2}' | while read VAR1 VAR2 do for i in VAR1 VAR2 do eval X=\$$i echo $X done done OUTPUT: mom dad ...
1
vote
1answer
201 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
0answers
68 views

Is the pipe overloaded?

I am using a coprocess to run commands in siebel server manager. I am reading commands from a text file (around 2000 commands) and executing them one by one in siebel server manager. After executing ...
0
votes
0answers
35 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
106 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 ...
0
votes
1answer
55 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
166 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 ...
2
votes
2answers
467 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
1answer
49 views

Wipe a Solaris Disk

Looking for something similar to Eraser for Solaris 9-10-11 Anything?
0
votes
0answers
417 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
0answers
80 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 https://...
5
votes
1answer
278 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 ...
1
vote
3answers
803 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
3answers
622 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 ...
1
vote
2answers
173 views

umask permission - where it works, 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
1answer
34 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 ...
0
votes
2answers
51 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
38 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
1answer
198 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
1k 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
54 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?
0
votes
5answers
212 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 directories and check. I would like to ...
1
vote
0answers
150 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: /etc/...
1
vote
1answer
78 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 ...
6
votes
3answers
434 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
219 views

Telnet check in bash script

I want to run the following commands in bash script form in Solaris 10: $ telnet localhost 25 debug quit How do I handle this?
1
vote
4answers
119 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
115 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?