Is it possible to export the User Tracking db contents based on certain criteria, similar to what the UT GUI offers? Specifically, I'm wondering what possibilities there are with the <name> option in "-query {all | dupMAC | dupIP | hub | <name>}". Can I query by one or more attributes such as MACAddress and PortSpeed? This is LMS 2.2. Is the UT CLI any better in LMS 2.5?
./ut -h
Usage 1: ut [options] userid [password]
-debug
-host <ANI Server hostname or IP Address>
-port <ANI Server web port number>
-prompt
-help
Usage 2: ut -cli [options] userid [password]
[options] can be a combination of the following:
-ping {enable | disable}
-discover
-query {all | dupMAC | dupIP | hub | <name>}
-layout layout_name
-queryPhone {all | <name>}
-layoutPhone layout_name
-import filename
-export filename
-stat
-debug
-host <ANI Server hostname or IP Address>
-port <ANI Server web port number>
-prompt
-help
As an experiment, I saved a specific set of search criteria in Advanced Query through the UT GUI, but the UT CLI seems unaware of this set:
./ut -cli -query MyQueryName -export ut-exported.txt admin password
MyQueryName: No such query is predefined.