ping adresses from file, send sms report to adresses by list
Posted: 20 Feb 2015 12:42
Google translator:
Guys, prompt, really I create a variable named stream?
I want the next copy flow and rename it to a variable was created and written with the new name of the stream. {Flow_name} understandable. But how to create a recess with the same name?
For example. I want to ping the IP pieces 20. Every minute to write the log of the results. Then, when the state variable and the status of the ping, disappeared so to speak, I will send a sms with the text of the ping and the IP address.
Can anyone implemented such a thing?
Or please tell me how to file a list of IP by turns to take each line and ping this address.
Write to a file ravine easy. Understood.
By ftp or something else is taken from time to time files:
1. hosts
2. phonenumbers
3. log
Taken one by one the IP address of the hosts file and ping.
(Host reacheble ping)
Is compared with the current state of the Previous and the difference is sent SMS.
SMS is formed on the result of the passage of all addresses. Infa accumulates and then sent.
"/ N" works as a new line? printed only as text and everything. Maybe the code should be some kind?
Just please tell me the procedure (code) to read a line from a file and writes to the array a. On the arduino can do, and then what?
There is a file: hosts. it placed the IP address line (20 pieces, strings).
Pinging each address one time per minute.
Compare the current state of the IP address (192.168.0.1) to the last variable ("192.168.0.1").
If different, write to another variable "TEXTtoSMS": IP address, date, time, current status.
Write to the variable ("192.168.0.1") the current status of the address.
And so for each IP address of the file.
When all the rows have been (address) check for the presence of text in the variable "TEXTtoSMS" and send SMS to the addresses that I take from another file.
Do I need to somehow individually declare a variable? Or enough (stat_19216801 = "on")? I want to create a variable named stream. {Flow_name}. Really it?
Or it is necessary to enclose an array of two columns? The first IP address, the second status. After checking the status of an IP address, run the array. Looking in the first column of our address and check the option recorded in the second column. How do I proceed with the formation of protsedurka "TEXTtoSMS" ..
How to add a translation to a new line when writing text into a variable "TEXTtoSMS"?
Guys, prompt, really I create a variable named stream?
I want the next copy flow and rename it to a variable was created and written with the new name of the stream. {Flow_name} understandable. But how to create a recess with the same name?
For example. I want to ping the IP pieces 20. Every minute to write the log of the results. Then, when the state variable and the status of the ping, disappeared so to speak, I will send a sms with the text of the ping and the IP address.
Can anyone implemented such a thing?
Or please tell me how to file a list of IP by turns to take each line and ping this address.
Write to a file ravine easy. Understood.
By ftp or something else is taken from time to time files:
1. hosts
2. phonenumbers
3. log
Taken one by one the IP address of the hosts file and ping.
(Host reacheble ping)
Is compared with the current state of the Previous and the difference is sent SMS.
SMS is formed on the result of the passage of all addresses. Infa accumulates and then sent.
"/ N" works as a new line? printed only as text and everything. Maybe the code should be some kind?
Just please tell me the procedure (code) to read a line from a file and writes to the array a. On the arduino can do, and then what?
There is a file: hosts. it placed the IP address line (20 pieces, strings).
Pinging each address one time per minute.
Compare the current state of the IP address (192.168.0.1) to the last variable ("192.168.0.1").
If different, write to another variable "TEXTtoSMS": IP address, date, time, current status.
Write to the variable ("192.168.0.1") the current status of the address.
And so for each IP address of the file.
When all the rows have been (address) check for the presence of text in the variable "TEXTtoSMS" and send SMS to the addresses that I take from another file.
Do I need to somehow individually declare a variable? Or enough (stat_19216801 = "on")? I want to create a variable named stream. {Flow_name}. Really it?
Or it is necessary to enclose an array of two columns? The first IP address, the second status. After checking the status of an IP address, run the array. Looking in the first column of our address and check the option recorded in the second column. How do I proceed with the formation of protsedurka "TEXTtoSMS" ..
How to add a translation to a new line when writing text into a variable "TEXTtoSMS"?