10 More Discussions You Might Find Interesting
1. AIX
Hello,
I have checked the state of rmc on the HMC as below:
HMC1:~> lssyscfg -r lpar -m Server-xxx -F lpar_id,state,rmc_state,rmc_ipaddr,os_version,dlpar_mem_capable,dlpar_proc_capable,dlpar_io_capable --filter "lpar_ids=4"
4,Running,inactive,10.176.x.x,VIOS 2.2.6.51,0,0,0
HMC1:~> lssyscfg... (2 Replies)
Discussion started by: Phat
2 Replies
2. UNIX for Beginners Questions & Answers
I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error.
#! /bin/sh
errExit ()
{
errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies
3. AIX
Hey All,
I have running dual VIOS on a P9 systems, and just created a new LPAR profile. My objective is to create LPAR Client VFC adapters, and then DLPAR VFC Server adapters on the VIOS.
In the HMC v9 Enhanced GUI, I have DLPAR a VFC adapter to both VIOS, however, you can't specify the... (1 Reply)
Discussion started by: aixkidbee
1 Replies
4. AIX
I cannot find the post with the comment that DLPAR capability was not working with IVM.
The two commands that need to be run are (as root, padmin does not know this command):
VIOS: lsrsrc IBM.MngNode
CLIENTS: lsrsrc IBM.MCP
Examples:
# lsrsrc IBM.MngNode
Resource Persistent Attributes for... (2 Replies)
Discussion started by: MichaelFelt
2 Replies
5. UNIX for Advanced & Expert Users
Can anyone please let know difference between LPAR/DLPAR/WPAR.
and its purpose ??? (3 Replies)
Discussion started by: Pavithran
3 Replies
6. AIX
I am trying to generate a report to track dlpar operation performed on a MS and was wondering if anyone has done this before.
I can get history from HMC using lssvcevents , but this does not give me details as to what quantity was added or removed .
Any thoughts ?
Thanks (3 Replies)
Discussion started by: mk8570
3 Replies
7. UNIX for Dummies Questions & Answers
im kinda new to shell scripting so i need some help
i try to run this script and get the error code
> 5 ")syntax error: operand expected (error token is "
the code for the script is
#!/bin/sh
#
# script to see if the given value is correct
#
# Define errors
ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies
8. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
9. UNIX for Dummies Questions & Answers
Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message.
Error: Internal system error: Unable to initialize standard output file
I'm guessing more info might be needed, so let me know.
Thanks (2 Replies)
Discussion started by: firkus
2 Replies
10. AIX
Hi,
Anybody had a problem trying to rmdev a scsi device and get the following error :
root@:/> rmdev -dlscsi3 -R
Method error (/usr/lib/methods/ucfgncr_scsi):
0514-062 Cannot perform the requested function
because the specified device is busy.
I can't... (1 Reply)
Discussion started by: stumpy
1 Replies
Wx::NewClass(3pm) User Contributed Perl Documentation Wx::NewClass(3pm)
NAME
NewClass - adding a new class to wxPerl
CHECKLIST
o Are there constants or events that need to be wrapped?
see "CONSTANTS" and "EVENTS".
o Is the class is derived from wxObject, from wxEvtHandler or from another class?
see "CHOOSING A TYPEMAP".
o Are class instances destroyed by wxWidgets or should they be garbage collected like normal Perl objects?
see "DESTRUCTORS AND THREADS".
o Does the class have overloaded methods?
see "OVERLOADING".
o Does the class have virtual methods that should be overridable from Perl?
see "VIRTUAL METHODS".
SKELETON
Add a new file XS/NewClass.xsp and update the MANIFEST. Choose a relevant .xs file in the top level directory (eg. Controls.xs) and add
this line:
INCLUDE_COMMAND: $^X -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/NewClass.xsp
A skeleton for NewClass.xsp:
%module{Wx};
#include <wx/newclass.h> // use the relevant wxWidgets header(s)
%name{Wx::NewClass} class wxNewClass : public wxSomeBaseClass
{
# constructors see the CONSTRUCTORS section
wxNewClass( wxWindow* some_window, const wxString& str );
# destructors
~wxNewClass();
# methods
wxString GetString() const;
void SetString( const wxString& str );
};
Add the typemap definition to typemap.tmpl. See "CHOOSING A TYPEMAP".
If adding a class related to one of the wxPerl submodules ("Wx::RichText", "Wx::Html", ...) add the .xsp file to the relevant subdirectory
and modify the .xs and typemap files in that subdirectory.
CHOOSING A TYPEMAP
There are five typemaps that should work for most wxWidgets objects:
o "O_NON_WXOBJECT"
for all classes that do not derive from "wxObject" AND do not need to be garbage collected.
o "O_NON_WXOBJECT_THR"
for all classes that do not derive from "wxObject" AND need to be garbage collected (see "DESTRUCTORS AND THREADS").
o "O_WXOBJECT"
for all classes that derive from "wxObject" AND do not need to be garbage collected.
o "O_WXOBJECT_THR"
for all classes derived from "wxObject" AND need to be garbage collected (see "DESTRUCTORS AND THREADS").
o "O_WXEVTHANDLER"
for all classes that derive from "wxEvtHandler". See also "CONSTRUCTORS".
CONSTRUCTORS
For "O_WXEVTHANDLER" typemaps, there is some additional code that needs to be added to the constructor:
wxNewClass( wxWindow* some_window, const wxString& str )
%code{% RETVAL = new wxNewClass( some_window, str );
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
%};
DESTRUCTORS AND THREADS
For many classes not derived from "wxEvtHandler" you need to add a destructor to free the C++ object when the Perl object is garbage
collected. At the XS++ level this means adding
~wxNewClass();
to the class definition, but there is a catch: the Perl threading model.
Without going into details, this is needed for Perl threads compatibility:
o Use the correct typemap
choose either "O_NON_WXOBJECT_THR" or "O_WXOBJECT_THR".
o Implement a "CLONE" method
add this code inside the class declaration:
%{
static void
wxNewClass::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
%}
o Fix the destructor.
modify the destructor like this:
~wxNewClass()
%code%{ wxPli_thread_sv_unregister( aTHX_ "Wx::NewClass", THIS, ST(0) );
delete THIS;
%};
VIRTUAL METHODS
The wrapping of virtual functions whose arguments are simple C++ types (integrals, bool, floating point) and common wxWidgets types
(wxString) should be automatic: at the top of the file, load the plugin that handles virtual methods
%loadplugin{build::Wx::XSP::Virtual};
and decorate virtual/pure virtual methods using the %Virtual directive
// pure virtual
virtual wxString GetTitle() const = 0 %Virtual{pure};
// virtual, not pure
virtual int GetBestFittingWidth(unsigned int idx) const %Virtual;
If the class contains pure virtual methods, it will be marked as abstract, and it will have no constructors.
For abstract classes, XS++ will create an additional Perl-level class, called "Wx::Pl<classname>"; in order to override the virtual
methods, you must derive from this class, and not from "Wx::<classname>".
TODO allow changing the default behaviour for abstract/concrete classes
TODO allow overriding the class name
TODO allow specifying custom code
TODO handle multiple return values
TODO customized type mapping
perl v5.14.2 2010-06-07 Wx::NewClass(3pm)