Author Archives: Geneva Sibanda

About Geneva Sibanda

I assist companies in the Areas of Network Infrastructure Design and Implementation: (from Windows Active Directory Security, networking, etc.).

Could not get lock /var/lib/dpkg/lock

Recently I was trying to update/upgrade Ubuntu 21.10 using the apt when I encountered the following error:

E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

A quick resolution that worked for me:

ps aux | grep -i apt
sudo kill -9 17796
ps aux | grep -i apt
rm -rf /var/lib/dpkg/lock-frontend
sudo dpkg –configure -a

zoo_visitor_error_non_existing_anonymous_member

It was working fine, and somehow, it just stopped working.

Solution:

Login to the backend of ExpressionEngine

Then go to Add-Ons – Modules –

../admin.php?S=0&D=cp&C=addons_modules

Click on Zoo Visitor

Then Go to installation » click the button at the bottom to Reinstall Everything.

Once the Zoo Visitor is installed, you do not need to change it, the installation makes sure everything is in place to just start. The default Guest member is necessary to accept registrations.

Fortinet Fortigate CLI Commands

Networking

Show network interface configuration:

config system interface

Show all nics:

diagnose hardware deviceinfo nic

Show all info for specific nic:

diagnose hardware deviceinfo nic dmz

Execute ping:

execute ping 8.8.8.8

Ping Options:

execute ping-options view
execute ping-options source 192.168.1.4

Show Session Table:

diagnose sys session list

Traceroute:

execute traceroute 8.8.8.8

Telnet:

execute telnet targethost

Firewall

Show some statistics:

firewall statistic show

Show session table:

sys session full-stat

VDOMS

Change vdom:

config vdom
edit vdomname

Performance

Overall performance:

get system performance status

Top (use Shift+M for memory usage):

get system performance top

Proxy

Show console log:

execute log filter dump
execute log filter category 0
execute log filter field hostname www.google.ch
execute log display

SSL Inspection

Show possible diag commands:

diagnose test application ssl 0

SSL Proxy Usage

diagnose test application ssl 4

Show info per connection:

diagnose test application ssl 44

FSSO

Debug FSSO:

diag debug enable
diag debug authd fsso list
diag debug authd fsso server-status
diag debug authd fsso summary
diag debug authd fsso clear-logons
diag debug authd fsso refresh-logons
diag debug authd fsso refresh-groups

Routing

Show routing table:

get router info routing-table all

OSPF

Neighbor status (neighbours have state up/down):

get router info ospf neighbor all

Delete all OSPF entries:

excecute router clear ospf process

Enable debug output:

diagnose ip router ospf all enable
diagnose ipo router ospf level info

Get Router Status:

get router info ospf status

Sniff for OSPF packets:

diagnose sniffer packet any ‘proto 89’ 4

Debug OSPF:

dignose ip router ospf all enable
diagnose ip router ospf level info
diagnose debug enable

Ipsec

Show ipsec tunnels:

get ipsec tunnel list 

Troubleshoot VPN connections:

diag debug application ike -1
diagnose vpn ike log-filter clear
diagnose vpn ike log-filter dst-addr 1.2.3.4
diagnose debug app ike 255
diagnose debug enable

Debug Flow

Debug traffic flow through the fortigate:

diagnose debug enable
diagnose debug flow show console enable
diagnose debug flow filter add 10.10.0.1
diagnose debug flow trace start 100

Admin Interface

Set certificate for admin interface:

config system global
set admin-server-cert certname
end