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
vote
3answers
30 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
25 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 ...
2
votes
3answers
79 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
37 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
20 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
1answer
22 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
17 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
37 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
45 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
58 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 ...
-4
votes
4answers
83 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
41 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
43 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 ...
1
vote
2answers
62 views
Perl - /etc/shadow - Permission Denied
The following command is being executed by a non root user :
perl -pi -e 's/^an24:/an24:\*LK*/g' /etc/shadow
A permission denied is being issued.
This indicates some privileges issues.
Can such ...
4
votes
2answers
79 views
Why `host` and `nslookup` on Solaris 10 resolves hostnames while `ping` and `telnet` does not?
/etc/resolv.conf contains a nameserver that is alive (as reported by the ping command)
host or nslookup is able to resolve google.com
$ host google.com
google.com has address 74.125.228.3
google.com ...
1
vote
3answers
34 views
How to mount the CD-ROM on Solaris 10?
How to mount the CD-ROM on Solaris 10 without knowing the CD-ROM device name?
5
votes
1answer
99 views
What is causing this Copy command to enter sleep state?
I am trying to recursively copy a huge directory of installables over 25G and want to preserve the owner and group id, permission modes and so on.
So I ran the below commands:
bash-3.2$ date; cp ...
2
votes
4answers
70 views
sh and grep numbers only
I'm facing a problem and trying to find a solution that works in sh.
If I could use bash this code would work:
ls /a|grep ^[0-9]
Unfortunately this is not the case with sh, and yes I need to use ...
1
vote
1answer
61 views
Configuring DNS resolver failover timeout
We have all of our systems set up to do internal DNS to a local name server and a secondary name server so that in the event the local DNS server is down they should go over the WAN to the secondary ...
3
votes
1answer
48 views
How can a non-root user check if a FS has been exported to a server?
Consider I am on server1 logged in as a non-root user. How do I check if a NAS FS has been exported onto the server SERVER1?
I have already tried the below commands.
bash-3.2$ dfshares SERVER1
nfs ...
2
votes
1answer
54 views
Solaris - permanently update PATH for all users
I have installed JDK and Groovy on my Solaris 11 machine. I would now like to set things up so that the PATH variable would contain the bin directories whenever I open a shell.
It is my understanding ...
2
votes
2answers
47 views
Browse LDAP strcuture using Solaris pre-packaged command?
I have used ldapsearch to pull details on accounts but is there a way to browse the different levels in the LDAP directory just like we do with files in a directory?
2
votes
1answer
46 views
How do find the LDAP connection details that the Solaris box uses to authenticate users?
The Solaris box is configured to use LDAP and has no local user accounts.
This is the output of the nsswitch.conf file:
bash-3.2$ less /etc/nsswitch.conf
passwd: files [NOTFOUND=continue] ldap
...
0
votes
2answers
25 views
Studio 12.3: language optional software package not installed
I installed the Solaris Studio 12.3 on Solaris 10 OS but when I check the version but it is showing below result. It is installed under /opt/SolarisStudio12.3/bin so why wrong path is coming. I ...
0
votes
1answer
122 views
How do I redirect output from the find command (that uses grep) to a log file?
Consider the code to search for all files containing the pattern "search string":
bash-3.2$ # The below find works fine..
bash-3.2$ find . -type f -exec grep -il "search string" {} \;
bash-3.2$ # But ...
1
vote
4answers
57 views
Solaris: Script for finding the physical device path of all installed fiber cards
I have a number of systems (with quite varying type, generation and architecture unfortunately).
I need to create a list of fiber cards on these varying systems.
I am able to use prtconf -v, and ...
1
vote
2answers
81 views
linux + match IP ADDRESS with 3 octets or with 4 octets
how to match IP address with 4 octets or with 3 octets in one command?
target - match xxx.xxx.xxx or xxx.xxx.xxx.xxx ( syntax should fit for Linux and Solaris )
how to merge the following commands ...
0
votes
2answers
61 views
unable login solaris box
There is problem on my Solaris 10 box.
It's not possible to access directly to the box, but via ssh from another box after 3 wrong entries of username/password to box then login prompt changes, at ...
3
votes
4answers
172 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 ...
8
votes
0answers
196 views
how to get exit status from the command before the last [duplicate]
I have solaris machine ( solaris 10 )
please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable")
# haconf -makerw
VCS WARNING V-16-1-10364 Cluster ...
1
vote
1answer
75 views
ls -ld /dir, Solaris [duplicate]
Always when I run ls -ld /dir the output give me the size = 512 even if there are files in it or not.
but when I run du -sh the output give me the actual size of the directory including its content.
0
votes
1answer
38 views
Solaris development host
This posting aims to document how go about getting a development host on Solaris.
A "development host" is one where you have all the appropriate tools to build and compile C or C++ applications.
...
1
vote
2answers
108 views
Delete n minutes old file in solaris
Can some one please tell me how to delete n minutes old files in Solaris? My find does not -mmin option.
1
vote
1answer
36 views
Nexenta (Solaris), strange user membership from LDAP
Anybody help me, why do run id command in the Nexenta OS (Solaris+Ubuntu), i get different result?
a_ay@nexenta:/etc$ id -G
513 512 1000 201 203 1010 1013 1019 1020 1036 1039 1040 1041 1045 1046 1047
...
1
vote
1answer
73 views
How many reboots are required for updating Solaris 10 update 8 to update 10?
The Oracle Live Upgrade document* states that these patches need to be done before doing the LiveUpgrade:
*Document 1004881.1, "Solaris 10 5/08 (Update 5) or later:"
119254-LR Install and Patch ...
1
vote
1answer
83 views
Can you mount UFS partitions made in Solaris (Sparc) on Solaris (x86)?
I am reading about Endianness and it seems both systems save their data differently.
Sparc uses big endian and x86 uses small endian, meaning the byte order is different.
That makes me wonder... is ...
0
votes
1answer
59 views
While setting up SFTP between *nix servers, is the intial handshake optional?
I setup SFTP between *nix servers as follows:
Generate the Public key on the sending server by running the below command:
[user1@server1] $ /usr/local/bin/ssh-keygen -t rsa -b 1024
Then copy ...
1
vote
1answer
71 views
scp recursively directories on SunOS
I have encountered a small issue with SCP (and also rsync). I need to copy certain files from server A (running SunOS 5.8) to server B (running SunOS 5.10).
First, I get the list of files (several ...
1
vote
4answers
341 views
print last field from line + alternative for awk
Due to technical reason on my Solaris machine, I can't use awk in order to print the last field in line.
What are the other alternatives to awk that print the last field from line (using cut or tr ...
0
votes
2answers
155 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 ...
1
vote
1answer
141 views
How to properly use /usr/xpg4/bin/grep -F
I have a problem producing filtering out hanzoMollusc (2)from my grep.
https://node.hanzo.com/production/application/ (1)
https://node.hanzoMollusc.com/Messaging/Receiver (2)
My grep command is ...
1
vote
3answers
194 views
/etc/vfstab in Solaris 11
I would like to mount a folder from the remote server 10.12.13.2.
When I type: mount -F nfs 10.12.13.2:/username /remote/username, the folder username gets mounted in the directory /remote/username.
...
2
votes
1answer
55 views
Why is the output of find sorted in Cygwin but not in Solaris?
I wonder why find does not behave in the same way in Solaris as in Cygwin or Linux.
I have a bunch of directories that have files called CS##########. Each # is a digits but there are always 10 ...
0
votes
0answers
74 views
Setting Up Cross Compiler, Linux x86_64 to Solaris 10 SPARC
I have a student account for a Solaris 10 SPARC server at the university I go to, and I thought it would be interesting to set up a cross-compiling GCC on my home Linux x86_64 computer so that I could ...
1
vote
0answers
224 views
Obtain device name and mount point if partition label is known
How to obtain the partition device name and mount point when the file system
label is known?
There are several possibilities:
Linux
File system label to device name
The device name can be obtained ...
1
vote
1answer
156 views
tr command not working with octal sequences
I need to strip non-ASCII characters off a file. I was using the command -
/usr/xpg4/bin/tr -cd '\0-\177' <non-ASCII_file.dat >ASCII_file.dat
Though it worked in the past, it is not ...
2
votes
1answer
62 views
Solaris 11: How to use ILB to create HA loadbalancer across two backend servers?
I'm attempting to use Solaris 11's ILB to create a loadbalancer across two backend DNS servers. Here's my requirements:
Two external IPs: .XXX.YYY, .XXX.ZZZ - these are the DNS IP's that our clients ...
2
votes
1answer
93 views
perl + combine exec command with perl one liner line
I have the following short perl script rename.pl. How can I translate this script to one liner perl syntax? And how to combine the perl one liner in find command?
rename.pl
#!/usr/bin/perl
$op = ...
0
votes
1answer
225 views
Rename files and directories with a special characters on solaris machines
The target of the following code ( commands ) is to rename files/directories and also support files/directories with a special characters as "@" or "." etc
those commands are run fine on Linux ...
2
votes
3answers
171 views
`solaris + xargs command for solaris
the command
find /tmp -name 'core*' -type f -print0 | xargs -0
works fine on Linux,
but xargs -0 option is not legal on Solaris
what is the equivalent option ( xargs? ) for Solaris 10
second ...