scli
来自「开发snmp的开发包有两个开放的SNMP开发库」· 代码 · 共 28 行
TXT
28 行
# scli equivelentsalias scli_system_info { printf "Name: %s\n" sysName.0 #XXX fix: printf "Address: localhost:161\n"; printf "Contact: %s\n" sysContact.0 printf "Location: %s\n" sysLocation.0 printf "Vendor: %s\n" sysObjectID.0 #printf "Current Time: %s\n" hrSystemDate.0 #printf "Agent Boot Time: %s\n" sysUpTime.0 #printf "System Boot Time: %s\n" 2002-06-03 21:33:49 -08:00 printf "Users: %s\n" hrSystemNumUsers.0 printf "Processes: %s\n" hrSystemProcesses.0 printf "Memory: %s\n" select hrStorageSize, hrStorageType from hrStorageTable where hrStorageType = '.1.3.6.1.2.1.25.2.1.2' printf "Interfaces: %s\n" ifNumber.0}alias scli_system_devices { printf "%5d: %s\n" select hrDeviceIndex, hrDeviceDescr from hrDeviceTable;}alias scli_system_storage { printf "Storage Area Size [K] Used [K] Free [K] Use%\n" # fix size, use% printf "%-22s %8d %8d %8d %3d (%s)\n" select hrStorageDescr, hrStorageSize, hrStorageUsed, hrStorageSize, hrStorageIndex, hrStorageType from hrStorageTable}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?