init
This commit is contained in:
19
root/observium/sfp_view/script.sql_BU
Executable file
19
root/observium/sfp_view/script.sql_BU
Executable file
@@ -0,0 +1,19 @@
|
||||
select entPhysical.entPhysicalDescr as 'SFP Description',
|
||||
entPhysical.entPhysicalVendorType as 'SFP Type',
|
||||
entPhysical.entPhysicalSerialNum as 'SFP Serial',
|
||||
entPhysical.entPhysicalName as 'Port Name',
|
||||
ports.port_descr_descr as 'Port Description',
|
||||
devices.hostname as 'Host',
|
||||
ports.ifAdminStatus as 'Admin-Status',
|
||||
ports.ifOperStatus as 'Oper-Status'
|
||||
from entPhysical
|
||||
join devices
|
||||
on (entPhysical.device_id = devices.device_id)
|
||||
join ports \
|
||||
on (entPhysical.device_id = ports.device_id)
|
||||
where ports.ifindex = entPhysical.ifindex
|
||||
and entPhysical.entPhysicalDescr like '%SFP%'
|
||||
and (entPhysical.entPhysicalVendorType like 'cevPort%'
|
||||
or entPhysical.entPhysicalVendorType like 'cevSFP%')
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user