Action_PageX.ebs

0 Likes
over 20 years ago
You can now pass parameters (by way of text substitution) to this action ks without the need to do any VB code changes.

Each parameter you want to substitute is surrounded by a set of ~ symbols to differentiate text from symbols ie ~MachineName~. If this symbol is located within the value text this string will be replaced by the name of the machine which generated the event. Not every value within the ks's is checked - the fields that are checked are listed below.

The symbol names are not case sensitive and multiple occurrences will be changed if found.

Available symbols include:


~MachineName~ The name of the machine where the ks that triggered this action was run
~JobID~ The job id of the ks that triggered this action
~Severity~ Severity associated with the event
~KSName ~ Name of the ks this action was called from
~ObjList~
~EventMsg~ Brief message from the event
~AgentMSG~ Long message from the event

NB the following 3 variables are supplied only after applying hotfix R340001

~EventID~ Event ID of the event that gave rise to this action
~RepositoryServer~ Name of the SQL server where the repository lives
~RepositoryName~ Name of the SQL database for the repository



Examples:
Cmd /c netiqcmd closeevent.vbs /server=~RepositoryServer~ /database=~RepositoryName~ /event=~EventID~

The action ks interprets the command and will then execute the command after substituting the valid fields.

i.e. cmd /c netiqcmd closeevent.vbs /server=NQSRVR /database=QDB /event=1081

This will close event 1081 which triggered this action.

Cmd /c netiqcmd createjob.vbs /server=~RepositoryServer~ /database=~RepositoryName~ /ksname=NT_TopCPUProcs /target=~MachineID~

The action ks interprets the command and will then execute the command after substituting the valid fields.

i.e. cmd /c netiqcmd closeevent.vbs /server=NQSRVR /database=QDB /ksname=NT_TopCPUProcs /target=SRVR1

This will create a new job on the originating machine that triggered the event.



 

 
NetIQ does not test or validate any software, code or other materials provided in, on or through NetIQ Cool Solutions (collectively, "Materials"), so please use caution when downloading or accessing any Materials from Cool Solutions and ensure that you have reasonable and current security, spyware and anti-virus measures in place on your computer and/or network prior to downloading. Additionally, do not use any Materials downloaded from Cool Solutions in any production environment without first testing the Materials to ensure they are compatible with your version of NetIQ software or any other hardware or software present in your network or environment. Cool Solutions is not a substitute for authorized NetIQ support and should not be used as such. NETIQ COOL SOLUTIONS AND ANY MATERIALS ARE PROVIDED ON AN AS-IS, AS-AVAILABLE BASIS WITHOUT ANY WARRANTY OF ANY KIND. By downloading this file, you are agreeing to these terms of use. To report a problem please contact: coolguys-netiq@netiq.com. Your use of Cool Solutions is governed by the Cool Solutions Terms and Conditions. https://www.netiq.com/communities/coolsolutions/terms-and-conditions/

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended