Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rrpc_shutdown(3ncs) [ultrix man page]

rrpc_shutdown(3ncs)													       rrpc_shutdown(3ncs)

Name
       rrpc_shutdown - shut down a server

Syntax
       #include <idl/c/rrpc.h>

       void rrpc_$shutdown(handle, status)
       handle_t handle;
       status_$t *status;

Arguments
       handle A remote procedure call (RPC) handle.

       status The completion status.  If the completion status returned in is equal to status_$ok , then the routine that supplied it was success-
	      ful.

Description
       The routine shuts down a server, if the server allows it.  A server can use the routine to allow or disallow remote shutdown.

Diagnostics
       This section lists status codes for errors returned by this routine in

       rrpc_$shutdown_not_allowd
	      You send an request to a server that has not issued an call.

Restrictions
       On the client side, because of the way the calls are defined and implemented in the run-time library you  must  explicitly  call  into  the
       entry  point  vector  table  for  the  interface to send an request across the network. The following is an example of a call that works as
       desired:
       (*rrpc_$client_epv.rrpc_$shutdown)(handle, &status);

       The server side stub routine calls the entry point on behalf of the client.  The results of the call are then passed back to the client.

       Before making the shutdown call, the server must have previously executed the following call:
       rpc_$allow_remote_shutdown((unsigned long) TRUE,NULL,&status);

       If the server has not allowed remote shutdown, the call returns an status code.

Files
See Also
       intro(3ncs), rpc_allow_remote_shutdown(3ncs), rpc_shutdown(3ncs)

															       rrpc_shutdown(3ncs)

Check Out this Related Man Page

rrpc_inq_interfaces(3ncs)												 rrpc_inq_interfaces(3ncs)

Name
       rrpc_inq_interfaces - obtain a list of the interfaces that a server exports

Syntax
       #include <idl/c/rrpc.h>

       void rrpc_$inq_interfaces(handle, max_ifs, ifs, l_if, status)
       handle_t handle;
       unsigned long max_ifs;
       rrpc_$interface_vec_t ifs[];
       unsigned long *l_if;
       status_$t *status;

Arguments
       handle	      An RPC handle.

       max_ifs	      The maximum number of elements in the array of interface specifiers.

       ifs	      An array of rpc_$if_spec_t.

       l_if	      The index of the last element in the returned array.

       status	      The  completion status.  If the completion status returned in is equal to status_$ok , then the routine that supplied it was
		      successful.

Description
       The routine returns an array of RPC interface specifiers.

Restrictions
       On the client side, because of the way the calls are defined and implemented in the run-time library you  must  explicitly  call  into  the
       entry point vector table for the interface to send an request across the network. The following is an example of a call that works
	 (*rrpc_$client_epv.rrpc_$inq_interfaces)(handle,
		    (unsigned long) max_ifs, ifs, &l_if, &status);
       The server side stub routines call the entry point on behalf of the client.  The results of the call are then passed back to the client.

Files
See Also
       intro(3ncs)

															 rrpc_inq_interfaces(3ncs)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

to shutdown

Hai Could somebody tell me the solution to my problem. the question is as follows there is one unix server and 100 dummy terminals connected to my server, i want to shutdown client system if some of the client forgetten to power down their system. plez provide me the code for that. (2 Replies)
Discussion started by: rajashekaran
2 Replies

2. UNIX for Dummies Questions & Answers

read function

Hello all In UNIX i wrote a program which simply establishes a conncetion with another system, using write system call i wrote a message to the server from client and from the server i send another message, for the second time i send a mesage using write system call to the server, when i send a... (1 Reply)
Discussion started by: rajashekaran
1 Replies

3. UNIX for Dummies Questions & Answers

Help unable to shutdown- RPC problems

Help unable to shutdown- RPC problems I seem to have consistent problems shuting down whichever init state I use basically I get the following errors messages followed by a return to the prompt # shutdown -i6 -g0 -y Shutdown started. Tue Oct 1 09:47:03 BST 2002 Broadcast Message from... (1 Reply)
Discussion started by: vviscomi
1 Replies

