View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1465 | RackTables | default | public | 2015-04-30 22:29 | 2015-05-04 01:23 |
Reporter | abrook | Assigned To | infrastation | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | RHEL 6 | OS Version | 6.5 |
Product Version | 0.20.10 | ||||
Target Version | 0.20.11 | Fixed in Version | 0.20.11 | ||
Summary | 1465: liveports ethernet selection is too specific | ||||
Description | Live 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 Reproduce | Run this against a physical RHEL6 system | ||||
Tags | No tags attached. | ||||
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"; |
|
I remember a similar naming convention in few recent releases of Fedora Linux. The change made as commit 9f6931e. Thank you! | |
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 |