Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

clear_locks(1m) [opensolaris man page]

clear_locks(1M) 					  System Administration Commands					   clear_locks(1M)

NAME
clear_locks - clear locks held on behalf of an NFS client SYNOPSIS
/usr/sbin/clear_locks [-s] hostname DESCRIPTION
The clear_locks command removes all file, record, and share locks created by the hostname and held on the current host, regardless of which process created or owns the locks. This command can be run only by the super-user. This command should only be used to repair the rare case of a client crashing and failing to clear held locks. Clearing locks held by an active client may cause applications to fail in an unexpected manner. OPTIONS
-s Remove all locks created by the current machine and held by the server hostname. OPERANDS
The following operands are supported: hostname name of host server EXIT STATUS
0 Successful operation. 1 If not root. 2 Usage error. 3 If unable to contact server (RPC). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fcntl(2), attributes(5) SunOS 5.11 6 Oct 2004 clear_locks(1M)

Check Out this Related Man Page

clear_locks(1M) 					  System Administration Commands					   clear_locks(1M)

NAME
clear_locks - clear locks held on behalf of an NFS client SYNOPSIS
/usr/sbin/clear_locks [-s] hostname DESCRIPTION
The clear_locks command removes all file, record, and share locks created by the hostname and held on the current host, regardless of which process created or owns the locks. This command can be run only by the super-user. This command should only be used to repair the rare case of a client crashing and failing to clear held locks. Clearing locks held by an active client may cause applications to fail in an unexpected manner. OPTIONS
-s Remove all locks created by the current machine and held by the server hostname. OPERANDS
The following operands are supported: hostname name of host server EXIT STATUS
0 Successful operation. 1 If not root. 2 Usage error. 3 If unable to contact server (RPC). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fcntl(2), attributes(5) SunOS 5.10 6 Oct 2004 clear_locks(1M)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding out the length of a string held within a variable

:confused: Does anyone know which command I can use to find out the length of a string held within a variable? (5 Replies)
Discussion started by: dbrundrett
5 Replies

2. UNIX for Dummies Questions & Answers

Delete Core file in root directory

HP UX 11i Ok my server is about to run out of space, and i would like to know if there is something that i should be doing on a regular basis to maintain the machine like logs that i should clear or dmp file that i should delete... Thanks in Advance (2 Replies)
Discussion started by: bbutler3295
2 Replies

3. UNIX for Dummies Questions & Answers

Clearing Swapfiles?

Hi, Does anyone know of a command to safely clear the swapfiles to free up diskspace? It's done at shutdown/startup, but I'd rather not have down time, if possible. Thanks, MrToast (BTW, Mac OS X 10.3.5 ;) ) (3 Replies)
Discussion started by: MrToast
3 Replies

4. Linux

Whats for: /etc/locks directory?

Hi there! Can someone please tell me what is for the directory /etc/locks and provide me with an example. I certainly don't understand it very well. Any help will be much appreciated! (1 Reply)
Discussion started by: agasamapetilon
1 Replies

5. Red Hat

SEt two hostname in a linux server

Friends , Can I set two hostname in a Linux server at a time ? I want to give two hostname of my Linux server , is it possible to do ? Plz inform .. .. (2 Replies)
Discussion started by: shipon_97
2 Replies

6. SuSE

HOSTNAME not being applied

I have set up my hostname in dhcp and my dns server, but I cannot get the client to pick up the hostname that is listed for the ip. IE. 10.32.23.4 hostname should be client4 Anyone know why? It was working before and just stopped working (1 Reply)
Discussion started by: 3junior
1 Replies

7. Solaris

hostname.bge0 failing after creating bge0:1 and rebooting

Hello, I've got a puzzler here but it might be quick solution for some of you. I'm trying to add a second IP address to a network adapter on a Solaris 10 box. I've created a hostname.bge0:1 file and put in the new name, e.g. new.mycom.com. I've added the new IP and the name to hosts. I've... (12 Replies)
Discussion started by: Friedrich
12 Replies

8. AIX

LPAR - What is my VIO (hostname, IP, ...)

I am wondering if there is a command I can run from **with-in** LPAR server (server01) to find out the hostname or IP address or other parameters for VIO server in charge of server01? (1 Reply)
Discussion started by: ms1232
1 Replies

9. Red Hat

hostname command prints nothing a null value

Hi , On my box everything works fine. But whenever I run command It returns nothing as you see @(none) too. Its very strange issue I have never noticed on any other system yet. Any one have any idea about this. Thank you (2 Replies)
Discussion started by: pratapsingh
2 Replies

10. Solaris

2 hostname in one server

Hi, We have one server originally named <SERVERA>. Now we plan to put another network card & add another hostname <SERVERB>. Later, we will need to change hostname from <SERVERB> to <SERVERC>. I know that we need to plumb a new ip & add to /etc/hosts & /etc/hostname.<interface>. Is there... (2 Replies)
Discussion started by: beginningDBA
2 Replies

11. UNIX for Dummies Questions & Answers

Who created a file?

Hi!Can somebody tell me what command can I use to find who created a file,please? (6 Replies)
Discussion started by: teotrask
6 Replies

12. Solaris

[SOLVED] Issue with hostname command

Hi, i'm having issues with one of my db servers, each time i run the hostname command i get "-a" as result this is the only zone on this server where i have this issue. could any one help me with this issue (5 Replies)
Discussion started by: EduardoDiaz
5 Replies

13. UNIX for Dummies Questions & Answers

Unable to invoke mercurial client from crontab

We have the Mercurial client installed on our linux machine. $ hg --version Mercurial Distributed SCM (version 2.2.3)When I try to invoke it using a cronjob, it fails with the message "command not found". $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. #... (2 Replies)
Discussion started by: balajesuri
2 Replies

14. UNIX for Dummies Questions & Answers

Linux question on directories..

Hi, First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much. ls -l... (4 Replies)
Discussion started by: samnyc
4 Replies

15. HP-UX

Get ip of client, not hostname

Hello i'm trying to get the ip of a telnet session. With who -u I get the hostname of the user connecting to my server, because it checks the reverse DNS. But I only want the ip. Versions: HP-UX HP Release B.11.31 Who command: Hewlett-Packard Company - 4 - HP-UX 11i Version... (2 Replies)
Discussion started by: boltpower
2 Replies