Reinstall Hardware sentry


 
Thread Tools Search this Thread
Operating Systems Solaris Reinstall Hardware sentry
# 1  
Old 09-26-2012
Reinstall Hardware sentry

Hi Guys,

I need to reinstall hardware sentry for BMC patrol manager in solariws server.
I am trying to find the patrol version. please help me with the version number and reinstallation as i am new.

Uname -a:SunOS 5.10 Generic_142901-06 i86pc i386 i86pc



Thanks in advance!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reinstall sudo apt-get?

I am using ubuntu11.10 and i was trying to do the update to 12.04, i found a post suggesting to use to solve part of the problem: sudo apt-get remove ubuntu-keyring sudo apt-get --yes -q --allow-unauthenticated install ubuntu-keyringI ran the first command but not able to run the second or any... (0 Replies)
Discussion started by: CS_NA
0 Replies

2. AIX

Uninstall and reinstall AIX

Hi All, Currently I have a machine running on AIX5.3 (standalone). I plan to remove this AIX5.3 and install with new AIX6.1. This is a testing server so no backup are required. I just want to know, what is the best way to do this. For your information, I'm still new in AIX, so i dont have much... (1 Reply)
Discussion started by: aremint
1 Replies

3. Ubuntu

reinstall identical system?

I have my Ubuntu system nicely tailored to my needs, with specific software installed, and other things removed. I'd like to build a new PC, and have the identical software configuration on it. Is there some easy way to export the list of installed software to a file? Then have the new machine... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies

4. UNIX for Dummies Questions & Answers

Reinstall Solaris?

Hey! I'm new here, and excuse my complete lack of knowledge as a total newbie. I've recently started a new job managing a nightclub, and we have 3 sun terminals installed that customers are able to use in the lounge area. However, we can't seem to log onto them as the old tech guy left on bad... (5 Replies)
Discussion started by: snogthefrog
5 Replies

5. UNIX for Dummies Questions & Answers

Reinstall recommendations?

I'm currently running 32-bit Xubuntu 8.10 and I'm thinking of changing over to 64-bit Ubuntu 9.04. Any recommendations on how to make this go more smoothly? -----Post Update----- Can I shuffle around the partitions and install it as a second OS? Is there a good way to do that? (2 Replies)
Discussion started by: CRGreathouse
2 Replies

6. Windows & DOS: Issues & Discussions

Reinstall

