Hello,
Ive noticed a huge inconsistency between the number of CLI commands listed in the documentation, and those reported by command-line help in imunify360-agent output.
For example the documentation lists about 30 top-level commands at https://[https://docs.imunify360.com...ine_interface/. However the CLI output lists about 50 available commands as "positional arguments" and only 27 "Available commands:"
To give another example, under the top-level "malware" command, the documentation on your website lists 6 commands. The CLI reports 10 available commands as "positional arguments:"
What is the reason for the discrepancy? Is the documentation still maintained? Should we use commands and features which do not appear in official documentation?
The questions arose because it seems that an on-demand scan started as follows, is not scanning every home directory for reasons unknown:
However through experimentation, we found that a scan started as follows will apparently scan every user home directory:
The latter command seems to work as intended, but I am uneasy using it when it is undocumented. Im also curious why the single on-demand scan shown above wouldnt include every directory under /home*/*.](https://docs.imunify360.com/command_line_interface/)
Ive noticed a huge inconsistency between the number of CLI commands listed in the documentation, and those reported by command-line help in imunify360-agent output.
For example the documentation lists about 30 top-level commands at https://[https://docs.imunify360.com...ine_interface/. However the CLI output lists about 50 available commands as "positional arguments" and only 27 "Available commands:"
Code:
# imunify360-agent -h usage: imunify360-agent [-h] [--log-config LOG_CONFIG] [--console-log-level {ERROR,WARNING,INFO,DEBUG}] [--remote-addr REMOTE_ADDR] {3rdparty,add-sudouser,admin-emails,backup-systems,blacklist,blocked-port,blocked-port-ip,check,check-domains,checkdb,clean,config,create-rbl-whitelist,delete-sudouser,disable-plugin,doctor,enable-plugin,eula,feature-management,features,fix,get,get-news,graylist,health,hook,import,infected-domains,install-vendors,login,malware,proactive,register,reload-lists,remote-proxy,remove-block-report-script,remove-csf-ports,restore-configs,rstatus,rules,service,submit,support,uninstall-vendors,unregister,update,update-license,version,whitelist,whitelisted-crawlers} ... CLI for imunify360 agent. positional arguments: {3rdparty,add-sudouser,admin-emails,backup-systems,blacklist,blocked-port,blocked-port-ip,check,check-domains,checkdb,clean,config,create-rbl-whitelist,delete-sudouser,disable-plugin,doctor,enable-plugin,eula,feature-management,features,fix,get,get-news,graylist,health,hook,import,infected-domains,install-vendors,login,malware,proactive,register,reload-lists,remote-proxy,remove-block-report-script,remove-csf-ports,restore-configs,rstatus,rules,service,submit,support,uninstall-vendors,unregister,update,update-license,version,whitelist,whitelisted-crawlers} Available commands add-sudouser admin-emails Get panel admin emails blacklist check-domains Send domain list check checkdb clean create-rbl-whitelist Create whitelist for RBL delete-sudouser disable-plugin Disable hosting panel plugin doctor enable-plugin Enable hosting panel plugin (if detected) get get-news health infected-domains Returns infected domain list install-vendors Enable hosting panel plugin (if detected) register Register the agent reload-lists Reload custom black and white lists remove-block-report-script Restore block reports script remove-csf-ports Remove imunify360 ports from csf config restore-configs Restore system configs to pre install Imunify360 state rstatus Get registration status uninstall-vendors Disable hosting panel plugin unregister Unregister the agent update update-license Force update license version optional arguments: -h, --help show this help message and exit --log-config LOG_CONFIG logging config filename --console-log-level {ERROR,WARNING,INFO,DEBUG} Level of logging input to the console --remote-addr REMOTE_ADDR Clients IP address for adding it to the whitelist
Code:
# imunify360-agent malware -h usage: imunify360-agent malware [-h] {cleanup,dashboard,hash,history,ignore,malicious,on-demand,read,suspicious,user} ... positional arguments: {cleanup,dashboard,hash,history,ignore,malicious,on-demand,read,suspicious,user} Available commands read optional arguments: -h, --help show this help message and exit
The questions arose because it seems that an on-demand scan started as follows, is not scanning every home directory for reasons unknown:
Code:
# imunify360-agent malware on-demand start --path /home*/* --no-follow-symlinks --intensity low
Code:
# imunify360-agent malware user scan
Comment