Programming :: Ping Hosts From Database?

Apr 26, 2011

I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:

<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");

[code]....

View 1 Replies


ADVERTISEMENT

Fedora Networking :: Can't Ping Some Hosts?

Jun 25, 2011

Not sure what iis going on, I can ping some hosts on the internet but not others see below (adobe is not the only example) Works OK from another host on the same network with same GW and DNS iptables is turned off

[root@havoc init.d]# ping www.arrl.org
PING www.arrl.org (184.106.62.248) 56(84) bytes of data.
64 bytes from www.arrl.org (184.106.62.248): icmp_req=1 ttl=55 time=94.1 ms
64 bytes from www.arrl.org (184.106.62.248): icmp_req=2 ttl=55 time=93.0 ms
64 bytes from www.arrl.org (184.106.62.248): icmp_req=3 ttl=55 time=99.4 ms
64 bytes from www.arrl.org (184.106.62.248): icmp_req=4 ttl=55 time=96.8 ms

[Code]...

View 2 Replies View Related

Networking :: Wireless Hosts Do Not Return Ping

Jul 21, 2010

The wireless connected hosts do not respond to pings from wired ones or other wireless ones. And all the wired connected hosts respond to pings from any wireless one. The same problem applies also to ssh connections exactly as in the ping issue.

The switch the ADSL modem/router and the Access point are all 3 different machines correctly connected to each other. I do not have a firewall in any of my hosts, all run Slackware 13.1, the wireless ones use "wext" driver and not "ndiswrapper". All wireless hosts login successfully, WPA & DHCP works fine and internet connection goes without a problem. But the fact I can only connect from a wireless host to a wired one is puzzling.

View 7 Replies View Related

Fedora Networking :: 14 And Hyper-V - Can't Ping Or Connect To Other Hosts

Nov 11, 2010

i'm running some virtual Fedora installations on a windows server 2008 with hyper-v. Most of them are Fedora 12 and 13. Everything works fine for some years. Yesterday i want to upgrade a F13 machine to F14 by netistall. The upgrade ran without any problems. After the reebot the machine was off the network. All the networkconfigs by DHCP are OK, IP address, gateways, DNS settings and so on. But the machine can't ping or connect to other hosts. I tried an VM from scratch with both F14 i386 and x86_64 - same ****. This is the first time i had such a problem by upgrading Fedora machines.

View 3 Replies View Related

Networking :: VMware Duplicated Ping Responses From Hosts In Same LAN

Nov 20, 2010

Host machine is a "2.6.32-24-generic-pae #38-Ubuntu" and VMware Workstation version is 7.1.2 build-301548.In addition to those three IP addresses(192.168.1.254/24, 192.168.1.68/24 and 192.168.1.221/24) seen on a drawing, there are four identical virtual machines inside the 192.168.1.68/24 machine. Virtual machines are named Olive0-3. Olive0 has IP address 192.168.1.100, Olive1 has 192.168.1.101, Olive2 has 192.168.1.102 and Olive3 has 192.168.1.103.

View 1 Replies View Related

Networking :: Centos Cannot Ping Hosts On The Same Subnet After Change To Static Ip

Jul 26, 2011

I am using centOS 5.0. After I change from DHCP to static IP address, I cannot ping hosts on the same subnet. The error message says destination host unreachable. Before I made the changes I was able to ping and now even I change it back to DHCP I still cannot ping with the same destination host unreachable message. The centOS is running on VMware on a Windows host.

ifconfig shows

eth0 Link encap:Ethernet HWaddr 00:0C29:A1:9A:10
inet addr: 192.168.0.202 Bcast:192.168.0.255 Mask: 255.255.255.0
inet6 addr ......

After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows ? (192.168.0.106) at <incomplete> on eth0 I tried different ways by disabling the firewall and and disabling SE protection. No Luck.

View 13 Replies View Related

Networking :: OpenVPN - Can't Ping From Server To Client Side Hosts / Make It Possible?

Mar 20, 2009

Code...

What I can ping
Host A -> Host B
Host B -> Host A

Host A -> Router B
Host B -> Router A

Host A -> OpenVPN B
Host B -> OpenVPN A

VPN Server -> VPN Client
VPN Client -> VPN Server

What I can't ping
VPN Server to any client side host local address
VPN Client to any server side host local address

