Форум » » "Системная панель" - информация о процессоре, итд » Ответить

"Системная панель" - информация о процессоре, итд

p.vladi: Есть клиент, которого прёт от техники. Очень любит свою «серверную комнату», разбирается в своей системе (но слава богу сам никуда не лезет) Он был в гостях, и полез в их «серверную» :-) там лицезрел крестроновскую панельку на раке, на которой была всякая статистика, типа температуры, аптайм, статус устройств, и так далее. Просил сделать что-то подобное ему. Подскажите пожалуйста, делал ли кто-то что-то вроде этого?

Ответов - 4

Admin: Вероятно, текстовая страница с данными процессора. Другие данные - температуры, влажность и т.д. - текущие от датчиков.

Игорь K.: Попробовал завести TCP-client с IP адресом процессора, т. е. из программы обращаемся к процессору по 23 порту. Подаем консольные команды, ответы выдаем на панель. Все просто оказалось.

p.vladi: Можно мёртвый пост палочкой потыкать? Вот доступные для CP2e команды по версии HELP ALL ? Main Help screen ADDDns Add an entry to DNS server List ADDMaster Add a master entry to IP table ADDSlave Add a slave/peer entry to IP table AUTONEGot Set auto negotiation for Ethernet Device BROADcast Enable/disable broadcasting of errors BYE Close user session. CARDS Display Cards Detected in System CD Change current file directory. CIPPORT Set port number for CIP. CLEARerr Clears the current error log CNETid Set the Cresnet ID of the system COMPACT Remove invalid files from system COPYfile Copy a file to a different directory CTPPORT Set port number for CTP (console). DEFRouter Set default router. DELete Delete file(s) DHCP Enable/disable dynamic IP addressing DHCPOPT Sets DHCP Server Options DIR File(s) directory DOMAinname Set the domain name for DNS environment ECHo Enable/disable character echoing EEprom Displays the parameters stored in EEPROM ERRlog Prints the current error log ESTatus Display the status of the Ethernet ETHERNET Enable/disable Ethernet ETHERTEST Start Ethernet test ETHWdog Enable/disable Ethernet Watchdog FILEUPLOAd Load from file system into internal device FORCEDREBOOT Forces system reboot FREE Show available file space GETCODE Retrieve code needed for eControl2 activation GETFPLINE Show LCD front panel display on the console GMToffset Set/View the system GMT Offset HEAPfree Show available heap space HELP Display help screens HOSTname Set the host name for DNS environment I2CERRor Enable I2C error reporting ICMP Enable/disable ICMP ping INFO Print Software Capabilities INITIALIZE Clear file system IPAddress Set IP address. IPMask Set IP subnet mask. IPTable Display IP table. ISDIR Check to see if path is a directory. KILLSOCKET Cancel an active TCP console socket LISTDNS Display the list of DNS servers MESSage Display a message on the screen. MODEMINITstring Change the default Modem initialization string. MOVEfile Move a file to a different directory NVRAMCLEAR Clear NVRAM with zeros NVRAMDISK Format NV RAM file system NVRAMGET Retrieve the contents of NVRAM NVRAMPUT Send the contents of NVRAM to the system OLDUSDST Reverts back to the old DST schedule for US PASSTO Enter passto mode console<->device PASSWORD Set console password. PING Ping remote node. PROGRESet Reloads and restarts the program PROGUPTIME Display the time the program is running RAMFree Show available RAM file space REBOOT Perform system reboot REMDns Remove an entry to DNS server List REMMaster Remove a master entry from IP table REMOVETBCLIENT Removes Console Client Configuration REMSlave Remove a slave/peer entry from IP table REPORTCRESNET Show all devices on the main cresnet leg RESTORe Restore factory defaults RTScts Set/clear HW handshaking SAVEPAram Save system paramters. SECURECIPport Set Secure(SSL) port number for CIP. SECURECTPport Set Secure(SSL) port number for CTP. SECUREWEBport Set Secure(SSL) port number for Web. SDEBUG Monitor packets to/from logic with options SELFTEST Initiate the self test procedure SENDKEY Add eControl2 Activation Key SENDMODEMINITstring Turn on/off sending of Modem Init string at program startup. SERial Set serial comm parameters SETTBCLIENTIPA Set Console Client Server IP Address SETTBCLIENTPORTNUM Set Console Client Server Port Number SETTBCLIENTTIMEOUT Set Console Client Idle Timeout SETTBCLIENTNUMRETRY Set Console Client number of retries SETTBCLIENTCONNFRVR Set Console Client to try and reconnect after a disconnect SHORTMESSage Display a message on the screen with a 2second timeout. SHOWEXTRAerrors Enables extended errors SHOWHW Display hardware configuration SNMP Enable/disable Simple Network Management Protocol SNMPMonitor Configure SNMP monitoring and trap generation SNMPPass Configure SNMP usernames and passwords SNMPMANager Configure an SNMP manager SNMPTRap Send an SNMP trap SPLUSMEMSIZe Sets the size of the Area for Compiled SIMPL+ code SPLUSTASKS Show SIMPL+ Task Information SSL Display/Set SSL type STARTTBCLIENT Enables Console Client Connection STOPTBCLIENT Disable Console Client Connection SYSTEM Xmodem download new firmware TELNETport Enable/disable the Telnet port TESTDNS Test DNS server TIMEdate Set the time and date TYPE Display file contents UPLOAD Load file into cresnet device UPTIME Display the time the system is running USERPROGCMD Send a command from the console to the user program USERPASSword Set user password. VERsion Print version to console VNVRAMCLEAR Clear NVRAM with zeros without confirmation WAVEDUMP Dump Logic Wave Information WEBINIT Initialize Webserver default file WEBPORT Set port number for Webserver. WEBSERVer Enable/disable Webserver WHO Generate a report of the Ethernet consoles WINS Enable/disable WINS client XGETfile Use XMODEM to retrieve file from system XONxoff Set/clear SW handshaking XPUTfile Use XMODEM to transfer file to ROM Я не вижу ничего что покажет занятость процессора. - Кстати, пока рылся, нашел кое-то любопытное в CARDS есть CP2E>cards 2: C2I-IR8 8 Port Internal IR 3: C2I-IO8 8 Port Internal IO 4: C2I-RY8 8 Port Internal Relays 5: C2ENET-1 1 Port Ethernet Card 6: C2I-COM3 3 Port Internal COM 254: C2I-SYSMON System Monitor Slot Может гуру подскажут как с ним пообщаться? :-) Заранее спасибо! P.S. очень хочу как тут только для процессоров второй серии :-)


eoulianov: System Monitor - он не гнушается и по 2-му поколению контроллеров показывать данные, хотя клиенту, которого "прёт от техники" никак невозможно без PRO3) Общий рецепт для таких извращений прост: нужно запустить любой логгер трафика (я предпочитаю Microsoft Network Monitor), и записать как общаются System Monitor и пытуемый контроллер. Ну и оттуда уже выгребать все волшебные команды и сопоставлять их с отображаемым результатом, и в итоге получить весь список со всеми параметрами. Но, возможно этому клиенту как раз хватит System Monitor? У меня сейчас, к сожалению, нет под рукой CP2E, могу предложить только сессию с MC3: ver progreg progcomments:<номер слота программы> info reportcresnet PPNDISCOVER cards –force rcon slot 7 ver для выяснения версии карты в слоте 7: C2I-MC3-IR5 5 Port Internal IR OUT iptable -P:<номер слота программы> who autodiscovery query reportnetdev joinmonitorslot joinmonitorslot 0x1 11 – включение просмотра всех изменяющихся joins того самого слота 11: C2I-MC3-SYSMON System Monitor Slot joingetoutanalog 0x02 0x0B 33 31 32 12 14 11 13 16 15 10 5 7 9 6 8 24 26 28 23 25 27 0 1 2 4 18 20 22 17 19 21 29 30 joingetoutdigital 0x04 0x0B 4 5 2 0 0 9 3 1 joingetoutserial 0x07 0x0B 0 1 timedate ramfree На этом подготовка закончилась, и теперь System Monitor щёлкает некоторыми joins того 11-го слота посредством joinsetdigital <слот> <join> <новое значение>, временами перевызывает ramfree, и отображает полученные в консоль изменения всех joins. В конце всего – joinmonitorslot stop 0x1



полная версия страницы