- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Custom Command execution Problem
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
Forums
Discussions
Discussions
Discussions
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
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-28-2004 08:59 AM
01-28-2004 08:59 AM
Custom Command execution Problem
The Custom Command has:
Command = d:\perl\bin\perl
Parameters = d:\Perl_Scripts\IM_Major_Event.pl
This script should open a file, write the contents of the $NOTICEPLAINTEXT to it, close it and then use blat to e-mail it.
I generate a generic trap and the event appears in HPSIM, a simple e-mail task works. The custom task has fired according to the task schedule but I get no e-mail.
From the mx.log file I can see:
NZDT,CONFIG,SUCCESS,START,TASK,44012_aegis.wcc.govt.nz,SUMMARY,wcc\buxton2r,0,158728,Rob Buxton
@!@,2004-01-29 10:36:09 NZDT,JOB,PROGRESS,START,JOB,44012_aegis.wcc.govt.nz,VERBOSE,wcc\buxton2r,,,
Running Tool:IM_perl_Major_event
Expanded Command Line:d:\perl\bin\perl d:\Perl_Scripts\IM_Major_Event.pl
Targets:
aegis.wcc.govt.nz
Run As User UID:wcc\buxton2r
@!@,2004-01-29 10:36:09 NZDT,CONFIG,SUCCESS,MODIFY,TASK,Ping Hardware Status Polling,SUMMARY,wcc\buxton2r,0,158729,Rob Buxton
@!@,2004-01-29 10:36:09 NZDT,CONFIG,SUCCESS,START,TASK,44013_aegis.wcc.govt.nz,SUMMARY,wcc\buxton2r,0,158729,Rob Buxton
@!@,2004-01-29 10:36:09 NZDT,JOB,PROGRESS,START,JOB,44012_aegis.wcc.govt.nz:aegis.wcc.govt.nz,DETAIL,wcc\buxton2r,,,
Running Tool:IM_perl_Major_event
@!@,2004-01-29 10:36:09 NZDT,JOB,FAILURE,DONE,JOB,44012_aegis.wcc.govt.nz:aegis.wcc.govt.nz,ERROR,wcc\buxton2r,,,
Running Tool:IM_perl_Major_event
Any help or hints appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 09:29 AM
01-28-2004 09:29 AM
Re: Custom Command execution Problem
Maybe you can attach as a file...the formatting is getting confused.
I'm not sure from what you're reporting what portion you suspect it is failing at, firing the task, sucessfully loading Perl and the script or executing the email.
If you echo some log info into a file at the beginning of the perl script, does it show up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:02 AM
01-28-2004 10:02 AM
Re: Custom Command execution Problem
The task is failing somewhere in the triggering of the custom command if that makes sense.
HPSIM reports it as having successfully completed.
I'm not deleting the temporary file in the perl script so I should be able to find that. Alas, I can't which leads me to suspect the perl script itself wasn't run.
The only evidence I can find is in the mx.log file for HPSIM.
There is now just a single entry:
NZDT,CONFIG,SUCCESS,START,TASK,44119_aegis.wcc.govt.nz,SUMMARY,WCC\WCCAdmin,0,159160,
@!@,2004-01-29 11:53:29 NZDT,CONFIG,SUCCESS,MODIFY,TASK,IM Major Event - perl test,SUMMARY,WCC\WCCAdmin,0,159160,
Following another thread here on SSH, I hadn't set that up as to include me. And the task was running in my name, so I changed that to use the account HPSIM was set up in (wccadmin listed above).
I think the errors in the earlier log file may have been from not having myself in the SSH set up?
So, the command is being fired, but I just cannot find evidence it has done anything. If I run the perl script manually it works.
As I said earlier, I've done this using CIM 7, but just can't track where this is dying.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:47 AM
01-28-2004 10:47 AM
Re: Custom Command execution Problem
Looks as though it's the SSH securrity. I have done some initial testing and it is now firing.
I guess I now need to understand a bit more of what is required in order to set up SSH in order to get this to work for all users, or we just use the admin account that HPSIM was originally installed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 11:44 AM
01-28-2004 11:44 AM
Re: Custom Command execution Problem
If what I emailed you does the trick, post it here so others can benefit...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 08:49 AM
01-29-2004 08:49 AM
Re: Custom Command execution Problem
Once I've got an established pattern of cause and efect I'll post here as I believe the issues I'm encountering could well effect others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 09:36 AM
02-03-2004 09:36 AM
Re: Custom Command execution Problem
And, if like me, you typically use HPSIM under an account other than the account it was installed under, ensure that account is added into OpenSSH's passwd file.
I've no idea what got broken with OpenSSH, but I do know that it's difficult to trace, there's just a gap between the Event Notification saying it has run the Custom Command and nothing coming out of the Custom Command.
It looks as though simple e-mail etc. are run within the CMS Server, but Custom Commands are sent out and back in and run via OpenSSH.