I have searched and searched for this but can not find any answers. Why can I not ping Host B from my OpenVPN server?

View 1 Replies View Related

OpenSUSE Network :: Can't Ssh Remote Hosts / Can't Ping Any Machines Outside Local Area Network?

Aug 29, 2010

I just installed open Suse 11.3, and I cannot SSH my school. Upon further investigation I could not even ping any machines outside my local area network. Ironically I could nmap machines outside my local area network.

View 4 Replies View Related

Networking :: Cannot Ping With Command - Ping IP - Address But Can Ping With - Ping IP -I Eth0

Jul 15, 2011

I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.

But if I gave ping -I eth1 <IP> then I can ping.

I cannot install any package, so tell me solution which includes not installing any package.

View 2 Replies View Related

Programming :: Ssh Command On Multiple Hosts?

Apr 13, 2010

I want to create a script to insert the fstab and hostname in a textfile of multiple servers on the network without a password. The servers are situated in a text file. So i want to read the text file line by line and write the output into another textfile.

View 10 Replies View Related

Security :: Use Current /etc/hosts File To Do An Ssh-keyscan Instead Of Making A Special List Of Hosts?

May 2, 2011

I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?

View 2 Replies View Related

Ubuntu Networking :: Proxy Settings: Allowed Hosts Instead Of Ignored Hosts

Aug 17, 2011

Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?

PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.

View 9 Replies View Related

Programming :: Get Files With Word 'hosts' In Middle?

Nov 18, 2010

I have this statement which greps .csv files. Code:my @files=grep {$_ =~ /.csv/}What about if I needed to get files with the word 'hosts' in the middle?

View 2 Replies View Related

Ubuntu :: No Hosts File - Just Hosts.allow And .deny?

Jan 26, 2011

Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?

View 1 Replies View Related

Programming :: What Database To Use For C++

Jan 27, 2010

What database can I use for c++?,this is my first week programming in c++.

View 14 Replies View Related

Programming :: Check If There Is Such A Value In The Database

Feb 10, 2010

sql statement. I am trying to check if there is such a value in the database.

Code:
string NewMovie = "ww";
string queryText ;
queryText = "Select * from movie_info WHERE movie_title = '"+ NewTitle +"'";
MYSQL *conn;
conn=mysql_init(NULL);
mysql_real_connect(conn,host,username,password,database,0,NULL,0);
[Code]......

return 0; The problem i am facing is how do i check if the value is found. I read up and found that a query will return a value of TRUE if the query is a success and a FAIL if there is an error. How do i call these values and then based the check on it?

View 1 Replies View Related

Programming :: Bash/Perl Script - Provide List Of Hosts To Choose From And Ssh To Chosen Host?

Apr 6, 2010

I'm not sure if this is best done in Perl or Bash. I'm thinking surely someone else has created something close to what I'm looking for. The results of the script would be that someone would kick off "linux_hosts.sh" r whatever you want to call it, then a top "folder" of options (with hosts contained within each of these top menu choices), then, based on which number corresponds to that top level, they're presented with a set of linux hosts that are relevant to that top level name. Example:

$ linux_hosts.sh
1. VMware hosts 4. Private Domain
2. ESX servers 5. Red Hat boxes

[code]...

View 4 Replies View Related

Programming :: Creating Database Using C Language

Apr 7, 2011

How to create a database using c language it includes structures, pointers, arrays and switch..

View 4 Replies View Related

Programming :: PHP & MySQL - Query A Database From The Web?

Apr 26, 2010

I have created a database which stores students grades for different stages of a project. One of the stages of the project is the specification part. I have a simple bit of html code which is going to be used as the searching facility. I want the user to be able to enter their ID and then it will display only their results. At the moment, it is displaying the results for EVERY student because I cant seem to find the correct syntax for my statement.

Heres the HTML code

<html>
<head>
</head>
<body>
<body bgcolor="#6881bb">
<center>

[Code]....

At the moment when i click the button, no matter what I enter every students marks appear on the screen.

I think, but obviously dont know for sure because if i did i would know how to solve the problem, the code that i need to change is in green.

View 3 Replies View Related

Programming :: Shorten The Long URL Without Using Database?

Aug 9, 2010

How to shorten the long URL without using database(i.e. without storing url entries in DB)?

View 2 Replies View Related

Programming :: Unload File From A Database?

