08-23-2007
ls -d doesn't work on Solaris
Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d
Anyone have the same problem and find a resolve?
Thanks
BobK
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi I have 2 Solaris boxes A and B, A running solaris 9, and B running solaris 6.
when i try to use rcp on A like this:-
A> rcp file.txt B:/path/file.txt
I get into standard input and nothing happens!!
Then On the target machine B, if i try,
B> rcp otherfile.txt B:/path/otherfile.txt... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. UNIX for Dummies Questions & Answers
Hi again everyone.
I have recently installed Solaris 10 on a server. Everything seems to work fine (users can be added and can log in, internet connectivity works, etc). However I'm struggling to get mail or mailx to work.
Say there are two users on my server, Bob and Mary. Server hostname... (3 Replies)
Discussion started by: EugeneG
3 Replies
4. Solaris
Hi to all!
I want to learn step by step easily how to configure my Solaris for network. I know alot about Solaris Network configuration. But I have some problems.
When I install Solaris, and I plug-in my network cable to Solaris. Then I run:
ifconfig -a plumb
then I do
ifconfig bge0 dhcp... (7 Replies)
Discussion started by: SecureXCode
7 Replies
5. Solaris
grep -e doesn't work in Soalris.
Same script with grep -e worked on AIX/HP/LINUX..
I would like to search a list of patterns on "log.txt" like ...
grep -e FATAL -e ERROR log.txt
I get the error message as
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . . (3 Replies)
Discussion started by: jmkraja
3 Replies
6. Solaris
Hi Forum,
I updated my Solaris 10 (10/09) with the current Oracle patch file and moved the smb.conf to /etc/samba/smb.conf.
Anyway, since patching, no Windows client is able to connect the share. It says password is wrong, but its the right pw.
My smb.conf:
bash-3.00# cat... (4 Replies)
Discussion started by: borsti007
4 Replies
7. Solaris
Hi All,
I am using a solaris Sun-Fire-V440 server.
The OS is solaris.
My problem is whenever I run the command
mount | grep "^/ " | sed -e 's,^.*dsk/\(*\).*$,\1,'
it should return a disk value as "d30" as it does on each of my other servers.But on this server I am not getting any o/p from... (3 Replies)
Discussion started by: vivek.goel.piet
3 Replies
8. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
9. Solaris
Hello Experts,
I am performing performance tests on a few mysql select queries.
I use the following command to clear the memory disk caches.
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
I however see that the above command works on RHEL6 but doesn't work on Solaris 10.
I asked... (4 Replies)
Discussion started by: Anirudh Kumar
4 Replies
10. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT OPENSOLARIS
scgdevs
scgdevs(1M) System Administration Commands scgdevs(1M)
NAME
scgdevs - global devices namespace administration script
SYNOPSIS
/usr/cluster/bin/scgdevs
DESCRIPTION
Note -
Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software
still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor-
mation about the object-oriented command set, see the Intro(1CL) man page.
The scgdevs command manages the global devices namespace. The global devices namespace is mounted under the /global directory and consists
of a set of logical links to physical devices. As the /dev/global directory is visible to each node of the cluster, each physical device is
visible across the cluster. This fact means that any disk, tape, or CD-ROM that is added to the global-devices namespace can be accessed
from any node in the cluster.
The scgdevs command enables you to attach new global devices (for example, tape drives, CD-ROM drives, and disk drives) to the global-
devices namespace without requiring a system reboot. You must run the devfsadm command before you run the scgdevs command.
Alternatively, you can perform a reconfiguration reboot to rebuild the global namespace and attach new global devices. See the boot(1M) man
page for more information about reconfiguration reboots.
You must run this command from a node that is a current cluster member. If you run this command from a node that is not a cluster member,
the command exits with an error code and leaves the system state unchanged.
You can use this command only in the global zone.
You need solaris.cluster.system.modify RBAC authorization to use this command. See the rbac(5) man page.
You must also be able to assume a role to which the Sun Cluster Commands rights profile has been assigned to use this command. Authorized
users can issue privileged Sun Cluster commands on the command line from the pfsh, pfcsh, or pfksh profile shell. A profile shell is a spe-
cial kind of shell that enables you to access privileged Sun Cluster commands that are assigned to the Sun Cluster Commands rights profile.
A profile shell is launched when you run the su command to assume a role. You can also use the pfexec command to issue privileged Sun Clus-
ter commands.
EXIT STATUS
The following exit values are returned:
0 The command completed successfully.
nonzero An error occurred. Error messages are displayed on the standard output.
FILES
/devices Device nodes directory
/global/.devices Global devices nodes directory
/dev/md/shared Solaris Volume Manager metaset directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsczu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
pfcsh(1), pfexec(1), pfksh(1), pfsh(1), Intro(1CL), cldevice(1CL), boot(1M), devfsadm(1M), su(1M), did(7)
Sun Cluster System Administration Guide for Solaris OS
NOTES
The scgdevs command, called from the local node, will perform its work on remote nodes asynchronously. Therefore, command completion on the
local node does not necessarily mean that the command has completed its work clusterwide.
This document does not constitute an API. The /global/.devices directory and the /devices directory might not exist or might have different
contents or interpretations in a future release. The existence of this notice does not imply that any other documentation that lacks this
notice constitutes an API. This interface should be considered an unstable interface.
Sun Cluster 3.2 10 Apr 2006 scgdevs(1M)