- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Re: Custom Tools - Environment Variables
Server Management - Systems Insight Manager
1752815
Members
5980
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 08:22 AM
02-27-2009 08:22 AM
Custom Tools - Environment Variables
I am trying to setup a custom tool on my CMS (Linux), that will trigger when a critical event comes in, and run a shell script on the CMS, passing the event text.
I've gotten everything to work except for the environment variables. The SIM reference manual says that I can pass them as %%NOTICELABEL%%, etc. However, this just reads them in as %NOTICELABEL%, one set of '%' characters stripped and no actual content.
This is Linux, so it is a Bash script being called. Can I pass env. vars. in through Linux, or does it have to be DOS Batch?
Thanks for the help,
Tom
I've gotten everything to work except for the environment variables. The SIM reference manual says that I can pass them as %%NOTICELABEL%%, etc. However, this just reads them in as %NOTICELABEL%, one set of '%' characters stripped and no actual content.
This is Linux, so it is a Bash script being called. Can I pass env. vars. in through Linux, or does it have to be DOS Batch?
Thanks for the help,
Tom
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 07:07 PM
02-27-2009 07:07 PM
Re: Custom Tools - Environment Variables
I use perl scripts.
For those you just need a "use env;" statement and then the variables are like $NOTICELABEL.
Just wondering if you need the double %, have you tried just single % around the variable name?
For those you just need a "use env;" statement and then the variables are like $NOTICELABEL.
Just wondering if you need the double %, have you tried just single % around the variable name?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP