summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-users.xml.in
blob: a026e47e7ca357aeff30aca08165d7862cf36fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
    <node name="users">
      <properties>
        <help>Show user information</help>
      </properties>
      <command>who -H</command>
      <children>
        <node name="recent">
          <properties>
            <help>Show 10 recently logged in users</help>
          </properties>
          <command>last -aF -n 10 | sed -e 's/^wtmp begins/Displaying logins since/'</command>
        </node>
        <tagNode name="recent">
          <properties>
            <help>Show specified number of recently logged in users</help>
            <completionHelp>
              <list>NUMBER</list>
            </completionHelp>
          </properties>
          <command>last -aF -n $4 | sed -e 's/^wtmp begins/Displaying logins since/'</command>
        </tagNode>
      </children>
    </node>
    </children>
  </node>
</interfaceDefinition>