-
Notifications
You must be signed in to change notification settings - Fork 1
broadcom and pensando nic enhancements for networkplugin #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
|
|
||
| # Parse nicctl show card output | ||
| res_card = self._run_sut_cmd("nicctl show card", sudo=True) | ||
| cmd = "nicctl show card" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
| # 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, | ||
| ) |
There was a problem hiding this comment.
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
` CMD_NICCLI_LISTDEV = "niccli --list_devices"
CMD_NICCLI_GETQOS_TEMPLATE = "niccli --dev {device_num} qos --ets --show"
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 |