snmp standard interfaces - some equipments can have the value 0 for adminStatus and operStats (#4048)
This commit is contained in:
parent
c6ff5457a5
commit
2878d98578
|
@ -719,15 +719,15 @@ sub set_oids_status {
|
|||
|
||||
$self->{oid_adminstatus} = '.1.3.6.1.2.1.2.2.1.7';
|
||||
$self->{oid_adminstatus_mapping} = {
|
||||
1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown',
|
||||
0 => 'noStatus', 1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
};
|
||||
$self->{oid_opstatus} = '.1.3.6.1.2.1.2.2.1.8';
|
||||
$self->{oid_opstatus_mapping} = {
|
||||
1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown',
|
||||
0 => 'noStatus', 1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
};
|
||||
$self->{oid_duplexstatus} = '.1.3.6.1.2.1.10.7.2.1.19';
|
||||
$self->{oid_duplexstatus_mapping} = {
|
||||
1 => 'unknown', 2 => 'halfDuplex', 3 => 'fullDuplex',
|
||||
1 => 'unknown', 2 => 'halfDuplex', 3 => 'fullDuplex'
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -34,11 +34,11 @@ sub set_oids_status {
|
|||
|
||||
$self->{oid_adminstatus} = '.1.3.6.1.2.1.2.2.1.7';
|
||||
$self->{oid_adminstatus_mapping} = {
|
||||
1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
0 => 'noStatus', 1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
};
|
||||
$self->{oid_opstatus} = '.1.3.6.1.2.1.2.2.1.8';
|
||||
$self->{oid_opstatus_mapping} = {
|
||||
1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
0 => 'noStatus', 1 => 'up', 2 => 'down', 3 => 'testing', 4 => 'unknown', 5 => 'dormant', 6 => 'notPresent', 7 => 'lowerLayerDown'
|
||||
};
|
||||
$self->{oid_mac_address} = '.1.3.6.1.2.1.2.2.1.6';
|
||||
$self->{oid_iftype} = '.1.3.6.1.2.1.2.2.1.3';
|
||||
|
|
Loading…
Reference in New Issue