02-25-2011
Quote:
Originally Posted by
callmebob
Added those duke and still get insufficient privileges or mode when I try to run fmadm.
I think even god himself with have trouble with this one. lol
I hope I'm not asking a really dumb question
but after you added the privileges did you log out and log in again?
10 More Discussions You Might Find Interesting
1. Solaris
Hi Guys,
Anyone know any commands to verify the graphics card is installed correctly on an M4000?
show-displays just comes back and echoes nothing.
Also there is on input-device or output-device variable when you run printenv.
This in itself is worrying.
Any advice would be... (4 Replies)
Discussion started by: callmebob
4 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to power on our SUN m4000 server after a recent shutdown. When I try to connect to the xscf console I'm getting prompted for a password. The system is not asking for a login just a password. Below is the output from the xscf console.
Anyone know how I can safely get back to the... (0 Replies)
Discussion started by: orahi001
0 Replies
3. Solaris
Hi everyone,
I wanted to ask a question about fmadm and explorer outputs.
Recently found out that an error shows up in fmadm saying "mb is faulty but still in service" so we took an explorer send to Oracle Support. Error led wasn't on but we didn't want to risk the probability.
They came up... (1 Reply)
Discussion started by: royalliege
1 Replies
4. Solaris
Hi Guys and Gals,
Can someone help me possible?
Trying to power up an M4000 and it comes up with xscf fault (reason=0) it then just hangs there.
Any help would be gratefully appreciated.
Thanks
Martin (4 Replies)
Discussion started by: callmebob
4 Replies
5. Solaris
Hii All
I was building two M4000 servers and one was successfully installed.
Other one /usr has been unmounted. my putty session got disconnected and i connected to console where it asked for root single maintence
#
# init 0
not foung
# df -h
not found
#
xscf>poweroff -a
xscf>... (8 Replies)
Discussion started by: seems
8 Replies
6. Solaris
Dear Team,
This time i am facing some problems in Sun SPARC M4000 server. I have a doubt, when we are upgrading the firmware if XSCF , the OBP is also upgraded.
What about server OBP, Is that upgardation need to be done separately ?
what about DVD-ROM, HARD DISK firmware.... (3 Replies)
Discussion started by: sudhansu
3 Replies
7. Solaris
Hi Guys and Gals,
Does anyone know how to track down a faulty DIMM on the memory board of an M4000?
showhardconf tells me which board it is, but was wondering if there was a way to track it down to a DIMM?
Thanks in advance
Martin (5 Replies)
Discussion started by: callmebob
5 Replies
8. Solaris
Hello,
I'm set to go out to our M4000 to reset the XSCF password, since the person who set it up doesn't remember what password they setup.
I have all the steps, but the only question I can't find an answer to is around the mode switch. Right now, based on prtdiag, the mode switch is in... (2 Replies)
Discussion started by: QuickNull
2 Replies
9. Solaris
Hi Gurus
Can someone help me in explaining the below outputs .
psrinfo -p
4
/usr/sbin/psrinfo -pv
The physical processor has 4 virtual processors (0-3)
SPARC64-VI (portid 1024 impl 0x6 ver 0x93 clock 2150 MHz)
The physical processor has 4 virtual processors (8-11)
SPARC64-VI... (3 Replies)
Discussion started by: ningy
3 Replies
10. Solaris
Hi All,
I have an Oracle M4000 server with Solaris 10 OS. I have access to Solaris root prompt.
But I don't know the XSCF IP of this server.
Is there any way to display XSCF IP from Solaris OS? (2 Replies)
Discussion started by: byrusber
2 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)