C H A P T E R
4
CLI Overview, Information, Active
Sessions and Power Management
Options
49
This section provides procedures for some tasks that the administrator can perform at the following levels of the CLI.
Table 4.1: Ports Menu Options
Level
Overview
Information
Active Sessions
Use this option to:
Reboot, save and restore configuration files.
View information about the console server configuration.
View information about active sessions.
Power Management Administrators and users who are authorized for power configuration can enable and assign the Power Profile to ports that are connected to PDUs, and rename a PDU.
Only administrators and authorized users can access the Information, Active Sessions and Power
Management levels.
Overview Options
To view and perform configuration with the Overview options:
1.
Log onto the CLI as an administrator and change to the overview level.
--:- units cli-> cd overview
--:- overview cli->
2.
Press Tab Tab to display the options.
--:- overview cli->< Tab >< Tab > reboot restore_configuration save_configuration
3.
Enter your choice from the command list followed by the required parameters.
Table 4.2: Overview Commands
Command reboot
Description or Field
Reboots the Cyclades ACS 6000 console server.
50 Cyclades ACS 6000 Advanced Console Server Command Reference Guide
Table 4.2: Overview Commands (Continued)
Command save configuration ftp site ip address username password path and filename local file restore configuration ftp site ip address username password path and filename local file
Description or Field
Save configuration according to the following parameters.
FTP site parameters listed below.
IP address of the FTP site.
Username on the FTP site.
User password on the FTP site.
Path to the storage directory and the filename of the configuration file.
Filename.
Restore configuration according to the following parameters.
FTP site parameters listed below.
IP address of the FTP site.
Username on the FTP site.
User password on the FTP site.
Path to the storage directory and the filename of the configuration file.
Filename.
Information Options
To view and perform Information options:
1.
Log onto the CLI as an administrator and change to the information level.
--:- units cli-> cd information
--:- information cli->
2.
Enter show to view the Information options
--:- information cli-> show.
information identity versions power cpu memory flash_usage
Chapter 4: CLI Overview, Information, Active Sessions and Power Management Options 51
3.
Enter cd <navigation option from list> to view any of the options.
4.
Enter show to view the list of available parameters.
This procedure continues down the hierarchical levels. See Table 4.3 for the options and and their
default settings.
Information Options identity serial_number type versions bootcode firmware booted_from power power_supply_1 power_supply_2 cpu cpu_type revision bogomips memory active anonpages bounce buffers cached commitlimit committed_as dirty
Table 4.3: Information Options
Description
Console server identity information
Console server serial number
Physical description of the ACS 6000 console server type
Console server software information
Version of the console server’s u-boot code
Version and build information of the firmware
Network or Flash
Power supply status
On or Off status
On, Off or Not Present status
CPU information
Example: CPU = 440EPx - with Security/Kasumi
Example: Revision = 24.208 (pvr 2162 18d0)
Example: Bogomips = 798.72 (approximate mega instructions per second)
Memory information (values below are examples)
Size: 46048 kB
Size: 25020 kB
Size: 0 kB
Size: 71680 kB
Size: 32692 kB
Size: 128716 kB
Size: 151960 kB
Size: 4 kB
52 Cyclades ACS 6000 Advanced Console Server Command Reference Guide
Table 4.3: Information Options (Continued)
Information Options inactive mapped memfree memtotal nfs_unstable pagetables slab sreclaimable sunreclaim swapcached swapfree swaptotal vmallocchunk vmalloctotal vmallocused writeback flash_usage
/dev/mtdblock7
/dev/ram0
/dev/ram0 tmpfs
Description
Size: 83344 kB
Size: 14844 kB
Size: 119404 kB
Size: 257436 kB
Size: 0 kB
Size: 1000 kB
Size: 5812 kB
Size: 2572 kB
Size: 3240 kB
Size: 0 kB
Size: 0 kB
Size: 0 kB
Size: 735492 kB
Size: 737188 kB
Size: 1556 kB
Size: 0 kB
Displays RAM disk usage, mount points, Flash memory used and Flash memory available
Mounted on /mnt/hdUser
Mounted on /
/dev/.static/dev
/dev
Chapter 4: CLI Overview, Information, Active Sessions and Power Management Options 53
Active Sessions Information
The Active Session information fields are described in Table 4.4. An authorized user can kill an
active session with the Kill command.
Table 4.4: Active Sessions Field Descriptions
Field user client_ip creation_time session_type connection_type target_name id parent id
Description
Logged in user
Source of the connection
Time of the session creation
Type of session (console, http)
Type of connection (cli, wmi - that is, Web Manager)
Target name or alias if session is an access session
Session ID
Parent ID if session is a subsession
To view and kill Active_Sessions:
1.
From the units level CLI prompt, enter cd active_sessions .
--:- units cli-> cd active_sessions
--:active_sessions cli->
2.
Enter show . Information displays as shown about all active sessions.
--:- active_sessions cli-> show
37
user: admin
client_ip: none
creation_time: Tue Dec 18 03:31:01 2007
session_type: console
connection_type: cli
target_name:
id: 37
parent_id:
--:- active_sessions cli->
3.
To kill a session (if authorized), enter kill followed by the session number.
54 Cyclades ACS 6000 Advanced Console Server Command Reference Guide
--:- active_sessions cli-> kill 37
Power Management Options
The Power Management Options are described in Table 4.5.
Table 4.5: Power Management Options Descriptions
Option settings management
Description
Allows an authorized user to reboot, restore factory default settings or to rename
PDU(s). Also allows the authorized user to view information about each PDU, monitor sensors, clear sensor values, set up syslogging of events related to the PDU, configure an alarm and the LED display mode, and to manage outlets on the PDU.
Shows a list of PDUs, including PDU ID, Vendor and Model Number of Outlets
Position. Allows user to turn on, turn off, cycle or reboot the PDUs.
outlet_groups Lists all configured outlet groups that the current user is authorized to manage (to manage outlet groups, the user must be in a user group that is authorized to manage all the outlets in the outlet group).
To rename a PDU:
1.
Log onto the CLI as an administrator and enter cd power_management/settings to navigate to the settings level.
--:- units cli-> cd power_management/settings
2.
Type rename and press Tab Tab to expand the parameters.
--:- settings cli-> rename <PDU_ID> < Tab><Tab>
3.
Enter set newpdu_id=< new_PDU_ID>.
--:#- [settings] cli-> set new_pdu_id=mypdu
--:#- [settings] save
NOTE: See the Cyclades ACS 6000 Installation/Administration/User guide for how to perform other authorized
PDU configuration options.
To manage power for a selected outlet:
See cycle, on, off, lock and unlock on page 12 for how to manage power at the power_management
level.