Skip to main content

ESLM & MFDS control commands

  • January 23, 2017
  • 13 replies
  • 0 views

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

13 replies

  • Author
  • Rocketeer
  • 19312 replies
  • January 24, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

We need to know your product, version, and platform.


  • Author
  • Rocketeer
  • 19312 replies
  • January 24, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Please don't send me personal messages - they don't work properly, and other people can't see them. Post responses in the thread.


  • Author
  • Rocketeer
  • 19312 replies
  • January 24, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Hi Michael,

Please see details below.

Product - Microfocus COBOL

Version - 6.0.00

Platform - Linux 2.6.18-128.el5

details from cobver file

cobol v6.0.00

PRN=RXCTU/AAJ:9o.a2.60.04

PTI=32/64 bit

PTI=SP1

PTI=ES


  • Author
  • Rocketeer
  • 19312 replies
  • January 25, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Unfortunately that doesn't tell me what version of ES you're actually running. (I believe there's some way to look that up from the PRN, but I don't know what it is.)

In ES 6.0 SP1 WS1 and later, and possibly in earlier versions, MFDS supports the -S command-line option, which will ask a running MFDS instance to shut down:

mfds -S 1 [userid password]

Supply userid and password if MFDS security is enabled. Use "mfds -S 2" to also ask MFDS to tell any running ES instances to shut down.

For eslm, if you have the eslmfgetpv utility in $COBVER/bin, you can use:

eslmfgetpv k

I'm not sure which products include eslmfgetpv. If you don't have it, you should open an incident with Micro Focus Customer Care to find out whether it's available.


  • Author
  • Rocketeer
  • 19312 replies
  • January 25, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Hi Michael,

Our scripts have "mfds64 /d" to start MFDS server and "mfds64 -s" to stop MFDS server. But stop command didn't help to stop MFDS, resulting us to use kill -9 to stop it. I'll try with your commands above and let you know the results.

Regards, Priyesh


  • Author
  • Rocketeer
  • 19312 replies
  • January 25, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Hi Michael,

Our scripts have "mfds64 /d" to start MFDS server and "mfds64 -s" to stop MFDS server. But stop command didn't help to stop MFDS, resulting us to use kill -9 to stop it. I'll try with your commands above and let you know the results.

Regards, Priyesh


  • Author
  • Rocketeer
  • 19312 replies
  • January 26, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

"mfds64 -s" is not a valid MFDS command line. It needs to be at least "mfds64 -S 1" or "mfds64 -S 2", and if MFDS security is enabled, you'll also have to supply credentials.


  • Author
  • Rocketeer
  • 19312 replies
  • January 26, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

And why are you using the -d (or /d) option to start MFDS? That's only recommended for debugging purposes, and most of the output is only useful for Micro Focus Development anyway. MFDS already keeps a journal of messages - there's rarely any reason to use the -d option.


  • Author
  • Rocketeer
  • 19312 replies
  • January 26, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

Hi Michael....I'm Bill Comin and I work with Priyesh.  The tests he ran were on a 64-bit Linux version. At the time we needed a Unix sysadmin on the task to run any commands requiring root access.  I decided to try running the recommended commands on an older machine we have that runs 5.1.1.0/wrap pack 3, but also allows our group root privileges to certain command paths (via sudo). I ran the command  "sudo /opt/product/mfc/5.1.3/bin/mfds -S 1" and got a response "Processing -S option..." and the version of the MFDS daemon, but the MFDS was still left standing.  My question is in regard to credentials. How do we know what username to use for the ' mfds -S 1 [username password] ' command?  The mfds command's owner is 'mfc', for which the SA's do not allow password access.


  • Author
  • Rocketeer
  • 19312 replies
  • January 28, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

The optional username and password for "mfds -S" are in the context of MFDS security, not OS security. It's possible to configure MFDS security so those are the same security domain, but that's relatively uncommon.

If you don't have MFDS security configured, then you don't need credentials. If you do have MFDS security configured, I can't tell you what credentials to use or how to find them without knowing more about your MFDS security configuration. MFDS and ES have a pluggable security mechanism (the External Security Facilty, or ESF), and MFDS also has a legacy built-in security manager; so there are a number of possibilities.

Out of the box, MFDS does not have security enabled.

Another possible problem is that when you run "mfds -S" it's not able to bind its local socket or connect to the running MFDS. It may be trying to bind a privileged port by default; I haven't looked into what the code does in any detail. I can do some experimenting but I'm out of the office until Tuesday. I'll also pass this on to the relevant developer team.


  • Author
  • Rocketeer
  • 19312 replies
  • January 30, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper

If the mfds -s command has an issue sending the request to the mfds process you are attempting to terminate, it should report an error and exit the process with a non-zero return code. You can also specify "mfds -d -s" and more information will be output. Note that the "-d" must prefix the "-s".

