Results 1 to 4 of 4

Thread: How I can check the site bandwidth usage via command line?

  1. #1
    Kilo Poster
    Join Date
    Feb 2008
    Posts
    56

    Default How I can check the site bandwidth usage via command line?

    Hi.

    How I can check the site bandwidth usage via command line in Ensim Pro?

    I am work in a API to Ensim, and need view the current usage of bandwidth via command line.



  2. #2
    Mega Poster
    Join Date
    Nov 2007
    Posts
    144

    Default

    sitelookup -d domain.com

    see site_id number then:

    psql appldb
    select * from bandwidth_log where site_id='30';

    to exit: \q
    Kabayo
    Lanus - Argentina



  3. #3
    Kilo Poster
    Join Date
    Nov 2007
    Posts
    86

    Default

    This might be easier if you have to do this regularily:


    #!/bin/sh
    [ -z $1 ] && echo "Please specify a domainname." && exit 0
    if [ ! `/usr/local/bin/DomainExists $1` ]; then
    SITEHANDLE=`/usr/local/bin/sitelookup -d $1 site_handle | cut -de -f2`
    echo "select * from bandwidth_log where site_id="$SITEHANDLE";" | psql appldb
    else
    echo "Domain $1 doesn't seem to exist!"
    fi
    ---
    [url=http://pixelfish.be]PixelFish[/url] - Practical guides to Ensim and CentOS
    [url=http://fuxpam.be]fuxpam[/url] - A guide to the free, alternative spamfilter relay aimed at ISPs and hosting providers. (coming soon)

    AIM: breadedfishstrip | MSN: [email]fishstick_@hotmail.com[/email]



  4. #4
    Kilo Poster
    Join Date
    Jul 2008
    Posts
    20

    Default View Site Bandwidth Usage Utility

    Quote Originally Posted by cristianm View Post
    Hi.

    How I can check the site bandwidth usage via command line in Ensim Pro?

    I am work in a API to Ensim, and need view the current usage of bandwidth via command line.
    Have you tried this Script for Command line Bandwidth Information. I have been using the Daily Admin Report for a while now and it has been very helpfull Information.

    Here the direct link to the Bandwidth Tool: http://wwd-hosting.net/ensim/#view_s..._usage_utility

    They use the Ensim API and can be ajusted to you own needs.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •