I am trying to create a flexview that contains the IP address, Model #, Serial #, Manufacture date, location, switch type and slot id. I have successfully gotten the all of the columns except for the slot ID to work. I have tried to use entPhysicalDescr which contains the slot number, and extremeSlotNumber & extremeSlotName which also contains the information. But when it is run, the slot numbers do not correspond. the tpl is as follows:
New_device_serial_number.tpl
com.ets.nac.tables.TbModel
ReqID
OID::ReqID:::SNMP::ReqID
IP Address
OID::IP Address:::SNMP::IP Address
Instance
OID::Instance:::SNMP::Instance
Name
OID::sysName:::SNMP::SNMPW;true;15;3;true;false;1;2;0;0;0;0;0
Model Name
OID::entPhysicalModelName:::SNMP::SNMP;false;4;4;false;false;4;2;0;0;0;0;0
Serial
OID::entPhysicalSerialNum:::SNMP::SNMPW;false;4;5;true;false;4;2;0;0;0;0;0
Serial Number
SNMP::EXPR;true;2;6;false;false;1;2;0;0;0;0;0
Date code
SNMP::EXPR;true;2;7;false;false;1;2;0;0;0;0;0
sysLocation
OID::sysLocation:::SNMP::SNMPW;true;15;8;true;false;2;2;0;0;0;0;0
Switch_Type
OID::entPhysicalDescr:::SNMP::SNMP;false;4;9;false;false;4;2;0;0;0;0;0
Slot_ID
OID::extremeSlotName:::SNMP::SNMP;false;15;10;false;false;4;2;0;0;0;0;0
TBLHASH::::TBLHDR::0;0;true;30;None;V.0.3.3.0;0;0;108:::IDS_Y_AXIS_LABEL::% Utilization::::GEMHASH::::00001:Date code::routine 104 serial=({ "Serial":101:[$] } );
"20" + substring(serial[0],0,2) + " Week " + substring(serial[0],2,4);:::00000:Serial Number::routine 102 if { "Serial":101 } == "" then
BlueText("NA")
else if { "Serial":101 } == "-" then
BlueText("NA")
else if { "Serial":101 } == "N/A" then
BlueText("NA")
else { "Serial":101 }