Skip to content

Conversation

@jaspals3123
Copy link
Collaborator

@jaspals3123 jaspals3123 commented Jan 6, 2026

` CMD_NICCLI_LISTDEV = "niccli --list_devices"
CMD_NICCLI_GETQOS_TEMPLATE = "niccli --dev {device_num} qos --ets --show"

# Pensando NIC commands
CMD_NICCTL_COMMANDS = [
    "nicctl show card",
    "nicctl show dcqcn",
    "nicctl show environment",
    "nicctl show pcie ats",
    "nicctl show port",
    "nicctl show qos",
    "nicctl show rdma statistics",
    "nicctl show version host-software",
    "nicctl show version firmware",
]

Run with :node-scraper run-plugins NetworkPlugin`

Output:
(venv) (py39) jaspals@smci350-zts-gtu-f11-15:~/node-scraper$ node-scraper run-plugins NetworkPlugin 2026-01-07 15:58:05 UTC INFO nodescraper | Log path: ./scraper_logs_smci350_zts_gtu_f11_15_2026_01_07-03_58_05_PM 2026-01-07 15:58:05 UTC INFO nodescraper | System Name: smci350-zts-gtu-f11-15 2026-01-07 15:58:05 UTC INFO nodescraper | System SKU: None 2026-01-07 15:58:05 UTC INFO nodescraper | System Platform: None 2026-01-07 15:58:05 UTC INFO nodescraper | System location: SystemLocation.LOCAL 2026-01-07 15:58:05 UTC INFO nodescraper | Initializing connection manager for InBandConnectionManager with default args 2026-01-07 15:58:05 UTC INFO nodescraper | -------------------------------------------------- 2026-01-07 15:58:05 UTC INFO nodescraper | Running plugin NetworkPlugin 2026-01-07 15:58:05 UTC INFO nodescraper | Initializing connection: InBandConnectionManager 2026-01-07 15:58:05 UTC INFO nodescraper | Using local shell 2026-01-07 15:58:05 UTC INFO nodescraper | Checking OS family 2026-01-07 15:58:05 UTC INFO nodescraper | OS Family: LINUX 2026-01-07 15:58:05 UTC INFO nodescraper | Running data collector: NetworkCollector 2026-01-07 15:58:07 UTC INFO nodescraper | (NetworkPlugin) Collected network data: 18 interfaces, 3 routes, 3 rules, 3 neighbors, 18 ethtool entries, 0 Broadcom NICs, 8 Pensando NICs, 8 Pensando DCQCN entries, 8 Pensando environment entries, 8 Pensando PCIe ATS entries, 8 Pensando ports, 8 Pensando QoS entries, 8 Pensando RDMA statistics, Pensando host software version: Yes, 8 Pensando firmware versions 2026-01-07 15:58:07 UTC INFO nodescraper | Closing connections 2026-01-07 15:58:07 UTC INFO nodescraper | Running result collators 2026-01-07 15:58:07 UTC INFO nodescraper | Running TableSummary result collator 2026-01-07 15:58:07 UTC INFO nodescraper |


# Parse nicctl show card output
res_card = self._run_sut_cmd("nicctl show card", sudo=True)
cmd = "nicctl show card"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason why this is here and not as a class variable like CMD_<> so the doc generator can pick it up? same everywhere where cmds are defined locally

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my bad, i was checking the content of collected_commands for a debug forgot to revert it to class constants, will revert

Comment on lines +1677 to +1683
# Log summary of collected and uncollected commands
if collected_commands:
self._log_event(
category=EventCategory.NETWORK,
description=f"Successfully collected {len(collected_commands)} nicctl commands: {', '.join(collected_commands)}",
priority=EventPriority.INFO,
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think this is needed, i would just log the uncollected ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants