sys.crontab
Retrieves the crontab details on the host. This is similar to running sudo crontab -l on a host.
JSON-RPC Request
{"jsonrpc":"2.0","id":1,"method":"sys.crontab"}
JSON-RPC Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"puppet_generated_at": "timestamp",
"cron_entries": [
{
"puppet_name": "string",
"cron_entries": [
{
"command": "string",
"minute": "string",
"hour": "string",
"day": "string",
"month": "string",
"weekday": "string"
}
]
}
]
}
}
RVC CLI Example
rvc sys crontab
Response
Puppet Generated At: 2025-03-27 15:54:40 -0400
Cron Entries.......: [
Puppet Name.: run_puppet_script
Cron Entries: [
Command: /opt/reliant/bin/puppet-launcher.sh
Minute.: 0,30
Hour...: *
Day....: *
Month..: *
Weekday: *
]
Puppet Name.: mcollective_facts_yaml_refresh
Cron Entries: [
Command: '/opt/puppetlabs/puppet/bin/ruby' '/opt/puppetlabs/mcollective/plugins/mcollective/refresh_facts.rb' -o '/etc/choria/generated-facts.yaml' -p '/var/run/puppetlabs/mcollective-facts_refresh.pid' &> /dev/null
Minute.: 9,19,29,39,49,59
Hour...: *
Day....: *
Month..: *
Weekday: *
]
]