Note: The
status command
is used to display
both status of configured objects and specific functional status information.
This section documents the use of the
status command
for configuration objects. See also the status commands within the
Special purpose commands section.
Purpose
Show the status of a specified configuration
object or an instance of a configuration object.
Syntax
status object-type [ object-instance ]
Parameters
- object-type
- Type of the object to be displayed
- object-instance
- Name of the object instance to be displayed, if the configuration
object is not a singleton object
Usage
Notes
- If the object-instance is
omitted for a configuration
object that is not a singleton object, the status of all instances
of the specified object-type is displayed.
- The status command
is supported only for selected configuration
objects.
- The values displayed here are the runtime values
for the object.
In contrast, the show command will display the configured properties
of the object.
Example
Show
the status of ethernet-interface
eth0.
Console> status ethernet-interface eth0
eth0 OpState:[Up]
generic MTU:1500 carrier:true flags:UP BROADCAST RUNNING MULTICAST
index:5
inet addr:9.42.77.48 flags:PERMANENT mask:255.255.255.0
scope:GLOBAL
inet6 addr: 2002:92a:8f7a:901:9:42:77:48 flags:PERMANENT
mask: ffff:ffff:ffff:ffff:: scope:GLOBAL
inet6 addr: fe80::20c:29ff:fedd:7baf flags:PERMANENT
mask: ffff:ffff:ffff:ffff:: scope:LINK
ethernet Link:on MAC: 00:0c:29:dd:7b:af autoneg:on duplex:Full
port:TP speed:1000Mbps
statistics collisions:0 multicast:0 rx_bytes:69088545
rx_compressed:0 rx_crc_errors:0 rx_dropped:0 rx_errors:0
rx_fifo_errors:0 rx_frame_errors:0 rx_length_errors:0
rx_missed_errors:0 rx_over_errors:0 rx_packets:842919
tx_aborted_errors:0 tx_bytes:3512656 tx_carrier_errors:0
tx_compressed:0 tx_dropped:0 tx_errors:0 tx_fifo_errors:0
tx_heartbeat_errors:0 tx_packets:18144 tx_window_errors:0