Sponsored Content
Full Discussion: ethtool : command not found
Top Forums Shell Programming and Scripting ethtool : command not found Post 302299465 by pludi on Friday 20th of March 2009 07:22:47 AM
Old 03-20-2009
Run either
Code:
~> /usr/sbin/ethtool eth0

or
Code:
/usr/sbin> ./ethtool eth0

If neither works, try logging in as root and running it, or run it via su/sudo
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

2. Programming

ethtool problem

Hi, I'm using ethtool to change network settings: Just for the experiment, i want to change speed to 10, instead of 100, I type: ethtool -s eth0 speed 10 duplex full autoneg off and to view settings i type: ethtool eth0, and get this: Settings for eth0: Supported ports: ... (4 Replies)
Discussion started by: alex889
4 Replies

3. Shell Programming and Scripting

Command not found

Hello Guys I have the following function in an existing library, what verbose means ? also why msg=' $*" give me command not found? SCRIPT_NAME="plapla" REPORT_FILE="tmp.txt" i_report() ## Prints all arguments to the report file... (2 Replies)
Discussion started by: fdc2suxs
2 Replies

4. Solaris

for: command not found

I have installed Solaris recently. I was doing "for file in *.c; ...." at the command prompt, it says for: command not found. I tried changing shells, but still wouldn't work. Any ideas? (7 Replies)
Discussion started by: software2007
7 Replies

5. Red Hat

Ethtool script not running on boot.

Hi, there is an incompatibility between my NIC and my Western Digital Powerline adapters which appears to cause autonegotiation to fail intermittently, most often following a reboot. Running the following Ethtool script will establish a connection immediately: #!/bin/sh # chkconfig: 345 85... (12 Replies)
Discussion started by: torley
12 Replies

6. Shell Programming and Scripting

bash: <command nm> command not found

I created a script that I need to run from time to time, but get this error message. To get it working again I run this command from time to time: export PATH="$PATH:~/scripts" I put all my automated scripts in the /scripts directory and would like to run my scripts from any directory... (5 Replies)
Discussion started by: catalinawinemxr
5 Replies

7. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

8. Shell Programming and Scripting

Want to terminate command execution when string found in the command output

Hi Experts, I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task. I am running below command to snmpwalk the router.. snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies

9. Solaris

Ar command not found

Hi all, ar command not found on Solaris 10 version. We can execute under ./ar command /usr/ccs/bin directory. However, we want to execute ar command anywhere. We add to /usr/ccs/bin entry under /etc/profile file shown as below. umask 002 trap 2 3 ... (2 Replies)
Discussion started by: ziosnim
2 Replies

10. UNIX for Beginners Questions & Answers

Ethtool command not working

Hi All, I am trying to find my NIC card speed in centos 5. But i am unable to get the info using ethtool command. # ethtool eth0 Settings for eth0: Link detected: yes and even tried to look for the file # cd /sys/class/net/eth0/speed files which is also not available.... (8 Replies)
Discussion started by: sravani25
8 Replies
ETHTOOL(8)						      System Manager's Manual							ETHTOOL(8)

