Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Chef — chef infrastructure automation and configuration management. Covers cookbook management, node configuration, compliance profiles, data bag management, role/environment administration, and Chef InSpec auditing. Use when managing Chef infrastructure, debugging convergence failures, inspecting node run lists, or auditing compliance.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Manage and inspect Chef cookbooks, nodes, roles, environments, and compliance profiles.
Always check node status and server connectivity before modifying configurations.
#!/bin/bash
echo "=== Chef Versions ==="
chef-client --version 2>/dev/null
knife --version 2>/dev/null
echo ""
echo "=== Chef Server Status ==="
knife status 2>/dev/null | head -15 || \
echo "Chef Server not configured or not reachable"
echo ""
echo "=== Node Summary ==="
knife node list 2>/dev/null | wc -l | xargs -I{} echo "{} nodes registered"
echo ""
echo "=== Environments ==="
knife environment list 2>/dev/null
echo ""
echo "=== Cookbooks ==="
knife cookbook list 2>/dev/null | head -15
#!/bin/bash
# Knife wrapper with JSON output
knife_cmd() {
knife "$@" --format json 2>/dev/null
}
# Chef Server API call
chef_api() {
local endpoint="$1"
knife raw "$endpoint" 2>/dev/null
}
# Node search
chef_search() {
local query="$1"
knife search node "$query" --format json 2>/dev/null
}
--format json with jq for structured outputknife search for querying nodes by attributes#!/bin/bash
NODE="${1:-}"
if [ -n "$NODE" ]; then
echo "=== Node Details: $NODE ==="
knife node show "$NODE" --format json 2>/dev/null | jq '{
name: .name,
environment: .chef_environment,
run_list: .run_list,
platform: .automatic.platform,
platform_version: .automatic.platform_version,
ip: .automatic.ipaddress,
fqdn: .automatic.fqdn,
uptime: .automatic.uptime,
last_run: .automatic.ohai_time
}'
else
echo "=== All Nodes ==="
knife status --format json 2>/dev/null | jq -r '
.[] | "\(.name)\t\(.environment)\t\(.ipaddress)\t\(.run_list | join(","))"
' | column -t | head -25
fi
#!/bin/bash
echo "=== Server Cookbooks ==="
knife cookbook list 2>/dev/null
echo ""
COOKBOOK="${1:-}"
if [ -n "$COOKBOOK" ]; then
echo "=== Cookbook Details: $COOKBOOK ==="
knife cookbook show "$COOKBOOK" 2>/dev/null | head -20
echo ""
echo "=== Cookbook Dependencies ==="
knife cookbook show "$COOKBOOK" --format json 2>/dev/null | jq '.metadata.dependencies'
echo ""
echo "=== Recipe List ==="
knife cookbook show "$COOKBOOK" --format json 2>/dev/null | jq '.metadata.providing | keys'
fi
#!/bin/bash
echo "=== Roles ==="
knife role list 2>/dev/null
echo ""
ROLE="${1:-}"
if [ -n "$ROLE" ]; then
echo "=== Role Details: $ROLE ==="
knife role show "$ROLE" --format json 2>/dev/null | jq '{
name: .name,
run_list: .run_list,
default_attributes: (.default_attributes | keys),
override_attributes: (.override_attributes | keys)
}'
fi
echo ""
echo "=== Environments ==="
knife environment list 2>/dev/null
ENV="${2:-}"
if [ -n "$ENV" ]; then
echo "=== Environment: $ENV ==="
knife environment show "$ENV" --format json 2>/dev/null | jq '{
name: .name,
cookbook_versions: .cookbook_versions,
default_attributes: (.default_attributes | keys)
}'
fi
#!/bin/bash
echo "=== InSpec Version ==="
inspec version 2>/dev/null
echo ""
echo "=== Available Profiles ==="
inspec supermarket profiles --format json 2>/dev/null | jq '.[0:10]' || \
ls compliance/profiles/ 2>/dev/null
echo ""
PROFILE="${1:-}"
if [ -n "$PROFILE" ]; then
echo "=== Profile Execution ==="
inspec exec "$PROFILE" --reporter json 2>/dev/null | jq '{
version: .version,
statistics: .statistics,
controls: [.profiles[].controls[] | {
id: .id,
title: .title,
status: .results[0].status
}] | .[0:10]
}'
fi
#!/bin/bash
echo "=== Data Bags ==="
knife data bag list 2>/dev/null
echo ""
BAG="${1:-}"
if [ -n "$BAG" ]; then
echo "=== Items in $BAG ==="
knife data bag show "$BAG" 2>/dev/null
ITEM="${2:-}"
if [ -n "$ITEM" ]; then
echo ""
echo "=== Item: $BAG/$ITEM ==="
knife data bag show "$BAG" "$ITEM" --format json 2>/dev/null | jq 'del(.id)' | head -30
fi
fi
Present results as a structured report:
Managing Chef Report
════════════════════
Resources discovered: [count]
Resource Status Key Metric Issues
──────────────────────────────────────────────
[name] [ok/warn] [value] [findings]
Summary: [total] resources | [ok] healthy | [warn] warnings | [crit] critical
Action Items: [list of prioritized findings]
Target ≤50 lines of output. Use tables for multi-resource comparisons.
--help output.| Shortcut | Counter | Why |
|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
override beats default beats automaticまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Alloydb — google AlloyDB instance analysis, query insights, columnar engine optimization, maintenance windows, and cluster health.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Aqua — aqua Security platform analysis. Covers container runtime protection, image assurance policies, compliance frameworks, vulnerability management, workload protection, and registry scanning. Use when analyzing container security posture, reviewing image compliance, investigating runtime alerts, or auditing security policies.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Bigquery — google BigQuery job analysis, slot utilization, cost analysis, dataset management, and query optimization.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Cassandra — apache Cassandra keyspace analysis, compaction strategies, repair status, nodetool operations, and cluster health monitoring.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Checkov — checkov infrastructure-as-code security scanning. Covers Terraform, CloudFormation, Kubernetes, and Dockerfile scanning, policy management, custom checks, compliance frameworks, and suppression management. Use when scanning IaC for security misconfigurations, evaluating compliance, managing custom policies, or reviewing scan results.
日本語の概要は準備中です。原文の説明を表示しています。