Forum Discussion

sumanta_ghosh_1's avatar
sumanta_ghosh_1
Icon for Nimbostratus rankNimbostratus
Apr 15, 2016

Getting error on i call script

Hi Experts

 

Getting error while running the below line in bigip_script.conf

 

set dev_objs [tmsh::get_status /ltm node /Common/AFG-98-XCAP]

 

Full error in log:-

 

Apr 15 07:50:13 xxxx-LB02 err scriptd[11888]: 014f0013:3: Script (/Common/down_xcap-98) generated this Tcl error: (script did not successfully complete: (field not present: "status" while executing "tmsh::get_field_value $dev_obj "status"" ("foreach" body line 2) invoked from within "foreach dev_obj $dev_objs { set STATUS_1 [tmsh::get_field_value $dev_obj "status"] }" line:4))

 

2 Replies

  • This is the entire code for checking one node status:- This script is triggered via alertd and will only trigger when a node is DOWN Node XCAP-98 status set dev_objs [tmsh::get_status /ltm node /Common/AFG-98-XCAP] foreach dev_obj $dev_objs { set STATUS_1 [tmsh::get_field_value $dev_obj "status"] }
  • Hi Experts What is the difference between "status" and "status.availability-state"? Where do we get all the variables and their values used on the F5?