NAME
ethtool - Display or change ethernet card settings SYNOPSIS
ethtool ethX ethtool -h ethtool -a ethX ethtool -A ethX [autoneg on|off] [rx on|off] [tx on|off] ethtool -c ethX ethtool -C ethX [adaptive-rx on|off] [adaptive-tx on|off] [rx-usecs N] [rx-frames N] [rx-usecs-irq N] [rx-frames-irq N] [tx-usecs N] [tx- frames N] [tx-usecs-irq N] [tx-frames-irq N] [stats-block-usecs N] [pkt-rate-low N] [rx-usecs-low N] [rx-frames-low N] [tx-usecs-low N] [tx-frames-low N] [pkt-rate-high N] [rx-usecs-high N] [rx-frames-high N] [tx-usecs-high N] [tx-frames-high N] [sample-interval N] ethtool -g ethX ethtool -G ethX [rx N] [rx-mini N] [rx-jumbo N] [tx N] ethtool -i ethX ethtool -d ethX ethtool -e ethX ethtool -k ethX ethtool -K ethX [rx on|off] [tx on|off] [sg on|off] ethtool -p ethX [N] ethtool -r ethX ethtool -S ethX ethtool -t ethX [offline|online] ethtool -s ethX [speed 10|100|1000] [duplex half|full] [port tp|aui|bnc|mii] [autoneg on|off] [phyad N] [xcvr internal|external] [wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N] DESCRIPTION
ethtool is used for querying settings of an ethernet device and changing them. ethX is the name of the ethernet device to work on. OPTIONS
ethtool with a single argument specifying the device name prints current setting of the specified device. -h shows a short help message. -a queries the specified ethernet device for pause parameter information. -A change the pause parameters of the specified ethernet device. autoneg on|off Specify if pause autonegotiation is enabled. rx on|off Specify if RX pause is enabled. tx on|off Specify if TX pause is enabled. -c queries the specified ethernet device for coalescing information. -C change the coalescing settings of the specified ethernet device. -g queries the specified ethernet device for rx/tx ring parameter information. -G change the rx/tx ring parameters of the specified ethernet device. rx N Change number of ring entries for the Rx ring. rx-mini N Change number of ring entries for the Rx Mini ring. rx-jumbo N Change number of ring entries for the Rx Jumbo ring. tx N Change number of ring entries for the Tx ring. -i queries the specified ethernet device for associated driver information. -d retrieves and prints a register dump for the specified ethernet device. -e retrieves and prints an EEPROM dump for the specified ethernet device. -k queries the specified ethernet device for checksumming information. -K change the checksumming parameters of the specified ethernet device. rx on|off Specify if RX checksumming is enabled. tx on|off Specify if TX checksumming is enabled. sg on|off Specify if scatter-gather is enabled. -p initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. typically this involves blinking one or more LEDs on the specific ethernet port. N Length of time to perform phys-id, in seconds. -r restarts auto-negotiation on the specified ethernet device, if auto-negotiation is enabled. -S queries the specified ethernet device for NIC- and driver-specific statistics. -t executes adapter selftest on the specified ethernet device. Possible test modes are: offline|online defines test type: offline (default) means to perform full set of tests possibly causing normal operation interruption during the tests, online means to perform limited set of tests do not interrupting normal adapter operation. -s option allows changing some or all settings of the specified ethernet device. All following options only apply if -s was specified. speed 10|100|1000 Set speed in Mb/s. ethtool with single argument will show you the supported device speeds. duplex half|full Set full or half duplex mode. port tp|aui|bnc|mii Select device port. autoneg on|off Specify if autonegotiation is enabled. In the usual case it is, but might cause some problems with some network devices, so you can turn it off. phyad N PHY address. xcvr internal|external Select transceiver type. Currently only internal and external can be specified, in the future further types might be added. wol p|u|m|b|a|g|s|d... Set Wake-on-LAN options. Not all devices support this. The argument to this option is a string of characters specifying which options to enable. p Wake on phy activity u Wake on unicast messages m Wake on multicast messages b Wake on broadcast messages a Wake on ARP g Wake on MagicPacket(tm) s Enable SecureOn(tm) password for MagicPacket(tm) d Disable (wake on nothing). This option clears all previous options. sopass xx:yy:zz:aa:bb:cc Set the SecureOn(tm) password. The argument to this option must be 6 bytes in ethernet MAC hex format (xx:yy:zz:aa:bb:cc). msglvl N Set the driver message level. Meanings differ per driver. BUGS
Not supported (in part or whole) on all ethernet drivers. AUTHOR
ethtool was written by David Miller. Modifications by Jeff Garzik, Tim Hockin, Jakub Jelinek, Andre Majorel, Eli Kupermann. AVAILABILITY
ethtool is available over the Web on the SourceForge site at http://sourceforge.net/projects/gkernel/ Ethtool version 1.6 June 2002 ETHTOOL(8)
All times are GMT -4. The time now is 03:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy