-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostic results problem #306
Comments
The result of the diagnostic is too long to be stored in the DB as per current constraints. |
At the moment there are no way to retrive the configured vlan on a specific port. With this diagnostic we are able to retrive this information as a text: `` def extract_interface_vlan(output): def diagnose(cli, device, diagnostic): `` The output is like this: The idea would then be to make a simple graphical interface (with django) to read and modify the vlan of a port. |
Hi folks,
We've created a diagnostic tool for Juniper switches. The command used is "show configuration interfaces | display xml". However, the diagnostic fails. But when we execute a command like "show configuration interfaces ge-0/0/0 | display xml", it works perfectly.
{
"type": ".SimpleDiagnostic",
"id": 4,
"name": "Juniper_interfaces_xml",
"targetGroup": {
"type": "StaticDeviceGroup",
"changeDate": 1712574127000,
"id": 30,
"name": "test",
"folder": "test",
"hiddenFromReports": false
},
"enabled": true,
"resultType": "TEXT",
"deviceDriver": "JuniperJunos",
"cliMode": "operate",
"command": "show configuration interfaces | display xml",
"modifierPattern": "",
"modifierReplacement": "",
"deviceDriverDescription": "Juniper Junos"
}
Output:
[WARN] Setting value for diagnostic key 'Juniper_interfaces_xml'
[ERROR] Error while executing the diagnostics: org.hibernate.exception.DataException: could not execute statement
Netshot version 0.18.3
The switch is a Juniper ex2200-24p-4g. There are no virtual chassis, so the network interfaces are limited.
Thanks in advance.
M.
The text was updated successfully, but these errors were encountered: