HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to alert when new packages/nodes added
Operating System - HP-UX
1832214
Members
2321
Online
110041
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
Forums
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
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
05-08-2009 09:39 AM
05-08-2009 09:39 AM
Script to alert when new packages/nodes added
I need to create a script that will monitor the cluster and alert whenever a new node or package has been added. I was thinking along the lines of having a baseline file taken from cmviewcl and then doing a compare all the time. When it finds something new, I am alerted and the new baseline file is created. I just wanted to put this out there in case there is a much easier way?
Thanks!
Thanks!
whatever
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2009 09:53 AM
05-08-2009 09:53 AM
Re: Script to alert when new packages/nodes added
The same would be my approach as well but why ? Why and how a node or a package gets added to the cluster, without the admin (assuming it is you) getting notified about it ? Addition of a node or a package for that matter, requires a re-compilation of cluster binaries, i.e., cmapplyconf, hence takes the cluster down and back up again. Considering serceguard clusters are 99% of the time are deployed in production due to cost factors and to disrupt production in any enterprise environment, you have satisfy umpteen different requirements and get approvals, how in the world can someone easily add a node or a package without notifying the admins such that you need to run a scrip to check if this happened or not. Just curious.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2009 10:05 AM
05-08-2009 10:05 AM
Re: Script to alert when new packages/nodes added
Very large site and quite a few admins. I am setting up a monitoring center to monitor this type of activity as well as many others. It would be much more reliable than relying on humans to edit files when they remember. Automate as much as possible as humans forget!
whatever
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2009 10:15 AM
05-08-2009 10:15 AM
Re: Script to alert when new packages/nodes added
Hi
You can do something like that:
To create an "example file" as an output of
cmviewcl -l node | awk 'NR>2 {print $1}'
cmviewcl -l package | awk 'NR>2 {print $1}'
and to add into daily cron comparision of the output.
I have something similar for ioscan,lvmtab and bdf. Sometimes this may help.
HTH
You can do something like that:
To create an "example file" as an output of
cmviewcl -l node | awk 'NR>2 {print $1}'
cmviewcl -l package | awk 'NR>2 {print $1}'
and to add into daily cron comparision of the output.
I have something similar for ioscan,lvmtab and bdf. Sometimes this may help.
HTH
Entities are not to be multiplied beyond necessity - RTFM
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP