Skip to main content

Changing the ONTAP Mediator user name

After the ONTAP Mediator service is installed, you might want to change the user name.

About this task

This task is performed on the Linux host on which the ONTAP Mediator service is installed.

If you are unable to reach this command, you might need to run the command using the full path as shown in the following example: /usr/local/bin/mediator_username

Change the ONTAP Mediator user name by choosing from one of the following options:
  • Run the command mediator_change_user and respond to the prompts as shown in the following example:
    [root@mediator-host ~]# mediator_change_user
    Modify the Mediator API username by entering the following values:
    Mediator API User Name: mediatoradmin
    Password:
    New Mediator API User Name: mediator
    The account username has been modified successfully.
    [root@mediator-host ~]#
  • Run the following command: MEDIATOR_USERNAME= mediator MEDIATOR_PASSWORD= mediator2 MEDIATOR_NEW_USERNAME= mediatoradmin mediator_change_user as shown in the following example:
    [root@mediator-host ~]# MEDIATOR_USERNAME= mediator MEDIATOR_PASSWORD='mediator2' MEDIATOR_NEW_USERNAME= mediatoradmin mediator_change_user
    The account username has been modified successfully.
    [root@mediator-host ~]#