VMware Cloud Community
baber
Expert
Expert

How can monitor EMC via API with vROPS without any plugin or pak

Hi

I was read this document about use API to monitor unity without install any plugin or pka file :

https://vexpose.blog/2020/02/25/rest-api-and-dellemc-storage-part-3-unity/

As i understand it used from a toll with name PostmanCanary

I get this url  :    https://172.2.3.3/api/types/pool/instances

and click on get finally show follow :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">









<html xmlns="http://www.w3.org/1999/xhtml" lang="en">


<head>

    <title>Unisphere</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


    <link type="text/css" rel="stylesheet" href="/cas/css/emc_cas.css;jsessionid=E5263133AEACC33D01436397CF3960F4" />

    <script type="text/javascript" src="js/common_rosters.js"></script>

    <link rel="icon" href="/cas/favicon.ico" type="image/x-icon" />

    <style>

        #bg img {

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            z-index: -1;

        }

    </style>

</head>


<body id="cas" onload="init();">






    <div align="center">


        <form id="fm1" class="fm-v clearfix" onSubmit="return disablePage()"

            action="/cas/login;jsessionid=E5263133AEACC33D01436397CF3960F4?service=https%3a%2f%2f172.2.3.3%2fapi%2ftypes%2fpool%2finstances"

            method="post">


            <div class="LoginPage">

                <div class="LoginMaskLayer" id="loginMask">



                    <div class="LoginProductName">Unisphere</div>


                    <div class="LoginFieldBoxArea">

                        <div class="row">







                            <input id="username" name="username" class="inputField required" title="Unisphere user name" tabindex="1" placeholder="User Name" accesskey="u" type="text" value="" size="25" autocomplete="off"/>


            </div>

                            <div class="row">





                                <input id="password" name="password" class="inputField required" title="Password associated with the user account" tabindex="2" placeholder="Password" type="password" value="" size="25" autocomplete="off"/>

            </div>

                            </div>


                            <div class="ButtonRow">

                                <div class="ButtonRowHack" id="buttonDivContainer">



                                    <input class="BtnLoginStyle" id="submit" name="submit" accesskey="l" value="Login" tabindex="4" type="submit" title="Log on to Unisphere">

            </div>

                                </div>


                                <div class="LoginVerNum">Version 4.5.1</div>


                                <div class="LoginCopyright">&copy; 2019 Dell Inc. or its subsidiaries. All Rights

                                    Reserved.</div>


                                <div class="DellEMCLogo"></div>


                                <div>

                                    <input type="hidden" name="lt" value="LT-3240988-O3dJ7SDACBD7TpWtDZim6zgy1EydRc-Unisphere" />

                                    <input type="hidden" name="execution" value="e1s1" />

                                    <input type="hidden" name="_eventId" value="submit" />

        </div>

                                </div>

                            </div>

        </form>

    </div>

    <script>

        function disablePage() {

    window.document.getElementById("buttonDivContainer").className += " spinner";

    window.document.getElementById("loginMask").style.opacity = .3;

    window.document.getElementById("submit").disabled = true;

    return true;

}


    </script>




</body>


</html>

How can use this for monitor unity with API ?

Please mark helpful or correct if my answer resolved your issue.
0 Kudos
4 Replies
daphnissov
Immortal
Immortal

If you aren't comfortable with API and development resources, you're way out of your league in trying to do this. Get one of the management packs. Make your life easier in exchange for some money.

0 Kudos
baber
Expert
Expert

As i said in my post I don't want use pak file I want to use API and want work better and get better experience from it .

Please mark helpful or correct if my answer resolved your issue.
0 Kudos
daphnissov
Immortal
Immortal

Good luck. You're in for a hell of a lot of work ahead. This is a substantial undertaking.

0 Kudos
KabirAli82
Expert
Expert

Hi there,

You want to get the data out of EMC in an automated fashion. And I don't think you can automate Postman scripts, or can you? I don't know. Its ok to use Postman to get to know how to get the data out of EMC and how to make the API call. But in the end you need some sort of script to get the data out of EMC and into vROPs automated.

I can't really help you get the data out of EMC, but I might be able to help you get the data into vROPs. I write might because it all depends on your favorite scripting language. So what's your favorite scripting language?


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
0 Kudos