How to do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shovenose
    Send Doge Memes
    • Aug 2010
    • 6575
    • USA

    #1

    How to do this?

    OK, so I noticed something at the bottom of badcaps.net that intrigued me:
    "Server has been up for 11 Days, 8 Hours, and 4 Minutes."

    How do I add that to my server's website?
    Thanks!
  • mariushm
    Badcaps Legend
    • May 2011
    • 3799

    #2
    Re: How to do this?

    on Linux you have the "uptime" command...dump contents in a file then parse the time info...
    http://www.ruchirablog.com/simple-ph...uptime-script/

    on Windows, you have systeminfo which dumps a ton of crap but also tells the date/time system was booted so you can grab that.
    There's also Windows API that can tell you ...GetTickCount tells number of ms since windows booted (but it's 32bit value so 2 billion ms and then resets) and there's other ways to determine (wmi instrumentation, shell scripting, other api funcitons etc)

    http://en.wikipedia.org/wiki/Uptime
    Last edited by mariushm; 01-22-2012, 01:16 PM.

    Comment

    • shovenose
      Send Doge Memes
      • Aug 2010
      • 6575
      • USA

      #3
      Re: How to do this?

      Thank you very much, I will try those

      Comment

      Related Topics

      Collapse

      • omega
        Troubleshooting of redundant F750E-S0 Dell PowerEdge Server
        by omega
        Hello all,
        as a beginner electronics hobbyist, after a few years I would like to place another post on this Forum section, given that I did not succeed in finding any useful advice among the other posts.

        Over the last years, I have been using a PowerEdge Dell Server with two redundant PSUs, namely the 750W F750E-S0 ones (aka 06W2PW). Unfortunately, last summer one of them failed (perhaps owing to an overheating), and the server had for working to take into account the other one only. Of course I opened and tried to troubleshoot the failed PSU, but each cap I tested seemed to...
        02-09-2024, 03:34 PM
      • Document Archive
        HP ZBook 15v G5 Mobile server 15v Specification for Upgrade or Repair
        by Document Archive
        This specification for the HP ZBook 15v G5 Mobile server can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the 15v G5 boardview and 15v G5 schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for HP ZBook 15v...
        09-06-2024, 11:39 AM
      • harp
        Comparing FreeNAS, FTP server, SMB server, multimedia server...
        by harp
        I thinking about some central LAN file server, on where I can put some files from other devices, or access to them, and maybe play some movie without download...

        I never study this, but when I see that freenas need few gigabyte of ram to recommended working, some wiered partition, I wonder if I miss somewhat in the midletime...
        Also exist "turnkey file server", and other turnkey products that I can not distinguished what is major difference and how it perform - no experiance at all.

        What is general difference between this products, and what be most useful...
        01-04-2024, 02:44 PM
      • Fireballcz
        Windows 2016 server L2TP/IPsec VPN - two subnets
        by Fireballcz
        Hello, please how to properly configure VPN in this environment?
        I have two subnets in two different (geographical) workplaces, connected via IPsec (thru gateway routers)
        Main subnet: 192.168.11.0/24, gateway (router IP) 192.168.11.1, Windows 2016 server (VPN, DHCP, DC etc.) 192.168.11.3
        2nd subnet : 192.168.22.0/24, gateway (router IP) 192.168.22.1 - just client computers.

        I need to allow external (home office) users connect via VPN server (192.168.11.3) to the 2nd subnet (192.168.22.0/24) to their computers (via RDP).
        I have no problems with VPN connection...
        07-29-2022, 03:20 AM
      • frans00000001
        Supermicro Server mainbaord x10dri-ln4+ schematic
        by frans00000001
        Good day

        I am looking for a mainboard schematic for a Supermicro Server mainbaord x10dri-ln4+ as the track broke off on the BIOS chip and I want to repair to use the server again. If possible can someone assist to get this schematic?
        08-06-2025, 05:36 AM
      • Loading...
      • No more items.
      Working...