08-24-2013
Recording stats for Comcast
The last few weeks I've had a problem with Comcast in San Francisco (anyone else sharing the same issue ? Please share !)
During the late afternoon throughout early morning hours I see a high amount of dropped packets and increased latency when pinging my favorite destinations, like 8.8.8.8.
Before contacting Comcast customer support level 1000 I'd like to come prepared. What would be some quick & dirty scripts I could run to collect network stats to graph in a way that makes it easy to see what I'm experiencing ? I'm thinking a combination of ping & netstat output to generate some data files to feed into gnuplot.
Suggestions greatly appreciated
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What is the syntax for recording command in vi. If I want to repeat a command over and over.
My file is
12/01/05,,adsmte,9,0,0
12/02/05,,adsmte,12,0,0
12/03/05,,adsmte,10,0,0
12/04/05,,adsmte,11,0,0
12/05/05,,adsmte,10,0,0
12/06/05,,adsmte,10,0,0
12/01/05,,tsmpc1,57,1,2... (5 Replies)
Discussion started by: reggiej
5 Replies
2. IP Networking
Hello, I have been task to record data on the network between two computers. On one side I have a Solaris 8 computer and on the other side there is a VX/Works machine. The messages that come across are data messages using a UDP protocol on a dedicated IP address. Does Solaris have anything I can... (4 Replies)
Discussion started by: rtoba
4 Replies
3. UNIX for Dummies Questions & Answers
Is there a way for me to record cpu and memory usage over time without buying and installing new software? I know I can use top to see the current state, but can I record that data somehow? (2 Replies)
Discussion started by: cshih31
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a question regarding recording the unix sessions.
I know the recording can be done using script comman, however i want to create a daily file of unix session. Also when i open multiple sessions how will the script multiple session. Please suggest some solutions also which file... (0 Replies)
Discussion started by: amitkhiare
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I just setup a server running centos 4 that I am going to use for a mail server. I setup NAT in my router to open up the smtp port and i assigned the server a static ip address using ifconfig. Now is there a step im missing because now i cant route out of the server or ping anything? Oh btw... (0 Replies)
Discussion started by: mcraul
0 Replies
6. Post Here to Contact Site Administrators and Moderators
Hi.
I scored 38 on the hex game and it would not record my score.
Strange. (2 Replies)
Discussion started by: MokoMoko
2 Replies
7. OS X (Apple)
I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies
8. Shell Programming and Scripting
Hello,
Need help using egrep
file format:
test.gz
Date, time, , number 1, number 2, counter...
20130618,912154, ,009912345678,911111111111,10000, , ,abc
20130618,982148, ,009101373810,034028791952294,8999, , ,gh
Want to extract number1 OR number2 records in files based on a two or... (8 Replies)
Discussion started by: vegasluxor
8 Replies
COMPACT(3) 1 COMPACT(3)
compact - Create array containing variables and their values
SYNOPSIS
array compact (mixed $varname1, [mixed $...])
DESCRIPTION
Creates an array containing variables and their values.
For each of these, compact(3) looks for a variable with that name in the current symbol table and adds it to the output array such that
the variable name becomes the key and the contents of the variable become the value for that key. In short, it does the opposite of
extract(3).
Any strings that are not set will simply be skipped.
PARAMETERS
o $varname1
-compact(3) takes a variable number of parameters. Each parameter can be either a string containing the name of the variable, or
an array of variable names. The array can contain other arrays of variable names inside it; compact(3) handles it recursively.
RETURN VALUES
Returns the output array with all the variables added to it.
EXAMPLES
Example #1
compact(3) example
<?php
$city = "San Francisco";
$state = "CA";
$event = "SIGGRAPH";
$location_vars = array("city", "state");
$result = compact("event", "nothing_here", $location_vars);
print_r($result);
?>
The above example will output:
Array
(
[event] => SIGGRAPH
[city] => San Francisco
[state] => CA
)
NOTES
Note
Gotcha
Because variable variables may not be used with PHP's Superglobal arrays within functions, the Superglobal arrays may not be passed
into compact(3).
SEE ALSO
extract(3).
PHP Documentation Group COMPACT(3)