General :: Test Ftp Connection After Grepping Out Hostname
Jul 1, 2010
I am in the middle of trying to write my first script. I have created a command using sed and grep to grab a list of ftp hosts from a host file. Now I want to test the ftp connection of the hosts that have been returned after running the command.
grep host config.xml | sed 's/<//g;s/>//g;s/host//g;s/[/]//g' | sort | uniq -d | ftp ftp.hostname.com
I get the below error
Unknown AUTH type.
Unknown AUTH type.
KERBEROS_V4 rejected as an authentication type
Password:Name (ftp.hostname.com:username):
View 7 Replies
ADVERTISEMENT
Feb 5, 2010
I'm trying to grep the output of ngrep. Unfortunately when I add another grep to the pipeline, I get no output at all. It can be some other command too - cat / grep / tee - everything breaks the chain. Example:
[Code]....
If I use cat somefile instead of ngrep at the start, everything works as expected.
View 2 Replies
View Related
Jan 25, 2011
What If I wanted to scan a string like the following...
[Code]...
Anyhow just one giant string that's longer than my screen's width. If I simply copy and paste that string after a grep command, it seems that the terminal inserts newlines at the terminal's width and therefore not the whole string goes in. Even if I insert a quote before the beginning of the string and then paste it in, terminal still reads in a newlines somehow and obviously says command not found, etc.
View 2 Replies
View Related
Jan 3, 2010
I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.
View 7 Replies
View Related
Mar 26, 2010
I connect to my work with GRDC through a VPN. All worked fine until yesterday. IT is now very slow. Could this have anything to do with the fact that Update Manager was only able to do a partial upgrade?
I use Ubuntu 9.10 I tried the RDC on a Win XP machine and the speed is normal, so I don't think the Remote Desktop Server is the problem. Is there a way to test thespeed of the VPN connection or the RDC connection?
View 3 Replies
View Related
Jan 21, 2010
the difference between $HOSTNAME and $(hostname)?
View 5 Replies
View Related
Mar 26, 2011
I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the vbr.tr and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.
View 1 Replies
View Related
May 10, 2011
I'm considering installing Debian on my Toshiba A660 laptop but I want to be sure the wireless connection will work. I have Windows 7 on it already on it and it has a Broadcom 802.11n Network Adapter. Is there an easy way to set up a wireless connection and will it work on a live CD to test it?
View 3 Replies
View Related
Feb 27, 2010
Just want to know if my connection will be good for voip like skype...
View 1 Replies
View Related
Jul 29, 2010
I'm having an issue on two Fedora Core 13 machines where I can ping others by hostname, but the hostname resolution fails whenever I use ssh/scp/vnc/etc. I can still do these things by IP address, just not by hostname. RHEL5.3 machines on the same network with the same configuration do not seem to have this problem.
Here's the not-so-quick-and-dirty description of the situation:
I know that there is a virtual router at 192.168.31.1 and another at 192.168.30.1. I also know that there is another network (let's call it 90.90.90.0) and on that network lies a number of resources. By nature of this configuration, any machine on 90.90.90.0 can be accessed by any 192.168.x.x, but not the other way around. Beyond that is out of my hands and currently out of my scope of knowledge.
I have a dnsmasq server on 90.90.90.10 that operates as a secondary nameserver, another machine out of my sphere of influence is the primary nameserver (90.90.90.31).
The secondary nameserver on 90.90.90.10 holds the hostnames of our development machines. The problem is that in some cases, while I can ping by hostname all day long, services such as ssh, scp, vncviewer, etc all fail to resolve the hostname. In other cases I can do all of these things.
Every machine has an equivalent resolv.conf:
As an example, I will show the output of a handful of my development machines:
I also included columbia as a one-way test -- even though it cannot access 30.x or 31.x, they can access it:
columbia -- physical machine, Red Hat Enterprise 5.3, IP 192.168.100.200
Okay, so here are the various outputs. Remember, nibbler, discovery, and atlantis can ALL:
- Ping by IP address
- Ping by hostname
- ssh, scp, vnc, etc by IP addess
Additionally, the SERVFAIL reply from 90.90.90.31 is expected since my dnsmasq server is on the secondary server.
Note that the only machine that can both ping and ssh/scp/etc by hostname is nibbler, which also happens to be the only one of the three running RHEL5.3 instead of FC13. Other virtual and physical machines running on the 192.168.31.0 and 192.168.30.0 networks (all running RHEL5.3) work just like nibbler does. So the problem seems to only affect machines running FC13.
Final note: selinux is disabled, iptables is disabled, ip6tables is disabled.
Other than that, discovery is a brand-spanking-new install straight off of the FC13 DVD. atlantis has been around longer, but its just a file server so I haven't done anything too crazy to it.
View 3 Replies
View Related
Apr 6, 2010
How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 Replies
View Related
May 24, 2010
I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
View 2 Replies
View Related
May 22, 2011
I have an ubuntu 10.04 server with hostname "abc.domain.com". However, due to migration, we had to change to hostname to something else, "xyz".
I have done changing /etc/hosts and /etc/hostname and run /etc/init.d/hostname start.
Checking the hostname and all shows it is now using hostsname of xyz. However, email sending out is still using old hostname. We have some scripts that will send out alerts like failed rsync or hdd space full to my email account. But I see the sender is still "root@abc.domain.com".
How do change that to xyz? I am using postfix. I have edited main.cf and restarted postfix but no go.
View 1 Replies
View Related
Jul 1, 2010
I love my Ubuntu installation, I'm definitely a convert. This issue is Im sure my graphics arent working at full spec, seems very slow compared to my old windoze install. Is there a standard benchmark and test software to compare my system to to ascertain whether its graphics or net connection? (Im mostly streaming over the net.. I have removed ipv6 already, no better.)
View 1 Replies
View Related
May 11, 2010
I'm trying to make an SSH script for my place of employment. This script, I want to go out to the server hostnames we have specified (in another file) and change a users account password. We use Kerberized telnet, so if telnet root hostname fails, I want it to use ssh username hostname and use the old password (specified). If both fail, I want it to ask the user what the port should be and input the port in the ssh command.
But I'm having a issue having it try telnet root hostname and if it fails then, try to ssh in, I have no clue how to have it proceed. Is it an if statement? Here's the telnet failed message: telnet: Unable to connect to remote host: Connection refused
View 7 Replies
View Related
Apr 8, 2009
I have installed Postfix + Amavisd-new, then I am started all services (and configured main.cf and master.cf to use amavis).
The questions are:
1) I am trying to test antivirus scan using eicar test virus
Code:
And the message is successfully delivered to mailbox with mark "CLEAN" in maillog. But I cant see any attachment using
Code:
Where is my mistake?
2) Should I update clam and how I can do it?
3) Is spamassassin enabled by default in amavis (I have started daemon)?
4) Where configuration files of spamassassin is stored?
View 1 Replies
View Related
Mar 15, 2010
I am trying to install mysql 5.1.44..so i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command
Code:
scripts/mysql_install_db --basedir=/home/mosty/mysql
the error is
Code:
Installing MySQL system tables...
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
[code]....
You can try to start the mysqld daemon with:
shell> /home/mosty/mysql/bin/mysqld --skip-grant &
and use the command line tool /home/mosty/mysql/bin/mysql to connect to the mysql database and look at the grant tables:
shell> /home/mosty/mysql/bin/mysql -u root mysql
mysql> show tables
View 1 Replies
View Related
Jun 9, 2011
I want to write a script that keeps "grepping" strings from the Main page of the Linksys PAP2T every 30 seconds.It seems to be simple:1- lynx -auth=user:password URL2- grep the strings3- process themthe problem is that the page is writed in PHP and Lynx does not clear the authentication credentials with a 401 server response!w3m works.. but I don't know how to set the autologin and how to export the page to a text.With firefox.. I can set the home page as but it ask if it can continue before sending the data.. how can I force it and how can I obtain a text from it?I don't know.
View 1 Replies
View Related
Jun 17, 2011
I just installed 11.4 via the net install cd. In the configuration step, the internet connection test fails. Why would this happen if I just installed opensuse using the internet? It looks to me as if opensuse can already figure out how to use my network card. I went ahead and skipped the test, but it still doesn't make any sense to me. Let's see if internet works once I'm logged in...
View 2 Replies
View Related
Jul 7, 2010
I'm using Ubuntu 10.04 LTS
By typing the command:
hostname --fqdn
I get the following
hostname: Name or service not known
As requested by Raphaƫl Hertzog
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
[Code].....
View 3 Replies
View Related
Apr 12, 2010
I have some problem some one changed hostname on my system. If I do following I see
Code:
knoppix:~# cat /etc/hostname
debian
knoppix which is coming in left side in above output is not my hostname.
The hostname is debian.
How do I get that name back so that when I do cat /etc/hostname output is like following.
Code:
debian:~# cat /etc/hostname
debian
View 4 Replies
View Related
Apr 14, 2011
I've installed a new copy of Ubuntu 10.10.Now the big question for me is how do we assign hostname to a given ip? I've given the hostname during the server installation and "cat hosts" says "ebox" hostname I'm trying to put on.Also,I modified the network/interfaces to static and assigned proper values.
#hostname returns ipaddr not the hostname. Also nslookup hostname/ipaddr says server can't find ....
So,is installing dns through bind and setting-up the only way to do that?
View 9 Replies
View Related
May 21, 2010
I am having problem resolving hostname. i had 1 server and its hostname is resolving fine. i purchased 1 vps and its hostname isnt resolving. for server 1 say hostname is server1.domain.com. and for vps i add server2.domain.com. and when i ping my server2.domain.com i get Host Unknown error. do i add Hostname and make it resolve in VPS. i want to use hostname like server2.domain.com.
View 1 Replies
View Related
May 3, 2011
I just upgraded to Ubuntu 11.0.4 (from 10). In my /etc/hostname file, I defined my machine's name, "my-machine". From the server, I'm able to SSH to myself,
ssh dave@my-machine
However, from another machine in the same network, I'm not able to SSH
Code:
davea-mbp2:systems davea$ ssh dave@my-machine
ssh: Could not resolve hostname my-machine: nodename nor servname provided, or not known
However, I'm able to SSH in using the machine's IP address. how I get my machine name recognized on the network?
View 1 Replies
View Related
Apr 28, 2010
i have a variable called hostname which contains hostname of my machine. How would i add the hostname to output of other command . For eg. if a output of command is . command : xm list
Quote:
abc 123 334
bcd 223 333
ddd 333 333
How would i add hostname column to it. My output should look like
Quote:
abc 123 334 hostname
bcd 223 333 hostname
ddd 333 333 hostname
View 1 Replies
View Related
Mar 26, 2011
I admit I am a little green with the "Bourne Again Shell" (Bash), even though I was always not as proficient with the Bourne or Korn shell as with C Shell. From recent research the public sway is to Bash over tcsh. I can see I have been away from Linux/UNIX way to long. Running a network of workstations (upto 6) and servers (2) running RH Enterprise Linux 5.4 plus in the same network is an old DEC Alpha running Tru64 UNIX (don't know which version): I looking for a method to get the hostname I am logged in on to use in a Bash (or if necessary sh) script. This is to be added to an auto_start shell script start up our application on Linux workstation and servers.
View 7 Replies
View Related
Jan 15, 2010
I am installing ISPconfig on a Ubuntu server 9.10. When i write hostname -f i get the unknown host message.
View 4 Replies
View Related
Aug 20, 2010
Accidentally i have deleted my /bin/hostname file
i am using redhat centos 5.4 so me how to recover it
View 1 Replies
View Related
Oct 7, 2010
I have configured one samba server. its working fine. the problem is whe we connect from windows machine , through ipaddress its connected. but i am not able to connect through hostname.
View 7 Replies
View Related
Jan 28, 2010
I have a version of slackware installed as a virtual machine and am not able to ping hosts or otherwise receive data from any IP addresses external to the LAN. I think this problem is due to the hostname of the vm not being recognized by the gateway (ddwrt); the vm receives an IP via dhcp but the gateway does not seem to recognize its hostname (registers as *).
Will readily respond with whatever conf file is needed.
View 14 Replies
View Related