Creating a user account, Verifying user account information – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 207

Network OS NETCONF Operations Guide
175
53-1003231-02
User accounts
15
Creating a user account
The following example creates a new user account with the minimally required attributes: name,
role, and password. The account name “brcdUser” has the default user privilege of accessing
commands in the privileged EXEC mode.
1. Issue the <edit-config> RPC to configure the <username> node in the
urn:brocade.com:mgmt:brocade-aaa namespace.
2. Under the <username> node, include the <name>, <role>, and <user-password> leaf
elements to define the user.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="800" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<username xmlns="urn:brocade.com:mgmt:brocade-aaa">
<name>brcdUser</name>
<role>user</role>
<user-password>welcome</user-password>
</username>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="800" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Verifying user account information
The user account information is saved in the switch configuration file.
To verify the user account information, issue the <get-config> RPC with a subtree filter to return
information contained under the <username> node in the urn:brocade.com:mgmt:brocade-aaa
namespace.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="801" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<username xmlns="urn:brocade.com:mgmt:brocade-aaa">
</filter>
</get-config>
</rpc>
<rpc-reply message-id="801" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<username xmlns="urn:brocade.com:mgmt:brocade-aaa">
<name>brcdUser</name>
<user-password>San5josE</user-password>
<role>user</role>
</username>
<username xmlns="urn:brocade.com:mgmt:brocade-aaa">