-
Notifications
You must be signed in to change notification settings - Fork 0
2. Usage
Richard Spindler edited this page May 18, 2016
·
7 revisions
The default output has changed to pipe (white space delimited plain text).
To get the old style terminal tables, use the table output format type, e.g.:
$ ./parsec.rb --server=hostname --report=all --format=table
To get the html formated output use the html output format type, e.g.:
$ ./parsec.rb --server=hostname --report=all --format=html
To get pdf output, use the pdf format output type, e.g.:
$ ./parsec.rb --server=hostname --report=all --format=pdf
Usage information can be found by using the help option:
$ ./parsec.rb --help
Usage: ./parsec.rb
$ ./parsec.rb --help
"--prefix", "-b" Set base/prefix directory
"--customer", "-C" Set customer name
"--date", "-T" Set date (used in conjunction with list)
"--dir", "-d" Specify directory where explorers are (default is ./explorers)
"--dodisks", "-D" Do disks (reports information on all disks)
"--format", "-f" Output format
"--list", "-l" List explorers (also lists dmidecodes and facters if present)
"--masked", "-m" Mask hostnames, IPs, MAC addresses etc
"--model", "-M" Set model (used in conjunction with list)
"--input", "-i" Input file
"--output", "-o" Output file
"--pause", "-p" Pause between each report when running against all hosts (useful for debugging)
"--report", "-R" Report type (e.g. all, cpu, memory)
"--server", "-s" Server to run explorer report for
"--type", "-t" Type of report (default is explorer)
"--date", "-T" Set date (used in conjunction with list)
"--temp", "-w" Work directory
"--usage", "-u" Display usage information
"--use", "-U" Override defaults, e.g. use gzip rather than pgiz
"--year", "-Y" Set year(used in conjunction with list)
"--help", "-h" Display help information
"--verbose", "-v" Verbose output
"--version", "-V" Display version
"--changelog", "-c" Print changelog
Get some examples of usage:
$ ./parsec.rb --usage=examples
Run a CPU report against a specific host
$ ./parsec.rb --server=hostname --report=cpu
Run a CPU report against all hosts
$ ./parsec.rb --server=all --report=cpu
Run a all reports against a specific host
$ ./parsec.rb --server=hostname --report=all
Run all reports against all hosts
$ ./parsec.rb --server=all --report=all
Run all reports against a specific host and output a PDF report
(will create a file based on the hostname and report in the outputs directory)
$ ./parsec.rb --server=hostname --report=all --format=pdf
Run all reports against a specific host and output PDF a report to a specific file
$ ./parsec.rb --server=hostname --report=all --format=pdf --output=hostename.pdf
Run a all reports against a specific host and output it in a format that can be piped into another command
$ ./parsec.rb --server=hostname --report=all --format=pipe
Run a all reports against a specific host and output it in a table format
$ ./parsec.rb --server=hostname --report=all --format=table
More information can be found by using the usage option:
$ ./parsec.rb --usage=reports
aggr: Report on aggregate information
all: Report on everything
coreadm: Report on coreadm information
cpu: Report on CPU information
cron: Report on cron information
crypto: Report on crypto information
cups: Report on CUPS information
disk: Report on disks
dumpadm: Report on dumpadm information
eeprom: Report on EEPROM
elfsign: Report on elfsign information
explorer: Report on Explore information
firmware: Report on Firmware information
fru: Report on FRU information
fs: Report on filesystem information
host: Report on host information
inetadm: Report on inetadm information
inetd: Report on inetd information
inetinit: Report on inetinit information
io: Report on all IO
ipmi: Report on IPMI information
ldom: Report on LDom information
link: Report on link information
locale: Report on locale information
login: Report on locale information
lu: Report on Live Upgrade information
kernel: Report on kernel information
keyserv: Report on keyserv information
memory: Report on Memory information
modinfo: Report on Kernel Module information
module: Report on Kernel Module information
mount: Report on mount information
ndd: Report on ndd information
network: Report on network information
ntp: Report on NTP information
obp: Report on OBP information
os: Report on OS information
package: Report on package information
pam: Report on PAM information
password: Report on password information
patch: Report on patch information
power: Report on power information
security: Report on Security information
sendmail: Report on Sendmail settings
sensors: Report on Sensor information
serial: Report on Chassis Serial information
serials: Report on Component Serial information
services: Report on Services information
slots: Report on Upgradeable slot information
snmp: Report on SNMP information
ssh: Report on SSH information
su: Report on SU information
suspend: Report on Suspend information
syslog: Report on syslog information
system: Report on system information
swap: Report on swap information
tcp: Report on TCP information
telnet: Report on Telnet information
udp: Report on UDP information
vnic: Report on VNIC information
veritas: Report on Veritas information
zfs: Report on ZFS information
zone: Report on Zone information