1825706 Members
3237 Online
109686 Solutions
New Discussion

Juniper VLAN Management

 
SOLVED
Go to solution
kevin gannon
Occasional Contributor

Juniper VLAN Management

I have a new Juniper EX switch and I have updated the adapters with the new OID. I can discover the device but it

will not show up as a device which I can configure VLANs on. I know the box has VLANs and the SNMP table dot1qVlanStaticTable has values in it. I do get the following errors in the vlandm log files

2020-07-24 19:52:43.739 [WARNING (2023)] [THREAD(9912)] [CScriptTool::getDevAdapterNameFromDB()] reader no data, sql: select vendor_name,adapter_name,error_code from tbl_dev_adapter where component_name = 'Custom' and dev_id = 21 and adapter_type = 1
2020-07-24 19:52:43.756 [ERROR (3119)] [THREAD(9912)] [CQvDBConnADP::executeSQL] Execute "insert into tbl_dev_adapter(component_name,dev_id,sysoid,vendor_name,adapter_name,adapter_type,error_code) values('Custom',21,'1.3.6.1.4.1.2636.1.1.1.2.129','Juniper networks','N/A',1,18)" failed, errorMsg:Violation of PRIMARY KEY constraint 'PK__tbl_dev___446DFD02EB8E3DFC'. Cannot insert duplicate key in object 'imc_config.tbl_dev_adapter'. The duplicate key value is (Custom, 21, 1).
2020-07-24 19:52:43.761 [ERROR (18)] [THREAD(9912)] [CComponentAdapter::getDevAdapterName()] fail to call discoverDeviceAdapter()
2020-07-24 19:52:43.761 [ERROR (18)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction()] fail to call getDevAdapterName().DevID=21,ServiceName = vlan_manage_builder
2020-07-24 19:52:43.762 [ERROR (18)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction()] fail to call getDevAdapterName().DevID=21,ServiceName = vlan_manage_builder
2020-07-24 19:52:43.763 [WARNING (2023)] [THREAD(9912)] [CScriptTool::getDevAdapterNameFromDB()] reader no data, sql: select vendor_name,adapter_name,error_code from tbl_dev_adapter where component_name = 'vlandm' and dev_id = 21 and adapter_type = 1
2020-07-24 19:52:43.764 [INFO (0)] [THREAD(9912)] [CComponentAdapter::parseVendorAdapter()] Begin to parse ...
2020-07-24 19:52:43.764 [INFO (0)] [THREAD(9912)] [CComponentAdapter::parseVendorAdapter()] Finished to parse!
2020-07-24 19:52:43.765 [WARNING (2001)] [THREAD(9912)] [CComponentAdapter::getSupportAdapter()] Fail to get dev version,devID=21
2020-07-24 19:52:43.766 [WARNING (43)] [THREAD(9912)] [CComponentAdapter::discoverDeviceAdapter()] fail to call getSupportAdapter(),devID=21
2020-07-24 19:52:43.768 [ERROR (43)] [THREAD(9912)] [CComponentAdapter::getDevAdapterName()] fail to call discoverDeviceAdapter()
2020-07-24 19:52:43.768 [ERROR (43)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction()] fail to call getDevAdapterName().DevID=21,ServiceName = vlan_manage_builder
2020-07-24 19:52:43.769 [WARNING (2023)] [THREAD(9912)] [CScriptTool::getDevAdapterNameFromDB()] reader no data, sql: select vendor_name,adapter_name,error_code from tbl_dev_adapter where component_name = 'vlandm' and dev_id = 21 and adapter_type = 0
2020-07-24 19:52:43.770 [INFO (0)] [THREAD(9912)] [CComponentAdapter::parseVendorAdapter()] Begin to parse ...
2020-07-24 19:52:43.770 [INFO (0)] [THREAD(9912)] [CComponentAdapter::parseVendorAdapter]Vendor existed in memory.Do not need to parse again.vendor name = Juniper networks
2020-07-24 19:52:43.772 [INFO (0)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 21, adapter_name: JuniperGeneric
2020-07-24 19:52:43.773 [INFO (0)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 21, adapter_name: JuniperGeneric
2020-07-24 19:52:43.774 [INFO (0)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 21, adapter_name: JuniperGeneric
2020-07-24 19:52:43.775 [INFO (0)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 21, adapter_name: JuniperGeneric
2020-07-24 19:52:43.775 [INFO (0)] [THREAD(9912)] [CComponentAdapter::isDevSupportServiceAction] dev_id: 21, adapter_name: JuniperGeneric
2020-07-24 19:52:43.775 [INFO (0)] [THREAD(9912)] [CScriptProcessor::batchExec()] Case_no: 5100_3071553742
2020-07-24 19:52:43.789 [INFO (0)] [THREAD(9912)] [CScriptProcessor::batchExec()] Success to spawn process, pid: 6156
2020-07-24 19:53:19.120 [WARNING (102)] [THREAD(4100)] [qvdm::QvGetConfItem] Fail to get item[show_default_vlanfunc] in file[C:\Program Files\iMC\server\bin\..\..\server\conf\qvdm.conf].
2020-07-24 19:53:19.122 [ERROR (0)] [THREAD(4100)] [CVLanTask::reqGetDevVlanFuncs] dev doesn't support vlan. DevID: '15'H --

2020-07-24 19:53:19.128 [WARNING (102)] [THREAD(5348)] [qvdm::QvGetConfItem] Fail to get item[show_default_vlanfunc] in file[C:\Program Files\iMC\server\bin\..\..\server\conf\qvdm.conf].
2020-07-24 19:53:19.129 [ERROR (0)] [THREAD(5348)] [CVLanTask::reqGetDevVlanFuncs] dev doesn't support vlan. DevID: '15'H --

 

Any ideas please ?

 

Thanks Kevin

 

2 REPLIES 2
jguse
HPE Pro
Solution

Re: Juniper VLAN Management

Hello Kevin,

Does iMC detect the exact device model for your Juniper devices? If not, please make sure you add a Device Model definition for the SysOID and model under System > Resource Management > Device Definition.

Additionally, to which adapter-index.xml did you add the SysOID? Did you add it to iMC\server\conf\adapters\vlandm\Juniper networks\adapter-index.xml ? Make sure you also restart iMC and synchronize the Juniper devices after updating the file with the SysOIDs.

Best regards,
Justin

Working @ HPE
Accept or Kudo
kevin gannon
Occasional Contributor

Re: Juniper VLAN Management

Justin

Thanks for the pointer I figured it out with your hints much appreciated.

 

Thanks Kevin