9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a small queries to get the character count
i tried with wc -c and wc -m but its not returend current result
For eg:
wc -c
wc -m
echo "Name" | wc -c
result: 5 but actually it should returned 4
Help me on this to ge the correct one.
Thanks!
----------... (4 Replies)
Discussion started by: siva.pitchai
4 Replies
2. Shell Programming and Scripting
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
3. Solaris
Has anyone managed installing smartmontools on (Sparc) Solaris 10?
how to do it?
thanks. (1 Reply)
Discussion started by: orange47
1 Replies
4. Shell Programming and Scripting
Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies
5. Solaris
hi ,
I have a Solaris server which is part of a domain. The IP for this Solaris box is allocated dyanamically by a DHCP. Everytime the solaris box is restarted the IP gets changed. Being an admin what should i do to find the new ip of the Solaris server sitting at my location? Till now i get... (2 Replies)
Discussion started by: BalajiUthira
2 Replies
6. UNIX for Dummies Questions & Answers
In LINUX(CentOS, RedHat) is there a way to have the banner statement appear before the logon instead of after the logon? In UNIX and Windows the banner appears before a person actually logs on, what I'm seeing in LINUX is that it appears after the login(ftp, telnet, SSH).
Thanks (0 Replies)
Discussion started by: ejjones
0 Replies
7. Filesystems, Disks and Memory
I found a document: Bad block HOWTO for smartmontools
My hard drive is Maxtor:
root]# fdisk -lu /dev/hda
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3f4e3f4d
... (0 Replies)
Discussion started by: justinian
0 Replies
8. Shell Programming and Scripting
Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).
Eg:
0000001
0000220
0001235
0000022
0000023
...........
.........
........
Like this i am having around 1500000 records. After adding... (23 Replies)
Discussion started by: thambi
23 Replies
9. UNIX for Dummies Questions & Answers
HI All,
Suddenly don't know what happened to redhat linux 7.2 any program start then itsn't listing while using ps -ef
ex: ./xyz this xyz program pid not showing in ps-ef
Pls let me know what is the reason for the same.
Thanks a lot in advance
Bache (7 Replies)
Discussion started by: bache_gowda
7 Replies
UPDATE-SMART-DRIVEDB(8) SMART Monitoring Tools UPDATE-SMART-DRIVEDB(8)
NAME
update-smart-drivedb - update smartmontools drive database
SYNOPSIS
update-smart-drivedb [OPTIONS] [DESTFILE]
DESCRIPTION
[This man page is generated for the Linux version of smartmontools. It does not contain info specific to other platforms.]
update-smart-drivedb updates /var/lib/smartmontools/drivedb/drivedb.h or DESTFILE from smartmontools SVN repository.
It tries to download first from the current branch and then from trunk. The tools used for downloading are either curl(1), wget(1),
lynx(1), or svn(1).
The old file is kept if the downloaded file is identical (ignoring the differences in Id string) otherwise it is moved to drivedb.h.old.
OPTIONS
-s SMARTCTL
Use the smartctl(8) executable at path SMARTCTL for drive database syntax check. The form '-s -' disables the syntax check. The
default is /usr/sbin/smartctl.
-t TOOL
Use TOOL for download. TOOL is one of: curl wget lynx svn. The default is the first one found in PATH.
-u LOCATION
Use URL of LOCATION for download. LOCATION is one of:
sf (Sourceforge code browser via HTTPS),
svn (SVN repository via HTTPS),
svni (SVN repository via HTTP),
trac (Trac code browser via HTTPS).
The default is svn.
--cacert FILE
Use CA certificates from FILE to verify the peer.
--capath DIR
Use CA certificate files from DIR to verify the peer.
--insecure
Don't abort download if certificate verification fails. This option is also required if a HTTP URL is selected with '-u' option.
--dryrun
Print download commands only.
-v Verbose output.
EXAMPLES
# update-smart-drivedb
/var/lib/smartmontools/drivedb/drivedb.h updated from branches/RELEASE_6_6_DRIVEDB
EXIT STATUS
The exit status is 0 if the database has been successfully updated. If an error occurs the exit status is 1.
FILES
/usr/sbin/update-smart-drivedb
full path of this script.
/usr/sbin/smartctl
used to check syntax of new drive database.
/var/lib/smartmontools/drivedb/drivedb.h
current drive database.
/var/lib/smartmontools/drivedb/drivedb.h.old
previous drive database.
/var/lib/smartmontools/drivedb/drivedb.h.error
new drive database if rejected due to syntax errors.
/var/lib/smartmontools/drivedb/drivedb.h.lastcheck
empty file created if downloaded file was identical.
AUTHORS
Christian Franke.
This manual page was originally written by Hannes von Haugwitz <hannes@vonhaugwitz.com>.
REPORTING BUGS
To submit a bug report, create a ticket in smartmontools wiki:
<http://www.smartmontools.org/>.
Alternatively send the info to the smartmontools support mailing list:
<https://lists.sourceforge.net/lists/listinfo/smartmontools-support>.
SEE ALSO
smartctl(8), smartd(8).
PACKAGE VERSION
smartmontools-6.6 2016-05-31 r4324
$Id: update-smart-drivedb.8.in 4223 2016-02-26 20:18:40Z chrfranke $
smartmontools-6.6 2016-05-31 UPDATE-SMART-DRIVEDB(8)