General :: Cli Command For Logging The Status Of A NIC - Eth0?
Jan 20, 2010
I would like to know if it's possible to create a continual log for a network interface card's status. That is whether it's up or down and time and date stamped if possible.I'm wondering if there is a cli command that exists to do this I've looked at "ethtool" but this only sets the parameters of the nic.Also looked at the log files that I could find /dev/log var/log, but there is no mention of a status for eth0.
View 3 Replies
ADVERTISEMENT
Jan 17, 2011
how to get the status of background command in bash script
supose , rm 1 &
rm 2
how to get status of rm 1 command
View 3 Replies
View Related
Apr 22, 2010
I get connected to the internet via a router. The router dials to my provider and is connected to my computers via LAN and WLAN (mostly WLAN, see below). A few days ago I installed Suse11.2 to an old laptop (connected both ways: ethernet with wire and wireless ethernet).
The access to the online repositories worked only after I added the LAN-Adapter (Eth0) to the Demilitarised Zone of the firewall (I did also with the WLAN Adapter).
1. Is this normal?
2. Should I add the network devices now to an other zone?
I want to update my main laptop now from openSuse11.1 to 11.2 via new installation (from DVD) and make this installation right.
Or should I install only the data on the DVD and update after the installation via Yast?
(My main laptop has also an loose contact at the ethernet adapter.)
Greetings pistazienfresser
Now I am using (on my main laptop = Samsung X20) openSuse 11.1 and Gnome 2.24.1 (mostly, 1 account is using KDE) and Kernel Linux 2.6.27.45-01.1-pae. "/home" is on an separated partition (as part of an extended partition). I have also 2 NTFS partitions for Windows XP (System and Data), and a FAT, a root (/) and a swarp partition. My router is a AVM fritzbox 7270 (firewall should be included).
View 6 Replies
View Related
Mar 18, 2010
I would like to log into my router to get the status page programmatically. I have a dynamic IP address and need to update my dynamic dsl service. The router will not display its address with traceroute (all I get is * * *. Once I am logged into the router I can retrieve the status page with wget and parse the resulting file. I cannot seem to get logged into it with wget. Does anyone know how this might be done? If I posted the HTML page that I log into (from wget of the login page) could someone tell me what I need to code. The router is a Trendnet TEW-652BRP. I can get it off the internet but if my connection is down it will fail.
View 14 Replies
View Related
Jun 15, 2010
what is the command for checking the network performance and status?
View 3 Replies
View Related
Mar 8, 2010
If I uncheck and recheck "Enable Networking" in the Network Manager Applet 0.7.996 I would expect the wired network to disconnect (which it does) and reconnect (which it does NOT). So I tried sudo ifdown eth0 and got
Quote:
Ignoring unknown interface eth0=eth0.
ifconfig tells me
Quote:
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
so I am at a loss. How do I stop and restart the network interface short of rebooting the machine?
View 9 Replies
View Related
Mar 3, 2010
I got two IP's in my dedicated server. Both are external IP's. I would like to make connections using 2nd IP address under eth0:0 interface. For example: when using "lynx whatismyip.com" should display my 2nd IP. How to do this using iptables ?
View 1 Replies
View Related
Jun 4, 2010
is there any way to execute a command every time a "folder changes status"? Under windows there's an API which pro-actively tells you when something has changed within a directory, so I was trying to achieve something similar under Linux. I can't think anything else other than check the list of files and parameters (e.g. date/size/owner) every few seconds, but that's not ideal of course... So what I'm asking here is: is there is a way to set linux to tell me rather than me go and check?
View 2 Replies
View Related
Apr 22, 2011
im trying to setup eth0 with subdevice eth0.0 and eth0.99 to come up at boot
eth0 is dhcp clint
eth0:0 is static ip
eth0.99 is 802.1q vlan interface
/etc/network/interfaces
Code:
auto lo
[Code]....
View 1 Replies
View Related
Mar 15, 2010
how I could run a command before logging on, in addition, the command needs to run as root.
This is going back to some few weeks months ago, shortly after I upgraded to Karmic Koala. Since then, the sound device doesn't work automatically. I donno why, but alsa doesn't seem to detect the audio device.
Once I have booted the machine, I can access sound by doing:
Code:
sudo alsa force-reload
Needless to say, that's pretty annoying and I posted two or three threads to find a solution to this problem, but never got anywhere.
Failing that I get the issue resolved, running the 'alsa force-reload' command at boot up, so that when I'm logged in, it's already working.
View 2 Replies
View Related
Mar 2, 2011
I'm not sure how long ago this happened but eth0 seems to have vanished from my computer. wlan0 works fine and when I plug into the switch there is carrier detect.
Code:
21:35:43 ~:$ ifconfig eth0 up eth0: ERROR while getting interface flags: No such device
21:55:49 ~:$ lspci 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05) 07:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300 After that i have no idea where to search for problems next, any ideas would be greatly appriciated (can't spell) ubuntu 10.10
View 11 Replies
View Related
Mar 14, 2010
is there any command in linux to know the processor temperature and its status?with root permissions i tried with using the proc commd.... it gave io error saying permissiondenied....thru these system details are obtaind/proc/filesystems/proc/cpuinfosince im not familiar with its usage,so how this proc cmmd should be used to extract the required info abt the system & display them?
View 4 Replies
View Related
Aug 7, 2009
I need to make a SQL script and call it from Unix (bash) shell.
Code:
sqlplus vikas/vikas <<END
spool /oracle/vikas/output.txt
command 1
[code]....
This runs perfectly, but my problem is that if a command fails, the other commands keeps on running. I need to keep a check that when a command fails the script is exited. In unix we have an option of echo $? to check the status of previous command, But how to accomplish this SQL.
View 2 Replies
View Related
Feb 19, 2010
command will just execute and exit with a status of "0" -"Every command returns an exit status (sometimes referred to as a return status ). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually may be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions."[URL]With the command . . .
Code:
# dosfsck -v /dev/sdb
it could be very helpful (and decide my next move) to see the exit code as 0, 1, or 2 . the man page suggests the command exit code will specify if the message I get - "Cluster size is zero" (I think it is a "1")is a recoverable or fixable error by the utility. or is non-recoverable - a pretty nifty feature if I understand this right. [URL] is there anything like this script COMMAND_LAST used in the following link. [URL] that can be entered in the terminal window after - or at end of - my dosfsck command or any command. just to see if it has a 0, 1, or 2 status ?
View 2 Replies
View Related
May 27, 2009
I am new to scripting and been working on this bash script for awhile now. I been researching this problem, but I can't seem to find a solution. I was wondering if someone could please help me out. Here is my script:
#!/bin/bash
NO="ps -ef | grep NO | grep -v grep"
NOWC=`ps -ef | grep NO | grep -v grep | wc -l`
[code].....
I cannot get this script to run the "ps -ef" command on the client. It get its value from the host machine that I am running this script from. I need this command to execute on the client. When I run the command (ps -ef | grep NO | grep -v grep) on the client, I get something back. Here is what I get when I try to debug the script.
XX# ./test_ps5.sh XXXXX
+ NO='ps -ef | grep NO | grep -v grep'
++ ps -ef
[code]....
View 5 Replies
View Related
Feb 4, 2010
I'm still learning about bash scripting. Not too long ago, with a lot of help from folks on this forum, I developed the following script to keep Slackware -stable up-to-date:
Code:
#!/bin/bash
#update_slackware.sh
[code]....
View 3 Replies
View Related
Feb 21, 2011
Running 10.04. For some reason, starting today, I have no internet connection unless I run this command in terminal - sudo dhclient eth0. I have a hard wired ethernet connection on a Desktop PC with a static IP address (there are a number of devices in the house) and it has been running 100% for months and months. Why suddenly do I have to enter this command to get connection? When I switch on I get a connection in that when I click on the Top Panel icon and right click Connection Information it tells me I have an active connection to my router on the normal IP address. I cannot ping the router and Firefox says Server not found. After sudo dhclient eth0 everything works - what has happened since yesterday evening and this morning to stop what has been 100% for months?
View 6 Replies
View Related
Sep 10, 2010
I have had some problems with installing dotnet11, 20, 30 on OpenSuse 11.3 x86_64. A every time got the same error msg:
[Code]....
I don't know what to do. Installed corefonts too, still the same. Anybody met with this problem yet?
View 3 Replies
View Related
Jul 5, 2010
I have just upgraded to Lucid on Ubuntu. I am a long time Pidgin user. I tried using Empathy with Gwibber, but I can't get Gwibber to update my IM status(es) in Empathy, so I want to go back to using Pidgin. (Additionally, I can't get Skype to work with Empathy.)I installed pidgin-microblog and pidgin-mbpurple, and they allow me to view my Twitter feed in Pidgin and update my Twitter status in Pidgin. However, in Karmic, I was also able to specify certain "status availabilities" (one named "Twitter-Available" and one named "Twitter-Away", for instance) to have the IM status message for these statuses become populated with my Twitter feed. This capability seems missing in pidgin-mbpurple in Lucid (and it seems to be the only thing missing from Karmic).
Is there a way to have pidgin-mbpurple update certain "status availabilities" in Lucid (and I'm just missing something) or is this no longer possible?Equivalently, is it possible to have Gwibber update my status message in Empathy? (I just want to be able to update my status once on one of my three computers - and have it propagate to all my other accounts (IM and social networking) and computers).
View 1 Replies
View Related
Aug 19, 2009
5.10 Breezy configured as machine controller. Works great eth0 is a fixed IP to communicate with controller comms board. Not easy at all to alter - the comms board is hard coded to listen on eth0 for commands.
I can use eth1 as the default gateway and ping google.com, etc. But when I now attempt to communicate with the controller with netcat, e.g.
Code: echo !HH | nc 192.168.1.6 80
I obviously never get an answer since the request is passed via eth1. Using the -g option with netcat doesn't work either. I had a look at iptables but it doesn't seem to be able to do what I want. How I can still use eth0 as my communication port to the controller whilst eth1 is the default gateway?
View 17 Replies
View Related
Jul 1, 2010
I have two servers on a vlan at my datacentre/colocation and previously both servers had public IPs on their eth0 interfaces. The servers are HP ProLiant DL360s - one is a G4 and one is a G5 The newer G5 is now the LAMP server and the G4 has been retired and I want to repurpose it as an iSCSI target using openfiler freenas or similar.
My G5 has public/static IPs lashed to the eth0 physical interface and the eth1 is not configured to do anything yet. The G4 will have both interfaces available - perhaps one for ssh access from one of my static public IPs and the other to be a private IP on the local vlan. Here is what I am trying to get my head around...
The G5
eth0 - Public IP - full LAMP services on two or three virtual interfaces
eth1 - Private IP 192.168.0.1
The G4
eth0 - Public IP for ssh
eth1 - Private IP 192.168.0.2
Because my traffic between eth1 on these boxes is via private IPs on the local private vlan it doesn't add to my quota for bandwidth. How do I go about configuring the routing and gateways and other aspects of this so that I can run a private IP space network between the eth1s and still serve the outside world from the eth0s...
I am afraid that if I assign the private IPs to the eth1 interfaces the routing may either not work or interfere with the access to the production internet facing interfaces (eth0s).
View 10 Replies
View Related
May 5, 2010
My network name is eth2 it was changed by some reason and now i got these errors... i installed, reinstalled, re re installed, tried to run the asistant but no luck :/
Code:
* Stopping the Firestarter firewall...
eth0: error fetching interface information: Device not found
eth0: error fetching interface information: Device not found
eth0: error fetching interface information: Device not found
[code]....
View 1 Replies
View Related
Jul 13, 2009
On my machine (Desktop PC) I have 2 network card : wireless (rt61 802.11) and a wired card (BCM44). When I install debian 5.
The wired card is detected and logical name eth0 is assigned, while wireless is not assigned I install firmeware* software to configure the card. It is done in some way ( I used mnetwork from mepis, it works fine).
Now the problem: eth0 disapears, and no eth0 inteface found? ifconfig gives just wlan0.
Question: Why there is no eth0, it was before configuration of wlan0 ?
How to active again eth0, or ho to create the logical eth0?
View 5 Replies
View Related
Dec 18, 2010
I'm running a dual boot Ubuntu 10.04/Backtrack 4 (Ubuntu 8.10) system. I can get internet in the BT4 side but not in the Lucid side. In Lucid I can ping my router, and the network manager says I'm good to go, but I can't get to any web sites. It all started when I tried to put my laptop on another network by mimicking the settings of a computer I had just unplugged from the network. MAC address and all.
ifconfig eth0:
Code:
eth0 Link encap:Ethernet HWaddr 00:1f:16:ba:4c:8c
inet addr:10.136.9.147 Bcast:10.136.9.159 Mask:255.255.255.240
inet6 addr: fe80::21f:16ff:feba:4c8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
View 3 Replies
View Related
Mar 17, 2010
After downloading and installing iscan and run it i see this message:
Could not send command to scanner. Check scanner's status.
After command sane-find-scanner:
And this message is result of scanimage command:
No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).
View 4 Replies
View Related
Apr 9, 2010
Have Karmic 9.10 ,Changed from Epson RX595 all in 1 (uses a ton of ink)Got the Lexmark Pro 805 3 in 1 because it says it supports Linux and the ink cartridge only cost $5 downloaded drivers and printer works but using Xsane Image Scanner error reports
'Lexmark_1_0_0:libsub/001/009': Device busy Using Image Scan - reports Could not send command to scanner Check the scanner status. The RX595's scanner drivers had to been manually instatlled,, in the Printer box the Lexmark shows available..
View 3 Replies
View Related
Mar 16, 2011
After a fresh installation of Ubuntu 10.10 I uninstalled empathy (im using skype). The empathy menu in the evolution indicator was gone after that.I also uninstalled gwibber. But the gwibber status indicator remains within the about-me panel... Uninstalling the gwibber package also removes the me-menu which I want to keep actually. Especially the shutdown/restart... part of it. See attachment.I know there is a shutdown panel-app...but its butt-ugly and it doesnt allow to logon/off.
In another thread I read that the gwibber status shouldnt be there if no account for it is configured... which it is not... I do use ubuntu-one though which is in the same menu... I saw that this issue was addressed at some bug report before, but not fixed yet...
Does anybody know a good workaround to get rid of the gwibber status in the panel while keeping the about me and the shutdown button?
View 3 Replies
View Related
May 24, 2010
I am working on linux server with below specifications.Linux EDT 2008 i686 i686 i386 GNU/LinuxWhile checking the status of the server using the command 'opmnctl status' and when server is down the output is not getting redirected to file.I m using the command as,opmnctl status > abc.txt.
View 2 Replies
View Related
Dec 26, 2010
i install kernel rpm after i boot that kernel network not working kernel name : kernel-rt-trace-2.6.24.7-132.el5.centos.i686 [URL] error "Bringing up interface eth0: Device eth0 has different MAC address than expected, ignoring."
View 1 Replies
View Related
Jul 30, 2010
I try to generate a server client code. What i try to do is sending video streams from eth0 and eth1 to the other server programs' eth0 and eth1. In order to do that, i decided to use SO_BINDTODEVICE. But the code is not working. Am i misunderstood the usage of SO_BINDTODEVICE.
1-Defining two ports
2-Defining two sockets
3-Assigning host ips on them
[code]....
View 3 Replies
View Related