View Issue Details

IDProjectCategoryView StatusLast Update
1465RackTablesdefaultpublic2015-05-04 01:23
Reporterabrook Assigned Toinfrastation  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSRHEL 6OS Version6.5
Product Version0.20.10 
Target Version0.20.11Fixed in Version0.20.11 
Summary1465: liveports ethernet selection is too specific
DescriptionLive ports runs the following commands to find information about each port:
"cd /sys/class/net && for d in eth*; do sudo /sbin/ethtool \$d; done\n"

However, as of RHEL6, physical systems have a different naming scheme, according to the following:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/appe-Consistent_Network_Device_Naming.html#tabl-Consistent_Network_Device_Naming

I'm using the following which seems to work:
"cd /sys/class/net && for d in $(ls -1d eth* em* p* 2>/dev/null); do sudo /sbin/ethtool \$d; done\n"

I've attached a patch as well.
Steps To ReproduceRun this against a physical RHEL6 system
TagsNo tags attached.

Activities

abrook

abrook

2015-04-30 22:29

reporter  

deviceconfig.patch (464 bytes)   
--- deviceconfig.php.orig	2015-04-30 15:19:58.884033746 -0500
+++ deviceconfig.php	2015-04-30 15:23:33.626033351 -0500
@@ -2133,7 +2133,7 @@
		switch ($cmd['opcode'])
		{
		case 'getportstatus':
-			$ret .= "cd /sys/class/net && for d in eth*; do sudo /sbin/ethtool \$d; done\n";
+			$ret .= "cd /sys/class/net && for d in $(ls -1d eth* em* p* 2>/dev/null); do sudo /sbin/ethtool \$d; done\n";
			break;
		case 'getmaclist':
			$ret .= "sudo /usr/sbin/arp -an\n";
deviceconfig.patch (464 bytes)   
infrastation

infrastation

2015-05-04 01:23

administrator   ~0002817

I remember a similar naming convention in few recent releases of Fedora Linux. The change made as commit 9f6931e. Thank you!

Issue History

Date Modified Username Field Change
2015-04-30 22:29 abrook New Issue
2015-04-30 22:29 abrook File Added: deviceconfig.patch
2015-05-04 01:23 infrastation Note Added: 0002817
2015-05-04 01:23 infrastation Assigned To => infrastation
2015-05-04 01:23 infrastation Status new => closed
2015-05-04 01:23 infrastation Resolution open => fixed
2015-05-04 01:23 infrastation Fixed in Version => 0.20.11
2015-05-04 01:23 infrastation Target Version => 0.20.11