Skip to content

Example user show alls XML

1
2
3
4
5
6
7
8
   <!-- Cisco -->
   <task name='user_show_all' type='dataset'>
      <commands>
         <command format='textual_dataset' preamble_line_count='0' postamble_line_count='0'>show running-config | include username
            <attribute name='name' line_nr='0' word_nr='1'/>
         </command>
      </commands>
   </task>
1
2
3
4
5
6
7
8
   <!-- F5 -->
   <task name='user_show_all' type='dataset'>
      <commands>
         <command format='textual_dataset' section_end_delimiter='^}'>tmsh show running-config auth user
            <attribute name='name' line_nr='0' start='10' end_delim=' {'/>
         </command>
      </commands>
   </task>
1
2
3
4
5
6
7
8
   <!-- Brocade -->
   <task name='user_show_all' type='dataset'>
      <commands>
         <command format='textual_dataset' preamble_line_count='2' postamble_line_count='0'>show users
            <attribute name='name' line_nr='0' word_nr='0'/>
         </command>
      </commands>
   </task>
1
2
3
4
5
6
7
8
   <!-- JunOS -->
   <task access='shell' name='user_show_all' type='dataset'>
      <commands>
         <command format='textual_dataset' select_lines_strip='user'>show system login
            <attribute name='name' word_nr='0'/>
         </command>
      </commands>
   </task>