I have a unique requirement. We need to modify some of the alarm fields i.e.
1) Can we define what kind of values be there in custom field1 that is suppose if a alert comes node1 which is at A location so it should give locationA in customfield1 by default ?
2) Can we modify data types in nimsoft as it is causing problem for alarm field mapping in sngtw ?
Thanks and Regards,
1) You can modify the custom fields with nas PP and nas AO profiles usually. You can also do it manually from consoles, through nas-callbacks etc. Have a look at http://forum.nimsoft.com/t5/CA-Nimsoft-NMS-Tutorials/Basic-Alarm-manipulation-using-NAS-LUA-Scripts/ba-p/22417
2) I guess you're talking about the structure inside the alarm PDS. You can't affect that as far as I know.. Wouldn't go there myself in any case . Not familiar with the sngtw probe though..
Thanks for your reply.
As i have integrated with service now and to pass the value to servicenow ,if i do it manually then i need to dedicatedly assign a person to update the field., assuming update soap action will update this custom field.
only one of the options was manually though, which was through consoles. all the other methods are automagick
Using the alarm enrichment you may be able to set the fields you need the info would have to be stored in a db somewhere.
I went on alarm_enrichment probe pdf which says that any change can be only using raw configure probe on nas probe.
When i right click on any probe i couldn't find raw configure as an option.
Can you guide me how do i see raw configure on any probe ?
Hold down Left CTRL key before rightclicking on the probe.... you'll then see RawConfigure instead of Configure
I went through the article provided by you.
The problem is i don't have tdumper.lua script.
Can you provide me with the script so i can try that solution ?
The tdump() function was provided in that article. If you want it in a file named tdumper.lua, you should be able to save it there.
I was going through the article and then i wrote the script in nas as suggested and run and hit to a problem. The problem is using this command a=alarm.get"abcd(NNMID)" only passes NNMID, i want to source or target. I am trying to find the alerts using source and then add the custom field as suggested. The issue is i need to add NNMID everytime manual to change and then add custom field accordingly. There are many locations possible.
I also try to read the table for newbies script, in that if i dump tdump(variable) in the tdeumper script. It is giving an error stating attempt to call global tdump. Can you help me with that.
Instead of the alarm.get() function, use the alarm.list() function. Then you can specify a different field other than nimid.
The error for attempt to call global tdump means that you have not defined the tdump() function before trying to call it.
Also suggest checking out nas guide, it has appending detailing all (well at least most) nas functions. Here's an excerpt from it to help with Keith's good suggestion:
alarm.list ( [Field, Value [, Value…]] )
Returns an array of table elements containing alarm data. Will, if used with the field and value(s) parameters, filter the result set according to the user criteria. Use the column name for your field and one or more match strings. The % is used as the wildcard character. E.g alarm.list ("hostname","%xp%") returns alarms for all hostnames with ’xp’ in them. These records are extracted from the NAS_ALARMS table.
You might also use alarm.query
Thanks for the reply. That was a big help
Thanks and regards,