As a pet project we are trying to install Windows 95 on an OLD Laptop PC (Toshiba Satallite 110CS) Well Our first Debacle was Dos Died due to us Formatting the system (Well duh) How ever we have failed to beable to Get a Base install of dos to start Installing 95. We have No CD-ROM (Quaint we... (3 Replies)
Discussion started by: Alexodia
3 Replies

7. Solaris

Logcheck (Port Sentry) problem

Greetings! Logcheck is installed on a Solaris sparc machine running Solaris 10. It (Logcheck) is being driven by a scheduled cron job and it works as it is supposed to. However, I am having a problem getting it to work whenever I try to add a rule to the /usr/local/etc/logcheck.violations... (0 Replies)
Discussion started by: RobSand
0 Replies

8. Solaris

Reinstall root partition

I had Solaris 8 installed on a Ultra 10 machine but during a shutdown the root partition got corrupted. I have 3 other partitions on the drive (var, swap, home). Is there a way to reinstall the root partition without effecting the other partitions? Also, when I run format from single user mode I... (4 Replies)
Discussion started by: jbestor
4 Replies

9. UNIX for Dummies Questions & Answers

bash reinstall

Is there any way how to reinstall bash without reinstaling the whole unix? Thanks (1 Reply)
Discussion started by: Foxgard
1 Replies

10. Linux

reinstall Linux

I am trying to reinstall Linux on a machine which already has Linux. It's an Intel Machine (DELL). I want to boot it from the CD but for some reason, I don't get the F2 or F12 for setup. It directly takes me to the welcome thing. What do I need to do (1 Reply)
Discussion started by: bandaru
1 Replies
Login or Register to Ask a Question
Object::Destroyer(3pm)					User Contributed Perl Documentation				    Object::Destroyer(3pm)

NAME
Object::Destroyer - Make objects with circular references DESTROY normally SYNOPSIS
use Object::Destroyer; ## Use a standalone destroyer to release something ## when it falls out of scope BLOCK: { my $tree = HTML::TreeBuilder->new_from_file('somefile.html'); my $sentry = Object::Destroyer->new( $tree, 'delete' ); ## Here you can safely die, return, call last BLOCK or next BLOCK. ## The tree will be deleted automatically } ## Use it to break circular references { my $var; $var = $var; my $sentry = Object::Destroyer->new( sub {undef $var} ); ## No more memory leaks! ## $var will be released when $sentry leaves the block } ## Destroyer can be used as a nearly transparent wrapper ## that will pass on method calls normally. { my $Mess = Big::Custy::Mess->new; print $Mess->hello; } package Big::Crusty::Mess; sub new { my $self = bless {}, shift; $self->populate; return Object::Destroyer->new( $self, 'release' ); } sub hello { "Hello World!" } sub release { ...actual code to clean-up the memory... } DESCRIPTION
One of the biggest problem with working with large, nested object trees is implementing a way for a child node to see its parent. The easiest way to do this is to add a reference to the child back to its parent. This results in a "circular" reference, where A refers to B refers to A. Unfortunately, the garbage collector perl uses during runtime is not capable of knowing whether or not something ELSE is referring to these circular references. In practical terms, this means that object trees in lexically scoped variable ( e.g. "my $Object = Tree->new" ) will not be cleaned up when they fall out of scope, like normal variables. This results in a memory leak for the life of the process, which is a bad thing when using mod_perl or other processes that live for a long time. Object::Destroyer allows for the creation of "Destroy" handles. The handle is "attached" to the circular relationship, but is not a part of it. When the destroy handle falls out of scope, it will be cleaned up correctly, and while being cleaned up, it will also force the data structure it is attached to to be destroyed as well. Object::Destroyer can call a specified release method on an object (or method DESTROY by default). Alternatively, it can execute an arbitrary user code passed to constructor as a code reference. Use as a Standalone Handle The simplest way to use the class is to create a standalone destroyer, preferably in the same lexical content. ( i.e. immediately after creating the object to be destroyed) sub plagiarise { # Parse in a large nested document my $filename = shift; my $document = My::XML::Tree->open($filename); # Create the Object::Destroyer to clean it up as needed my $sentry = Object::Destroyer->new( $document, 'release' ); # Continue with the Document as normal if ($document->author == $me) { # Normally this would have leaked the document return new Error("You already own the Document"); } $document->change_author($me); $document->save; # We don't have to $Document->DESTROY here return 1; } When the $sentry falls out of scope at the end of the sub, it will force the cirularly linked $Document to be cleaned up at the same time, rather than being forced to manually call "$Document-<gt"release> at each and every location that the sub could possible return. Using the Object::Destroy object to force garbage collection to work properly allows you to neatly sidestep the inadequecies of the perl garbage collector and work the way you normally would, even with big objects. Use to clean-up data structures If a data structure with circular refereces has no method to release memory, you can create an "Object::Destroyer" object that will do the job. Pass a code reference (most probably created by an anonymous subrotine block) to the constructor of the sentry object, and this code will be called upon leaving the scope. { $params{other} = \%other_params; $other_params{params} = \%params; my $sentry = Object::Destroyer->new( sub {undef $params{other}} ); ## ## From now on, memory of %params will be ## safely released when block is exited. ## ... code with return, next or last ... } Use as a Transparent Wrapper For situations where a class is always going to produce circular references, you may wish to build this improved clean up directly into the class itself, and with a few exceptions everything will just work the same. Take the following example class package My::Tree; use strict; use Object::Destroyer; sub new { my $self = bless {}, shift; $self->init; ## assume that circular references are made ## Return the Object::Destroyer, with ourself inside it my $wrapper = Object::Destroyer->new( $self, 'release' ); return $wrapper; } sub release { my $self = shift; foreach (values %$self) { $_->DESTROY if ref $_ eq 'My::Tree::Node'; } %$self = (); } We might use the class in something like this sub process_file { # Create a new tree my $tree = My::Tree->new( source => shift ); # Process the Tree if ($tree->comments) { $tree->remove_comments or return; } else { return 1; # Nothing to do } my $filename = $tree->param('target') or return; $tree->write($filename) or return; return 1; } We were able to work with the data, and at no point did we know that we were working with a Object::Destroyer object, rather than the My::Tree object itself. Resource Usage To implement the transparency, there is a slight CPU penalty when a method is called on the wrapper to allow it to pass the method through to the encased object correctly, and without appearing in the caller() information. Once the method is called on the underlying object, you can make further method calls with no penalty and access the internals of the object normally. Problems with Wrappers and ref or UNIVERSAL::isa Although it may ACT exactly like what's inside it, is isn't really it. Calling "ref $wrapper" or "blessed $wrapper" will return 'Object::Destroyer', and not the class of the object inside it. Likewise, calling "UNIVERSAL::isa( $wrapper, 'My::Tree' )" or "UNIVERSAL::can( $wrapper, 'param' )" directly as functions will also not work. The two alternatives to this are to either use "$Wrapper->isa" or "$wrapper->can", which will be caught and treated normally, or simple don't use a wrapper and just use the standalone cleaners. METHODS
new my $sentry = Object::Destroyer->new( $object ); my $sentry = Object::Destroyer->new( $object, 'method_name' ); my $sentry = Object::Destroyer->new( $code_reference ); The "new" constructor takes as arguments either a single blessed object with an optional name of the method to be called, or a refernce to code to be executed. If the method name is not specified, the "DESTROY" method is assumed. The constructor will die if the object passed to it does not have the specified method. DESTROY $sentry->DESTROY; undef $sentry; If you wish, you may explicitly DESTROY the Destroyer at any time you wish. This will also DESTROY the encased object at the same. This can allow for legacy cases relating to Wrappers, where a user expects to have to manually DESTROY an object even though it is not needed. The DESTROY call will be accepted and dealt with as it is called on the encased object. dismiss $sentry->dismiss; If you have changed your mind and you don't want Destroyer object to do its job, dismiss it. You may continue to use it as a wrapper, though. SEE ALSO
Another option for dealing with circular references are "weak references" (stable since Perl 5.8.0, see Scalar::Util). See also GTop::Mem and Devel::Monitor for monitoring memory leaks. The latter module contains a discussion on object desing with weak references. For lexically scoped resource management, see also Scope::Guard, Sub::ScopeFinalizer and Hook::Scope. SUPPORT
Bugs should be reported via the CPAN bug tracker at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Object-Destroyer> For other issues, or commercial enhancement or support, contact the Adam Kennedy. AUTHORS
Adam Kennedy <adamk@cpan.org> and Igor Gariev <gariev@hotmail.com> COPYRIGHT
Copyright 2004 - 2006 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.10.0 2006-12-11 Object::Destroyer(3pm)