Balthazar Posted September 29, 2013 Report Share Posted September 29, 2013 Случайно попаднах на този скрипт който променя по готин начин конзолата на Mikrotik по следния начин Ето го и самото скриптче :local content :local logcontenttemp "" :local logcontent "" :local counter :local v 0 :set logcontenttemp "You are logged into: $[/system identity get name]" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") :set logcontenttemp "############### system health ###############" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") :set logcontenttemp "Uptime: $[/system resource get uptime] d:h:m:s" :set logcontent ("$logcontent" ."$logcontenttemp" ." | ") :set logcontenttemp "CPU: $[/system resource get cpu-load]%" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") :set logcontenttemp "RAM: $(([/system resource get total-memory]-[/system resource get free-memory])/1024)/$([/system resource get total-memory]/1024)M" :set logcontent ("$logcontent" ."$logcontenttemp" ." | ") ## #voltage and temp readout not available on x86, check for this before trying #to record otherwise script will halt unexpectedly ## :if ([/system resource get architecture-name]="x86") do={ :set logcontenttemp "Voltage: NIL" :set logcontent ("$logcontent" ."$logcontenttemp" ." | ") :set logcontenttemp "Temp: NIL" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") } else={ :set logcontenttemp "Voltage: $[:pick [/system health get voltage] 0 2] v" :set logcontent ("$logcontent" ."$logcontenttemp" ." | ") :set logcontenttemp "Temp: $[ /system health get temperature]c" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") } :set logcontenttemp "############# user auth details #############" :set logcontent ("$logcontent" ."$logcontenttemp" ."n") :foreach counter in=[/ip hotspot active find ] do={:set v ($v + 1)} :set logcontenttemp "Hotspot online: $v |" :set v 0 :foreach counter in=[/ppp active find ] do={:set v ($v + 1)} :set logcontenttemp ("$logcontenttemp" . " PPP online: $v") :set logcontent ("$logcontent" ."$logcontenttemp" ."n") /system note set note="$logcontent" 1 Link to comment Share on other sites More sharing options...
Administrator 111111 Posted September 29, 2013 Administrator Report Share Posted September 29, 2013 Може да си поиграя тея дни да вкарам повече към паното Харесай поста ^^^ Форумът е за взаимопомощ а не за свършване на чужда работа RB951Ui-2HnD / RBD25GR-5HPACQD2HPND&R11E-LTE6 / RB952Ui-5ac2nD-TC ɹɐǝɥ uɐɔ noʎ ǝɹoɯ ǝɥʇ 'ǝɯoɔǝq noʎ ɹǝʇǝınb ǝɥʇ Link to comment Share on other sites More sharing options...
Mupo neTkoB Posted September 29, 2013 Report Share Posted September 29, 2013 Имаше някакво огланичение Теория - това е когато знаете всичко, но нищо не работи Практика - това е когато всичко работи, но не знаете защо При нас съчетаваме теорията с практиката - НИЩО не работи и нямаме понятие защо!!! Link to comment Share on other sites More sharing options...
Balthazar Posted September 29, 2013 Author Report Share Posted September 29, 2013 Дам аз пробвах одеве с ASCII стана доста интересно Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now