thatmattlove / hyperglass

hyperglass is the network looking glass that tries to make the internet better.
https://hyperglass.dev
BSD 3-Clause Clear License
594 stars 88 forks source link

Palo Alto Integration #272

Open Jorge7M opened 4 days ago

Jorge7M commented 4 days ago

Deployment Type

Docker

Version

v.2.0.4

Steps to Reproduce

When we try to execute comands in palo alto devices we Received this message: hyperglass-1 | 2024-07-05 16:26:22.424 | DEBUG | hyperglass.models.api.query:validate_query_target:107 - Validation passed hyperglass-1 | 2024-07-05 16:26:22.424 | INFO | hyperglass.api.routes:query:79 - Starting query execution hyperglass-1 | 2024-07-05 16:26:22.425 | DEBUG | hyperglass.api.routes:query:97 - Cache miss hyperglass-1 | 2024-07-05 16:26:22.431 | DEBUG | hyperglass.execution.main:execute:51 - hyperglass-1 | 2024-07-05 16:26:22.432 | DEBUG | hyperglass.execution.drivers._construct:init:46 - Constructing query hyperglass-1 | 2024-07-05 16:26:22.434 | DEBUG | hyperglass.execution.drivers._construct:queries:129 - Constructed query hyperglass-1 | 2024-07-05 16:26:22.435 | DEBUG | hyperglass.execution.drivers.ssh_netmiko:collect:51 - Connecting to device hyperglass-1 | 2024-07-05 16:26:22.494 | INFO | logging:callHandlers:1762 - 10.195.242.126:65043 - "GET /_next/static/chunks/5b54e647.dd63bd7fb3ce60dc.js HTTP/1.1" 200 hyperglass-1 | INFO - 2024-07-05 16:26:22,820 - paramiko.transport - transport - Connected (version 2.0, client OpenSSH_8.0) hyperglass-1 | INFO - 2024-07-05 16:26:22,904 - paramiko.transport - transport - Auth banner: b'Usted se est\xc3\xa1 conectando a un equipo de PROPIEDAD PRIVADA\n\n- Solo personas autorizadas pueden conectarse.\n- Su utilizaci\xc3\xb3n implica el conocimiento y aceptaci\xc3\xb3n la pol\xc3\xadtica que regula la utilizaci\xc3\xb3n de medios tecnol\xc3\xb3gicos de la organizaci\xc3\xb3n, por lo cual es responsable de todas las operaciones que se realicen con su usuario y clave.\n- Las acciones realizadas en el equipo ser\xc3\xa1n registradas y monitoreadas. You are connecting to a device PRIVATE PROPERTY\n- Only authorized people can connect.\n- Its use implies the knowledge and acceptance policy that regulates the use of technological means of the organization, which is responsible for all operations carried out with your username and password.\n- Activity on this device, and attempted access, is logged\n' hyperglass-1 | INFO - 2024-07-05 16:26:23,316 - paramiko.transport - transport - Authentication (keyboard-interactive) successful! hyperglass-1 | 2024-07-05 16:26:32.352 | DEBUG | hyperglass.api.routes:query:115 - Runtime: 9.9272 seconds hyperglass-1 | 2024-07-05 16:26:32.358 | DEBUG | hyperglass.api.routes:query:134 - Response cached hyperglass-1 | 2024-07-05 16:26:32.359 | INFO | hyperglass.api.routes:query:146 - Execution completed hyperglass-1 | 2024-07-05 16:26:32.361 | INFO | logging:callHandlers:1762 - 10.195.242.126:65042 - "POST /api/query HTTP/1.1" 201

we can to observer that connection is Succesfull, but in frontend doesn´t show any information, we were to testing with diferents commands.

could you to check the palo alto integration? I am Sending de yaml file

palo_alto_temperature: name: PALO ALTO temperature groups:


name: "DEVICES" address: 1.1.1.1 credential: username: admin password: xxxxx platform: paloalto_panos group: "PRUEBA" directives:

Expected Behavior

Show comand information when we to send any command

Observed Behavior

we can to observer that connection is Succesfull, but in frontend doesn´t show any information, we were to testing with diferents commands

Configuration

No response

Devices

- name: MXDCKOFWLP001
    address: 10.185.10.10
    credential:
      username: admin
      password: xxxxx
    platform: paloalto_panos
    group: KIO
    directives:
      - palo_alto_temperature
    attrs:
      source4: 10.185.10.10
      source6: ::0

Logs

Jose Francisco De La Rosa
  11:27 AM
hyperglass-1  | 2024-07-05 16:26:22.424 | DEBUG    | hyperglass.models.api.query:validate_query_target:107 - Validation passed
hyperglass-1  | 2024-07-05 16:26:22.424 | INFO     | hyperglass.api.routes:query:79 - Starting query execution
hyperglass-1  | 2024-07-05 16:26:22.425 | DEBUG    | hyperglass.api.routes:query:97 - Cache miss
hyperglass-1  | 2024-07-05 16:26:22.431 | DEBUG    | hyperglass.execution.main:execute:51 - 
hyperglass-1  | 2024-07-05 16:26:22.432 | DEBUG    | hyperglass.execution.drivers._construct:__init__:46 - Constructing query
hyperglass-1  | 2024-07-05 16:26:22.434 | DEBUG    | hyperglass.execution.drivers._construct:queries:129 - Constructed query
hyperglass-1  | 2024-07-05 16:26:22.435 | DEBUG    | hyperglass.execution.drivers.ssh_netmiko:collect:51 - Connecting to device
hyperglass-1  | 2024-07-05 16:26:22.494 | INFO     | logging:callHandlers:1762 - 10.195.242.126:65043 - "GET /_next/static/chunks/5b54e647.dd63bd7fb3ce60dc.js HTTP/1.1" 200
hyperglass-1  | INFO - 2024-07-05 16:26:22,820 - paramiko.transport - transport - Connected (version 2.0, client OpenSSH_8.0)
hyperglass-1  | INFO - 2024-07-05 16:26:22,904 - paramiko.transport - transport - Auth banner: b'Usted se est\xc3\xa1 conectando a un equipo de PROPIEDAD PRIVADA\n\n- Solo personas autorizadas pueden conectarse.\n- Su utilizaci\xc3\xb3n implica el conocimiento y aceptaci\xc3\xb3n la pol\xc3\xadtica que regula la utilizaci\xc3\xb3n de medios tecnol\xc3\xb3gicos de la organizaci\xc3\xb3n, por lo cual es responsable de todas las operaciones que se realicen con su usuario y clave.\n- Las acciones realizadas en el equipo ser\xc3\xa1n registradas y monitoreadas. You are connecting to a device PRIVATE PROPERTY\n- Only authorized people can connect.\n- Its use implies the knowledge and acceptance policy that regulates the use of technological means of the organization, which is responsible for all operations carried out with your username and password.\n- Activity on this device, and attempted access, is logged\n'
hyperglass-1  | INFO - 2024-07-05 16:26:23,316 - paramiko.transport - transport - Authentication (keyboard-interactive) successful!
hyperglass-1  | 2024-07-05 16:26:32.352 | DEBUG    | hyperglass.api.routes:query:115 - Runtime: 9.9272 seconds
hyperglass-1  | 2024-07-05 16:26:32.358 | DEBUG    | hyperglass.api.routes:query:134 - Response cached
hyperglass-1  | 2024-07-05 16:26:32.359 | INFO     | hyperglass.api.routes:query:146 - Execution completed
hyperglass-1  | 2024-07-05 16:26:32.361 | INFO     | logging:callHandlers:1762 - 10.195.242.126:65042 - "POST /api/query HTTP/1.1" 201