show module-info
Use this command to display module's config and state configuration for any top-level object in the data model. This command can be used to display module configuration in XML or JSON format. This command is equivalent to a NETCONF GET operation.show module-info OBJECT_NAME format (xml|json)
Command Syntax
show module-info OBJECT_NAME format (xml|json)
Parameters
OBJECT_NAME
Name of the object, such as ISIS or OSPF
xml
XML output format
json
JSON output format
Command Mode
All modes
Applicability
This command was introduced in OcNOS version 6.0.0.
Example
To display the user-session module's config and state configuration in XML format:
#show module-info user-session format xml
<user-session xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-user-session-management">
<sessions>
<session>
<id>pts/0</id>
<state>
<id>pts/0</id>
<user-role>network-admin</user-role>
<type>Local</type>
<process-identifier>1099</process-identifier>
<idle-time>0d00h00m</idle-time>
<client-type>CLI</client-type>
<user-name>root</user-name>
<line>130 vty 0</line>
</state>
</session>
</sessions>
</user-session>
To display the user-session module's config and state configuration in JSON format:
#show module-info user-session format json
{
"user-session":{
"sessions":{
"session":[
{
"id":"pts/0",
"state":{
"id":"pts/0",
"user-role":"network-admin",
"type":"Local",
"process-identifier":"1099",
"idle-time":"0d00h00m",
"client-type":"CLI",
"user-name":"root",
"line":"130 vty 0"
}
}
]
}
}
}