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.
1,197
questions
0
votes
1
answer
2k
views
Reset net-snmp? I've forgotten the initial user password
I created an SNMP initial user several years ago for a project and have forgotten the password. Is there a way to reset net-snmp back to default, no users, and recreate the initial user and subsequent ...
-2
votes
1
answer
34
views
Restore Solaris 11 on Linux Redhat 7.3 virtual machine [closed]
Is it possible to export the OS image of Solaris 11 and use in Linux Redhat 7.3 virtual machine?
0
votes
1
answer
2k
views
Extracting specific data from SNMP
I've completed an SNMP poll to get different licenses from my routers. I've successfully polled the information; I now want to be able to present it. A snapshot of the output I have is:
SNMPv2-SMI::...
1
vote
1
answer
606
views
Difference of interfaces in netstat -i and netstat -i 1 1 command
Result of the netstat -i command in Solaris:
# netstat -i
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
lo0 8232 loopback localhost 179 0 179 0 ...
0
votes
1
answer
844
views
Openssh slow on solaris server
ssh is slow on solaris server and is getting stuck at the following place.
-130-xxxxxxxxxxxxxxxx@xxxxxx1:xxxx $ ssh -vvv xxxxxx
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading ...
2
votes
3
answers
4k
views
Get Network statistics on Solaris 10
I am trying to get Network statistics on Solaris 10
Something like this when I was working on Linux::
02:42:06 IST IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s
...
2
votes
2
answers
810
views
Can't install Golang on Solaris via pkg - release/evaluation dependency
On a new installation of Solaris 11.3 on Sparc hardware, I'm trying to install Golang but am getting the following problem:
# pkg install --accept developer/golang
Creating Plan (Solver setup): |
pkg ...
0
votes
1
answer
374
views
solaris11 and ipv6: nothing work
I have solaris11.4
Ipadm report two network interfaces configured everyone with ipv4 and ipv6
ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok ...
2
votes
1
answer
109
views
Solaris11 second network works fine with virtualbox..but not with vnic
I need a second network for testing.
Ok, I can use another mask for enlarge number of hosts,but I don' like
I want a
192.168.0.0/24 home
and
10.2.0.0/24 testing
The testing network is for virtual ...
0
votes
2
answers
625
views
bsd packet filter on Solaris, why ping not allowed?
I have two interfaces one is net0 with 192.168.0.30 ip
the other is vnic0 with 10.2.0.1 ip
This is my pf.conf,solaris is 11.4
ext_if="net0"
int_if="vnic0"
localnet="192.168.0.0/24"
internalnet="10.2....
3
votes
1
answer
2k
views
ZFS NFS export user mapping
I'm trying to use ZFS NFS export on my small home network. So far I've managed to export and to mount, but the mounted directory is mapped to user 'nobody' and it is readonly. I'd like to be able to ...
1
vote
3
answers
6k
views
How to get the last update date of kernel in AIX & Solaris
I want to get the last update date of kernel in AIX & Solaris.
For Linux, the command is:
rpm -qa --last | grep kernel-`uname -r` | sed 's/^k.*\s\s//'
For this command I'm getting the output:
...
0
votes
1
answer
403
views
Solaris10 , disk io sar -d output interpretation
Question: in sar -d output ..you have %busy column. How is this value calculated? can this value be more than 100%?
0
votes
3
answers
1k
views
Combine lines whenever string matches in the file
I would like to combine two lines whenever the particular string is found in the file.
Sample Input:
{
id: 23281598
total: {
value: 3.0
}
isThin: false
raw: {
...
1
vote
1
answer
63
views
How to print selected number of lines in repeated fashion from a long file? [duplicate]
I want to be able print line 1,2,3,4,7 by skipping Lines 5,6,8,9 and repeat the pattern till the end of file.
Sample INPUT:
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
...
0
votes
1
answer
900
views
Putting a piece of code in between two html tags in Solaris [closed]
On a solaris HTML file, how do I insert between an html tag and head tag? through bash scripting.
I have an html tag that looks like this:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:arf="...
2
votes
1
answer
194
views
Solaris11: can be installed as zone on omnios or similar?
I can install Solaris11 as qemu vm on Omnios,my question is: is possible (maybe using an archiveadm "flash" archive) to install Solaris11 as zone of Omnios?
1
vote
1
answer
7k
views
zfs and solaris11: how to reduce ram consumption?
sudo echo ::memstat | sudo mdb -k
Usage Type/Subtype Pages Bytes %Tot %Tot/%Subt
---------------------------- ---------------- -------- ----- -----------
Kernel ...
1
vote
1
answer
54
views
Solaris recovery and home: what I miss?
I need to recovery solaris11,the incorrect permission of user( some bad thing with uid..) cannot allow ssh!
So I did
reboot
boot from cd-installation select language and then shell
I import my ...
0
votes
1
answer
1k
views
Solaris11: use a lot of ram
Using this script taken from this site
#!/usr/bin/ksh
# Available memory
memory=`prtconf | grep Memory | head -1 | awk 'BEGIN {FS=" "} {print $3}'`
gb_memory=`echo "scale=2; $memory/1024" | bc -l`
#...
2
votes
3
answers
1k
views
Find a particular pattern in a text file and exclude them from output?
I have a file that is around 25000 lines. Take a look at my sample input and required output
INPUT:
zone name tommy
* pwwn xxxxxxxx
pwwn xyzabcda
* pwwn xcvuytnm
zone name sammy
* pwwn akslapsl
* ...
0
votes
2
answers
572
views
Deleted password under Solaris 11
I have a very serious problem. I deleted my password with
passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by ...
2
votes
1
answer
488
views
Solaris: how to remove profile?
Solaris 11 with RBAC,profiles can give some privileges to user(is like sudo but more advanced).
With command
profiles -p "profile name"
I can create the profile
With command
usermod -P "profile ...
-4
votes
1
answer
178
views
grep and nawk order difference
Could you explain why grep->nawk doesn't work in this situation?
1
vote
0
answers
192
views
Solaris 11 ops center installation errors
I am trying to install ops center on my test server but whenever I start the installation, I get:
error: The configured Oracle Solaris 11 publisher, Solaris, does not support the version of Oracle ...
0
votes
0
answers
44
views
Solaris) Can I set Run Control to change shell on boot?
#passwd -e
Current Shell : /bin/ksh
New Shell : | (cursor)
My question is, can I bind some scripts in /etc/rc3.d/ that can answer the cursor part with a pre-written line of command?
I've tried ...
1
vote
1
answer
176
views
Disable annoying Solaris reboot key binding
I run Solaris 10 x86 in a VirtualBox for the purposes of maintaining a port of a freeware program.
From time to time when I want to search backwards and recall a Bash command with Ctrl-R, I ...
-1
votes
2
answers
610
views
Solaris 10 create username with blank password
How to create a script that will create a new user with a blank password in Solaris 10?
1
vote
1
answer
128
views
Solaris Flar image share across the network using NFS [closed]
bash-3.2# exportfs -av
shareall -F nfs
share_nfs: /flar/sol10-flar.flar: Value too large for defined data type
I am trying to share the solaris10 flar image on to the other server using NFS. I am ...
0
votes
1
answer
2k
views
Solaris encrypt/decrypt similiar on Linux?
Wondering if someone can help me with they way to use openssl or something similar. In a solaris box normally I'm doing this:
decrypt -a aes -k my.key -i mypasswd.aes.cr > /tmp/tmp.file
then ...
2
votes
4
answers
330
views
How to merge 2 columns in a file alternatively?
How to merge 2 columns in a file alternatively? See below example.
inputfile:
sam jam
tommy bond
expected_output:
sam
jam
tommy
bond
0
votes
1
answer
3k
views
rm: Unable to remove directory <some/sub/directory>: Device busy
Solaris 11.3
My script needs to recursive delete in a directory.
Other directories work fine.
One directory is plagued by the following:
rm -rf: Unable to remove directory <some/sub/directory&...
1
vote
0
answers
359
views
How to check the shell of a running process?
I am working on Solaris 11 zone and I need to check which shell a running process is using. I have the PID but I am not sure where to get the information from.
I have a scenario where some resource ...
1
vote
0
answers
517
views
How to update Solaris assembler after updating to GCC 5?
This is related to Where is GCC-5 after installing it on Solaris 11? We got GCC 5 installed thanks to @DanekDuvall. We started a round of Solaris testing...
Testing on Solaris with GCC 5 is revealing ...
3
votes
1
answer
2k
views
Test multiple file conditions by combining flags—does it work?
My answer over at StackOverflow, which received at least two upvotes, is what worked on the shell of a workstation I used at my previous workplace. On that workstation, which is probably some old ...
0
votes
1
answer
3k
views
How can a process have a higher open file descriptors limit than that set by the hard limit?
I am using Solaris 11 and it is my understanding that a non-privileged user can increase or decrease the soft limit of maximum open file descriptors while staying within the hard limit. It is also ...
0
votes
1
answer
106
views
Samba4 giant on Solaris 11
On linux samba4 is about 60MB at least on Slackware.
On Solaris 11 samba4 compiled by myself and installed is 104MB!
So i try strip
solaris original strip
#!/usr/bin/bash
set -e
find . | xargs ...
2
votes
1
answer
553
views
Solaris 11: two manifest for service! I want one
I import a rc.local become a SVC service
Procedure work but..
I see two manifest!
svcs -l svc:/site/rclocal:default
fmri svc:/site/rclocal:default
name Run-once service
enabled ...
1
vote
2
answers
8k
views
Can I userdel a user without removing their home directory?
I did the following:
useradd -d /home/iauser -m -s /bin/bash -c "IA User" iauser
got this error:
UX: useradd: ERROR: Create home directory failed. Operation not applicable
It created an entry in ...
2
votes
1
answer
1k
views
Stop broken NFS mounts from locking a directory in solaris 11.3?
Data from my nfs server:
zfs set share=name=opt_media,path=/opt/media,prot=nfs,sec=sys,root=iphostclent,public,rw=* rpool/media
Data from my nfs client:
mount -F nfs -o bg,soft,retry=5,timeo=5 ...
0
votes
2
answers
217
views
Create a multi-script bash script that is compiled and keeps a log
I am writing a set of bash scripts.
The first, wrapper calls two scripts: do_something and do_something_else.
In pseudo code:
$ wrapper
do_something
if exitcode of do_something = 0 then
...
6
votes
1
answer
303
views
Is Linux the only operating system in the Unix-like/Unix category of operating systems that uses the "fsuid" and the "fsgid"?
Linux uses the file system user id (fsuid) instead of the effective user ID (euid), and the file system group ID (fsgid) instead of the effective group ID (egid) in permission checks.
Is Linux the ...
3
votes
0
answers
247
views
Installing Intel GM965/GL960 secondary graphics controller driver on OpenIndiana
I'm trying to get OpenIndiana Hipster build running on an HP 6910p, but the secondary graphics controller is not working.
The primary driver is working using the i915 driver as part of the xorg-video-...
1
vote
2
answers
658
views
`which` for SunOS 5.10 [duplicate]
I have (normal user) access to a SunOS 5.10 machine.
/usr/bin/which is broken (it blocks).
Clearly something is wrong on the system, but not having root access limits drastically what I can do. I ...
1
vote
1
answer
101
views
Solaris 11 ipfilter service stops on physical link down
I have a Solaris 11 host with multiple network interfaces, and configured IPFilter to do some NAT works; however every time a physical link down, the ipfilter service becomes disabled; even if the ...
1
vote
1
answer
1k
views
ZFS mount dataset for zone
I shutdown my non-global zone and umount her point zfs zonepath.
command for umount:
zfs unmount -f zones-pool/one-zone
details:
zfs list | grep one
zones-pool/one-zone ...
1
vote
1
answer
651
views
On Solaris; find, append to a tar ball and compress question
Solaris 11
I want to find all files greater that 31 days, tar them and compress the tar file.
I'd like to do this on one line. I'd rather use pbzip2 than gzip!!!
Here is what I tried as a ...
1
vote
1
answer
2k
views
How to mount zfs drive partitions in solaris 11.3
I have two solaris 11.3 virtualbox images. One was rendered inoperative after a failed disk space recovery attempt. I then created a new solaris 11.3 instance with a larger drive image and would now ...
1
vote
1
answer
71
views
Modifying standard DTT scripts to use -c instead of $1
There are lots of great dtrace programs out there and some of them require a PID to be passed to them, in order for them to trace that PID. Inside the dtrace scripts that argument is stored in $1. Is ...
5
votes
2
answers
9k
views
What is maximum number of files you can store in a tar archive under Solaris 11?
I need to store a large number of files (> 100,000) in a tar archive and have run into the error: /bin/sh: /bin/tar: cannot execute [Arg list too long].
Are there limits with UNIX Solaris tar or GNU ...