2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-06 00:12:31 +00:00

Merge pull request #6696 from cxhong/dell

Discover Dell Switch via switchdiscover command
This commit is contained in:
Mark Gurevich
2020-05-06 17:55:19 -04:00
committed by GitHub
2 changed files with 5 additions and 8 deletions

View File

@@ -46,7 +46,9 @@ our %global_switch_type = (
Edgecore => "onie",
sLEN => "irpdu",
sIBM => "irpdu",
coral => "crpdu"
coral => "crpdu",
Dell => "Dell",
dell => "Dell"
);

View File

@@ -981,14 +981,9 @@ sub get_snmpvendorinfo {
push @comm_list, 'public';
foreach $comms(@comm_list) {
#for pdu: get vendor info from sysDescr
#for switches: get vendor info from entPhysicalDescr
# get vendor info from sysDescr
my $ccmd;
if (exists($globalopt{pdu})) {
$ccmd = "snmpwalk -Os -v1 -c $comms $ip 1.3.6.1.2.1.1.1";
} else {
$ccmd = "snmpwalk -Os -v1 -c $comms $ip 1.3.6.1.2.1.47.1.1.1.1.2.1";
}
$ccmd = "snmpwalk -Os -v1 -c $comms $ip 1.3.6.1.2.1.1.1";
if (exists($globalopt{verbose})) {
send_msg($request, 0, "Process command: $ccmd\n");
}