Built-in Agent Commands
When using the Cloud Eye Agent, Cloud Eye retains necessary O&M capabilities and enables related functions only in key scenarios such as vulnerability fixing or live network risk handling. By reading this section, you can learn about the details of built-in Agent commands for ensuring system transparency and security.
Commands Supported by the Agent (Enhanced and Basic Editions)
| Command | Function Description | Earliest Agent Version Supported |
|---|---|---|
lscpu | Obtains CPU information. | 2.5.6 |
blockdev --getss {{device}} | Obtains the block size. | 2.5.6 |
dmidecode -s system-serial-number | Obtains the system SN. | 2.5.6 |
uname -m | Obtains the system architecture. | 2.5.6 |
ls -l /sys/class/scsi_host | Obtains the SCSI host list for obtaining the SCSI host of the RAID controller card. | 2.5.6 |
lsscsi -g | Obtains the SCSI device information list in the system. | 2.5.6 |
smartctl -i {{device_name}} | Obtains basic disk information to identify the media type of the sg disk. | 2.5.6 |
dmidecode -s system-product-name | Obtains the product name. | 2.5.6 |
ls -l /sys/class/net/ | Queries NICs in the system. | 2.5.6 |
lspci -s {{bus_info}} -nn | Obtains PCI device information based on the specified bus_info. | 2.5.6 |
/sbin/ifconfig {{nic_port}} | Runs the ifconfig command. nic_port indicates the network port number. | 2.5.6 |
/usr/sbin/ifconfig {{nic_port}} | Runs the ifconfig command. nic_port indicates the network port number. | 2.5.6 |
/sbin/ethtool {{nic_port}} | Runs the ethtool command. nic_port indicates the network port number. | 2.5.6 |
/usr/sbin/ethtool {{nic_port}} | Runs the ethtool command. nic_port indicates the network port number. | 2.5.6 |
dmidecode -t slot | Obtains the slot information in the DMI information. | 2.5.6 |
lspci -v -s {{nvme_pcie_bus}} | Obtains detailed information about the PCI device. | 2.5.6 |
/sbin/ethtool -i {{nic_port}} | Runs the ethtool -i command. nic_port indicates the network port number. | 2.5.6 |
/usr/sbin/ethtool -i {{nic_port}} | Runs the ethtool -i command. nic_port indicates the network port number. | 2.5.6 |
/sbin/ethtool -m {{nic_port}} | Runs the ethtool -m command. nic_port indicates the network port number. | 2.5.6 |
/usr/sbin/ethtool -m {{nic_port}} | Runs the ethtool -m command. nic_port indicates the network port number. | 2.5.6 |
lspci -s {{bus_info}} -vvv | Obtains detailed information about the PCI device. | 2.5.6 |
/sbin/ethtool -S {{nic_port}} | Runs the ethtool -S command. nic_port indicates the network port number. | 2.5.6 |
/usr/sbin/ethtool -S {{nic_port}} | Runs the ethtool -S command. nic_port indicates the network port number. | 2.5.6 |
lspci | Obtains device information. | 2.5.6 |
dmidecode -t 4 | Obtains CPU information from the DMI. | 2.5.6 |
dmidecode -t 17 | Obtains memory information from the DMI. | 2.5.6 |
lscpu | Obtains CPU information. | 2.5.6 |
cat /proc/cpuinfo | Obtains detailed CPU information. | 2.7.6 |
dmesg --facility=kern | Obtains kernel fault information using dmesg. | 2.5.6 |
lspci -d {{vendor_id}} | Obtains PCI device information based on the vendor ID. | 2.5.6 |
udevadm info --query=all --name=/dev/{{disk_name}} | Obtains block device information. | 2.6.4 |
ip route | Queries information about the default routing table. | 2.7.5 |
ip route show table all | Queries information about all routing tables. | 2.7.5 |
lspci -d {{vendor_id}} | Obtains PCI device information based on the vendor ID. | 2.7.5 |
whereis {{command}} | Obtains all files that contain the file name. | 2.7.5 |
which {{command}} | Obtains the path of the tool. | 2.7.5 |
sg_raw -r 64k {{device_name}} 85 0D 0E 00 03 00 40 00 A6 00 80 00 00 00 47 00 | Obtains the FarmLog Factory low-order information of a specified Seagate disk. | 2.7.5 |
sg_raw -r 32K {{device_name}} 85 0D 0E 00 03 00 40 00 A6 00 80 00 00 00 47 00 | Obtains the FarmLog Factory high-order information of a specified Seagate disk. | 2.7.5 |
lsblk | Obtains block device information. | 2.7.5 |
lsblk -o NAME,SERIAL | Obtains block device information. | 2.7.5 |
lsscsi -gt | Obtains the SAS address of a block device. | 2.7.5 |
ntpq -p | Obtains the NTP offset. | 2.7.5 |
chronyc sources -v | Obtains the NTP offset. | 2.7.5 |
blkid -o value -s UUID | Displays the file system type, label, and UUID of a block device. | 2.7.5 |
uname -r | Queries the kernel version of the system. | 2.7.5 |
grub2-editenv list | Queries all GRUB2 environment variables, including the default kernel version of the system. | 2.7.5 |
ifconfig | Obtains information about all NICs. | 2.8.2 |
docker info | Displays Docker information. | 2.7.5 |
systemctl is-active {{serviceName}} | Displays the current running status of a system service or unit. | 2.7.5 |
dpkg --list linux-image* | Queries the kernel version of the Debian OS. | 2.7.5 |
sg_raw -r 512 {{device_name}} 85 09 0e 00 00 00 01 00 00 00 00 00 00 a0 2f 00 | Obtains the 0x00 log of a specified SATA SSD. | 2.8.3 |
sg_raw -r {{bytes_num}} {{device_name}} 85 09 0e 00 00 00 {{page_num}} 00 cf 00 00 00 00 a0 2f 00 | Obtains the 0xcf log of a specified SATA SSD. | 2.8.3 |
Commands Supported by the Enhanced Agent
| Command | Function Description | Earliest Agent Version Supported |
|---|---|---|
smartctl -a {{device_name}} | Obtains the full SMART information of pass-through drives and drives under a MPT RAID controller card. | 2.5.6.1 |
smartctl -a -d megaraid {{did}} {{device_name}} | Obtains the full SMART information of drives under a MegaRAID controller card. | 2.5.6.1 |
smartctl -a -d sat+megaraid {{did}} {{device_name}} | Obtains the full SMART information of drives under a MegaRAID controller card in SUSE 11.3. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/storcli64 /c{{cid}} show nolog | Obtains the information about a MegaRAID controller card. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/storcli64 /c{{cid}}/eall/sall show nolog | Obtains the physical drive information of a MegaRAID controller card. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/storcli64 /c{{cid}}/vall show nolog | Obtains the logical drive information of a MegaRAID controller card. | 2.5.6.1 |
modinfo mpt3sas | Obtains the version of the mpt3sas driver. | 2.5.6.1 |
modinfo -F version sfsturbo_core | Obtains the version information of the SFSTurbo-NFS client. | 2.8.3.1 |
/usr/local/uniagent/extension/install/telescope/tools/sas3ircu {{cid}} display | Obtains the information about an MPT RAID controller card. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/nvme list | Obtains the NVMe drive list. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/nvme smart-log /dev/{{device_name_tail}} | Obtains the general SMART information of an NVMe drive. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/nvme intel smart-log-add /dev/{{device_name_tail}} | Obtains the extra SMART information of an Intel drive. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/hioadm info -d {{device_name_tail}} -a | Obtains the advanced SMART information of a Huawei-developed drive. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/hioadm info -d {{device_name_tail}} -e | Obtains the extended SMART information of a Huawei-developed drive. | 2.5.6.1 |
ls -l /sys/class/block/{{device_name_tail}} | Obtains the PCI address of an NVMe drive. | 2.5.6.1 |
hinicadm info | Obtains the hinicX information. | 2.5.6.1 |
hinicadm hilink_port -i {{dev_id}} -p {{nic_port}} -s | Obtains the information by calling the hilink_port command. dev_id indicates the Hi1822 NIC ID, and nic_port indicates the network port. | 2.5.6.1 |
hinicadm hilink_count -i {{dev_id}} -p {{nic_port}} | Obtains the information by calling the hilink_count command. dev_id indicates the Hi1822 NIC ID, and nic_port indicates the network port. | 2.5.6.1 |
hinicadm mode -i {{hinic_port}} | Obtains the information by calling the hinicadm mode command. hinic_port indicates the Hi1822 NIC ID. | 2.5.6.1 |
hinicadm temperature -i {{hinic_port}} | Obtains the information by calling the hinicadm temperature command. hinic_port indicates the Hi1822 NIC ID. | 2.5.6.1 |
hinicadm event -i {{hinic_port}} | Obtains the information by calling the hinicadm event command. hinic_port indicates the Hi1822 NIC ID. | 2.5.6.1 |
hinicadm counter -i {{hinic_port}} -t 4 | Obtains the information by calling the hinicadm counter command. hinic_port indicates the Hi1822 NIC ID. | 2.5.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/hiraidadm c{{cid}} show status | Obtains HiRAID card information. | 2.6.4.1 |
/usr/local/uniagent/extension/install/telescope/tools/hiraidadm c{{cid}} show pdlist | Obtains information about physical drives of a HiRAID card. | 2.6.4.1 |
/usr/local/uniagent/extension/install/telescope/tools/hiraidadm c{{ctl_id}}:e{{enc_id}}:s{{slt_id}} show | Obtains information about member drives of a HiRAID card. | 2.6.4.1 |
/usr/local/uniagent/extension/install/telescope/tools/hiraidadm c{{ctl_id}}:e{{enc_id}}:s{{slt_id}} show smart | Obtains SMART information about member drives of a HiRAID card. | 2.6.4.1 |
/usr/local/Ascend/driver/tools/hccn_tool -i {{card_id}} {{property}} -g | Obtains attribute information based on the card ID and attribute type. | 2.6.7.1 |
ibstat | Obtains other information based on the ibstat information. | 2.6.7.1 |
ibdev2netdev | Obtains the network port mapping based on the ibdev2netdev information. | 2.7.5.1 |
/usr/local/uniagent/extension/install/telescope/tools/hioadm iostat -d {{device_name_tail}} -t 0 | Obtains the I/O latency information of a Huawei-developed drive. | 2.7.5.1 |
/usr/local/uniagent/extension/install/telescope/tools/hioadm iostat -d {{device_name_tail}} -t 1 | Obtains the I/O distribution information of a Huawei-developed drive. | 2.7.5.1 |
smartctl -l gplog,0xA6,0-191 {{device_name}} | Obtains the FarmLog information of a specified Seagate disk. | 2.7.5.1 |
npu-smi info -t {{infoType}} -i {{cardId}} | Queries NPU-related information. | 2.7.5.1 |
nvidia-smi -i 0 {{queryGpu}} --format=csv,noheader | Displays GPU information. | 2.7.5.1 |
/usr/local/nvidia/bin/nvidia-smi | Displays GPU information. | 2.7.5.1 |
/usr/local/nvidia/bin/nvidia-smi -i 0 {{queryGpu}} --format=csv,noheader | Displays GPU information. | 2.7.5.1 |
/var/paas/nvidia/bin/nvidia-smi | Displays GPU information. | 2.7.5.1 |
/var/paas/nvidia/bin/nvidia-smi -i 0 {{queryGpu}} --format=csv,noheader | Displays GPU information. | 2.7.5.1 |
/opt/cloud/cce/nvidia/bin/nvidia-smi | Displays GPU information. | 2.7.5.1 |
/opt/cloud/cce/nvidia/bin/nvidia-smi -i 0 {{queryGpu}} --format=csv,noheader | Displays GPU information. | 2.7.5.1 |
nv-fabricmanager -v | Queries the NVIDIA Fabric Manager software version. | 2.7.5.1 |
nvidia-smi | Displays GPU information. | 2.7.5.1 |
ascend-dmi -v | Displays the version of the ascend-dmi tool. | 2.7.6.1 |
/usr/local/uniagent/extension/install/telescope/tools/core_fault_inspection {{interval}}" {{core_start}} {{core_end}} | Checks the health status of the current CPU. | 2.7.6.1 |
show_gids | Displays information about all available RDMA devices, including the GID index and IP address. | 2.7.6.1 |
/sbin/ethtool -P {{nic_port}} | Runs the ethtool -P command. nic_port indicates the network port number. | 2.7.6.1 |
/usr/sbin/ethtool -P {{nic_port}} | Runs the ethtool -P command. nic_port indicates the network port number. | 2.7.6.1 |
hinicadm version -i {{hinic_port}} | Runs the hinicadm version command to obtain the ucode version number. | 2.7.6.1 |
hinicadm3 info | Obtains the hinicX information. | 2.8.3.1 |
hinicadm3 info -i {{dev_id}} | Obtains the number of physical ports of hinicX. dev_id indicates the ID of the Hi182x NIC. | 2.8.3.1 |
hinicadm3 hilink_port -i {{dev_id}} -p {{nic_port}} -s | Obtains the information by calling the hilink_port command. dev_id indicates the Hi1823 NIC ID, and nic_port indicates the network port. | 2.8.3.1 |
hinicadm3 hilink_count -i {{dev_id}} -p {{nic_port}} | Obtains the information by calling the hilink_count command. dev_id indicates the Hi1823 NIC ID, and nic_port indicates the network port. | 2.8.3.1 |
hinicadm3 mode -i {{hinic_port}} | Obtains the information by calling the hinicadm mode command. hinic_port indicates the Hi1823 NIC ID. | 2.8.3.1 |
hinicadm3 temperature -i {{hinic_port}} | Obtains the information by calling the hinicadm temperature command. hinic_port indicates the Hi1823 NIC ID. | 2.8.3.1 |
hinicadm info -i {{dev_id}} | Obtains the number of physical ports of hinicX. dev_id indicates the ID of the Hi182x NIC. | 2.8.1.1 |
hinicadm3 event -i {{hinic_port}} | Obtains the information by calling the hinicadm event command. hinic_port indicates the Hi1823 NIC ID. | 2.8.3.1 |
hinicadm3 counter -i {{hinic_port}} -t 4 | Obtains the information by calling the hinicadm counter command. hinic_port indicates the Hi1823 NIC ID. | 2.8.3.1 |
hinicadm3 version -i {{hinic_port}} | Runs the hinicadm version command to obtain the ucode version number. | 2.8.3.1 |
npu-smi info -t {{infoType}} -i {{cardId}} -c {{chip_id}} | Queries NPU details. | 2.8.2.1 |
npu-smi info -m | Queries NPU information. | 2.8.2.1 |
nvidia-smi -q -u | Displays unit attributes. | 2.8.3.1 |
npu-smi upgrade -b vrd -i {{cardId}} | Queries the NPU VRD version. | 2.8.3.3 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot