- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Server Management (Insight Manager 7)
- >
- How to pass variables to a batch file from CIM 7.x
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО01-10-2003 09:56 AM
тАО01-10-2003 09:56 AM
How to pass variables to a batch file from CIM 7.x
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2003 02:54 PM
тАО01-14-2003 02:54 PM
Re: How to pass variables to a batch file from CIM 7.x
Assuming that is the case, then for every SNMP Trap that comes in you should get the TRAPID fields filled in. However, those will just be trap numbers and probably aren't what you want.
Are you saying you'd like to have the raw binary trap data? If so, then this isn't possible via application launch.
If you are saying you'd just like all the information IM7 has on the trap, try using NOTICERAWDATA. NOTICEPLAINTEXT might also be helpful to you.
Again - all the named Environment Variables listed in the help are automatically passed to all application launch executions (although App Launch configured against a device query won't have the notice ones filled in of course.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2003 09:37 AM
тАО01-15-2003 09:37 AM
Re: How to pass variables to a batch file from CIM 7.x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 10:20 AM
тАО01-20-2003 10:20 AM
Re: How to pass variables to a batch file from CIM 7.x
Could you enlighten me on this somewhat? I have a notification task (batch file) that is to be kicked off on critical events received that should display (echo) all those variables, but it does not seem to be happening. My goal is to create an SNMP trap (from a command line) to another (NNM) system.
Would you help?
Thanks!
Garth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 10:28 AM
тАО01-20-2003 10:28 AM
Re: How to pass variables to a batch file from CIM 7.x
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 11:07 PM
тАО01-20-2003 11:07 PM
Re: How to pass variables to a batch file from CIM 7.x
But, assuming you have it setup against an Event Query - how are you testing it? If you send the Test Trap (from the agent Control Panel app) you should be able to see all the EVs passed on an app launch. Just launch a script that does a 'set > \evs.txt' and take a look at what is filled into \evs.txt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2003 10:09 AM
тАО01-22-2003 10:09 AM
Re: How to pass variables to a batch file from CIM 7.x
Just chaneg the set outfile to a name and directory that works for you.
g
:start
@echo off
set outfile=c:\temp\eventdata.txt
echo ---------------------------------------------------------------------------- >%outfile%
echo INSIGHT MANAGER EVENT DATA TO ENVIRONMENT VARIABLE TEST >>%outfile%
echo ---------------------------------------------------------------------------- >>%outfile%
echo Type of Notice: %NOTICELABEL% >>%outfile%
echo State (cleared or not): %NOTICESTATE% >>%outfile%
rem (used internally by Insight Manager)
echo Description: %NOTICEPLAINTEXT% >>%outfile%
rem (plain text description of the notice)
echo Severity (Verbose): %NOTICESEVERITYSTR%, Severity Code: %NOTICESEVERITY% >>%outfile%
rem (100=Informational, 5=critical, 4=Major, 3=Minor, 2=Warning, 1=Normal)
echo Originating Device: %DEVICENAME%, IP Address: %DEVICEIPADDRESS0% >>%outfile%
rem (device and its' IP address, associated with this event)
echo ---------------------------------------------------------------------------- >>%outfile%
echo Generic Trap ID: %GENERICTRAPID% >>%outfile%
echo Specific Trap ID: %SPECIFICTRAPID% >>%outfile%
echo ---------------------------------------------------------------------------- >>%outfile%
echo Raw Data: %NOTICERAWDATA% >>%outfile%
rem (additional information that MIGHT be useful)
echo ---------------------------------------------------------------------------- >>%outfile%
:end