HP

HP Systems Insight Manager Technical Reference Guide

English
  Tools that Extend Management  |  Custom Commands  |  Environment Variables for Custom Commands   

Environment Variables for Custom Commands

»Table of Contents
»Index
»Notices
»Introduction
»Product Overview
»Getting Started
»Discovery and Identification
»Users and Authorizations
»Networking and Security
»Monitoring Systems, Clusters, and Events
»Storage Integration
»Managing with Tasks
»Tools that Extend Management
»Cluster Monitor
»Command Line Tools
»Creating New Command Line Tools
»Custom Commands
»Creating a New Custom Command
»Managing Custom Commands
»Editing a Custom Command
Environment Variables for Custom Commands
»New Web Launch Tool
»Configuring DMI Access
»Configuring SNMP Access
»Device Ping
»Disk Thresholds
»License Manager
»Management Processor Tools
»Managing MIBs
»Installing OpenSSH
»PMP Tools
»Removing and Restoring Tools
»Replicate Agent Settings
»RPM Package Manager
»Server Migration Pack
»System Management Homepage
»System Page
»Version Control
»Virtual Machine Management Pack
»WBEM Based Tools
»Available MSA Tools
»Partner Applications
»Reporting
»Administering Systems and Events
»Troubleshooting
»Reference Information
»Printable version
»Glossary
»Using Help
» Related Procedures
» Related Topic

If your user-defined variables have the same names as the HP Systems Insight Manager (HP SIM) environment variables, the HP SIM environment variables override the user-defined variables.

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

NOTICESTATE. Internal value used by HP SIM, indicating whether the notice is cleared

NOTICEPLAINTEXT. Plain text description of the notice that 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 that can be one of Critical, Informational, Major, Minor, Unknown, Warning, and Normal

NOTICESEVERITY. Integer value of the NOTICESEVERITYSTR that can be one of:

  • 0, Unknown

  • 1, Normal

  • 2, Warning

  • 3, Minor

  • 4, Major

  • 5, Critical

  • 100, Informational

NOTICEQUERYNAME. Displays the collection 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. Set to the SNMP Generic Trap ID of the trap received if this is an event-based list and originated from an SNMP trap

SPECIFICTRAPID. Set to the SNMP Specific Trap ID of the trap received if this is an event-based list and originated from an SNMP trap

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

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

Windir. Has the Windir environment variable value from the context in which the service is running

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

MPIP. This environment variable returns the IPaddress of the associated management processor.

MPNAME. This environment variable returns the name of the associated management processor.

RELATEDDEVICECOUNT. This environment variable returns the count of how many associated devices are there.

RELATEDDEVICENAME%d. This environment variable returns the name of the associated device where %d is the iteration number, for example:

IF, RELATEDDEVICECOUNT = 2

Then, RELATEDDEVICENAME0=DeviceName0

RELATEDDEVICENAME1=DeviceName1

RELATEDDEVICEIP%d. This environment variable returns the IPaddress of the associated device where %d is the iteration number, for example:

IF, RELATEDDEVICECOUNT = 2

Then, RELATEDDEVICEIP0=111.111.111.111

RELATEDDEVICEIP1=222.222.222.222

RELATIONSHIP%d. This environment variable returns the relationship string with the associated device and %d is the iteration number.

IF, RELATEDDEVICECOUNT = 2

Then, RELATIONSHIP0=ServerToEnclosure

RELATIONSHIP1=VMGuestToVMHost

Related Procedures

» Custom Commands - Managing Custom Commands
» Custom Commands - Creating a New Custom Command

Related Topic

» Tools that Extend Management - Custom Commands