This section describes the set of commands available to grid maintainers for accessing their metering data on the Metering Server (grm.3tera.net).
The metering data is accessed via SSH using the following command:
ssh account@grm.3tera.net command args....
This section contains the following topics:
Retrieve Account Information.
account info acct [--batch]
Name of customer account
Display output in UDL format - this is useful when the output of this command needs to be parsed by an external utility.
Display account information for account test
Name : test ID : 500 Company : Sample Company, Inc. Address : 555 Company Drive, City, CA 92555 Billing Contact : Jane Smith Technical Contact: Jim Smith Number of Grids : 4 Public Key : ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzf...svQSiSwJ687zKFIO8= test@bms Client Key 1 : Client Key 2 : Client Key 3 : Client Key 4 :
If --batch is not specified, the output of this command is the following:
Name : <account name> ID : <account id> Enabled : yes/no Company : <company name> Address : <customer address> Billing Contact : <billing contact info> Technical Contact: <technical contact info> Number of Grids : <# grids under the account> Public Key : <public SSH key> Client Key 1 : <client SSH key> Client Key 2 : <client SSH key> Client Key 3 : <client SSH key> Client Key 4 : <client SSH key>
If --batch is specified, the output of this command is the following:
account "<account name>"
{
id = <account id>
enabled = 0/1
company = "<company name>"
address = "<customer address>"
billing = "<billing contact info>"
technical = "<technical contact info>"
n_grids = <# grids under the account>
pub_key = "<public SSH key>"
client_key1 = "<client SSH key>"
client_key2 = "<client SSH key>"
client_key3 = "<client SSH key>"
client_key4 = "<client SSH key>"
}
Set client access key(s) for account Syntax: account set acct [client_key1=key1] [client_key2=key2] [client_key3=key3] [client_key4=key4]
Name of customer account
SSH key used for client access.
Set client access key for account test
The initial client access key needs to be provided to CA before the client may gain personal access.
Generate account change report
account change acct [--csv] [(start=start end=end) | date=date]
Name of customer account
Display output as comma-separated list
Begin date of period. Must be in the form: YYYY-MM-DD.
End date of period. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
account change test start=2007-10-01 end=2007-10-31
Display report of changed # of grids and/or servers for account test
If the account had no grids or servers at the beginning of the period, the Start # XXX column will contain -
If the account had no grids or servers at the End of the period, the End # XXX column will contain -
Account Start # Grids End # Grids Start # Servers End # Servers ------------------------------------------------------------------------- test1 3 3 9 12 test2 - 1 - 8 test3 1 - 4 -
If --csv is not specified, the output of the command is a table with the following columns:
If --csv is specified, the output of this command is a comma-separated list of the above output with a heading record.
Show list of grids for an account
grid list acct [--batch | --csv] [(start=start end=end) | date=date]
Name of customer account
Display output in UDL format - this is useful when the output of this commands needs to be parsed by an external utility.
Display output in CSV format - this is useful when the output of the command needs to be imported into a spreadsheet.
Begin date of period. Must be in the form: YYYY-MM-DD.
End date of period. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
grid list test
Display list of grids for account test
Name Version # Servers Tag ---------------------------------------------------------------------- grid1-S20061117034908201376000 1.2.9 3 Shared grid2-S20061031041047995157000 1.2.5 2 R&D grid3-S20060909071528219740000 <unknown> 5 Development grid4-S20060913235706760077000 <unknown> 32 Evaluation
If --batch is not specified, the output of this command is the following:
Name Version # Servers Tag ----------------------------------------- Grid1 <val> <val> <val> Grid2 <val> <val> <val> ... GridN <val> <val> <val>
If --batch is specified, the output of this command is the following:
grid Grid1: version = "<val>", n_servers = <val>, tag = <val>, ip = <val>, hostname = <val>, ssl_sha_fingerprint = “<val>”, ha_state = “<val>”, n_messages = <val>, n_alerts = <val> grid Grid2: version = "<val>", n_servers = <val>, tag = <val>, ip = <val>, hostname = <val>, ssl_sha_fingerprint = “<val>”, ha_state = “<val>”, n_messages = <val>, n_alerts = <val> ... grid GridN : version = "<val>", n_servers = <val>, tag = <val>, ip = <val>, hostname = <val>, ssl_sha_fingerprint = “<val>”, ha_state = “<val>”, n_messages = <val>, n_alerts = <val>
If a particular value is not reported by the grid controller, it is not shown.
If --csv is specified, the output of the command is the following:
Name, Version, # Servers, Tag, IP Address, Hostname, HA state, # Messages, # Alerts <Grid1>,<version>,<n_servers>,<tag>,<ip>,<hostname>, <ha state, <n_messages>, <n_alerts> ...
List grids where # of servers has changed
grid change acct[:grid] [--csv] [--verbose] [(start=start end=end) | date=date]
Name of customer account
(optional) Name of grid. If not specified, changes for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Display output as comma-separated list
Display full grid name (with signature).
Begin date of period. Must be in the form: YYYY-MM-DD.
End date of period. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
grid change test start=2007-10-01 end=2007-10-31
Display report of changed grids for account test
Account Grid Start # Servers End # Servers Tag ----------------------------------------------------------------- test grid1 4 8 Development grid2 - 4 Eval grid3 4 - Shared - display of Tag is new.
If --csv is not specified, the output of the command is a table with the following columns:
If --csv is specified, the output of this command is a comma-separated list of the above output. The record contains the following fields:
Account, Grid, Start # Servers, End # Servers, tag <acct>,<grid>,<start>,<end>, <tag> ...
Display estimated grid uptime report
grid uptime acct[:grid] [--csv] [--verbose] [(start=start end=end) | date=date]
Name of customer account
(optional) Name of grid. If not specified, uptime for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Display output as comma-separated list
Display full grid name (with signature).
Begin date of period. Must be in the form: YYYY-MM-DD.
End date of period. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Display estimated uptime for all grids for account test
Account Grid Version Uptime (%) Start Date End Date ------------------------------------------------------------------- test grid1 1.2.14 100.000 2007-10-01 2007-10-31 grid2 2.1.0 99.988 2007-10-15 2007-10-31 grid3 2.1.0 100.000 2007-10-01 2007-10-16
If --csv is not specified, the output of the command is a table with the following columns:
If --csv is specified, the output of this command is a comma-separated list of the above output. The record contains the following fields:
Account, Grid, Version,Uptime (%), Start Date, End Date, Tag <acct>,<grid>,<version>,<uptime>,<start>,<end>,<tag> ...
Display grid downtime details
grid downtime acct[:grid] [--verbose] [(start=start end=end) | date=date]
Name of customer account
(optional) Name of grid. If not specified, downtime for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Display full grid name (with signature).
Begin date of period. Must be in the form: YYYY-MM-DD.
End date of period. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Display downtime details for all grids for account test
Account, Grid, Downtime (min), Previous Report, Current Report, Previous Version, Current Version, Description test, grid1, 12.00, R2008.11.03-17.48.02-PST, R2008.11.03-18.12.02-PST, 2.4.5 Beta hf2586 hf2602, 2.4.5 Beta hf2586 hf2602, Gap in reporting test, grid2, 12.00, R2008.11.10-14.12.18-PST, R2008.11.10-14.36.02-PST, 2.4.5 Beta hf2584 hf2602 hf2586 hf1910, 2.4.5 Beta hf2584 hf2602 hf2586 hf1910, Gap in reporting test, grid3, 12.00, R2008.11.01-10.12.04-PDT, R2008.11.01-10.36.02-PDT, 2.4.5 Beta e2585, 2.4.5 Beta e2585, Gap in reporting
The output of this command is a comma-separated list of discovered downtime records. The record contains the following fields:
Account, Grid, Downtime (min), Previous Report, Current Report, Previous Version, Current Version, Description <acct>, <grid>, <downtime>, <prev_rpt>, <cur_rpt>, <prev_ver>, <cur_ver>, <description> ...
Description may be one of the following:
Display metering data.
This command supports the following modes of operation:
meter dump acct[:grid]] [(start=start end=end) | date=date] [--csv | --detail] [--exclude_sys] [--verbose] - Report application resources
meter dump acct[:grid]] --srv_rsc [(start=start end=end) | date=date] [--csv | --detail] [--verbose] [filter=filter] - Report server resources
meter dump acct[:grid]] --srv_count [(start=start end=end) | date=date] [--csv | --detail] [filter=filter] - Report server counts
meter dump acct[:grid]] --composite [(start=start end=end) | date=date] [--csv] [--exclude_sys] - Generate composite report
Name of customer account
(optional) Name of grid. If not specified, metering data for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Begin date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
End date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Display server resource metering data. The displayed metering data is similar to that displayed for applications except that it is based on total available server resources.
Display server count metering data. The displayed metering data shows differences in the total number of servers for the account [grid].
Display composite metering data. This option combines the server resource capacity and application resource usage reports. In addition, the following information is displayed: CA AppLogic version, # of Servers, resource utilization (%) for cpu, memory, and bandwidth.
Display summary output as a comma-separated list of records.
Display detailed output as a comma-separated list of records where there is a separate record for each reported entity. This is useful when importing the data into a billing application.
Exclude CA AppLogic system applications when reporting resources. If this option is not specified, all applications are included when reporting resources.
Display full grid name (with signature). This option is only valid if --csv and --batch are not specified.
Comma-separated list of name=value filter criteria. If no filter is specified, all servers are considered in the calculations. The filter may contain one or more of the following:
- hypervisor=val - filter based upon hypervisor running on the server (For example, Vmware). This value is only valid if --srv_count or --srv_rsc option is specified.
Display all application resource metering information for account test
Display all server resource metering information for account test
Display all server resource metering information for servers running xen hypervisor and account test
Display all server count metering information for account test
Display all server count metering information for servers running xen hypervisor and account test
Display composite metering information for account test
Account Grid CPUh GBh Xfer In Xfer Out Start Date End Date
---------------------------------------------------------------------------------------------
test grid1 109.71 99.24 100,000,000 50,000,000 2006-10-27 2006-11-06
grid2 0.16 0.49 500,000,000 75,000,000 2006-11-07 2006-11-08
grid3 0.00 0.00 1,100,000,000 100,000,000 2006-09-09 2006-11-04
grid4 4,265.04 864.00 5,100,000,000 200,000,000 2006-09-13 2006-10-13
Account, Grid, Application, User1, User2, State, # Components, CPU, Memory,(MB), Bandwidth(Mbps), Duration (Hrs), Start Date, Start Time, End Date, End Time, CPU (Hrs), Memory (GBhrs), Bandwidth(MbHrs), Xfer In, Xfer Out, Locked, Tag test, grid4-S20060913235706760077000, cPanel_ltest, "", "", running, 4, 0.40, 512, 1, 10,000,000, 5,000,000, 5.0, 2006-10-06, 05:48:03, 2006-10-06, 10:48:02, 2.0, 2560, 5, 0, "vendor=myvendor" test, grid4-S20060913235706760077000, cPanel_nc, "", "", running, 4, 10.00, 1776, 1000, 12,000,000, 2,000,000, 144, 2006-09-29, 12:00:02, 2006-10-04, 12:00:03, 1440.0, 255744, 144000, 0, "vendor=myvendor" test, grid4-S20060913235706760077000, wiki-16b, "", "", running, , 0.04, 160, 4, 96, 20,000,000, 20,000,000, 2006-09-17, 02:30:11, 2006-09-21, 02:30:12, 3.84, 15360, 384, 1, "vendor=myvendor2"
If no options are specified, the output of this command is a table with the following headings:
If --csv is specified, the output of this command is a comma-separated list of the summary output. The record contains the following fields:
Account, Grid, CPUh, GBh, Xfer In (GB), Xfer Out (GB), Start Date, End Date, Tag <acct>, <grid>, <cpu>, <mem>, <in>, <out>, <start>, <end>, <tag> ...
If --detail is specified the output of this command is a detail comma-separated list. The record contains the following format:
Account, Grid, Application, User1, User2, State, # Components, CPU, Memory(MB), Bandwidth (Mbps), Xfer In (GB), Xfer Out (GB), Duration (Hrs), Start Date, Start Time, End Date, End Time, CPU (Hrs), Locked, Tag Memory (GBhrs), Bandwidth(MbHrs) <acct>, <grid>, <app>, <user1>, <user2>, <state>, <n comps>, <cpu>, <mem>, <bw>, <in>, <out>, <duration>, <start date>, <start time>, <end date>, <end time>, <cpuh>, <memh>, <bwh>, <locked>, <tag> ...
If no options are specified, the output of this command is a table with the following headings:
If --csv is specified, the output of this command is a comma-separated list of the summary output.
Account, Grid, CPUHrs, Memory (GBHrs), Bandwidth (MbHrs), Storage (GBHrs), Start Date, End Date, Tag <account>, <grid>, <cpu>, <mem>, <bw>, <storage>, <start date>, <end date>, <tag> ...
If --detail is specified, the output of this command is a comma-separated list of detail records.
Account, Grid, Server, Total CPUs, Total. Memory(GB), Total Bandwidth (Mbps), Total Storage (GB), Hypervisor, Duration (# Hrs), Start Date, Start Time, End Date, End Time, CPUHrs, Memory (GBhrs), Bandwidth (MbHrs), Storage (GBHrs) <account>, <grid>, <Server>, <# cpus>, <total mem (GB)>, <total. bw (Mb)>, <total storage (GB)>, <hypervisor>, <duration>, <start date>, <start time>, <end date>, <end time>, <calculated CPUHrs>, <calculated GBhrs>, <calculated MbHrs>, <calculated GBhrs> ...
If no options are specified, the output of this command is a table with the following headings:
If --csv is specified, the output of this command is a comma-separated list of the summary output. The record contains the following fields:
Account, Start Date, End Date, # Servers, # Days <account>, <Start Date>, <End date>, <# servers>, <#days> ... If --detail is specified, the output of this command is a comma-separated list of detail records. The record contains the following fields: Account, Grid, # Servers, Duration (# days), Start Date, End Date <account>, <grid name>, <# servers>, <duration>, <start date>, <end date> ...
If no options are specified, the output of this command is a table with the following headings:
If --csv is specified, the output of this command is a comma-separated list of the above output with a heading record.
Display license metering data for appliances.
This command supports the following modes of operation:
meter license --all | acct[:grid]] [(start=start end=end) | date=date] [ filter=filter] [--csv] [--verbose] - Report license summary data
meter license --all | acct[:grid]] --srv_license [(start=start end=end) | date=date] [ filter=filter] [--csv] [--verbose] - Report server license data
Report data for all accounts and all grids
Name of customer account
(optional) Name of grid. If not specified, metering data for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Begin date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
End date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Display per server license data.
Comma-separated list of name=value filter criteria. If no filter is specified, any appliance is considered in the calculations. The filter may contain one or more of the following:
* name - property name within the tag string
* name=val - A specific property name with the corresponding value within the tag string.
Display summary output as a comma-separated list of records.
Display full grid name (with signature). This option is only valid if --csv is not specified.
Display all license summary metering information for account test
Display all per server license metering information for account test
OS Info # grids # servers # sockets # VMs -------------------------------------------------------------------------------------------- Microsoft(r) Windows(tm) Enterprise 2003 Server:1.0.0 2 2 4 2 Microsoft(r) Windows(tm) Standard 2003 Server:1.0.0 1 1 2 1 Microsoft(r) Windows(tm) Web Edition 2003 Server:1.0.0 3 3 6 3 PV Info # grids # servers # sockets # VMs -------------------------------------------------------------------------------------------- None 2 2 4 2 Turbogate 1 1 2 1 Novell 3 3 6 3 Hypervisor # grids # servers # sockets # VMs(#Sys) ------------------------------------------------------------- vmware 1 3 6 3(1) xen 2 6 12 20(3)
Account Grid Server #Sockets # VMs(sys) Hypervisor
----------------------------------------------------------
Test grid1 srv1 2 1(1) xen
srv2 2 1(0) xen
grid2 srv1 2 1(2) vmware
If no arguments are specified, the output is a table with the following headings:
if --csv is specified, the output is a comma-separated list with the previously mentioned headings.
If --srv_license is specified, the output is a table with the following headings:
if --csv is specified, the output is a comma-separated list with the previously mentioned headings plus the following:
Display Exception metering data.
meter exception --all | acct[:grid]] [(start=start end=end) | date=date] [--maint] [--csv] [--verbose] - Display exception metering data.
Report data for all accounts and all grids
Name of customer account
(optional) Name of grid. If not specified, metering data for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Begin date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
End date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Display ha check or volume maintenance State
Display output as a comma-separated list of records.
Display full grid name (with signature). This option is only valid if --csv is not specified.
Display all exception metering information for account test
Account Grid # Suspicious Appliances Application Component Class OS guess OS type
----------------------------------------------------------------------------------------------
Dev grid5 1 myapp main.srv usr.appl1 Windows Linux
grid6 2 myapp1 main.c1 proto.appl2 Linux Windows
myapp2 main.s1 usr.appl1 Windows Linux
Dev2 grid1 1 test main.a1 usr.myappl Windows Linux
Account Grid HA State HA Message Volume Maint. Message
----------------------------------------------------------
Dev grid1 ok no yes
grid6 unavailable yes yes
Test grid1 unavailable yes yes
If --maint is not specified, the output is a table with the following information:
If --csv is specified, the output is a comma-separated list with the above headings:
If --maint is specified, the output is a table with the following information:
If --csv is specified, the output is a comma-separated list with the above headings and:
Display detail appliance metering data.
meter appliance --all | acct[:grid]] [(start=start end=end) | date=date] [ --filter=filter] [--csv] [--verbose] - Report detail data
Report data for all accounts and all grids
Name of customer account
(optional) Name of grid. If not specified, metering data for all grids is displayed. The grid name must be the FULL grid name grid-signature.
Begin date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
End date of the metering data to be displayed. Must be in the form: YYYY-MM-DD.
Run report for this date only. Must be in the form: YYYY-MM-DD.
Comma-separated list of name=value filter criteria. The filter may contain one or more of the following:
* name - property name within the tag string
* name=val - A specific property name with the corresponding value within the tag string.
Display summary output as a comma-separated list of records.
Display full grid name (with signature). This option is only valid if --csv is not specified.
Display all appliance information for account test
Account Grid App Class OS CPU Mem Xfer In(GB) Xfer Out(GB) Time VLAN Virt. Mode Tag
-------------------------------------------------------------------------------------------------------------------
Test grid1 myapp usr.appl1 Windows 1.0 512 1.0 2.0 .5 1 pv
myapp2 proto.appl1 Windows 2.0 1024 2.5 1.5 12.0 1 pv
grid2 demoapp usr.myappl Windows 1.0 1024 10.5 5.2 64.0 2 hvm
If --csv is not specified, the output is a table with the following information:
If --csv is specified, the output of this command is a comma-separated list with the following headings:
Post message to grid dashboard
message post acct[:grid] | --all id=id [severity=severity] text=text
Name of customer account
(optional) Name of grid. If not specified, the message is posted to all grids. The grid name must be the FULL grid name grid-signature.
Message ID. Must be in the form 200_grm_text.
Message severity. May be alert or info. Default is info.
Message text. If set to '-', the text is read from STDIN.
Post dashboard message to all grids of account test
Recall posted dashboard message
message recall acct[:grid] id=id
Name of customer account
(optional) Name of grid. If not specified, the message is recalled from all grids. The grid name must be the FULL grid name grid-signature.
Message ID. Must be in the form 200_grm_text.
Recall dashboard message 200_grm_test from all grids of account test
Display pending dashboard messages
message status acct:grid
Name of customer account
Name of grid. The grid name must be the FULL grid name grid-signature.
Display pending dashboard messages for grid1-S123465
If --batch is not specified, the output is the following:
<id> <severity> <full message text> ...
If --batch is specified, the output is the following:
message M<id>, id = <id>, severity = <severity>, text = "<text>" ...
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|