4. AIX

migrate NIM server through NIM installation

I try to migrate a NIM server from one server to another. I try to do a mksysb on NIM server restore the NIM server's mksysb to a client through NIM installation shutdown NIM server start newly installed client as NIM server Does anyone do this before? who can give me some suggestion? (1 Reply)
Discussion started by: yanzhang
1 Replies

5. SCO

Small Problem with SCO

Help Please , how to shutdown SCO v. 5.0.5 from client pc ( windows xp or 2000 ) ? i have full access from client and i need to shutdown SCO from windows (2 Replies)
Discussion started by: rabih_saleh
2 Replies

6. Shell Programming and Scripting

How to shutdown client machine from the server

I have a unix server through which some ten client machines are connected. I want to shutdown/restart all the machine from the server through the shell script during the particular time of the day. I welcome your suggestions. Thanks in advance. With regards Victor (1 Reply)
Discussion started by: mvictorvijayan
1 Replies

7. Infrastructure Monitoring

visual representation of server health

HI all, I want to make a webpage showing the status of services running on a server. for example email, http , etc. That way users can see that server status for themselfs. Maybe even show the status of each virtual domain running on the server. Any way to do this without buying some product? ... (4 Replies)
Discussion started by: mcraul
4 Replies

8. Programming

TCP status question

There is a server and a client,when client send a message to server,server can send a reply to client. The status of server and client is ESTABLISHED.Then I halt the client,I find the server status is CLOSE_WAIT and the client status is FIN_WAIT_2. Many minutes passed,I find the the server status... (1 Reply)
Discussion started by: konvalo
1 Replies

9. UNIX for Advanced & Expert Users

emergency shutdown best practices.

Has anyone implemented or have suggestions on how to shutdown many remote unix/linux servers from a single script initiated from 1 server? I need this to execute in parallel as time is not on my side. Our ups is sadly underrated and will die in approximately 15 minutes. (There is not... (10 Replies)
Discussion started by: jsw371
10 Replies

10. UNIX for Dummies Questions & Answers

To ftp file on a remote server

I want to send some files in .gz format from my desktop to a remote server. What will be the procedure for that thanks (5 Replies)
Discussion started by: supercops
5 Replies

11. UNIX for Dummies Questions & Answers

help remote procedure call

i am beginig with unix c code for sun remote procedure call to do the following: 1- The clients reads in a variable length array from the command line 2- The client offers a menu for the user to choose what to do with the array: a. Sort the array b. Add the array c. Find max d. Find... (1 Reply)
Discussion started by: auto2000
1 Replies

12. Programming

when socket know the peer machin has already been down?

hi, I have developed a very simple echo client/server application. I expect whenever i shutdown the server machine, the client peer detects the shutdown.In reality this doesn't happen and client continues to send and receive data.To my surprise, it even recv() returns with value greater than... (4 Replies)
Discussion started by: Sedighzadeh
4 Replies

13. UNIX for Advanced & Expert Users

What is a taxi server?

Hi, Can somebody please tell me what is a taxi server? I came to know the term taxi server in context of remote access. I tried to google it out could not get any definition/description of what this taxi server really is? If anyone knows any website/link to learn more about taxi... (6 Replies)
Discussion started by: shankhaagt
6 Replies

14. Shell Programming and Scripting

Check for DB status and startup DB

EXPERTS, I need a UNIX shell script to check the DBs status (Running/Shutdown) in the server.If its Running then no issue but if it is in shutdown state ,it should prompt like " DB is shut down you want to startup??" if i enter YES it should startup. ORACLE_SID are present in... (18 Replies)
Discussion started by: navsan420
18 Replies

15. UNIX for Advanced & Expert Users

CMD to check status of the server using Wget

Hi All, Using Wget I'm able to get the status of the server.....only when the server is completely down or up.... but problem here in script is Suppose if the server got hang I mean to say that if the server is taking long time to login, for example normally the server takes 3 seconds to login... (3 Replies)
Discussion started by: manohar2013
3 Replies