I have not used server variables before and am hoping to use one for my current project. However, I cannot get the example to work. I’m running
setservervariable "",PrintCount,PrintCount+1,0
and then
message servervariable("",PrintCount)
and I get “Runtime error in call( procedure.” Am I doing something wrong? I am definitely connected to the Panorama server, albeit over VPN as I’m working remotely.
I think you’re saying that you get this error when you use the servervariable( function. I think the problem may be that this function requires that the variable name be surrounded by quotes. So the code you actually need is:
message servervariable("","PrintCount")
Hopefully at some point you’ll be re-working your databases for Panorama X. When you do, you’ll need to rewrite the code that uses the setservervariable function to instead use the new adjustservervariable statement.
I think you’re saying that you get this error when you use the servervariable( function. I think the problem may be that this function requires that the variable name be surrounded by quotes.
That was it, thank you! I swear I read the documentation and noted the bit about quotes… sometimes you just can’t see the glaringly obvious.