- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removal of shared memory items removal system
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
12-15-2003 06:30 AM
12-15-2003 06:30 AM
Removal of shared memory items removal system
ipcs -b |egrep "asms|mqm|wnp|splex|ora" |awk '{print $1, $2, $5}' | while read TYPE PROC USR
do
echo "ipcrm -$TYPE $PROC $USR"
ipcrm -$TYPE $PROC
done
HP RP8400 Servers
HP UX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 06:34 AM
12-15-2003 06:34 AM
Re: Removal of shared memory items removal system
Run :-
ipcs -b |egrep "asms|mqm|wnp|splex|ora" |awk '{print $1, $2, $5}'
and make sur your egep is not picking up a system process.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 06:36 AM
12-15-2003 06:36 AM
Re: Removal of shared memory items removal system
I would be real leary of scripting something like ipcrm.
I prefer to do that manually and double and triple-check what I am removing.
I would try going through the list and manually use ipcrm and see which segment causes you problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 07:30 AM
12-15-2003 07:30 AM
Re: Removal of shared memory items removal system
Further info on problem.
Another admin ran the script without the ipcrm bit and it only returned values that should be safe to remove. Removing them singly did not cause a crash.
Also keep in mind that we have two almost identical 8400s and its only happening on one of the servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 07:42 AM
12-15-2003 07:42 AM
Re: Removal of shared memory items removal system
Here is probably the #1 reason why you must be very careful with ipcs/ipcrm loops - quote from ipcs man page:
WARNINGS
ipcs produces only an approximate indication of actual system status because system processes are continually changing while ipcs is acquiring the requested information.
Do not rely on the exact field widths and spacing of the output, as these will vary depending on the system, the release of HP-UX, and the data to be displayed.
EndQuote
So it's entirely possible that things change between the ipcs & ipcrm sections of that script.
We use a perl script to do this with only one user at a time & we do not use the -b in case it may push data fields to wrap. So you might try the loop with just ipcs & not ipcs -b & try the script one user at a time - you may discover the "culprit" that way.
Rgds,
Jeff