Configuring a switch banner – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 64

Advertising
background image

32

Network OS NETCONF Operations Guide

53-1003231-02

Configuring a switch banner

3

<global-lc-holder

xmlns="urn:brocade.com:mgmt:brocade-linecard-management">

<linecard>

<linecards>

<linecardName>1</linecardName>

<linecardType>LC48x10G</linecardType>

</linecards>

</linecard>

</global-lc-holder>

</rbridgeid>

</rpc-reply>

Configuring a switch banner

A banner is a text message that displays on the console of the CLI. It can contain information about
the switch that an administrator may want users to know when accessing the switch.

The following procedure sets and verifies a switch banner.

1. Issue the <edit-config> RPC to configure the <banner> node in the

urn:brocade.com:mgmt:brocade-aaa namespace.

2. Under the <banner> node, include the <login> leaf element and specify the banner that is to

be displayed when a user logs in.

Optionally, add the <motd> node to configure the Message of the Day.

The banner is a string up to 2048 characters long.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="312" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<banner xmlns="urn:brocade.com:mgmt:brocade-aaa">

<login>Please do not disturb the setup on this switch</login>

<motd>TPS reports are due every Thursday.</motd>

</banner>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="312" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

3. To verify the banner, issue the <get-config> RPC with a subtree filter to return the contents of

the <banner> node in the urn:brocade.com:mgmt:brocade-aaa namespace.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="313" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<get-config>

<source>

<running/>

</source>

<filter type="subtree">

<banner xmlns="urn:brocade.com:mgmt:brocade-aaa">

Advertising