Fortinet white logo
Fortinet white logo

User Guide

Application Commands

Application Commands

You can perform specific operations on the FortiGuest application using these commands.

app upgrade

This command upgrades the FortiGuest application to a newer version.

Syntax

app upgrade scp://user1@10.35.2.2:/home/user1/Desktop/fortiguest-v1.0.0-build0002-docker.tar.xz

Output

fortiguest> app upgrade scp://user1@10.35.2.2:/home/user1/Desktop/fortiguest-v1.0.0-build0002-docker.tar.xz
Fortiguest application upgrade
The authenticity of host '10.35.2.2 (10.35.2.2)' can't be established.
ED25519 key fingerprint is SHA256:bU7mtIeahe+c7avCYjPyrgbrviqVCsvC9gvz/0ufd4U.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.35.2.2' (ED25519) to the list of known hosts.
user1@10.35.2.2's password:
fortiguest-v1.0.0-build0002-docker.tar.xz 100% 175MB 202.5MB/s 00:00
fortiguest application copied Successfully.

app show

This command displays the version information of FortiGuest.

Syntax

app show

Output

fortiguest> app show
The following fortiguest applications are in system.
1 v1.0.0-dev9998
2 v1.0.0-build0002
Running Version : v1.0.0-build0002
Fortiguest application show Successful.

app delete

This command deletes the FortiGuest application from the system.

Syntax

app delete

For example, specify the required FortiGuest version to delete.

fortiguest> app delete
The following fortiguest applications are in the system.
1 v1.0.0-dev9998
2 v1.0.0-build0002
No fortiguest application is running

app start

This command starts the FortiGuest application.

Syntax

app start

Output

fortiguest> app start
The following fortiguest applications are in system.
1 v1.0.0-build0004
No fortiguest application is running
Enter fortiguest application version to start: v1.0.0-build0004
There are no fortiguest applications running
Starting fortiguest application v1.0.0-build0004
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Starting fortiguest-v100-build0004_fortiguest_1 ... done
Started fortiguest application v1.0.0-build0004Fortiguest application started Successfully.

app stop

This command stops the FortiGuest application running in the system.

Syntax

app stop

Output

fortiguest> app stop
fortiguest v1.0.0-build0002 is running, do you want to stop [yes/no]?: yes
fortiguest-v100-build0002_fortiguest_1
Stopped fortiguest application v1.0.0-build0002
Fortiguest application stopped.

Note: A maximum of two images can be copied into the application.

Set interface ipv4

This command changes the IPv4 address.

Syntax

set interface ipv4

Output

fortiguest> set interface ipv4
Setting IPv4 address
Enter new IPv4 Address [10.35.2.1]: 10.35.2.7
Enter Subnet Mask: [255.255.255.192]: 255.255.255.192
Enter Gateway IP Address [10.35.2.1]: 10.35.2.1
fortiguest-v100-dev0031_fortiguest_1
Stopped fortiguest application v1.0.0-dev0031
Stopping dockerd:
Please access system using new IP or Hostname address.
Reconfiguring network interfaces...

Note: Changing the IP address requires a service restart.

Application Commands

Application Commands

You can perform specific operations on the FortiGuest application using these commands.

app upgrade

This command upgrades the FortiGuest application to a newer version.

Syntax

app upgrade scp://user1@10.35.2.2:/home/user1/Desktop/fortiguest-v1.0.0-build0002-docker.tar.xz

Output

fortiguest> app upgrade scp://user1@10.35.2.2:/home/user1/Desktop/fortiguest-v1.0.0-build0002-docker.tar.xz
Fortiguest application upgrade
The authenticity of host '10.35.2.2 (10.35.2.2)' can't be established.
ED25519 key fingerprint is SHA256:bU7mtIeahe+c7avCYjPyrgbrviqVCsvC9gvz/0ufd4U.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.35.2.2' (ED25519) to the list of known hosts.
user1@10.35.2.2's password:
fortiguest-v1.0.0-build0002-docker.tar.xz 100% 175MB 202.5MB/s 00:00
fortiguest application copied Successfully.

app show

This command displays the version information of FortiGuest.

Syntax

app show

Output

fortiguest> app show
The following fortiguest applications are in system.
1 v1.0.0-dev9998
2 v1.0.0-build0002
Running Version : v1.0.0-build0002
Fortiguest application show Successful.

app delete

This command deletes the FortiGuest application from the system.

Syntax

app delete

For example, specify the required FortiGuest version to delete.

fortiguest> app delete
The following fortiguest applications are in the system.
1 v1.0.0-dev9998
2 v1.0.0-build0002
No fortiguest application is running

app start

This command starts the FortiGuest application.

Syntax

app start

Output

fortiguest> app start
The following fortiguest applications are in system.
1 v1.0.0-build0004
No fortiguest application is running
Enter fortiguest application version to start: v1.0.0-build0004
There are no fortiguest applications running
Starting fortiguest application v1.0.0-build0004
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Starting fortiguest-v100-build0004_fortiguest_1 ... done
Started fortiguest application v1.0.0-build0004Fortiguest application started Successfully.

app stop

This command stops the FortiGuest application running in the system.

Syntax

app stop

Output

fortiguest> app stop
fortiguest v1.0.0-build0002 is running, do you want to stop [yes/no]?: yes
fortiguest-v100-build0002_fortiguest_1
Stopped fortiguest application v1.0.0-build0002
Fortiguest application stopped.

Note: A maximum of two images can be copied into the application.

Set interface ipv4

This command changes the IPv4 address.

Syntax

set interface ipv4

Output

fortiguest> set interface ipv4
Setting IPv4 address
Enter new IPv4 Address [10.35.2.1]: 10.35.2.7
Enter Subnet Mask: [255.255.255.192]: 255.255.255.192
Enter Gateway IP Address [10.35.2.1]: 10.35.2.1
fortiguest-v100-dev0031_fortiguest_1
Stopped fortiguest application v1.0.0-dev0031
Stopping dockerd:
Please access system using new IP or Hostname address.
Reconfiguring network interfaces...

Note: Changing the IP address requires a service restart.