%variables in active script action issue

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



%variables in active script action issueExpand / Collapse
Author
Message
Posted 11/19/2008 6:29:33 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 2 days ago @ 12:18:58 PM
Posts: 28, Visits: 219
Hi all, i'm trying to reference some % variables in an active script action, but I get the following error:

Error:0 'Unterminated string constant'               strTrapMajor =

The code I'm trying to use is:

strTrapMajor = "%PassiveMonitor.Payload.TrapMajor"

Anyone had a similar issue? How can I get this variable into the script? Thanks.

Post #48839
Posted 11/20/2008 6:40:48 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 2 days ago @ 12:18:58 PM
Posts: 28, Visits: 219
Turns out alot of the % variables don't seem to work in the script. I've got around this by using the %passivemonitor.loggedtext to get me the info I need. Custom attributes don't seem to work either , ie %device.attribute.attribname.
Post #48897
Posted 11/20/2008 12:40:39 PM


Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: WhatsUp Gold Expert
Last Login: Today @ 1:49:13 PM
Posts: 1,513, Visits: 5,018
Yes, that's a known issue, basically wug will not "sanitise" the strings so if they contain something that breaks the script syntax the whole script fails...

Reading, writing and arithmetic - If you need to choose, please take option 1.
Post #48912
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, Hugh Garber, George Dailey, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 8:45pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 10 queries. Compression Enabled.