08-02-2013
I didn't think there would be a solid answer on this since I could not find any information online about this issue.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file containing a list of references and I want to run a script that will make the same action for each reference.
The input file changes every hour, it's why I want to use a script that can read in a file, record by record, and run a specific action for the reference readed.
Thanks... (1 Reply)
Discussion started by: dde
1 Replies
2. Shell Programming and Scripting
Hello everyone,
I have a quick question about the select command in ksh. I am using it to define a menu for user selection, I have found that the REPLY var contains the input from the user, I was interested to find out if there is a system variable that contains the whole menu as an array, the... (2 Replies)
Discussion started by: gio001
2 Replies
3. Shell Programming and Scripting
Trying to create a script in BASH that would ask the user to enter another user name making sure the input is not blank before they hit enter then to check the home directory of that user does exist, I have the check folder sorted it's just the loop to make sure the user has entered chars (5 Replies)
Discussion started by: MBN
5 Replies
4. Shell Programming and Scripting
Hey,
examples of the input (text line):
/bla/blMOasdn234.adanif24/blabla.rar
/bla/blMOasdn234.adanif24/blabla23124.bin
/bla/bla/bla/bla/bla/bla.bin
and what I need to do is extract/select only the dir path so the output would be:
/bla/blMOasdn234.adanif24/
/bla/blMOasdn234.adanif24/... (4 Replies)
Discussion started by: TehOne
4 Replies
5. Shell Programming and Scripting
Okay -- I hope I ask this correctly.
I'm working on my little shell script to write vendor names and aliases to files from user input. If a user choose to add to a file, he can do that as well. I'm using a select loop for this function to list all the possible files the user can choose from.... (7 Replies)
Discussion started by: Straitsfan
7 Replies
6. Shell Programming and Scripting
Hi All
I am using the below code to chose a file to view :
PS3="Select file to view : "
select FILE in `ls` QUIT
do
if ; then
clear
cat $FILE
else
break
fi
REPLY=''
done
Everything works fine as long as I am giving the correct choice .
But when i give a... (4 Replies)
Discussion started by: ningy
4 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone,
A simple question which may have a suggested solution:
I am using, and loving, the select command in a ksh93 script on AIX 6.1 to present users with menus.
I have been successful in controlling all of key input by the users, I still have an issue with the RETURN key. When the... (4 Replies)
Discussion started by: gio001
4 Replies
8. Shell Programming and Scripting
Hi Folks,
I have the below feed file named abc1.txt in which you can see there is a title and below is the respective values in the rows and it is completely pipe delimited file ,.
... (3 Replies)
Discussion started by: punpun66
3 Replies
9. Shell Programming and Scripting
A lot of my scripting makes use of the 'select' command to create menu driven input. A typical example of how I use it is as:
somevar=''
PS3='Select one: '
while ]; do
select somevar in $(sqlplus -s $dbuser/$dbpw@mydb <<EOF
set echo off feedback off verify off... (7 Replies)
Discussion started by: edstevens
7 Replies
10. UNIX for Beginners Questions & Answers
Hi
I'm using the "select" command in the global_env.sh to log in to the application directory. This file is called in .bashrc profile.
Sample code:
Filename: global_env.sh
set -o vi
export severname=$(uname -n)
printf '%s\n%30s\n%s\n' "***********************" "Welcome to $severname"... (6 Replies)
Discussion started by: cheers799
6 Replies
LEARN ABOUT CENTOS
mrtg-faq
MRTG-FAQ(1) mrtg MRTG-FAQ(1)
NAME
mrtg-faq - How to get help if you have problems with MRTG
SYNOPSIS
MRTG seems to raise a lot of questions. There are a number of resources apart from the documentation where you can find help for mrtg.
FAQ
In the following sections you'll find some additonal Frequently Asked Questions, with Answers.
Why is there no "@#$%" (my native language) version of MRTG?
Nobody has contributed a @#$%.pmd file yet. Go into the mrtg-2.17.4/translate directory and create your own translation file. When you are
happy with it send it to me for inclusion with the next mrtg release.
I need a script to make mrtg work with my xyz device.
Probably this has already been done. Check the stuff in the mrtg-2.17.4/contrib directory. There is a file called 00INDEX in that directory
which tells what you can find in there.
How does this SNMP thing work
There are many resources on the net that explain SNMP. Take a look at this article from the Linux Journal by David Guerrero
http://www.david-guerrero.com/papers/snmp/
And at this rather long document from CISCO.
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
The images created by MRTG look very strange.
Remove the *-{week,day,month,year}.png files and start MRTG again. Using MRTG for the first time, you might have to do this twice. This
will also help when you introduce new routers into the cfg file.
What is my Community Name?
Ask the person in charge of your Router or try 'public', as this is the default Community Name.
My graphs show a flat line during an outage. Why ?
Well, the short answer is that when an SNMP query goes out and a response doesn't come back, MRTG has to assume something to put in the
graph, and by default it assumes that the last answer we got back is probably closer to the truth than zero. This assumption is not
perfect (as you have noticed). It's a trade-off that happens to fail during a total outage.
If this is an unacceptable trade-off, use the unknaszero option.
You may want to know what you're trading off, so in the spirit of trade-offs, here's the long answer:
The problem is that MRTG doesn't know *why* the data didn't come back, all it knows is that it didn't come back. It has to do something,
and it assumes it's a stray lost packet rather than an outage.
Why don't we always assume the circuit is down and use zero, which will (we think) be more nearly right? Well, it turns out that you may
be taking advantage of MRTG's "assume last" behaviour without being aware of it.
MRTG uses SNMP (Simple Network Management Protocol) to collect data, and SNMP uses UDP (User Datagram Protocol) to ship packets around.
UDP is connectionless (not guaranteed) unlike TCP where packets are tracked and acknowledged and, if needed, retransmitted. UDP just
throws packets at the network and hopes they arrive. Sometimes they don't.
One likely cause of lost SNMP data is congestion; another is busy routers. Other possibilities include transient telecommunications
problems, router buffer overflows (which may or may not be congestion-related), "dirty lines" (links with high error rates), and acts of
God. These things happen all the time; we just don't notice because many interactive services are TCP-based and the lost packets get
retransmitted automatically.
In the above cases where some SNMP packets are lost but traffic is flowing, assuming zero is the wrong thing to do - you end up with a
graph that looks like it's missing teeth whenever the link fills up. MRTG interpolates the lost data to produce a smoother graph which is
more accurate in cases of intermittent packet loss. But with V2.8.4 and above, you can use the "unknaszero" option to produce whichever
graph is best under the conditions typical for your network.
AUTHOR
Tobias Oetiker <tobi@oetiker.ch>
2.17.4 2012-01-12 MRTG-FAQ(1)