π¦ ClawHub
Aruba Iap Publish
by @scsun1978
Comprehensive Aruba Instant AP (IAP) configuration management with automatic baseline capture, rollback support, and health monitoring. Supports device disco...
π‘ Examples
1. Installation
# Clone or download the skill
cd ~/.openclaw/workspace/skills/aruba-iap-publishRun install script
./install.shVerify installation
iapctl --help
2. Basic Usage
# Device Discovery
iapctl discover --cluster office-iap --vc 192.168.20.56 --out ./outConfiguration Snapshot
iapctl snapshot --cluster office-iap --vc 192.168.20.56 --out ./outVerify Configuration
iapctl verify --cluster office-iap --vc 192.168.20.56 --level basic --out ./out
3. Add SSID
# Create SSID configuration JSON
cat > add-ssid.json << 'EOF'
{
"changes": [
{
"type": "ssid_profile",
"profile_name": "MyWiFi",
"essid": "MyNetwork",
"opmode": "wpa2-psk-aes",
"wpa_passphrase": "MySecurePassword123",
"vlan": 1,
"rf_band": "all"
}
]
}
EOFGenerate diff
iapctl diff --cluster office-iap --vc 192.168.20.56 \
--in add-ssid.json --out ./diffApply changes
iapctl apply --cluster office-iap --vc 192.168.20.56 \
--change-id $(cat diff/commands.json | jq -r '.change_id') \
--in diff/commands.json --out ./apply
4. Delete SSID
# Create delete SSID configuration JSON
cat > delete-ssid.json << 'EOF'
{
"changes": [
{
"type": "ssid_delete",
"profile_name": "OldSSID"
}
]
}
EOFGenerate diff
iapctl diff --cluster office-iap --vc 192.168.20.56 \
--in delete-ssid.json --out ./diffApply changes
iapctl apply --cluster office-iap --vc 192.168.20.56 \
--change-id $(cat diff/commands.json | jq -r '.change_id') \
--in diff/commands.json --out ./apply
5. Monitor Device
# Monitor all categories
iapctl monitor --cluster office-iap --vc 192.168.20.56 --out ./monitorMonitor specific categories
iapctl monitor --cluster office-iap --vc 192.168.20.56 \
-c "system ap clients wlan" --out ./monitor
π Tips & Best Practices
1. Use Secret References
Always use secret_ref for passwords and keys:
{
"type": "auth_server",
"server_name": "radius-primary",
"ip": "10.10.10.10",
"secret_ref": "secret:radius-primary-key"
}
Never commit plain-text secrets to version control.
2. Review Risk Assessment
Always review risk.json before applying changes:
cat diff/risk.json
3. Use Dry Run First
Test with --dry-run to verify commands without applying:
iapctl apply --dry-run ...
4. Verify After Changes
Always run verify after applying changes:
iapctl verify --level full ...
5. Apply Changes in Stages
For large change sets, break them into smaller batches:
TERMINAL
clawhub install aruba-iap