10-31-2011
Quote:
Originally Posted by
rcmjivaro
On the host o/s, type:
ip addr
to get your device name.
and this works on which host os? and in what way does it help with the problem?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a short script that takes a filename and secure copies the file to a remote machine. i'd like to be able to take a * character and secure copy all the files in the directory.
first of all, how would i compare $1 to see if it's a * character?
if or didn't do it.
second question is... (3 Replies)
Discussion started by: csejl
3 Replies
2. Shell Programming and Scripting
hi folks,
I am trying to write a script for deleting all the files which are older than "N" days from current directory.
CODE:
FileName="*.*"
NumDays=-1
echo $FileName
echo $NumDays
find * -prune -name $FileName -mtime $NumDays -exec rm {} \;
Now the problem here is when i... (3 Replies)
Discussion started by: amarnath
3 Replies
3. Solaris
Hello all.
I am trying to compile Apache 2 (again!) and the configure script keeps telling me it does not recognize the options. Everything I am including is in the --help list.
For example: --enable-so. First I will put in the LD flags, then configure with the --enable-so option.
... (2 Replies)
Discussion started by: RobertSubnet
2 Replies
4. Red Hat
I am currently working with 2 virtual machines (VirtualBox), my plan is to configure a kickstart for rhel 5.5 on one and using the other to install it too.
The problem I have having is the machines do not talk to one another ?!
I am running ubuntu 10.04 with (2 VMboxes) that do not talk to... (8 Replies)
Discussion started by: NelsonC
8 Replies
5. Shell Programming and Scripting
I will be passing an argument to a csh script
The script can be either of two forms
For example, either
script.csh zloc=5/10
or
script.csh zloc=5/10/20
So there can be either two values or three values. How can I distinguish which one the user has inputted?
I have made... (1 Reply)
Discussion started by: kristinu
1 Replies
6. Solaris
I've just installed Sol 10 Update 9 on a Sun 4140 server and have a RAID 1 configuration (2 136 Gb drives) for the OS and have created a RAID 5 array (6 136 GB) drives. When i log into the system I am unable to see the RAID 5 disks at all. I've tried using the devfsadm command but no luck and... (9 Replies)
Discussion started by: goose25
9 Replies
7. Shell Programming and Scripting
I thought I posted this before, but cannot see the post, so will re-post.
Apologies if it now appears twice !
My script prompts for a 7 digit parameter : read f1
I then run a find command to search for files with $f1 in its contents :
find . -print | grep $f1 {file} > temp1
I then run a cut... (1 Reply)
Discussion started by: malts18
1 Replies
8. Solaris
Hello,
I've read many posts that offer tips on how to mount a CDROM but I haven't seen any on how to get the system to recognize the CDROM drive.
I was transferring files from CDROM to the hard drive successfully. I entered the third CDROM and the system refused to automount it. I tried... (2 Replies)
Discussion started by: TrueSon
2 Replies
9. Filesystems, Disks and Memory
Hi,
I need to know what are the storages attached to some of our corporate servers. I run this command from the server only to get a list of WWNs :
# /usr/local/bin/evainfo -a
Devicefile Array WWNN Capacity ... (1 Reply)
Discussion started by: anaigini45
1 Replies
10. Shell Programming and Scripting
Sorry I put -r I ment to out -w but its not perform none of -w, -r, -x flags
Using centos 6.4
#!/bin/bash
echo -e "enter the name of file :\c"
read file_name
if
then
if
then
echo "Type some text date. Tp quit press crtl-"
cat >> $file_name
... (2 Replies)
Discussion started by: zbest1966
2 Replies
LEARN ABOUT SUSE
lm-profiler
LM-PROFILER(8) System Manager's Manual LM-PROFILER(8)
NAME
/usr/sbin/lm-profiler - laptop mode profiler
SYNOPSIS
/usr/sbin/lm-profiler
DESCRIPTION
This manual page documents briefly the /usr/sbin/lm-profiler command. lm-profiler is a tool for profiling disk operations. It is a part of
laptop mode tools and is useful only in relation to rest of laptop mode tools. It helps you to detect programs and services that use up
system resources and that cause disk activity, and it allows you to disable them when laptop mode is active.
When you start lm-profiler, it will execute a "profiling run", which can take some time. Start lm-profiler when you are working on batter-
ies, preferably, because that will allow it to analyze the actual situation that it is supposed to optimize. During the profiling run, you
can use your system normally; however, any disk activity caused by your actions will end up in the profiler's results. When the profiling
run is finished, you will be presented with a list of programs that deserve your attention, either because they listen on a network (which
is not usually useful when you are working offline) or because they caused disk activity in a disk-spindown-unfriendly pattern. When lm-
profiler can guess an init script that belongs to a program, it presents you with the opportunity to disable the program when you are work-
ing on battery. It does this by placing a link to the init script in /etc/laptop-mode/batt-stop. Any programs that lm-profiler cannot find
an init script for is simply reported, so that you can stop the program manually if you want to.
WARNING ABOUT DISABLING PROGRAMS: It may not be safe to disable some programs. They may be needed for proper operation of your system. Dis-
able services only if you know what they do and why you don't need them.
FILES
/etc/lm-profiler.conf
lm-profiler retrieves its profiling rules from this file.
SEE ALSO
lm-profiler.conf(8).
laptop-mode.conf(8).
daemons.conf(8).
AUTHOR
This manual page was written by Bart Samwel (bart@samwel.tk) and Jan Polacek (jerome@ucw.cz) for the Debian system (but may be used by oth-
ers). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2
any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
LM-PROFILER(8)