Skip to main content
Solved

Multiple client command in one parser

  • February 14, 2024
  • 2 replies
  • 85 views

  • New Participant
  • 1 reply

is it possible to add many cli command in one parser. version R11.1b

ex show version. show run | sec vty

I am trying to create a parser to run multiple show commands to check some security compliancy.

 

see picture attached.

 

thanks

 

Hani,

Best answer by Carsten.Schmidt

hi @Hani 

a parser parses the result of a CLI command or SNMP request etc. It will be impossible to have a parser work on several commands (I think).

Easiest solution would probably be a Qapp that uses several commands, each with its own parser like this

At a later stage you can merge the tables using the Multiple Table Operator, the key being the hostname.

Carsten

2 replies

Forum|alt.badge.img+4
  • Brainy
  • 82 replies
  • Answer
  • February 15, 2024

hi @Hani 

a parser parses the result of a CLI command or SNMP request etc. It will be impossible to have a parser work on several commands (I think).

Easiest solution would probably be a Qapp that uses several commands, each with its own parser like this

At a later stage you can merge the tables using the Multiple Table Operator, the key being the hostname.

Carsten


  • Author
  • New Participant
  • 1 reply
  • February 16, 2024

Thank you .