Open Frames Download Complete PDF Send Feedback Print This Page

Previous

Next

Global Operating System Commands

Global operating system commands are standard Linux commands that run on all or specified SGMs. When you run a global command in the gclish shell, the operating system runs a global script, which the standard Linux command on the SGMs. When you run a command in the Expert mode, it works as a standard Linux command. To use the global command in the Expert mode, run the global command script version as shown in this table:

gclish Command

Global Command - Expert Mode

arp

g_arp

cat

g_cat

cp

g_cp

dmesg

g_dmesg

ethtool

g_ethtool

ls

g_ls

md5sum

g_md5sum

Mv

g_mv

Netstat

g_netstat

Reboot

g_reboot

tail

g_tail

tcpdump

g_tcpdump

ifconfig

asg_ifconfig

top

g_top

The parameters and options for the standard Linux command are available for the global command. In addition, you can use the -b parameter to select some or all SGMs for the global command.

Syntax

{<gclish_command> | <global_command>} [-b <sgm_ids>] <command_options>]

Parameter

Description

-b <sgm_ids>

Works with SGMs and/or Chassis as specified by <sgm_ids>.

<sgm_ids> can be:

  • No <sgm_ids> specified or all shows all SGMs and Chassis
  • One SGM
  • A comma-separated list of SGMs (1_1,1_4)
  • A range of SGMs (1_1-1_4)
  • One Chassis (Chassis1 or Chassis2)
  • The active Chassis (chassis_active)

Note: You can only select SGMs from one Chassis with this option.

<gclish_command>

Standard command in gclish

<global_command>

Global command as shown in the table, in Expert Mode

<command_options>

Standard command options for the specified command.

You can use one or more flags. However, do not use the –l and –r flags together.

Global arp

This example shows the interfaces on all SGMs

> arp
1_01:
Address     HWtype  HWaddress           Flags Mask   Iface
192.0.2.2   ether   00:1C:7F:02:04:FE   C            Sync
172.23.9.28 ether   00:14:22:09:D2:22   C            eth1-Mgmt4
192.0.2.3   ether   00:1C:7F:03:04:FE   C            Sync
1_02:
Address     HWtype  HWaddress           Flags Mask   Iface
192.0.2.3   ether   00:1C:7F:03:04:FE   C            Sync
172.23.9.28 ether   00:14:22:09:D2:22   C            eth1-Mgmt4
192.0.2.1   ether   00:1C:7F:01:04:FE   C            Sync
1_03:
Address     HWtype  HWaddress           Flags Mask   Iface
192.0.2.1   ether   00:1C:7F:01:04:FE   C            Sync
172.23.9.28 ether   00:14:22:09:D2:22   C            eth1-Mgmt4
192.0.2.2   ether   00:1C:7F:02:04:FE   C            Sync

Global ls

This example runs ls from Expert Mode on SGMs 1_1, 1_2, and 1_3. The output shows the combined results for these SGMs.

# g_ls ls –b 1_1-1_3,2_1 /var/
-*- 4 blades: 1_01 1_02 1_03 -*-
CPbackup    ace    crash  lib   log   opt       run    suroot
CPsnapshot  cache  empty  lock  mail  preserve  spool  tmp

Related Topics

Global top

 
Top of Page ©2014 Check Point Software Technologies Ltd. All rights reserved. Download Complete PDF Send Feedback Print