2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Discover Dell Switch via switchdiscover command

This commit is contained in:
cxhong 2020-05-06 17:03:47 -04:00
parent 3d2c3b2314
commit 792aca18dc
2 changed files with 4 additions and 7 deletions

View File

@ -47,6 +47,8 @@ our %global_switch_type = (
sLEN => "irpdu",
sIBM => "irpdu",
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");
}