sar_exec_sadf: sar_exec_sadf

Description Usage Arguments Examples

Description

sar_exec_sadf

sar_stat

Usage

1
2
3
4
5
6
7
sar_exec_sadf(statistic = c("cpu", "ram", "network", "io", "load"),
  format = c("df", "csv", "json", "xml"), server = NULL, day = NULL,
  log_path = NULL)

sar_stat(statistic = c("cpu", "ram", "network", "io", "load"),
  as = c("df", "json", "xml"), server = NULL, day = NULL,
  log_path = NULL, to_wide = FALSE)

Arguments

statistic

Statistics to retreive.

format

Only first item will be used. The format of data to produce.

server

optional server to get statistics from - if set, function will try to ssh into server and retrieve statitics otherwise it will retrieve statistics from local machine

day

optional; either a positive number indicating the calender day or a negative number indicating the number of days before today

log_path

optional; a path to look for dat files

as

format to return

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
sar_exec_sadf()
sar_exec_sadf(server = "localhost")
sar_exec_sadf(format = "json")

## End(Not run)


## Not run: 
 sar_stat()
 sar_stat(as = "json")
 sar_stat(server = "localhost")

## End(Not run)

petermeissner/sar documentation built on May 16, 2019, 4:48 p.m.