Forum Discussion

luyenntk50db's avatar
luyenntk50db
Icon for Nimbostratus rankNimbostratus
Jul 01, 2019

schedule run command "tmsh show ltm virtual-address"

I want to get information connections for one Virtual-server at interval 30 minute one time. In graph view just total active connections for all virtual server (ltm). And I think to schedule run command "tmsh show ltm virtual-address" on interval times.

Pls guide me to run schedule scripts and export to file.

 

3 Replies

  • You can use a periodic iCall. One example

    https://devcentral.f5.com/s/articles/periodic-icall-script-to-auto-generate-nodeip-to-nodename-datagroup-969

    Using anacron is another way

    ​https://support.f5.com/csp/article/K33730915

    KR,

    Dario.

    • rob_carr's avatar
      rob_carr
      Icon for Cirrostratus rankCirrostratus

      anacron is only used to run events scheduled for daily and longer intervals (e.g. weekly, monthly, yearly). cron is still used to run events that happen hourly or more frequently.

    • luyenntk50db's avatar
      luyenntk50db
      Icon for Nimbostratus rankNimbostratus

      Tks for Dario and rob_carr.

      But I have compledte editor with crob as below:

      #mkdir /tmp/connection

      # crontab -l

      # cron tab for root

      1-59/30 * * * * /usr/bin/diskmonitor

      05 * * * * tmsh show ltm virtual-address IP_address /tmp/connection/connection.log

       

      I don't see file connection.log in tmp/connection after 5 minutes.

       

      Pls guide me.