コマンド一覧
auth users and authentication
configure Enter configuration mode
curl curl command
date Show current date
df df command
exit Exit from the console
free command to show memory usage
hist Print a list of commands that have been entered
nslookup nslookup
ping ping
reboot Reboot the box
request request
reset Reset appliance configuration and data
restart Restart various modules
scp Secure copy files to external host using SCP
show show
shutdown shutdown the box
status status
tcpdump take tcpdump
telnet telnet command
top command to show current CPU/MEM usage
traceroute traceroute
troubleshooting Troubleshooting tools
auth change-password nsadmin Command
このコマンドは、nsadminユーザーアカウントのパスワードを変更します。
DLP オンデマンド アプライアンスは、 Netskopeアプライアンスの限られた機能セットを使用し、ユーザーの追加/削除は含まれていません。
nsappliance> auth change-password nsadmin New password: <newpassword> Retype new password: <newpassword> passwd: password updated successfully
configure Command
このコマンドを実行すると、アプライアンスが設定モードに入ります。
設定モードコマンド
設定モードには複数のコマンドが含まれています。
add Add list to config subtree
delete Delete various parameters
exit Exit configuration mode
load Load a configuration that was last saved when you want to discard some most recent operations that weren’t saved.
run Run an op mode command from within the configuration mode. The same command can be run outside the configuration mode by removing the run prefix.
save save
set Set various parameters
show Show config subtree
設定モードは システム設定を定義、変更、保存するためのものです。 実行中の設定ツリーを保持しており、 show コマンドで表示できます。set コマンドは、このモード内で設定変更を適用するために最も一般的に使用される コマンドです。
| Set Commands | デスクリプション |
|---|---|
dns | プライマリDNSとセカンダリDNSを設定する必要があります。 プライマリDNSの設定は必須です。 |
interface | このアプライアンスには、起動時に DHCP が有効になるデフォルトのインターフェイスがあります。 つまり、IPアドレス、ゲートウェイ、サブネットマスクは自動的に取得されるということです。このコマンドは 静的IPアドレス、ゲートウェイ、サブネットマスクを設定するためのものです 自動割り当てられた値を上書きしたい場合に使用します。 |
save | 構成モード内で行われた変更を保存するために使用します。 変更を保存するには、 command must be runを入力してください。 |
server-cert | このコマンドは CAによって署名されたサーバー証明書を設定するためのものです。 詳細については、 「証明書の設定」を参照してください。 |
server-intermediate-ca-chain | このコマンドは 署名を行った認証局(CA)が提供する証明書チェーンを設定します。 そのCAは恐らく中間CAとなるだろう。詳細については、 「証明書の設定」を参照してください。 |
server-key | このコマンドは、秘密キーを設定するために使用され、SSL 証明書に署名するために使用されます。 詳細については、 「証明書の設定」を参照してください。 |
system | これは ライセンスキー、ログインバナー、ホスト名などのシステムパラメータを設定するためのものです。 |
date Command
このコマンドはシステムの日付を表示します。
nsappliance> date
Thu 10 Apr 2025 05:06:49 PM UTC
df Command
このコマンドは、マウントされているすべてのファイルシステムのディスク使用量を、KB、MB、またはGB単位で表示します。
nsappliance> df
Filesystem Size Used Avail Use% Mounted on
udev 3.6G 0 3.6G 0% /dev
tmpfs 744M 3.3M 741M 1% /run
/dev/mapper/nsappliance--vg-OS1 78G 55G 19G 75% /
tmpfs 3.7G 1.9M 3.7G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.7G 0 3.7G 0% /sys/fs/cgroup
/dev/xvda2 27M 2.5M 23M 11% /grubcfg
/dev/xvda3 130M 118M 1.5M 99% /boot
/dev/mapper/nsappliance--vg-lcmongo--infrastructure 3.9G 24K 3.7G 1% /var/ns/docker/mounts/lcmongo-infrastructure/mountpoint
/dev/mapper/nsappliance--vg-lclw 32G 116K 30G 1% /var/ns/docker/mounts/lclw/mountpoint
/dev/mapper/securestore.main 51G 19G 30G 39% /opt/ns
/dev/mapper/securestore.upgrade 32G 28K 30G 1% /opt/ns/upgrades
tmpfs 744M 0 744M 0% /run/user/1000
exit Command
このコマンドはnsshellまたは設定モードを終了するためのものです。
free Command
このコマンドは、メモリ使用量と利用可能なスワップメモリを表示します。
nsappliance> free
total used free shared buff/cache available
Mem: 7438 2683 145 6 4609 4451
Swap: 1023 181 842
hist Command
このコマンドは、あなたのコマンド履歴を表示します。
nslookup Command
このコマンドは、DNSに問い合わせてドメインのIPアドレスまたはIPアドレスのドメイン名を検索します。
ping Command
このコマンドは、パケットを送信し、遅延とパケット損失を測定することで、ホストへのネットワーク接続性をテストします。
reboot Command
このコマンドはアプライアンスを再起動します。
request Command
このコマンドは 証明書要求または自己署名証明書を生成するためのものです。 使用方法については、 「証明書の設定」を参照してください。
サブコマンド:
certificate-request: パス/opt/ns/appliance/certs/csr.crtに.csrファイルを生成しますself-signedパス/opt/ns/appliance/certs/server.crtと/opt/ns/appliance/private/server.keyに自己署名証明書のキーペアを生成します。
使用法:
request certificate generate certificate-request city <city> common-name <common-name> country <country> days <days> email-address <email-address> organization <organization> organization-unit <organization-unit> state <state> request certificate generate self-signed city <city> common-name <common-name> country <country> days <days> email-address <email-address> organization <organization> organization-unit <organization-unit> state <state>
reset Command
このコマンドは、アプライアンスの設定をリセットします。
restart Command
このコマンドは、アプライアンス上で実行されている各種モジュールを再起動します。
scp Command
このコマンドはdebug-packageを外部ホストにエクスポートするためのものです。
nsappliance> scp export debug-package to
host Remote host or IP to connect to
path Path (including filename) on remote host to copy to
user User name on the remote host
show Command
このコマンドは、アプライアンスのさまざまな設定詳細を表示します。
nsappliance> show
config config
dns dns configured on the system
interface interface information
password-age Show password age
route route
service-status Show status for all services
shutdown Command
このコマンドはアプライアンスをシャットダウンします。
status Command
status tethering アプライアンスがインターネットに接続されているときにテザリング情報が表示されます。
テザリングが完了すると、 tenant-url 、 serial 、 rest-tokenには正しい値が入力されるはずです。ここに示されている serial は、ウェブUIに示されているシリアルと一致しているはずです。 テザリングが成功した場合、 cfgagent_connectedとcallhome_reachable真になるはずです。
nsappliance> status tethering
Tethering status
{
"tethering_status": {
"cfg_serial_file_synced": false,
"cloud_serial_file_synced": false,
"cfgagent_connected": false,
"callhome_reachable": false
},
"precheck_status": {
"required_images_present": false,
"required_containers_running": false
}
}
=========================================
Tethering info
{
"tenant-url": "",
"serial": "",
"identifier": "033d720a-160e-11f0-a5d3-0242ac110003",
"rest-token": ""
}
status system ホスト名、現在のアプライアンスバージョン、稼働時間、現在のメモリ使用量を表示するはずです
nsappliance> status system
{
"disk_usage": {
"/": "75%",
"/boot": "99%",
"/dev": "0%",
"/dev/shm": "1%",
"/grubcfg": "11%",
"/opt/ns": "39%",
},
"mem_usage": "39%",
"uptime": "5:37:21.910000",
"hostname": "nsappliance",
"cur_version": "125.0.0.101",
"downloaded_versions": []
}
tcpdump Command
このコマンドは、ネットワークのトラブルシューティングと分析のために、ネットワークトラフィックをリアルタイムでキャプチャ、表示、保存します。
telnet Command
このコマンドは、リモートホストとの対話型テキストベースのネットワークセッションを開始します。多くの場合 ポート接続をテストするために使用されます。
top Command
CPU、メモリ、仮想メモリの観点からシステム負荷を理解するために使います。
nsappliance> top
top - 17:04:19 up 3:51, 1 user, load average: 0.01, 0.22, 0.30
Tasks: 247 total, 1 running, 246 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.2 us, 1.9 sy, 0.0 ni, 94.7 id, 0.1 wa, 0.0 hi, 0.2 si, 0.0 st
MiB Mem : 7438.9 total, 175.8 free, 2650.7 used, 4612.4 buff/cache
MiB Swap: 1024.0 total, 842.0 free, 182.0 used. 4484.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4694 root 20 0 2099440 724420 95760 S 8.6 9.5 20:43.39 k3s-server
1948 root 20 0 2124288 85756 29376 S 4.0 1.1 10:52.59 dockerd
18993 root 20 0 1988624 531448 39964 S 3.3 7.0 7:21.90 nsdlp
761 root 20 0 2099224 34764 12928 S 2.0 0.5 3:34.04 containerd
6410 nsadmin 20 0 1283832 49924 29628 S 0.7 0.7 0:57.93 metrics-server
6415 65532 20 0 1294096 51240 33832 S 0.7 0.7 1:46.45 coredns
17000 nsadmin 20 0 34104 7420 4916 S 0.7 0.1 1:09.51 redis-server
18549 root 20 0 1238
traceroute Command
このコマンドは、ネットワークパスを表示し、パケットがシステムから宛先ホストに到達するまでの伝送遅延を測定します。
nsappliance> traceroute host www.google.com
1?: [LOCALHOST] pmtu 1500
1: 100.126.2.245 0.294ms
1: 100.126.2.245 0.250ms
2: 240.3.180.14 1.803ms asymm 6
3: 99.82.14.76 2.084ms asymm 8
4: 99.82.14.77 1.453ms asymm 7
5: no reply
6: no reply
7: no reply
8: no reply
9: no reply
10: no reply
11: no reply
12: no reply
13: no reply
14: no reply
15: no reply
16: no reply
17: no reply
18: no reply
19: no reply
20: no reply
21: no reply
22: no reply
23: no reply
24: no reply
25: no reply
26: no reply
27: no reply
28: no reply
29: no reply
30: no reply
Too many hops: pmtu 1500
Resume: pmtu 1500
troubleshooting Command

