SRX

 View Only
last person joined: 3 days ago 

Ask questions and share experiences about the SRX Series.
  • 1.  Compile commands in a single script to extract monitoring (status) output

    Posted 10-25-2022 06:20
    Hi,

    1. I need to automate in a single script all the monitoring (status) command output that an administrator needs on a daily basis;
    e.g
    show chassis routing-engine | no-more
    show system processes extensive | no-more
    show interface terse | match "down" |  except "up" no-more
    show log messages | match error | last 100 | no-more

    Examples of the commands above and will be dumped to a txt file under /var/tmp/SRX-Status.txt

    2. And a single script to run the backup and will be dumpt to a txt file under /var/tmp/SRX-Backup

    show configuration | display set  | no-more

    Tia,
    LEANGF

    ------------------------------
    Leangf Leangf
    ------------------------------


  • 2.  RE: Compile commands in a single script to extract monitoring (status) output

    Posted 10-25-2022 06:51
    Check out the open source Oxidized project.

    https://github.com/ytti/oxidized

    This does a configuration backup and keeps it in a git repository and can run those status commands during every backup too.

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------