Forum Discussion

Wil_Schultz_101's avatar
Icon for Nimbostratus rankNimbostratus
Feb 13, 2012

How can I print the contents of a data group?

I'd like to use a data group to hold a string variable for my maintenance page, and then write an internal script that will go and change this data group whenever we do maintenance.



So I've got a string type data group with the name "maintenance_time", inside there's a string "time" with a value of "1:00am".




My maintenance rule us using HTTP::respond to print some nice html, in the content I'd like to insert the time using the $maintenace_time data group.




2 Replies

  • Of course I fiddle with it for an hour without success, post here and figure it out right away.

     set mytime [class lookup time maintenance_time]
  • Isn't that the way it usually works? :)



    Yes, class lookup will work. Or more explicitly, class match -value < item > equals < class >