Export data from CLI

IT_Field_Support
IT_Field_Support Posts: 97  Ally Member
Fourth Anniversary Friend Collector First Comment
edited April 2021 in Security
Hi,

I would like to process data from many routers.
The goal is to export only the name/status/gatewayIP of all the ikev2 policy (Phase 1 of IPsec VPN) on routers.
I wanted to do that with snmp but I cannot find these informations with snmp.
The command which can give me thses information in ssh is : show ikev2 policy and then I need to process the text.
But, I don't know how to get this data from and ssh commandline from a linux.
What do you think ? do you have a script or some tools that match my needs ?

Thanks a lot,
Davy

All Replies

  • Zyxel_Emily
    Zyxel_Emily Posts: 1,370  Zyxel Employee
    Sixth Anniversary 1000 Comments 100 Answers Zyxel Certified Sales Associate

    Hi @IT_Field_Support,

    You can use private mib "ZYXEL-ZW-COMMON.MIB" to get the name and status of ikev2 policy.



    Best regards,
    Emily

    Don't miss this great chance to upgrade your Nebula org. For free! https://bit.ly/4g2pS9L

  • IT_Field_Support
    IT_Field_Support Posts: 97  Ally Member
    Fourth Anniversary Friend Collector First Comment
    Hi Emily,

    Thanks a lot for the answer. With that I can get some information, but I don't get the IP of the VPN Gateway. I'm sur I can retrieve this with snmp.

  • Zyxel_Emily
    Zyxel_Emily Posts: 1,370  Zyxel Employee
    Sixth Anniversary 1000 Comments 100 Answers Zyxel Certified Sales Associate

    Hi @IT_Field_Support,

    The current private mib file with the latest firmware doesn't support the information of IP address of the VPN Gateway.

    We will add the request to ideas section to enhance the feature in the future release.

    Best regards,
    Emily

    Don't miss this great chance to upgrade your Nebula org. For free! https://bit.ly/4g2pS9L

Security Highlight