Print Download PDF Send Feedback

Previous

Next

Client Environment Output Format

Gaia Clish supports these output formats:

Pretty

Output is formatted to be clear. For example, output of the command show user admin in pretty mode would look like this:

gaia> set clienv output pretty

 

gaia> show user admin

Uid Gid Home Dir. Shell Real Name Privileges

0 0 /home/admin /bin/cli.sh Admin Admin-like shell

gaia>

Structured

Output is delimited by semi-colons. For example, output of the command show user admin in structured mode would look like this:

gaia> set clienv output structured

 

gaia> show user admin

Uid;Gid;Home Dir.;Shell;Real Name;Privileges;

0;0;/home/admin;/bin/bash;Admin;Admin-like shell;

gaia>

XML

Adds XML tags to the output. For example, output of the command show user admin in XML mode would look like this:

gaia> set clienv output xml

 

gaia> show user admin

<?xml version="1.0"?>

<CMDRESPONSE>

<CMDTEXT>show user admin</CMDTEXT>

<RESPONSE><System_User>

<Row>

<Uid>0</Uid>

<Gid>0</Gid>

<Home_Dir.>/home/admin</Home_Dir.>

<Shell>/bin/bash</Shell>

<Real_Name>Admin</Real_Name>

<Privileges>Admin-like shell</Privileges>

</Row>

</System_User>

</RESPONSE>

</CMDRESPONSE>

gaia>