Command line interface?

Hi.

Is there such a thing as a command line interface for Openfire admin?

Eg. to be able to create users, etc. through a DOS command line?

This would be very handy.

Sorry if that is a dumb question.

Owen

There is a possibility to manage a server with commands but not via system command line prompt. This can be done with User Service plugin or Helga bot. These tools let to issue commands to a server or bot via jabber client (but this is mostly for the users management, you cant manage everything with them). Openfire administration is done only via web Admin Console, which can be accessed from a remote machine, so there is no need to have a GUI on a server.

I have not seen a command-line interface to administer Openfire, but Openfire does support a subset of the Ad-hoc commands for Service Administration. The full recommended list of ad-hoc commands can be found here:

http://xmpp.org/extensions/xep-0133.html

You could write a command-line client in Java using the Smack library, and communicate with the Openfire server using ad-hoc commands.

Here is a list of the ad-hoc commands returned through the AdHocCommandManager.discoverCommands() method available in the Smack library:

“Get List of Active Users” node=“http://jabber.org/protocol/admin#get-active-users”/>
“Create new group” node=“http://jabber.org/protocol/admin#add-group”/>
“System administrator added” node=“http://jabber.org/protocol/event#sys-admin-added”/>
“Add members or admins to a group” node=“http://jabber.org/protocol/admin#add-group-members”/>
“Group admin removed” node=“http://jabber.org/protocol/event#group-admin-removed”/>
“Group admin added” node=“http://jabber.org/protocol/event#group-admin-added”/>
“Delete group” node=“http://jabber.org/protocol/admin#delete-group”/>
“Update group configuration” node=“http://jabber.org/protocol/admin#update-group”/>
“Get basic statistics of the server.” node=“http://jabber.org/protocol/admin#get-server-stats”/>
“VCard modified” node=“http://jabber.org/protocol/event#vcard-modified”/>
“Get Presence of Active Users” node=“http://jabber.org/protocol/admin#get-active-presences”/>
“Get User Properties” node=“http://jabber.org/protocol/admin#get-user-properties”/>
“Current Http Bind Status” node=“http://jabber.org/protocol/admin#status-http-bind”/>
“Group member removed” node=“http://jabber.org/protocol/event#group-member-removed”/>
“Group modified” node=“http://jabber.org/protocol/event#group-modified”/>
“System administrator status removed” node=“http://jabber.org/protocol/event#sys-admin-removed”/>
“Number of Active Users” node=“http://jabber.org/protocol/admin#get-active-users-num”/>
“Authenticate User” node=“http://jabber.org/protocol/admin#authenticate-user”/>
“Group member added” node=“http://jabber.org/protocol/event#group-member-added”/>
“Change the share secret” node=“http://jabber.org/protocol/clearspace#change-sharedsecret”/>
“Delete members or admins from a group” node=“http://jabber.org/protocol/admin#delete-group-members”/>
“Number of Online Users” node=“http://jabber.org/protocol/admin#get-online-users-num”/>
“Get admin console info.” node=“http://jabber.org/protocol/admin#get-console-info”/>
“Group deleting” node=“http://jabber.org/protocol/event#group-created”/>
“Get List of Group Members” node=“http://jabber.org/protocol/admin#get-group-members”/>
“Deleting a User” node=“http://jabber.org/protocol/event#user-deleting”/>
“User created” node=“http://jabber.org/protocol/event#user-created”/>
“Number of Connected User Sessions” node=“http://jabber.org/protocol/admin#get-sessions-num”/>
“Change User Password” node=“http://jabber.org/protocol/admin#change-user-password”/>
“Add a User” node=“http://jabber.org/protocol/admin#add-user”/>
“New nonce” node=“http://jabber.org/protocol/clearspace#generate-nonce”/>
“Get List of Existing Groups” node=“http://jabber.org/protocol/admin#get-groups”/>
“VCard created” node=“http://jabber.org/protocol/event#vcard-created”/>
“Deleting a VCard” node=“http://jabber.org/protocol/event#vcard-deleting”/>
“User modified” node=“http://jabber.org/protocol/event#user-modified”/>