What exact commands does Lansweeper run during an SSH session when scanning Linux/UNIX? We have a new system that has ssh restricted to only allow specified commands and I'd like to add what Lansweeper needs.
ABECU wrote: Unfortunately that page just talks about enabling SSH, not what is run once it logs on.
The second paragraph of the article mentions the SSH commands:
The account you use to access SSH must be able to run the uname command. Depending on your Linux distribution, Lansweeper will also run a selection of the following commands, though (unlike the uname command) these commands are not strictly required: arp, bdf, df, dmidecode, dpkg, echo, equery, grep, hal-find-by-property, hal-get-property, ifconfig, lanscan, lslpp, lspci, machinfo, netstat, oslevel, pciconf, pkg_info, pkginfo, prtconf, prtdiag, rpm, smbios, sudo, swlist, sysctl, type, uptime, xl. The output of these commands must be in English, as other languages may not be correctly parsed.
ABECU wrote: Unfortunately that page just talks about enabling SSH, not what is run once it logs on.
The second paragraph of the article mentions the SSH commands:
The account you use to access SSH must be able to run the uname command. Depending on your Linux distribution, Lansweeper will also run a selection of the following commands, though (unlike the uname command) these commands are not strictly required: arp, bdf, df, dmidecode, dpkg, echo, equery, grep, hal-find-by-property, hal-get-property, ifconfig, lanscan, lslpp, lspci, machinfo, netstat, oslevel, pciconf, pkg_info, pkginfo, prtconf, prtdiag, rpm, smbios, sudo, swlist, sysctl, type, uptime, xl. The output of these commands must be in English, as other languages may not be correctly parsed.
I don't know the exact commands but this article provides some information: https://www.lansweeper.com/knowledgebase/linux-and-unix-scanning-requirements/
General Discussions
Find answers to technical questions about Lansweeper.