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.
2
votes
1answer
104 views
Why does newgrp change my PS1 and how to prevent it?
I have a customized PS1 to show several parameters. When I switch to a different group using newgrp, it switched my PS1 to default ($) and that is annoying. The default remains even when I switch ...
1
vote
1answer
687 views
EMC storage + powercf command + powerpath
When I run powercf -q on my Solaris machine, what changes does this command do on the EMC storage, or on Solaris file system?
From manual page:
DESCRIPTION
During system boot on Solaris hosts, ...
1
vote
4answers
806 views
how to increase memory usage manually?
There is Solaris 10 OS on our server, and I would like to make test on this server. For this test memory usage should be high.
So I wonder if there is an easy way to increase memory usage manually ?
0
votes
1answer
345 views
system monitoring tools
What command line utilities come standard with sunos to do system monitoring?
I've been able to find prstat, but I would like something that will tell me memory usage and IOWAIT as well.
It looks ...
0
votes
3answers
311 views
How to send ntp request?
I would like to get local time of server. Is there command/way to get time of server.
Operating system is solaris
Thanks
2
votes
0answers
123 views
Installing GnuPG on Solaris -— failed
i have Solaris
SunOS 5.10 Generic_147441-01 i86pc i386 i86pc Solaris
trying to install GnuPG on it
i have referred these sites for it
http://gnupg.org/
...
1
vote
1answer
170 views
Solaris SPARC 10 32bit mode
I'm looking for a definitive answer, does Solaris 10 running on a SPARC machine support booting into 32bit mode?
I've found one site that states Solaris 8 was the last version that supported booting ...
2
votes
0answers
67 views
What is the equivalent of /usr/share/misc on Solaris?
The Linux Filesystem Hierarchy Standard has the following to say:
This directory contains miscellaneous architecture-independent files which don't require a separate subdirectory under /usr/share.
...
2
votes
2answers
637 views
What are the dangers of setting a high limit to max File Descriptors per process?
I'm working on an old legacy application, and I commonly come across certain settings that no one around cam explain.
Apparently at some point, some processes in the application were hitting the max ...
1
vote
3answers
1k views
sed/awk/perl - delete spaces between two strings/words + solaris 10
please advice how to delete the spaces between "=" to the value/string ( after the "=" character) , should be implemented by awk or sed or perl command and command must to fit for solaris OS , ( ...
2
votes
1answer
758 views
Send the Output of an HTML file within the email body using mailx
Problem Statement:-
Currently I am sending an email using mailx by attaching an html file within the email. But I want to send an email using mailx command instead of attaching the html file in an ...
6
votes
2answers
636 views
Using sed to color the output from a command on solaris
I have a ksh script that must work on both linux and solaris. I'm trying to color the output of specific commands. It works on linux (specifically RHEL6), but not on solaris (SunOS 5.10).
Command ...
2
votes
2answers
425 views
Solaris 11: how to get pkg properties in machine readable format
I would like to be able to extract (from within a shell script) the attributes of an IPS package. Basically I'm after exact same information as is listed with the pkg info command, but unfortunately ...
1
vote
1answer
242 views
What File Transferring Method (i.e. FTP) Can I Use for rlogin (Solaris 8 on SPARC)
For all my other Unix Virtual Machines, I use SSH and I use WinSCP to transfer files from my Windows Vista machine to the VM's.
Now, One of the VM's is using rlogin, What can I use to transfer files ...
2
votes
3answers
877 views
How to delete a range of mails in Solaris using the 'mail' command?
I have some 1k+ mails in an inbox (old cronjob stdout), how to delete them in bulk?
I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client.
Inline help and ...
3
votes
2answers
495 views
Remove prefixes from filenames
I have a bunch of files as follows:
04602635_b0294.DAT20120807164534
04602637_b0297.DAT20120807164713
04602638_b0296.DAT20120807164637
04602639_b0299.DAT20120807164819
...
3
votes
2answers
365 views
bash myscript.sh runs in bash, but the first line is #!/usr/bin/sh
I have a script similar following one:
#!/usr/bin/sh
var="ABC"
if [ $var == "ABC" ]
then
echo True
else
echo False
fi
Above code does not work in Solaris Sparc and Solaris X64. It is showing ...
0
votes
1answer
1k views
Check if SSH is enabled or Disabled in Solaris 11
How can I check to see if SSH is enabled on Solaris 11? I have tried typing ssh in the terminal, and it came back with a list of options, which none of them made sense to me.
All I want to know is if ...
2
votes
2answers
748 views
filter file for specific date
My OS is Solaris 10 (64 bit) and I have many files in a logs directory where we receive 40-50 logs every day. I have last 20 days file present in this directory and I want to move each day file to a ...
1
vote
2answers
4k views
Changing the IP Address in Solaris 11
I am trying to change the IP address in Solaris, but am failing to do so.
The IP address needs to be a fixed number, like 10.0.11.10
I have tried changing the IP address in /etc/hosts which I ...
3
votes
6answers
975 views
Difference between “echo $SHELL” and “which bash”
I am trying to determine the location of bash interpreter on my Solaris system and I am a bit confused. When I type:
echo $SHELL
The resulting path is:
/bin/bash
And when I type:
which bash
I ...
2
votes
1answer
218 views
Time validation with regex
I'd like to make validation about time stamp of one of my log file. But it seems I have problem on my expression in case statement.
TIME value might be something like 11:49 or 2011. And I just want ...
2
votes
2answers
186 views
Do Solaris 10 and 11 still use slab allocation for their kernel memory allocator
If not, what do they use. Please provide a source.
2
votes
1answer
207 views
Can't add swap file on solaris
I'm trying to add a swap file on Solaris 10. I have already created a 2GB file swap.file. Then, I add a swap file with the command:
swap -a /swap.file
which shows an error:
/swap.file: size is ...
3
votes
3answers
2k views
Startup script not executing after reboot on Solaris
I have a command to start Apache in /etc/rc3.d that does not execute when the server reboots. The script is named S75Apache2. Someone has speculated that this is because the link has a capital "A" ...
1
vote
2answers
97 views
access rights of a file in octal format
I wonder if there is command which will give you access rights of any file you provide.
There stat related command but it is not accessible in solaris.
stat -c %a /etc/passwd
Is there any ...
0
votes
1answer
411 views
lsof compares to pfiles, difference?
pfiles in Solaris suspends files for a short period while examining them, however, lsof does not. How does lsof work that allows it to retrieve information while not suspending files?
1
vote
1answer
588 views
AES-NI accelerated ZFS v31 encryption in Solaris 11
I'm not quite sure if this is the right place to ask this, if not, feel free to migrate it to wherever it fits in.
I'm testing the encryption feature in ZFS v31 in a Solaris 11.11.11 VM under ESXi ...
1
vote
2answers
1k views
Help understanding `find` syntax on Solaris
Consider the following files:
$ find findtest
findtest
findtest/test1
findtest/test1/start.ksh
findtest/test2
findtest/test2/start.ksh
findtest/test3
findtest/test3/start.ksh
...
2
votes
2answers
1k views
Solaris disk failed, how to remove it?
I have a system with Solaris 10. One of the internal disks is broken:
c0t0d0s2 auto:sliced rootdisk1_1 rootdg online c0t0d0s2 -
c0t1d0s2 auto - ...
2
votes
1answer
223 views
Installing vim/emacs on solaris 8
At my new job, they want me to use a solaris 8 operating system, but all my coding experience has been on linux. Linux had a lot of tools built into the system, but it seems like the solaris I'm using ...
4
votes
2answers
127 views
Is Oracle Solaris UNIX?
Is Oracle Solaris officially declared UNIX?
I want to know all the official UNIX presently available in the market (whether free or paid).
Please correct me if I am wrong:
To the best of my ...
3
votes
4answers
513 views
Formatting the output: Underlining
I wrote the following function in ksh that prints its first argument to the screen and underlines it with the appropriate ammount of - character:
print_underlined () {
word=$1
echo $word
...
3
votes
5answers
3k views
Unix - how to get hostname along with domain name
In unix (Solaris) is there any command that returns the hostname and domain name together?
For instance:
hostname -> servername
domainname -> us.xyz.com
I need : servername.us.xyz.com
2
votes
1answer
63 views
Solaris “clean” group files (or for that matter any text file)
I am looking to find a way to script a cleaning operation on the /etc/group file on a large number of servers. Looking for users in a particular group more than once.
i.e.
somegroup::100000:userA, ...
2
votes
1answer
143 views
Configure & Compile syslog-ng from source, got: Threads are not supported on this platform
I have configure, gmake, and gmake installed syslog-ng-3.4.0alpha1 with eventlog-0.2.12 and other dependencies.
From then output of the ./configure --prefix=/syslog --with-gnu-ld, I can see that the ...
2
votes
0answers
183 views
Sendmail configuration with user mapping on Solaris
I have the following:
host1.intra.net which has sendmail and users: user1, user2 & user3. It is running SunOS 5.10.
host2.intra.net which has SMTP server. No authentication, no encryption.
Email ...
1
vote
1answer
476 views
Display all network interfaces on Solaris
On Linux, the command mii-tool displays the list of Ethernet interfaces and other information. What equivalent command existson Solaris? My goal is to view all LAN networks that my Solaris machine is ...
2
votes
1answer
924 views
What does “Invalid argument” mean in Solaris?
-bash-3.00$ ./p4 -V
-bash: ./p4: Invalid argument
What does "Invalid argument" mean in Unix?
More details:
p4 is an executable in the current directory.
p4 actually refers to perforce. The option ...
2
votes
1answer
150 views
What's the best strategy to catch mystery process?
I have running processes on my server that get killed every night at midnight. It's at work, I'm not around when it happens and I don't have remote access.
The kill occurs very predicably at 23:59 ...
1
vote
2answers
560 views
File size :size of content and what is seen different
Assume you have a file 342MB but when you get into that file and look the content of it; you see that everything occupy around 92 MB. No hidden file or any other thing exist on it.
How can that be ...
4
votes
1answer
437 views
Restoring an open file
I have an interesting problem which may or may not have a solution but I'd love to have one if possible:
On Solaris an open log file has been removed, which still continues to be populated while the ...
1
vote
1answer
423 views
what is inode for, in FreeBSD or Solaris
I know a little about linux kernel. BUt for Freebsd, the "vnode" actually is similar to the "inode" in Linux kernel.
And there is a "inode" concept in FreeBSD or Solaris.
So my question is: what is ...
3
votes
2answers
198 views
filesystem image mounted with lofiadm looks smaller than expected
I have a .gz file and I'd like to see the content of it. I used lofiadm to mount it.
lofiadm /backup/file.gz ->> returned /dev/lofi/1
mount -F ufs /dev/lofi/1 /mnt
Then I checked the content ...
3
votes
1answer
423 views
boot_archive file in solaris
Does anyone know what is that boot_archive file. It is located under /platform/sun4v/
/platform/sun4v> du -sh * | sort -rn
342M boot_archive ****
190M failsafe
106K lib
71K bootlst
12M ...
3
votes
3answers
762 views
Is the Solaris libc based on the GNU libc?
On Solaris:
basename.c
#include <stdio.h>
#include <libgen.h>
int main(int argc, char* argv[])
{
int len = strlen(argv[0]);
char *bsname = basename(argv[0]);
printf("%s\n", ...
2
votes
1answer
310 views
How to install & run collectd on Solaris 10 x86
I am trying to install and run collectd on Solaris 10 x86. I downloaded the Solaris x86 version of the installer. Installed using pkd_add command and chose the default folders.
Now I am trying to ...
1
vote
1answer
230 views
Does Android SDK work in Solaris?
I want to compile my Android app in a Solaris server. Though, from Android Developers all I can see are Windows/MacOS/Linux versions. Does anyone know if I can install and use the Linux binaries in a ...
2
votes
1answer
391 views
How to track file change
nsswitch.conf file always corrupts somehow. I do restore from my backup every time it corrupt.
When this file corrupts, its time stamp is changing. Now I wonder if there is a way to track that file ? ...
1
vote
2answers
5k views
High load average, low CPU usage - why?
We're seeing huge performance problems on a web application and we're trying to find the bottleneck. I am not a sysadmin so there is some stuff I don't quite get. Some basic investigation shows the ...
