Noob... haha. Need help to understand...

OK, I downloaded and have the virtual machine of VMa 4.0 linux on my cluster...

Now what...

Our goal is to get daily reports in our email information about our environment from virtual machines, we run a 3 cluster nodes.

I work a lot with linux, so I may need help to figure it all out.

Thank you

Try this:

http://a2alpha.webnode.com/Healthcheck-script/

He started by Ivo Beerens and with contributions from other institutions. I use on our sites and put in place to send every day as a scheduled task. You don't need the vMA to run it, it will work from the vCenter server. There are details of the requirements on the page. Its a powershell script.

Dan

Tags: VMware

Similar Questions

  • Need help with understanding PowerCli scripting by LucD

    Hello

    I'll give you the standard statement that I am a noob powercli and don't really know what I'm doing here.  Here's a script that works because it runs without error and gives a report but I need help to understand this under his weight.

    Connect-VIServer '< our vcenter >' - user < user > admin-password < admin-user-pwd >

    $allvms = @)

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    $stats = get-Stat-entity $vms - start $start - Stat $metrics

    $stats | Group-object - property {$_.} Timestamp.Day}, {$_.} @entity.name} | %{

    $vmstat = "" | Select the day, MemAlloc, MemMin, MemMax, MemAvg, VmName

    $vmstat. VmName = $_. Values [1]

    $vmstat. Day = $_. Group [0]. Timestamp.Date

    $mem = $_. Group | where {$_.} MetricId - eq "mem.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    $vmstat. MemMax = [int] $mem. Maximum ##dfsdf

    $vmstat. MemAvg = [int] $mem. Average

    $vmstat. MemMin = [int] $mem. Minimum

    $vmstat. MemAlloc = $_. Group [0]. Entity.MemoryMB

    $allvms += $vmstat

    }

    $allvms |

    Export-Csv "c:\ < folder > \ <>.csv file Destination"-noTypeInformation

    It connects to our server vcenter server and offers two days of data.  Today and yesterday, all with a timestamp of 0:00.  See below for an example of a virtual machine.

    VmNameDayMemAllocMemMaxMemAvgMemMin
    < name VM1 >07/05/2016 0:004096181818
    < name VM1 >06/05/2016 0:0040963612

    8

    The MemMax, the MemAvg and the MemMin are for this day?  Just the max of this period of sampling time 0:00?

    What I'm looking for, it is to find that the use of the maximum memory of virtual machines are for the whole day.  So I hope that I can remove memory of VMs that do not use it.  I was listed on the change $start = (Get-Date). The value of AddDays(-1) to $start = (Get-Date). AddDays(-30) and see what things alike.  I want to be sure however that the value for MemMax is the highest value for a period of 24 hours.  That is to say for the 07/05/2016 the given virtual machine never used a maximum of 18% of his memory attributed the 06/05/2016 the maximum amount of memory used was 36%, and so on that I extend on the date range.

    Kind regards

    Michael

    It then becomes a rather simple Get-Stat script.

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    Get-Stat - entity $vms - start $start - Stat $metrics |

    Select Timestamp,@{N='VM'; E={$_. @entity.name}}, Value |

    Tri-objet-VM property |

    Export-Csv "c:\------.csv '-noTypeInformation

  • Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    This is because the PDF file is not be open in Acrobat or Reader, but by the browser which is unable to handle the specific PDF content.

    If you use Firefox or Chrome, follow these steps: https://helpx.adobe.com/livecycle/kb/xfa-forms-firefox-chrome.html

  • Need help to understand political static with Nat No.

    Hi all

    I have a Pix 515e with 6 interfaces. 5 interfaces are considered as internal that we don't want any translation NAT occur between them. We want only NAT between the 5 and the external interface.

    I created a No_Nat ACL successfully to not manage any portion of nat.

    What I have trouble understanding is the static command to allow traffic between higher levels to lower levels and vice versa.

    I understand the

    public static inside_address outside_address (indoor, outdoor)

    for the part of NAT translation.

    What I do not understand, this is when the inside address and address outside are the same, what order are going. For example, my inner interface (192.168.1.0/24) (sec100) is where the live servers, and I have another interface named accounting (192.168.2.0/24) (sec75).

    If I don't want no nat occurs between these two, I have the following

    No_Nat of the 192.168.1.0/24 192.168.2.0/24 ip access list permit

    No_Nat of the 192.168.1.0/24 192.168.2.0/24 ip access list permit

    NAT (inside) 0-list of access No_Nat

    NAT (accounting) 0-list of access No_Nat

    Now how can I enter the static command?

    Maybe

    static (inside, accounting) 192.168.1.0 192.168.1.0 netmask 255.255.255.0

    or

    static (inside, accounting) 192.168.2.0 192.168.2.0 netmask 255.255.255.0

    or

    static (accounting, inside) 192.168.1.0 192.168.1.0 netmask 255.255.255.0

    or

    static (accounting, inside) 192.168.2.0 192.168.2.0 netmask 255.255.255.0

    I do not understand the prescription for it and why it would be used one verses the other way. Is the security level determines the order? Do I need two static command, one for each direction?

    Thank you

    Denny

    Hello denny

    static can be defined in any way... its only traffic that determines what it... for example, if accounting dmz is access to any server on your inside interface, you normally want the accounting servers see the original on its public IP server inside... so, you will end up as static

    static (inside, accounting) 192.168.1.0 192.168.1.0 netmask 255.255.255.0

    only the above static command is sufficient to establish connectivity between inside and dmz accounting. u don't need 2 static on any sense...

    Similarly, if you want to inside users to access a server on the dmz accounting, you can write a static type

    static (accounting, inside) 192.168.2.0 192.168.2.0 netmask 255.255.255.0

    hope you understand. Let us know if you need help... but normally a statement nat 0 is more than enough for the inside / dmz communication

    Kind regards

    REDA

  • Need help to understand CodeModuleListener.

    Hi all

    I need your help to understand CodeModuleListener.

    I need to implement CodeModuleListener in my application, but I am confused between docs provided with the 5.0 SDK and documentation online.

    Please look at the below link and image

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/system/CodeModuleListener.html...

    If you can not see image below please find docs on link: -.

    Search in Motion\BlackBerry JDE 5.0.0\docs\api\index.html (or attempt to open attachments)

    Please answer as soon as POSSIBLE.

    Found the root of the problem.

    When I was using jde 5.0 with eclipse (by creating an ee file) problem appears, but as I install it new eclipse with the plugin 5.0, problem solved.

  • Need help to understand the network of vSphere environment

    Hello

    I need your help in understanding the network environment in vSphere. Please see the diagram and the text below:

    vm.png

    NIC #1 - Management Port (access from client vsphere, vCenter server)

    NIC #2 - Port of VMkernal (for iSCSI, vMotion, etc.)

    NIC #3 -?

    #4 – CARTE NETWORK INTERFACE?

    Q1 how allow external users to access services over the ESX host? (for example, IIS, FTP, Exchange, NFS)

    Q2, what will be the role of the other two network cards? Is it connected to the physical switch?

    * Ask you all to please help me by sharing your knowledge / experience on the network portion, you have made in your environment as NIC how, what to do with that. *

    I really need to understand the networking of concepts in vSphere, hope that your help!


    Best regards: Yash

    With an additional NIC with 2 port a general configuration might look like this:

    vSwitch0 - vmnic0, vmnic1 (connected to different physical switches)

    Network VMkernel management

    VMotion VMkernel network (own IP network, own VLAN)

    Better if they is configured as active / standby.

    vSwitch1 - vmnic2, vmnic3 (connected to different physical switches)

    Trade VM

    vSwitch2 - vmnic4, vmnic5 (connected to different physical switches)

    VMkernel iSCSI (own IP network, own VLAN)

    Ideal if it is added to the component Multipath iSCSI, which is quite easy to vSphere 5.

  • need help to understand REGEXP_REPLACE

    Hi all
    I'm new to this site so please forgive me for making mistakes. I have a field 'DESCRIPTION of the STUDENT' and they have the following values
    2830 ORO - (2011) Rob Miller [6]
    2830 ORO - Cathy Ingrid (2011) [7]
    2830 ORO - (2011) Sam Sullivan [8]
    2650 Robert Lawson
    2660 Pat Ortt (2009)
    2690 - mark lively
    2710 Tim Lacreta
    What I want in my desired output is
    (2011) Rob Miller [6]
    Cathy Ingrid (2011) [7]
    (2011) Sam Sullivan [8]
    Robert Lawson
    Pat Ortt (2009)
    Mark lively
    Tim Lacreta

    Need help please, I know I have to use REGEXP_REPLACE, but I do not understand how I went through the documentation, but has not been of any help.

    Thank you

    Hello

    Welcome to the forum!

    Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data. Since this is your first post, I'll do it for you:

    CREATE TABLE     table_x
    (       student_description     VARCHAR2 (80)
    );
    
    INSERT INTO table_x (student_description) VALUES ('2830-BGC - (2011) Rob Miller [6]');
    INSERT INTO table_x (student_description) VALUES ('2830-BGC - (2011) Cathy Ingid [7]');
    INSERT INTO table_x (student_description) VALUES ('2830-BGC - (2011) Sam Sullivan [8]');
    INSERT INTO table_x (student_description) VALUES ('2650 - Robert Lawson');
    INSERT INTO table_x (student_description) VALUES ('2660 - Pat Ortt(2009)');
    INSERT INTO table_x (student_description) VALUES ('2690 - Mark Lively');
    INSERT INTO table_x (student_description) VALUES ('2710 - Tim Lacreta');
    

    Explain how you get the results you want from these data. For example: "I want the student_description part that comes after the substring of characters 3 space-dash-space. Spaces are important, because the first part of student_description, the part I want to delete, can contain a hyphen (for example ' 2830 - ORO - (2011) Rob Miller [6] "). »

    I think you want something like this:

    SELECT     student_description
    ,     REGEXP_REPLACE ( student_description
                     , '.* - (.*$)'
                     , '\1'
                     )          AS after_dash
    FROM    table_x
    ;
    

    «. "*" means "0 or more characters (all).
    "-" means exactly what it says: a space, followed by a hyphen, followed by a space. Hyphen has no special meaning outside the brackets.
    ' $' means the end of the string.

    It would be more effective to do this particular job without using regular expressions:

    SELECT     student_description
    ,     SUBSTR ( student_description
                , 3 + INSTR ( student_description
                                  , ' - '
                      )
                )          AS after_dash
    FROM    table_x
    ;
    

    Depending on your needs, you may need to adjust this query if student_description does not always contain ' - '.

    Published by: Frank Kulash, December 29, 2011 14:08

  • Need help to understand the query result

    Hi gurus

    I was reading one of the question here in this forum and its link is below:

    Query required for scenario

    I had some confusion related to this code and don't understand the logic of the out put, see query below:

    Query

    with sub_services as

    (

    Select su_seq 12323, 'HLR1' so_id, 1 seq Union double all the

    Select su_seq 12323, "HLR2' so_id, seq 2 Union double all the

    Select su_seq 12323, "A09" so_id, seq 3 of all the double union

    Select su_seq 12333, "MO1" so_id, seq 4 Union double all the

    Select su_seq 12333, "MO2' so_id, seq 5 Union double all the

    Select su_seq 12333, "A09" so_id, 6 seq in union double all the

    Select su_seq 12333, 'M0CR' so_id, seq 7 Union double all the

    Select su_seq 12999, "LOL1' so_id, seq 8 Union double all the

    Select su_seq 12999, "LOL2' so_id, seq 9 double

    )

    Select *.

    of sub_services b

    where exists (select 1 from sub_services

    where su_seq = b.su_seq

    and so_id = 'A09.

    )

    order by 2;

    The query result

    12323 A09 3

    12333 6 A09

    12323 HLR1 1

    12323 HLR2 2

    12333 M0CR 7

    12333 4 MO1

    12333 5 MO2

    According to my understanding, the above query should return records in red only because of her is below command

    It exists (select 1 from sub_services

    where su_seq = b.su_seq

    and so_id = 'A09.

    but don't know why he's back 7 files, can someone help me understand the result...

    It is query is functionally identical to the PL/SQL block, but much more effective.

    declare

    number of l_res;

    Start

    for line (select *)

    sub_services) loop

    Start

    Select 1 from l_res

    of sub_services

    where su_seq = row.su_seq and

    so_id = "A09" and

    rownum = 1;

    exception when

    NO_DATA_FOUND then

    null;

    end;

    end loop;

    end;

    Essentially every row in the outer query are tested against him exists query.  Given the correlation between two requests is based only on su_seq each line with a su_seq value returned by him is returned in the output.

    Another way to think he uses instead a join condition.  This query is equivalent to the query to exist

    Select the main

    of main sub_services

    Join select (separate su_seq

    of sub_services

    where so_id = "A09") cond

    We main.su_seq = cond.su_seq;

    John

  • Need help to understand the security sandbox problem after changing Web host

    I am trying to switch my Web host 1 & 1 shared hosting to an IP address with a small company that specializes in Drupal sites and doesn't know much about flash dedicated.

    1 & 1 is always the Registrar for my domain, but I 'tidied up' YourGods.com on holistic servers and "stressed" my site DomainNameServers holistic rather than servers 1 & 1.

    After doing this, my Flash site (which is based on the Gaia framework) has stopped working, and the Flashplayer debugger, gave me the following errors:

    Error: Cannot load the xmlsocket://127.0.0.1:5800 policy file

    Error: Request for resource at the xmlsocket://127.0.0.1:5800 by the http://www.yourgods.com/bin/main.swf applicant failed because the server is not reachable.

    Security Sandbox Violation

    Connection to 127.0.0.1:5800 broken - not allowed to http://www.yourgods.com/bin/main.swf

    Someone to help me on another thread thought 127.0.0.1:5800 could mean that the problem had to do with my ways and I tried to access something on my local computer, rather than being a matter of cross-domain standard where one server was attempting to access files on another server without report.

    If anyone can clarify this?

    I googled 127.0.0.1:5800 and found some stuff on the loops between a server and the original computer, but I don't really know how to put it all together.

    Is it possible (with the flash debugger or other software) to step through my code actionscript with periodic break points so I can understand which line is causing the problem?

    Or a way to find out if there is a problem between holistic and my local or holistic computer and the 1 & 1 servers?

    Thanks for any help.

    127.0.0.1 is your local development server. It seems that your application is trying to access this IP address and unable to. You need to look at the source and find where it accesses to this and replace it with the IP address.

  • need help to understand the ACLs and security levels

    I use static NAT (nat (inside, outside) static interface) between a single host inside for the DHCP address used on the external interface. The inside interface has the security level of 100, and the outside has the security level of 0. My understanding is that for connections with State, I wouldn't need the ACL. However, nothing works unless I set up an ACL (for example, right now I have a global allow rule). What Miss me?

    Even if you 'dormant', but you still have the access list applied on the interface which, by default, will have the "deny ip any any" implicitly at the end of the access eventhough list you have existing line "inactive".

    To remove access from the inside of the interface completely list, you must remove the following line:

    inside_access_out access to the interface inside group

  • I need help to understand what product I need

    I've used Acrobat Reader only, not any pro version. There are a few things I want to be able to do: modify a pdf file and create my own form for certain things. I really don't know what would be the best program. I would not make any what else I can same fantisize and arrive at something else for which I might need it.

    It might be useful to give some info about my level of 'tech '. I'm on Win 7 Pro [not because I wanted to spend XP] that must be customized as my win98. I don't do much on the web, for the most part I get by e-mail. I always use CorelDraw / Corel PhotoPaint 8 for any art said I could do [Yes, it will work on Win 7 great]. My cell phone is 2004. So, really I can't think of something that I have to be able to do at hand to do interactive forms and power edit pdf files sometimes.

    Thanks for any help and suggestions. I have no idea what some of these things are like the DC version or what it is.

    Ruth

    I should put this in my first post. I'm sorry.

    Here are the differences between the Standard Acrobat and Acrobat Pro. You can flick it to see if it has everything you need to Pro which is not available as Standard.

    Plans and prices: compare plans | Adobe Acrobat DC

  • Need help to understand how to use importTextData

    I am trying to write a script using importTextData and I can't get the text file to load properly using Acrobat 9 Pro.  At this point, I'm not even worried about the overall functionality of the script.  I'm just trying to nail presents a single piece.

    When I run this.importTextData (); in the java console in Acrobat, I'm prompted to choose my text file, then the rank.  It then returns a value of 3, which is an error "invalid line".

    My text file is as simple as they come.  It contains the following information:

    test

    1

    I've seen references to a naming convention more complex for the identifier of the column.  What is my problem?

    My other question is that I am finally able to load the text file, how do I reference data inside?  The data loaded into a table?  Can I assign the data loaded in a variable like this:

    var x = this.importTextData ();

    and then different reference cells using x [0], x [1], x [2], etc.. ?  Or do I have to use this.getField?

    Sorry if these are dumb questions.  My understanding of this is very basic.  Thank you.

    The Doc.importTextData () method is used to import data into an interactive form. To do this, you must make sure that all the needs of the service is in place:

    • You need a tab separated text (file not a CSV, data fields must be separated by tabs).
    • Your PDF form must have exactly the same number of fields as there are has columns in the text file
    • The columns of your text file must be named exactly as your form fields

    When you import a text file into your form, you can choose which line you want to import. This is done via the user interface if you use the feature on Acrobat UI, or via a parameter when you call the JavaScript function. Using the user interface (for example through forms > manage form data > Import menu Acrobat 9) is an easy way to check that your file is correct, without having to call the JS function.

    The data is imported into your form. If you want to access the data, you must do so via the form field. You cannot import several lines at once. If you need data from several rows, you will need to do this one line at a time and then store the data in your own JS data structure.

  • Need help to understand why "1 is always equal to 1" is required in my tip Action

    I use 7 Captivate and publishing as a SWF file.

    I have an interaction that works, but there's a script I use (that I found in a tutorial) that I do not understand the purpose of.

    The interaction is contained on a single slide where a user clicks on two buttons in order any and a chart is displayed after the second click. Each button, I advanced conditional Action where I first check that it will always be true that "1 equals 1", then assign each variable with '1', then ensure that each variable is equal to 1, after which the graphic appears.

    The part that confuses me checks if "1 is always equal to 1." Why is this necessary script in this case? Is it necessary because I'm including a tip Action Standard (assign variables to '1') within the conditional Action Advanced? Or is related to the fact that I do everything on a slide (do not use a slide event on enter a conditional Action executing advanced)?

    Thank you.

    As usual, Rick explanation is awesome! It won't be fun to add more details.

    It would have helped if you don't say what tutorial you are talking about. This could be one on my blog, where I often use a "standard action imitated" it is a decision in a conditional action. The condition, I mainly used was 'IF 1 is equal to 1'. Article 1 (over 4 years): combination Standard and conditional in a tip action was even in Captivate 5 help documentation.

    Probably, I'll write a new blog post, because of the new shared actions. It is now better is to not use this simple condition more 'If 1 is equal to 1' If you use shared in Captivate 8 actions. It would take too long to explain in depth in this forum, so my idea on a new article. This condition could function without problems "Een if equals Een. Do not laugh at the word 'Een' which is the Dutch version of the written number 1. Be careful, because Captivate is case-sensitive, that 'If Een equals een' will not work.

  • Need help to understand the collection

    Hi all

    I'm trying to understand the concept of collection, but when I look in the documentation that exists in google.ca, then, it seems very confusing. If someone suggest me or send me some simple examples and good collection and I really appreciate it. Thanks in advance.

    Concerning

    Line

    Thanks for the explanation, could you please explain what does really to take care of the index as a whole and clause varchar2 and if yes then what condition we use varchar2 index and in which condition we use index as a whole, be we just use index by integer in our daily practice. Really appreciate your response. Thank you

    Generally if you use collections, especially PL/SQL-only collections, your architecture is probably wrong. Collections are rarely necessary, but are often USED in the mistaken belief that they will help performance.

    The use of the collections usually DEGRADES performance, sometimes severely, and they are often used in a way that is not scalable. You should avoid using collections if possible.

    So don't use the collections AT ALL in your 'common practice '.

    For the rare cases where there is to use an array associative index type to use depends on the data type of the element that you will use for the index. If you plan to use a string, then you use INDEX OF VARCHAR2. If you plan to use an integer, then you use INDEX BY PLS_INTEGER.

    What type of index to use has NOTHING to do with performance.

    One of the WORST mistakes developers make is to use an associative array as target of a BULK COLLECT INTO instead of using a TABLE IMBRIQUEE. Collection in bulk is more often used in a FORALL statement so that the elements are accessible only in the order. Useds "indexed" access with associative arrays isn't even necessary or used.

  • Need help to understand how to use the SDK for our use case

    Hi all!

    I'm having a lot of problems with understanding the SDK and how to work with it.

    The documentation available only is generated comments PHP which summarizes the methods, variables, about classes and groups.

    It is a reference that helps a little more on the technical aspect of the classes and their relationship with each other, but it IS NOT tell me, for example of one of the sample files:

    echo "-ch. |" -netmoref < netmoref > [choose] Vim portgroup MoRef. Required to create. \n » ;

    It's the example script that creates an external network, what I have to do to set up a new client, organization.

    Another unknown is what is a "fence Mode" in the present: $config-> setFenceMode ($fenceMode);

    Another concept of basis of the SDK I could not really grasp yet - is why some of the classes start as VMware_VCloud_API * while others are VMware_VCloud_SDK *.

    Another example? in the scree of new organization of the GUI, in terms of policy, there is a section 'Limits' - I searched carefully and found no corresponding SDK/API method in the documentation!

    Also, I couldn't find a way to delete organization (when a customer cancels a subscription, for example).

    I apologize if my attitude invades a bit on the angry side, but I was home for a while now and every time I get more irritated watching the "documentation" try to understand something

    Nevertheless, Kimberly Wang code is simply remarkable and very well written, just help to know how to make this huge puzzel I wish (even in the sample code that I do not understand how to find the right order of things in nesting objects in order to do something like object of class VMware_VCloud_API_OrgSettingsType for the parameters for example then feed him in a VMware_VCloud_API_AdminOrgType (as well as other parameters - why are they not in the $settings object? And finally another object of VMware_VCloud_SDK_Admin is to truly create the Organization!

    Why the VMware_VCloud_API_AdminOrgType couldn't be the class doing the creation of the Organization)?

    This is a brief summary of the things I'm trying to understand.

    Perhaps, I missed some sort of guide for this? and if not, I would be very grateful if someone could explain in a few words to help me to understand this puzzel so that I can start doing my work and build something out of these awesome (even if cryptic) building blocks!

    Thank you

    Sorry, you must use

    $SDKAdminOrgObj = $service-> createSDKObj ($adminOrgRef);

    It should return you a... Object SDK_AdminOrg.

Maybe you are looking for

  • Bloggie record length

    I use a bloggie and try to record a conference for one hour. The bloggie will stop recording after 30 minutes. Is there a way to fix this so it records for 60 or 90 minutes?

  • iPad Mini update problems

    Hi I have an iPad Mini 2 I think (16 GB), I work at sea and I rarely have a chance to update the iOS as often as I should so I'm probably an update or two old. I tried to update my iPad today, but towards the end of the update, I get the message "thi

  • Warning of low battery liquid E2

    When my phone's battery level reaches 15%, there is a strong alert that sounds. I find it extremely annoying and useless, but can not find anywhere in the settings to turn off the alert. Does anyone know if the alert can be turned off and how to go a

  • Transmitting the power of version 3.1 of the WAP54G

    Hello someone at - it known the transmitting power (in mw) of version 3.1 of the WAP54G? Thank you.

  • Dell by EnTech Taiwan display manager

    I added a new Dell monitor a few weeks back, this evening, I received a popup saying I had to upgrade my Dell display manager.  The product came from and not Dell.  What is a Dell product or a scam?