On the receiving mfds process side the mfds journal should log any shutdown request that's received. You will see something like this in the journal console:

MC0039I Processing MFDS_CONTROL_SHUTDOWN request...

If there is an issue with any input credentials you will see:

MC0038E Refused: requester has insufficient privileges

or other error message. These messages will also be logged in the console output if you have the -d startup option specified in the target mfds process, although as Michael has noted, the -d option should really only be used for debugging purposes. The journal output can be accessed via the mfds HTML UI and exported in text format from there also.


  • Author
  • Rocketeer
  • 19312 replies
  • February 23, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper
Priyesh and I submitted the "mfds -d -S 1" command on a Micro Focus region on which our group has been granted SUDO access to execute commands in the $COBDIR/bin path. When WP-3 was installed on this Linux 32-bit OS machine in 2014, the "alphanumeric user ID of the ES System Admin" was set to 'mfc', which is used on all our installations. The STDOUT of the command "sudo $COBDIR/bin/mfds -d -S 1" was :
Processing -d option...
Copyright (c) 1991 - 2008 Micro Focus International Ltd.
Micro Focus Directory Server daemon: Version 1.09.48
Processing -S option...
14:31:23 -------------------------------------------------------
14:31:23 Micro Focus Directory Server Version 1.09.48
14:31:23 DF8041E Read config file
14:31:23 DF8042E /opt/product/mfc/5.1.3/etc/mfdsacfg.dat
14:31:23 Binding to any network adapter...
14:31:23 ...bound on any adapter on port 0\\udp
14:31:23 SL9045I ...releasing UDP handle semaphore 9327538.
14:31:23 SM0001I Terminated normally (atexit).

Since the MFDS daemon did not terminate, we exported the file at /var/mfcobol/es/logs/journal.dat from the HTML UI into journal.txt and found these messages:
MC0038E Refused: requester has insufficient privileges
MC0004E Credentials required
MC0003W No credentials
MC0001I Option 1
MC0039I Processing MFDS_CONTROL_SHUTDOWN request...
SL0001I [MFDS_CONTROL_SHUTDOWN] (208) request from address 0xa259ce2 [10.37.156.226], port 0xda05 [55813]

Would the ES be looking to receive the [username password] for the "mfc" ES system admin ID, or for some other ID? We **are** running MFDS internal security, with "Restrict administration access" checked (turned on). Specifying the password for "mfc" in clear text inside a script would not be allowed by our Unix administrators. If the credentials for the ID of "mfc" are what is required, can they be supplied in some other more secure fashion?

  • Author
  • Rocketeer
  • 19312 replies
  • February 23, 2017

Hello Friends,

Could you please provide commands for starting and stopping MFDS and ESLM process? Our environment currently uses kill commands to stop these processes.

Regards, Priyesh


#EnterpriseDeveloper
Priyesh and I submitted the "mfds -d -S 1" command on a Micro Focus region on which our group has been granted SUDO access to execute commands in the $COBDIR/bin path. When WP-3 was installed on this Linux 32-bit OS machine in 2014, the "alphanumeric user ID of the ES System Admin" was set to 'mfc', which is used on all our installations. The STDOUT of the command "sudo $COBDIR/bin/mfds -d -S 1" was :
Processing -d option...
Copyright (c) 1991 - 2008 Micro Focus International Ltd.
Micro Focus Directory Server daemon: Version 1.09.48
Processing -S option...
14:31:23 -------------------------------------------------------
14:31:23 Micro Focus Directory Server Version 1.09.48
14:31:23 DF8041E Read config file
14:31:23 DF8042E /opt/product/mfc/5.1.3/etc/mfdsacfg.dat
14:31:23 Binding to any network adapter...
14:31:23 ...bound on any adapter on port 0\\udp
14:31:23 SL9045I ...releasing UDP handle semaphore 9327538.
14:31:23 SM0001I Terminated normally (atexit).

Since the MFDS daemon did not terminate, we exported the file at /var/mfcobol/es/logs/journal.dat from the HTML UI into journal.txt and found these messages:
MC0038E Refused: requester has insufficient privileges
MC0004E Credentials required
MC0003W No credentials
MC0001I Option 1
MC0039I Processing MFDS_CONTROL_SHUTDOWN request...
SL0001I [MFDS_CONTROL_SHUTDOWN] (208) request from address 0xa259ce2 [10.37.156.226], port 0xda05 [55813]

Would the ES be looking to receive the [username password] for the "mfc" ES system admin ID, or for some other ID? We **are** running MFDS internal security, with "Restrict administration access" checked (turned on). Specifying the password for "mfc" in clear text inside a script would not be allowed by our Unix administrators. If the credentials for the ID of "mfc" are what is required, can they be supplied in some other more secure fashion?