How to get the ASM to OS device name mapping

Hi all,
This seems to be an often answered question, but usually the answers specify what to do on the OS (e.g. run oracleasm etc) and/or in the ASM database running on the ASM Host (select * from V$...).
In our situation have plug-ins collecting data from Agents. Plugins collect data from Oracle db/ASM targets and from storage arrays.
Back on the OMS we want to be able to report on the ASM to OS device name mapping. To report, we use either the default metadata UI (i.e. data from the sysman.mgmt_emx_... tables) or we have a BI Publisher report that queries the OEM Repository Database (and can join the ECM tables from the different plug-ins).
The link between the ASM path and the OS device name does not seem to be collected by either the Oracle DB/ASM plug-in, nor by any other plug-in (Host/Storage/...).
It would be easy to go to Linux and run a few commands, but we need to support multiple platforms, like AIX, Solaris x86, Windows as well.
A complicating factor is that ASM can be installed in different configurations, e.g. using ASMlib or using udev...
I really suspect this wheel has been invented before?! Or is it really a matter of having multiple OS-specific low-level scripts and adding a bunch of instance parameters for allowing the user to specify all OS-specific path/utility names etc?
Any suggestions welcome... :-)
Many thanks,
Ed

Google is your best friend ;-)
Those are standard CGI variables, must be available in PHP/ASP(X)/JSP/your-favorite.
Anyway, try this:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
/** Creates a table showing the values of all the CGI variables.
* Part of tutorial on servlets and JSP that appears at * http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ * 1999 Marty Hall; may be freely used or adapted. */ public class ShowCGIVariables extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String[][] variables = { { "AUTH_TYPE", request.getAuthType() }, { "CONTENT_LENGTH", String.valueOf(request.getContentLength()) }, { "CONTENT_TYPE", request.getContentType() }, { "DOCUMENT_ROOT", getServletContext().getRealPath("/") }, { "PATH_INFO", request.getPathInfo() }, { "PATH_TRANSLATED", request.getPathTranslated() }, { "QUERY_STRING", request.getQueryString() }, { "REMOTE_ADDR", request.getRemoteAddr() }, { "REMOTE_HOST", request.getRemoteHost() }, { "REMOTE_USER", request.getRemoteUser() }, { "REQUEST_METHOD", request.getMethod() }, { "SCRIPT_NAME", request.getServletPath() }, { "SERVER_NAME", request.getServerName() }, { "SERVER_PORT", String.valueOf(request.getServerPort()) }, { "SERVER_PROTOCOL", request.getProtocol() }, { "SERVER_SOFTWARE", getServletContext().getServerInfo() } }; String title = "Servlet Example: Showing CGI Variables"; out.println(ServletUtilities.headWithTitle(title) + "\n" + "
" + title + "\n" + "\n" + "\n" + "CGI Variable Name
Value"); for(int i=0; iNot specified"; out.println("
" + varName + "
" + varValue); } out.println("
"); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } }

Similar Messages

  • How to get the list of active devices in current wifi network?

    Hi All,
    I am going to a start a new Network based app. So please any one give me an idea on the below question.
    How to get the list of active devices in current wifi network?

    Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
    strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
    strPassword = Request.getParameter("password").toLowerCase().trim();
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    env.put(Context.PROVIDER_URL, MY_HOST);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL,strUsername);
    env.put(Context.SECURITY_CREDENTIALS, strPassword);
    // enable tracing
    env.put("com.sun.naming.ldap.trace.ber", System.err);
    // Create the initial context
    DirContext initCtx = new InitialDirContext(env);
    // Get the target context
    DirContext targetCtx = (DirContext)initCtx.lookup("");
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the search on the target context
    NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
    javax.naming.directory.Attributes attrs;
    NameClassPair item;
    String[] attrIds = new String[]{"MemberOf"};
    // For each answer found, get its "Groups" attribute
    // If relative, resolve it relative to the target context
    // If not relative, resolve it relative to the initial context
    while (enum.hasMore()) {
    item = (NameClassPair)enum.next();
    Out.println(item);
    attrs = targetCtx.getAttributes(item.getName(), attrIds);
    Out.println(attrs + "<br>");
         initCtx.close();
    It returns all this string :
    {memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
    How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
    Thanks

  • How do get the label id or label name of a filed's label?

    Hello everybody,
    I need your help for getting the name of id of label, this label belongs to a field in a form.
    When I create my javascript's function I could manipulate the visibility of a field with the next sentence:
    document.getElementById("P1_NAME_OF_FIELD").style.visibility = "visible";
    but I do not know to do the same thing with its label:
    Also, I have tried with the parentnode javascript attribute, this is because getting the parentnode ( a tag of TD ) but I don't have a good result.
    document.getElementById.parentNode.parentNode.style.visibility = "visible";
    I write twice parentnode because I found in the code that the label and the field are like this:
    <tr>
    <td> label </td>
    <td> text field </td>
    </tr>
    The first parent node is TD and the second corresponding to TR.
    After that I edit the item, in the label's part I wrote in Label:
    <div id="ID_LABEL" name="ID_LABEL" style="visibility:hidden"> Label </div>
    This was for assigning the id to the label and with this to identy easily.
    and in the element's part I wrote in 'HTML Table Cell Attributes'
    style = "visibility:hidden"
    And in the javascript function I wrote the next:
    document.getElementById("P1_NAME_OF_FIELD").style.visibility = "visible";
    document.getElementById("ID_LABEL").style.visibility = "visible";
    With this I could manipulate the visibility but the problem is that the font size of is not the same with the others labels.
    Could you help me with this problem?
    What and how do I must do in apex?
    Could you send me a page with relationated examples with this problem?
    Thank you.
    Best Regards.

    Long story short: A ColorModel is not a Color. It is an object containing information about how the colors in an object are described... or something like that.
    Component.getForeground() is probably want you want. It returns a Color object.
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#getForeground()

  • How to get the details inside base domain name?

    I need to extract the details inside the base DN like ou="" ,cn="" and so on..
    Somebody please help me in getting the details inside the base domain name. I could able to get the attribute names and values for the domain name...
    Anyone please help me?
    Thanks in advance...
    Edited by: Preethi_Engineer on Aug 3, 2010 9:54 PM

    Hi Vipin,
    This code snipet show that how to find the login user to the portal
    public void LoginUser( )
        //@@begin LoginUser()
         String LogonID;
           try{
              // create an user object from the current user
              IWDClientUser wdUser=WDClientUser.getCurrentUser();
              IUser user=wdUser.getSAPUser();
              //LogonID=user.getUniqueName();
              wdComponentAPI.getMessageManager().reportSuccess(user.getFirstName()" "user.getLastName().toUpperCase());
              //wdComponentAPI.getMessageManager().reportSuccess(LogonID.toUpperCase());
              wdComponentAPI.getMessageManager().reportSuccess("Logon User ID : "+wdUser.getClientUserID().toUpperCase());
           }catch(Exception e){
              e.printStackTrace();
        //@@end
    Note:  You also need to add"com.sap.security.2.0.0" jar file into your java build path liberary.
    Thanks
    Anup
    Edited by: Anup Bharti on Oct 13, 2008 2:18 PM
    Edited by: Anup Bharti on Oct 13, 2008 2:29 PM

  • How to get the screenshot of mapview from apple maps server?

    Hi,
    Can we get the map view screenshot image from apple server?
    Acually i am getting the map view screenshot using mapquestapi. Below url is sample url for get the map view screenshot.
    http://open.mapquestapi.com/staticmap/v4/getmap?key=Fmjtd%7Cluub256b2d%2Cax%3Do5 -9u829z&center=33.943359,-118.212891&zoom=13&size=380,184&type=map&imagetype=jpe g&pois=blue_1,33.943359,-118.212891
    We have to pass the center coordinates of mapview, zoom level, map type, image type and pin color. We will pass these parameters to url then server will return the image.
    Is it possible to get the mapview screenshot from apple map server. If possible please provide some sample urls. If not possible then tell me the reason.
    Thanks in advance.

    James Ward4 wrote:
    Press and hold the Power button, and press the Home button, release both simultaneously. You will hear a camera shutter sound. The image will be stored in the Photo app.
    https://discussions.apple.com/thread/4250596

  • How to get the actual fromat of project name like C1R-000001 !

    hi
    hi iam getting the projectid as c1r000001 even when ia m providing input as
    C1R-000001 BUT WHEN I DOWNLOAD INTO EXCEL I AM GETTING RIGHT...
    CAN U SUGGEST ANY FEILD CATALOG SETTING OR CONVERSION FUNCTION MODUELS!
    help me!
    thanks!

    Hello,
            CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
                 EXPORTING
                      INPUT  = W_PSPID
                 IMPORTING
                      OUTPUT = W_PSPIDN.
    Regards,
    Neelambari.

  • How to get the xml element and comment name in a page?

    I need to list all element and comment name in a page

    Hi,
    do
      //K2Vector<XMLReference> allXMLRefs;
                        std::vector<XMLReference> allXMLRefs;
      IActiveContext* context = GetExecutionContextSession()->GetActiveContext();
                        UIDRef documentUIDRef = ::GetUIDRef(context->GetContextDocument());
                        XMLReference rootXMLRef = GetRootXMLReference(documentUIDRef);
                        GetFlattenedElementList(documentUIDRef,allXMLRefs);
                        std::ostringstream os;
                        for(std::vector<XMLReference>::iterator it = allXMLRefs.begin(); it != allXMLRefs.end(); ++it)
                                  XMLReference nextref = *it;
                                  PMString tag_name;
                                  os.str("");
                                  os <<  AsString(nextref,tag_name).GetPlatformString().c_str();
      CAlert::WarningAlert(os.str().c_str());
              }while(kFalse);
    I use above code to get tag name.
    Any one help me to get the comment tag in XML

  • How to get the Current Document Library View Name from Code - C#

    Hi,
    I have a requirement where i have a doc lib - doclib and two view view1 and view2.The columns vary for the two views.
    Now a user can select and of the two views and do a particular operation.
    I need to programatically find out which view the user is currently at.Now i know that just by picking the URL i can understand if its doclib/view1.aspx or doclib/view2.aspx. But this is not possible as my scenario
    because of an architecture limitation of my project.
    Is there any way to find out the view like libraray.currentview or using spview.
    I need to make so column updates based on the view selected. 
    Please help.

    Try below code as you in the SharePoint context.
    Guid siteId = SPContext.Current.Site.ID;
    Guid webId = SPContext.Current.Web.ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
        using (SPSite site = new SPSite(siteId))
            using (SPWeb web = site.OpenWeb(webId))
                // Your code here
    Hope this will helps you
    Senthilrajan Kaliyaperumal

  • How to get the system info in a network

    Hi to all.
    can any one tell me how to get the system related,like system name and logged user ,info in a network using java...
    thnx in advance,
    ashok

    There is quite a bit of data that is stored in the System Properties. Run this little test app and it'll display all of the System Properties, what you are looking for may be contained in there:
    public class Test {
        public static void main(String[] args) {
            System.getProperties().list(System.out);
    }

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to get the Swatch Options Color Type?

    How to get the Swatch Options Color Type name that is "Process Color" or "Spot Color" which shown in the Color Type via scripting..
    Thanks...

    Could you please provide any example for how to get the color type name that is process or spot. Thanks for looking into this.
    Advance thanks,
    Maria Prabudass

  • How to get the device token in windows phone 8 sliverlight application?

    Hi,
    I am developing a windows phone 8 silverlight application . For my application I want to add push notification service , for this service I have to call one web service in my app . This api requires device token , device id ..etc , I am able to get the all
    the things except devicetoken .
    How to get the device token of a device ?
    any help?
    Thanks...
    Suresh.M

    Most probably device token is the push channel url which is returned by MPNS when a request is made to it.
    Step 3 here: Push notifications for Windows Phone 8
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Hello,
    Exactly which USB device are you referring to? Is the device a NI product?
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
    Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Swapnil P.
    National Instruments Engineer

  • How to get the health , performance information and about the services run on devices that have connected to the system center?

    Hi All,
    I want to know how to get the health , performance information and about the services run on devices that have connected to the system center to my c# application. Also I need to know about the information of databases that have connected to system center.
    I will appreciate your feedback
    Thank you

    Hi,
    You can configure service monitor for the required service on the server
    refer below link for how to configure service monitoring
    http://www.bictt.com/blogs/bictt.php/2011/03/17/scom-monitoring-a-service-part3
    You can use SCOM SDK to connect to the scom server using c# and get required information
    http://msdn.microsoft.com/en-us/library/hh329086.aspx
    you can find the database in below registry path on management server
    HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\DatabaseName
    Regards
    sridhar v

  • I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    You can connect the iPad to your Mac's iTunes and do File > Devices > Transfer Purchases, that should copy it over to the Movies part of your library.
    Depending upon what country that you are in, and whether the film studio allows it, you might also be able to re-download it on your Mac via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page.

Maybe you are looking for