+

Search Tips   |   Advanced Search

Logging in to the portal

Before we can work with portal scripting commands, we need to log in to the portal server instance where we want to work with the Portal Scripting Interface.

At the command prompt wsadmin> use the following command: Portal.login("your_userid", "your_password"):

If you logged in successfully, the Portal Scripting Interface returns a message that starts with logged in as . . .. The console now shows the following lines:

wsadmin> Portal.login(your_userid, your_password)wsadmin>  logged in as "uid=your_userid,o=defaultWIMFileBasedRealm"
You can now administer the portal instance in a similar way as by using the Portal Administration user interface. The following examples show how we can work with pages.


Parent topic: Get started with the Portal Scripting Interface