A lot of commands however will (are) also available from the cli by using our configd system.
configctl configd actions
# configctl configd actions...proxy fetchacls [ Fetch external Proxy (squid) ACLs ]service reload all [ ]proxy restart [ ]proxy status [ ]captiveportal restart [ ]...
# configctl proxy statussquid is running as pid 99218.
How to upgrade from CLI?
And is it possible to add a firewall rule from CLI?
I thought configctl firmware upgrade could be exactly what I am looking for. Could you explain why it return a 'cannot upgrade' error even though updates are available
And one last question:Is there a way to check whether ports are down/up and/or whether services are running/stopped through CLI, API or other?
ifconfig igb2 | sed -n 's/.*status: \([^ ]*\).*/\1/gp'
if [ -e "/var/run/configd.pid" ];thenecho "configd active";elseecho "configd not active"fi
#!/bin/shisvalidpid(){ /bin/pgrep -nF $1}is_process_running(){ /bin/pgrep -anx }if [ $(isvalidpid /var/run/ntpd.pid) > 1 ] && [ $(is_process_running) > 1 ]then echo "Active"else echo "Not"fi