Forum Discussion

Patrik_Jonsson's avatar
Jan 20, 2017

Can there be multiple hosts?

Hi!

Doing some work with monitoring scripts and wanted to ask something I've wondered about for some time.

When requesting

/mgmt/tm/sys/memory
I can see that there are a field for hostId in the response. Could there ever be more than one host, or is this just a matter of formatting in case there ever will be or to keep the syntax the same comparing to tmm?

I could imagine this being used in ie. Viprion systems but I do not have access to any with multiple blades.

In case you do, please go ahead and test with

curl -sku user:password https://localhost/mgmt/tm/sys/memory
.

Example output to illustrate my meaning:

{
  "kind": "tm:sys:memory:memorystats",
  "selfLink": "https://localhost/mgmt/tm/sys/memory?ver\u003d11.6.1",
  "entries": {
    "https://localhost/mgmt/tm/sys/memory/memory-host": {
      "nestedStats": {
        "entries": {
          "https://localhost/mgmt/tm/sys/memory/memory-host/0": {
            "nestedStats": {
              "entries": {
                "hostId": {
                  "description": "0"
                },

3 Replies

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Well, I have hostId 1 only, and no entry for hostId 0.

     

  • Kevin_K_51432's avatar
    Kevin_K_51432
    Historic F5 Account

    Greetings Patrik, Good guess! This does appear to be Viprion related:

    
     show sys cluster
    
    ---------------------------------------
    Sys::Cluster: default
    ---------------------------------------
    Address                 1.1.1.1/24
    Availability            available
    State                   enabled
    Reason                  Cluster Enabled
    Primary Slot ID         1
    Primary Selection Time  0
    
      ----------------------------------------------------------------------
      | Sys::Cluster Members
      | ID  Address       Availability  State    Licensed  HA       Clusterd
      ----------------------------------------------------------------------
      | 1   1.1.1.1       available     enabled  true      active   running
      | 2   1.1.1.2       available     enabled  true      active   running
      | 3   1.1.1.3       available     enabled  true      active   running
      | 4   ::            unknown       enabled  false     unknown  shutdown
    
     show sys host-info | grep Host
    Sys::Host: 1
    Sys::Host: 2
    Sys::Host: 3
    

    Kevin