General :: Check The Size On A Server?
Aug 19, 2010how can I check the size of file on server in bytes?
i need to do it for following
how can I check the size of file on server in bytes?
i need to do it for following
I was going to back up some files to a DVD so I loaded a new blank in the drive and waited for it to come ready. I decided that now was a good time to fill up my drink and left the computer for a while. When I got back about 30 minutes later, I noticed that the drive was still cycling and had not become ready. I finally got the process killed and tried another blank, which worked. Then I went on about my business.
The next day, the machine hung up on boot with Dmesg saying that it was starting the syslog daemon, but that was as far as it would go till it dropped to the maintenance shell after a few minutes. Multiple boots always did the same thing.
After considerable troubleshooting, I noticed that the syslog file was at the maximum size - about 2.5 gig I think - and was full of DVD drive errors. Deleting the file fixed the problem.
Just to test, I built a phony syslog file to the maximum size and installed it in /var/log. Bang - same problem.
So... It appears that the system logger doesn't test for max size overflow either during runtime or during boot. Interestingly, I googled up one hit for the same problem from a couple of years ago, also on Debian, but nothing in the debian.org problem lists.
I am using FTP to read a file. Before the transfer I need to check the size of file.
I found the keyword to check the size of file in C. But I want to know how to use it.
ftp command to check the size is --> SIZE
ftpXfer(IPaddr, FtpUser, FtpPass,
"", "SIZE %??", RootDir, FileName,
&ctrlSock, &dataSock);
fileSize read
read(dataSock, ??, ??);
script that will check if my log file is a certain size? EX: I want to limit the size of my rsync log to say 5MB, if that's true I would move it and create a new one.
View 4 Replies View RelatedIs there any other way to check the overall size of the hard disk other than just fdisk -l? This is because the cloud server that my company has purchased is supposed to have 50GB of hard disk size,It shows that it has two SCSI drives, only both summing up to 50GBs. So what is the second SCSI drive, and why is it divided that way? dev/sda and dev/sdb???
View 1 Replies View RelatedI have a file that's supposed to be growing in size 24/7. I want to check every 10 minutes via cron that it's actually growing. If not, send an email. Does anyone know how to write a script to do that?
View 3 Replies View RelatedI have developed a small website using jspx pages.Now i want to host the website to a server which is a linux machine.The linux machine which i m referring to is already hosting some web pages(jspx) through a web server Which is running at port 8888.My first question would be "How would i check which web server is installed in the server?"Due to my little knowledge about linux machine .I have copied some simple html pages to /var/ www/ html location. The pages are getting accessed correctly on port number 80.But how would i go about hosting jspx pages.
View 13 Replies View RelatedI'm looking for an easy way to check if some server is down, and then act upon it. This check needs to be done from the backup-server. So if the backup-server thinks the production server is down, then in some bash script I want to execute a rule.
My question: what is an easy way to check another server ?
1. I know about Nagios. It's great, but to large to use here.
2. I could ping the server, put a ping that fails does not necessarily mean the server is down.
I need to know what command to use to check whats using all of my ram on my server i use the top command but it doesn't show much information
View 8 Replies View Relatedwhen trying to use "yum install skype" i get this line below No Repositories Available to Set Up
View 1 Replies View RelatedHow to check server usage (process and memory) for last 4months in RHEL5
View 3 Replies View RelatedI need to add something to an existing shell script that will check whether a remote server is up or not.basically (but I can't figure it out) :-
if [ -the server to check- ] ; then
echo "Server is Up"
else
[code]....
A server is described as being "really slow". What are the first couple of things you would check?
View 2 Replies View RelatedI need a script to check Server health checkup, includes: CPU utilization,process running,utilization taken by processes,free space...
View 2 Replies View RelatedI am writing an script for sending emails with ssmtp email client in an appropriate form.I want to know how can I check mail server that I want to send mail to it if it exist and ready to receive email or if not log an error.
View 3 Replies View RelatedI need to check with nagios an oracle database that is located on a server. There are a lot of plugins that are provided, the problem is that the database is located on a remote server (i have an hostaddress) and then i need to log on the database (i have username and pass)So i only need to have a plugin that connects to that hostaddress and logs on, but i can't find any plugin which does that
View 14 Replies View Relatedfrom nmap localhost | grep mysql command i will come to know whether mysql server is running or not.my problem is i want to test whether mysql server is running or not in shell script and if it is running i need to tell the user to stop the server to run the shell script.
View 3 Replies View RelatedI'm trying to check my server's bandwidth usage in real time, installed the following programs but none worked so far.
Iptraf - No results even when using iptraf -u
Tcptrack - Error : pcap_loop: cooked-mode frame doesn't have room for sll header
Iftop - No results, everything 0b
Are there any programs that displays bandwidth usage in real time and actually works on VPSes? Or getting real time bandwidth usage on a VPS is simply impossible?
I need to check the free available size on the "/root" before creating a file .
Can i do it by using df?if not , can you specify me which one to use?
I have a dell PE1750 server which would not boot up after a power failure. I am thrown to a shell for maintenance after showing an error in file system check. The server was running - Red Hat Enterprise Linux AS release 3 (Taroon). Please let me know if I can try to recover from this error by booting from the 1st CD of a higher version of linux like RHEL5. I ask this because I do not have the old media with which the system was setup. Can the use of latest OS CD cause any problem?
View 2 Replies View RelatedRight now i have a HP DL 180 Server with 130 Gb Hard Disk & 8 Gb ram after Raiding0+1. i want to configure Domain Controller Server for my office for 200 to 300 Users. what should the partition size must be mentioned in my 130 Gb Hard Disk, is that going to be Sufficient for ME ?
i am bit confused about /Usr /Var /Boot partitions, as i need to manage perfectly in 130 GB
if i go with 4 Gb swap and remaining for " / " is that will be fine ? should i need to specify partition sizes separately for / tmp /var / usr ..
Anyone know a simple command line to check for a specific email - by subject - on an SSL secured IMAP server?
View 2 Replies View RelatedI have a RHEL5 machine having mysql5.0.22 is installed in it. i also installed java through "jdk-1_5_0_19-linux-i586.bin" package, and its version is 1.5.0_19. I am trying to check if any JDBC driver for Mysql Server is installed on my system . How can I do this? If any driver is already installed How can I get the file path for those driver files? is it comes along with jdk packages? As i am not a programmer, and does't know more about jdbc.
View 1 Replies View RelatedAfter searching the forum I could not find a clear answer to my question so I am giving it a try...
I have installed a LAMP server with Postfix as mail server. The scripts send email as user www-data using the mail server on the same machine.
However, the email got rejected by external mail servers (failed reverse DNS check) so I setup a mail server that meets all needed requirements.
Now I would like to use this second server instead of the mail server on the LAMP server. I found that this could be done with changing sendmail settings in php.ini (I think).
However I am not sure how that will go: www-data is no actual user on the new email server (which requires authentication before sending). Do I need to create a new user on the email server or change the settings in php.ini to match an existing user?
I'm new to setting up Linux Servers. I've setup a Ubuntu 10.10 Server along with CUPS and I'm using Webmin to talk to the server. I have a HP PSC 1315 Multifunction printer connected via usb to the server. Using the CUPS web interface I am able to get the server to detect the connected printer and it identified the HP PSC 1310 Series drivers.
When I printer a test page from the server's screen the print job goes through ok and the size was about 5k.
I then setup a samba share to allow my Windows 7 machine to share the printer. Windows 7 is able to pick up the shared printer correctly and I used the default HP 1310 Series drivers. When I tried to send a test page to the printer, that single page ended up being 3887kb and I also tried printing out a single paged word document which ended up being over 7MB.
How can I increase the size of a server partition as /dev/loop0
Disk informationDeviceMount pointUsage
/dev/loop0/var/tmp2% (11,070 of 495,844)
/dev/sda1/46% (100,819,056 of 233,872,292)
/usr/tmpDSK/tmp3% (11,070 of 495,844)
I use
WHM 11.30.1 (build 4)
CENTOS 5.6 i686 standard on ds-59085
I'm using a linux server where nat server is running. Local user are connected from this server. So is there in tool that i can check that local user getting internet? or how can i check that a user connected from linux server using internet or where he visited?
View 1 Replies View RelatedI would like to implement something when a server is offline for whatever reason. For example. I got my own DNS servers and webservers. I would like it if the users goes to www.somedomain.com and the server it is actually on is down for maint. or For whatever not able to respond. What can be done so that if the server isn't able to be contacted that it can point to either a another server or the dns somehow can display a page stating who to contact to report a problem or to let them know its down for maint. And can goto a site to check the status or whatever.
View 7 Replies View RelatedWe are using axigen with redhat
linux how to check if email server machine doing spamming.
My server OS CentOS release 5.4 (Final). Using Plesk panel 9.2..Server getting down frequently, how to check the log on server. how to find out the reason.
View 9 Replies View Related