Below are the individual commands run by the Movere service and bot for Linux scans. Not all commands are run all the time, some depend on the output of previous commands.
These are the commands the Linux user account needs to be able to execute from the Movere Console:
- Kill: This command is only used if the pidof command finds a Movere bot already running on the device. If there is then it is terminated so that a new scan can be started.
- Sudo: This command is used to elevate the user to admin and is not required. If not enabled, Movere may not collect the target device's UUID/serial number. This is data point is only used to link VMs when the customer clones a device using the same fully qualified name and MAC address as the original.
- Pidof: This command checks to see if a Movere Linux bot is already running on the device. If there is one, then it returns the bots process ID.
- uname: This command confirms the device's name and identifies the device's architecture ,(32 vs 64-bit)m to figure out which Movere Linux bot to use to scan the device.
- chmod: This command is used to make the Movere Linux bot executable on the system being scanned. If the user account can change the bots mode to executable 'chmod 755' then the bot will run, if they cannot then the scan will not start.
- nohup: This command is used because the Movere Linux bot runs in the background by default. If the user logs out from the session or their connection is prematurely terminated then the process will be terminated or hang up. This command is used to avoid that from happening.
- which: This command is used to identify the location of the commands Movere will attempt to use. You could use this command: 'which uname, pidof, sudo, kill, chmod, nohup' to find the location of each. If a location is returned for each then that user account will be able to run a Movere Linux scan.
Once the Movere Linux bot is made executable it will then use the following commands locally on the targeted device to collect the required inventory and resource consumption data:
- lsb. cat
- ifconfig (usually /sbin/ifconfig)
- ip (usually /sbin/ip)
NOTE: Not all of these commands are run all the time, some depend on the output of previous commands