scli
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:1k
- # scli equivelents
- alias scli_system_info {
- printf "Name: %sn" sysName.0
- #XXX fix:
- printf "Address: localhost:161n";
- printf "Contact: %sn" sysContact.0
- printf "Location: %sn" sysLocation.0
- printf "Vendor: %sn" sysObjectID.0
- #printf "Current Time: %sn" hrSystemDate.0
- #printf "Agent Boot Time: %sn" sysUpTime.0
- #printf "System Boot Time: %sn" 2002-06-03 21:33:49 -08:00
- printf "Users: %sn" hrSystemNumUsers.0
- printf "Processes: %sn" hrSystemProcesses.0
- printf "Memory: %sn" select hrStorageSize, hrStorageType from hrStorageTable where hrStorageType = '.1.3.6.1.2.1.25.2.1.2'
- printf "Interfaces: %sn" ifNumber.0
- }
- alias scli_system_devices {
- printf "%5d: %sn" 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
- }