これは、システムをデバッグするためにログを調べるためのデバッグパッケージを生成およびエクスポートするためのものです。さらにトラブルシューティングを行うためのサブコマンドが以下にあります。
nsappliance> troubleshooting
'troubleshooting' is not a complete command.
Possible commands for 'troubleshooting':
coredump core file management
debug-package Netskope debug package
reprocess-logs Reprocess log files that are older than the specified time
diagnostic-agent Diagnostic agent
nsappliance>
troubleshooting coredump subcommand
これは コアダンプパーティションの状態を取得し、コアファイルをクリーンアップするためのものです。
nsappliance> troubleshooting coredump
cleanup cleanup all core files
status coredump status
nsappliance> troubleshooting coredump status
==========================================
coredump partition mounted: True
current space reserved: 32G
current coredump size: 0B
space used by non coredumps: 1M
total partition size: 32G
total used: 1.4M
==========================================
troubleshooting debug-package subcommand
このオプションを使用すると、 Netskopeサポートが問題のトラブルシューティングを行う際に役立つデバッグパッケージを生成またはアップロードできます。 このパッケージにはすべてのサービスログとシステムログが含まれており、オプションでコアダンプを含めることもできます。
nsappliance> troubleshooting debug-package
generate Generate debug package. Optionally pass include-coredumps to include crash dumps
upload Upload debug package directly to Netskope