Jan 5, 2009

I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately.

Code:

a) What does this below character means?

b) How can i remove it,

I already have

Code:
sed '/^$/d'
c) Will this effect the file by any means (If I am guessing properly, this is the eof notation)

View 5 Replies View Related

Programming :: PING Using Raw Sockets In C?

Nov 18, 2010

Is there any way to implement a simple ping script in C (unix)? I'm programming simple OpenWRT scripts.

I have found some examples of ping in C:

[URL]

However, nothing happens, nothing is sent.

When I look at the code, in the portion where the socket is created, I can see that the socket is not binding to any interface:

Code:
if ((sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) == -1)
{
perror("socket");
exit(EXIT_FAILURE);
}
setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &optval, sizeof(int));

Instead, it uses "setsockopt" to set some options.

My guess is that it is trying to send packets over the eth0 interface instead over the wl0 (wireless) interface (which is the one I want to use to send pings).

Now, my question is: Is there any other way to send pings in C by binding to an interface?

View 1 Replies View Related

Programming :: Accessing A Sybase Database From PHP Running?

May 12, 2011

i get some trouble setting up good environment in linux.i have problem regarding connecting php(under linux) to a sybase server(under windows)is there anyway connecting this two technologies?.

View 1 Replies View Related

Programming :: Bash - Compare Directory To Database?

May 23, 2011

I have a (rather large) database of mp3 track information. I also have several directories of the actual mp3s. I'm trying to write a simple bash script that will check the contents of the directories against what's in the database, and upon finding a file that isn't in the database, do something.

Here's what I have so far:

Code:

The trouble I'm having (in the sample directory of "/mnt/music/B/Beatles, The/" the file "Beatles, The - Taxman.mp3" isn't in the database.) is getting it to actually trigger an error when an entry isn't in the database.

Once triggering on a non-entered file is working, any way to get it to traverse the entire /mnt/music hierarchy?

View 13 Replies View Related

Programming :: Convert Access Database To Mysql?

May 3, 2010

I'm trying to migrate my company server to linux, but i have a program that is designed in access what is the best way to move access tables to a mysql database so that i can program it in PHP?

View 3 Replies View Related

Programming :: Error Connecting To Oracle Database From PHP

Oct 12, 2010

I've just installed the Oracle Instant client using this: https://help.ubuntu.com/community/PHPOracle

The phpinfo() show me that oci8 is enable, but when I try to query that database I've got the following message:

PHP Code:

Code:

How to troubleshoot.

View 2 Replies View Related

Programming :: Store Pictures In A MySQL Database In PHP

Apr 29, 2010

How do I do this? I wish to store the pictures via a "Browse" button on the webpage, and later display them on a particular page on the site.

View 2 Replies View Related

Programming :: Getting Duplicate Entries In Mysql Database?

Apr 13, 2011

I'm getting duplicate entries in mysql database when submitting a new item from a form. I initially loaded the database via IMPORT function in phpMyAdmin. This is my input form:

<center>
<br />
<FONT SIZE="5" ><b>Add Item Template</b></FONT>
<br />

[code].....

However, I do need to return the input form in order to keep entering new items into the database.

View 8 Replies View Related

Programming :: Is PHP Suitable For File And Database Tasks?

Feb 20, 2011

According to Wikipedia's PHP page, PHP "is a general-purpose scripting language". Does that include being suitable for duplicate files detection? More specifically, the task is collating files from workstation backups into a single place, preserving directory paths and replacing duplicates with hard links. This will be a regular task on a lot of files so performance is important; our current proof-of-concept solution uses a PostgreSQL database of file "fingerprints" to speed duplicate detection. Does PHP have PostgreSQL integration?

I am asking these questions as a follow-up on an earlier thread asking for programming language recommendations for this task. Since then I have learned that PHP skills are available locally.

View 8 Replies View Related

Programming :: Perl: How To Do A Foreach For Elements In A Database

Jul 15, 2009

For Perl I need to understand a few things. It's unlikely that anyone will be able to give me direct answers but if they could point outI'm trying to hack down an existing script http://eoylpac.org/source/eoy.pl. What I need to be able to do (in a nut shell):1. Open a database2. Read the values for each uniq id and execute a subroutine for each of those values. (The subroutine already exists in the above file 'do_pdf').

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved