Forum Discussion

Zahid_Haseeb's avatar
Zahid_Haseeb
Moderator
9 years ago

Application script for a simple command

ENVIRONMENT

SFHA = InfoScale Enterprise 7.0

OS = RHEL 7.0

HA Nodes = 2

QUERY

I want to write a application script/application resource which can trigger below command.

 ip route add 10.95.8.146 via 192.168.2.1 dev eno33559296 src 192.168.2.210

6 Replies

  • Need more details of the requirement.  

    It looks like that you need to create an application resource which will add the static route while ONLINE however, It is not clear why you want to use application resource.

    Assuming above statement,  do you need to remove this static route during application resource offline?

    You can definitely use application resource for this but we will have to use some mechanism to monitor the resource.

    Alternately, You can think of using postonline trigger as well if you just want to add the route. (Assuming here that you do not need to remove the route)

    Hope this helps.

    • Zahid_Haseeb's avatar
      Zahid_Haseeb
      Moderator

      Assuming above statement,  do you need to remove this static route during application resource offline?

      NO. no need the functionality to remove the route when offline

      (Assuming here that you do not need to remove the route)

      I dont want to remove this route but while switchover/failover the route will be removed auto.

      Please share some help on postonline trigger