Server Management - Systems Insight Manager
1833832 Members
2029 Online
110063 Solutions
New Discussion

What Variables are Used in Pager/SMS Formatted E-Mail

 
Tim McGue
Regular Advisor

What Variables are Used in Pager/SMS Formatted E-Mail

I am working with custom commands and the associated variables. I would like to use the same variables that are used in the e-mail selection "pager/sms". Does anyone know what variables those are?

Thanks,
Tim
5 REPLIES 5
Rob Buxton
Honored Contributor

Re: What Variables are Used in Pager/SMS Formatted E-Mail

The Technical Reference for CIM 7 is still probably a good bet, it contains a full list of all the Variables used and probably hasn't changed too much.

See:
http://h18000.www1.hp.com/products/servers/management/cim7-documentation.html
Jadrice Toussaint
Honored Contributor

Re: What Variables are Used in Pager/SMS Formatted E-Mail

Tim here is the list:

The following environment variables are passed to any application that is launched by setting up the Custom Tool:

NOTICELABEL. Type of notice; a small string that contains Discovered System, other HP Systems Insight Manager server level notices, or the type of trap that caused the notice.

NOTICESTATE. Internal value used by HP Systems Insight Manager indicating whether the notice is cleared.

NOTICEPLAINTEXT. Plain text description of the notice. Contains detailed information about the notice. (In Progress, Cleared, or Not Cleared)

NOTICERAWDATA. The raw data from the notice is passed as a string. This is a small pipe (|) delimited set of variables and might be useful for some simple parsing rules.

NOTICESEVERITYSTR. Verbose description of the notice severity. Can be one of Critical, Informational, Major, Minor, Unknown, Warning, and Normal.

NOTICESEVERITY. Integer value of the NOTICESEVERITYSTR. Can be one of:

1, Normal

2, Warning

3, Minor

4, Major

5, Critical

100, Informational


NOTICEQUERYNAME. Displays the list name based on how the notice was generated. This value can say one of the following:

This system or event meets the following search criteria: +QueryName;

This system or event now meets the following search criteria: +QueryName;

This system or event no longer meets the following search criteria: +QueryName;

DEVICENAME. Name of the system that caused the notice.

DEVICEIPXADDRESSCOUNT. Number of IPX addresses that are mapped to this system.

DEVICEIPADDRESSCOUNT. Number of IP addresses that are mapped to this system.

DEVICEIPADDRESS%d . Based on the count, %d is an integer that shows the actual IP address. For example:

IF, DEVICEIPADDRESSCOUNT = 2

Then, DEVICEIPADDRESS0 = 111.111.111.111

DEVICEIPADDRESS1 = 222.222.222.222

DEVICEIPXADDRESS%d. Based on the count, %d is an integer that references the actual IPX address.

DEVICEMACADDRESSCOUNT. Number of MAC addresses collected for the system. A Data Collection Task must be run before this information is available.

DEVICEMACADDRESS%d. Based on the MAC address count, %d is an integer that references the actual MAC address environment variable. For example:

IF, DEVICEMACADDRESSCOUNT = 2

Then, DEVICEMACADDRESS0=00:80:5F:7F:B0:81

DEVICEMACADDRESS1=00:80:C7:29:EF:B6

GENERICTRAPID. If this is an event-based list and originated from an SNMP trap, it is set to the SNMP Generic Trap ID of the trap received.

SPECIFICTRAPID. If this is an event-based list and originated from an SNMP trap, it is set to the SNMP Specific Trap ID of the trap received.

Path. This variable has the Path environment variable value from the context in which the service is running.

SystemRoot. This variable has the SystemRoot environment variable value from the context in which the service is running.

Windir. This variable has the windir environment variable value from the context in which the service is running.

COMPUTERNAME. This variable has the COMPUTERNAME environment variable value from the context in which the service is running.

Tim McGue
Regular Advisor

Re: What Variables are Used in Pager/SMS Formatted E-Mail

Thank you both for the replies. I have piped all of those variables out by running a test command and none of them appear to be the same contents as what is in a pager/sms formatted e-mail.

Do you know if there is a template the pager e-mail uses that is visible?

Tim
Jadrice Toussaint
Honored Contributor

Re: What Variables are Used in Pager/SMS Formatted E-Mail

Tim -

Your best bet? use a third party mail utility such as blat.exe or similar. put that in a batch file and pass it the ENV Variables. You cannot custominze what is sent via the integrated email utility of SIM
Jadrice Toussaint
Honored Contributor

Re: What Variables are Used in Pager/SMS Formatted E-Mail

Here is what I use but mine is an actual utility that is used to make a voice notification and speak the generated text.

below is my example of a batch file:

@echo off
SET ATTNSRV=BLAHBLAH
REM run attn passing the file as a param
c:\winnt\system32\attn.exe -a "communications" " %DEVICENAME% is in a %NOTICESEVERITYSTR% state. %NOTICELABEL%."



disregad the option, that is used by the attn.exe program